PR rtl-optimization/71673
[official-gcc.git] / gcc / configure
blobed4447299c2fd18c4089e3e9412a38d73bbe7d8e
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 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
767 LN_S
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 host_noncanonical
826 target_os
827 target_vendor
828 target_cpu
829 target
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 target_alias
839 host_alias
840 build_alias
841 LIBS
842 ECHO_T
843 ECHO_N
844 ECHO_C
845 DEFS
846 mandir
847 localedir
848 libdir
849 psdir
850 pdfdir
851 dvidir
852 htmldir
853 infodir
854 docdir
855 oldincludedir
856 includedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL'
876 ac_subst_files='option_includes
877 language_hooks'
878 ac_user_opts='
879 enable_option_checking
880 with_build_libsubdir
881 with_local_prefix
882 with_native_system_header_dir
883 with_build_sysroot
884 with_sysroot
885 with_gxx_include_dir
886 with_cpp_install_dir
887 enable_generated_files_in_srcdir
888 with_gnu_ld
889 with_ld
890 with_demangler_in_ld
891 with_gnu_as
892 with_as
893 enable_largefile
894 enable_build_format_warnings
895 enable_werror_always
896 enable_checking
897 enable_coverage
898 enable_gather_detailed_mem_stats
899 enable_valgrind_annotations
900 with_stabs
901 enable_multilib
902 enable_multiarch
903 enable___cxa_atexit
904 enable_decimal_float
905 enable_fixed_point
906 enable_threads
907 enable_tls
908 enable_vtable_verify
909 enable_objc_gc
910 with_dwarf2
911 enable_shared
912 with_specs
913 with_pkgversion
914 with_bugurl
915 enable_languages
916 with_multilib_list
917 enable_rpath
918 with_libiconv_prefix
919 enable_sjlj_exceptions
920 enable_secureplt
921 enable_leading_mingw64_underscores
922 enable_cld
923 enable_frame_pointer
924 enable_win32_registry
925 enable_static
926 with_pic
927 enable_fast_install
928 enable_libtool_lock
929 enable_ld
930 enable_gold
931 with_plugin_ld
932 enable_gnu_indirect_function
933 enable_initfini_array
934 enable_comdat
935 enable_fix_cortex_a53_835769
936 enable_fix_cortex_a53_843419
937 with_glibc_version
938 enable_gnu_unique_object
939 enable_linker_build_id
940 enable_default_ssp
941 with_long_double_128
942 with_gc
943 with_system_zlib
944 enable_maintainer_mode
945 enable_link_mutex
946 enable_version_specific_runtime_libs
947 enable_plugin
948 enable_host_shared
949 enable_libquadmath_support
950 with_linker_hash_style
951 with_diagnostics_color
952 enable_default_pie
954 ac_precious_vars='build_alias
955 host_alias
956 target_alias
958 CFLAGS
959 LDFLAGS
960 LIBS
961 CPPFLAGS
963 CXXFLAGS
965 CXXCPP
967 GMPLIBS
968 GMPINC
969 ISLLIBS
970 ISLINC'
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 ac_unrecognized_opts=
977 ac_unrecognized_sep=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1041 ac_dashdash=yes ;;
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=no ;;
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1101 -enable-* | --enable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid feature name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval enable_$ac_useropt=\$ac_optarg ;;
1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119 | --exec | --exe | --ex)
1120 ac_prev=exec_prefix ;;
1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123 | --exec=* | --exe=* | --ex=*)
1124 exec_prefix=$ac_optarg ;;
1126 -gas | --gas | --ga | --g)
1127 # Obsolete; use --with-gas.
1128 with_gas=yes ;;
1130 -help | --help | --hel | --he | -h)
1131 ac_init_help=long ;;
1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133 ac_init_help=recursive ;;
1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135 ac_init_help=short ;;
1137 -host | --host | --hos | --ho)
1138 ac_prev=host_alias ;;
1139 -host=* | --host=* | --hos=* | --ho=*)
1140 host_alias=$ac_optarg ;;
1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143 ac_prev=htmldir ;;
1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145 | --ht=*)
1146 htmldir=$ac_optarg ;;
1148 -includedir | --includedir | --includedi | --included | --include \
1149 | --includ | --inclu | --incl | --inc)
1150 ac_prev=includedir ;;
1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152 | --includ=* | --inclu=* | --incl=* | --inc=*)
1153 includedir=$ac_optarg ;;
1155 -infodir | --infodir | --infodi | --infod | --info | --inf)
1156 ac_prev=infodir ;;
1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158 infodir=$ac_optarg ;;
1160 -libdir | --libdir | --libdi | --libd)
1161 ac_prev=libdir ;;
1162 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163 libdir=$ac_optarg ;;
1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166 | --libexe | --libex | --libe)
1167 ac_prev=libexecdir ;;
1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169 | --libexe=* | --libex=* | --libe=*)
1170 libexecdir=$ac_optarg ;;
1172 -localedir | --localedir | --localedi | --localed | --locale)
1173 ac_prev=localedir ;;
1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175 localedir=$ac_optarg ;;
1177 -localstatedir | --localstatedir | --localstatedi | --localstated \
1178 | --localstate | --localstat | --localsta | --localst | --locals)
1179 ac_prev=localstatedir ;;
1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182 localstatedir=$ac_optarg ;;
1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185 ac_prev=mandir ;;
1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187 mandir=$ac_optarg ;;
1189 -nfp | --nfp | --nf)
1190 # Obsolete; use --without-fp.
1191 with_fp=no ;;
1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194 | --no-cr | --no-c | -n)
1195 no_create=yes ;;
1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 no_recursion=yes ;;
1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203 | --oldin | --oldi | --old | --ol | --o)
1204 ac_prev=oldincludedir ;;
1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208 oldincludedir=$ac_optarg ;;
1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211 ac_prev=prefix ;;
1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213 prefix=$ac_optarg ;;
1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216 | --program-pre | --program-pr | --program-p)
1217 ac_prev=program_prefix ;;
1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220 program_prefix=$ac_optarg ;;
1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223 | --program-suf | --program-su | --program-s)
1224 ac_prev=program_suffix ;;
1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227 program_suffix=$ac_optarg ;;
1229 -program-transform-name | --program-transform-name \
1230 | --program-transform-nam | --program-transform-na \
1231 | --program-transform-n | --program-transform- \
1232 | --program-transform | --program-transfor \
1233 | --program-transfo | --program-transf \
1234 | --program-trans | --program-tran \
1235 | --progr-tra | --program-tr | --program-t)
1236 ac_prev=program_transform_name ;;
1237 -program-transform-name=* | --program-transform-name=* \
1238 | --program-transform-nam=* | --program-transform-na=* \
1239 | --program-transform-n=* | --program-transform-=* \
1240 | --program-transform=* | --program-transfor=* \
1241 | --program-transfo=* | --program-transf=* \
1242 | --program-trans=* | --program-tran=* \
1243 | --progr-tra=* | --program-tr=* | --program-t=*)
1244 program_transform_name=$ac_optarg ;;
1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247 ac_prev=pdfdir ;;
1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249 pdfdir=$ac_optarg ;;
1251 -psdir | --psdir | --psdi | --psd | --ps)
1252 ac_prev=psdir ;;
1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 psdir=$ac_optarg ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 silent=yes ;;
1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 ac_prev=sbindir ;;
1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 | --sbi=* | --sb=*)
1264 sbindir=$ac_optarg ;;
1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268 | --sharedst | --shareds | --shared | --share | --shar \
1269 | --sha | --sh)
1270 ac_prev=sharedstatedir ;;
1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 | --sha=* | --sh=*)
1275 sharedstatedir=$ac_optarg ;;
1277 -site | --site | --sit)
1278 ac_prev=site ;;
1279 -site=* | --site=* | --sit=*)
1280 site=$ac_optarg ;;
1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 ac_prev=srcdir ;;
1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285 srcdir=$ac_optarg ;;
1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288 | --syscon | --sysco | --sysc | --sys | --sy)
1289 ac_prev=sysconfdir ;;
1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292 sysconfdir=$ac_optarg ;;
1294 -target | --target | --targe | --targ | --tar | --ta | --t)
1295 ac_prev=target_alias ;;
1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297 target_alias=$ac_optarg ;;
1299 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 verbose=yes ;;
1302 -version | --version | --versio | --versi | --vers | -V)
1303 ac_init_version=: ;;
1305 -with-* | --with-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error "invalid package name: $ac_useropt"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1355 -*) as_fn_error "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information."
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' | [0-9]* | *[!_$as_cr_alnum]* )
1364 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1365 esac
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1377 esac
1378 done
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error "missing argument to $ac_option"
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1387 no) ;;
1388 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 esac
1393 # Check all directory arguments for consistency.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val=\$$ac_var
1400 # Remove trailing slashes.
1401 case $ac_val in
1402 */ )
1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\$ac_val;;
1405 esac
1406 # Be sure to have absolute directory names.
1407 case $ac_val in
1408 [\\/$]* | ?:[\\/]* ) continue;;
1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 esac
1411 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426 If a cross compiler is detected then cross compile mode will be used." >&2
1427 elif test "x$build_alias" != "x$host_alias"; then
1428 cross_compiling=yes
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435 test "$silent" = yes && exec 6>/dev/null
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441 as_fn_error "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 as_fn_error "pwd does not report name of working directory"
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 s//\1/
1460 /^X\(\/\/\)[^/].*/{
1461 s//\1/
1464 /^X\(\/\/\)$/{
1465 s//\1/
1468 /^X\(\/\).*/{
1469 s//\1/
1472 s/.*/./; q'`
1473 srcdir=$ac_confdir
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 srcdir=..
1477 else
1478 ac_srcdir_defaulted=no
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1506 # Report the --help message.
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures this package to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1567 cat <<\_ACEOF
1569 Program names:
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1574 System types:
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1577 --target=TARGET configure for building compilers for TARGET [HOST]
1578 _ACEOF
1581 if test -n "$ac_init_help"; then
1583 cat <<\_ACEOF
1585 Optional Features:
1586 --disable-option-checking ignore unrecognized --enable/--with options
1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1589 --enable-generated-files-in-srcdir
1590 put copies of generated files in source dir intended
1591 for creating source tarballs for users without
1592 texinfo bison or flex
1593 --disable-largefile omit support for large files
1594 --disable-build-format-warnings
1595 don't use -Wformat while building GCC
1596 --enable-werror-always enable -Werror despite compiler version
1597 --enable-checking[=LIST]
1598 enable expensive run-time checks. With LIST, enable
1599 only specific categories of checks. Categories are:
1600 yes,no,all,none,release. Flags are:
1601 assert,df,extra,fold,gc,gcac,gimple,misc,
1602 rtlflag,rtl,runtime,tree,valgrind,types
1603 --enable-coverage[=LEVEL]
1604 enable compiler's code coverage collection. Use to
1605 measure compiler performance and locate unused parts
1606 of the compiler. With LEVEL, specify optimization.
1607 Values are opt, noopt, default is noopt
1608 --enable-gather-detailed-mem-stats
1609 enable detailed memory allocation stats gathering
1610 --enable-valgrind-annotations
1611 enable valgrind runtime interaction
1612 --enable-multilib enable library support for multiple ABIs
1613 --enable-multiarch enable support for multiarch paths
1614 --enable-__cxa_atexit enable __cxa_atexit for C++
1615 --enable-decimal-float={no,yes,bid,dpd}
1616 enable decimal float extension to C. Selecting 'bid'
1617 or 'dpd' choses which decimal floating point format
1618 to use
1619 --enable-fixed-point enable fixed-point arithmetic extension to C
1620 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1621 package
1622 --enable-tls enable or disable generation of tls code overriding
1623 the assembler check for tls support
1624 --enable-vtable-verify enable vtable verification feature
1625 --enable-objc-gc enable the use of Boehm's garbage collector with the
1626 GNU Objective-C runtime
1627 --disable-shared don't provide a shared libgcc
1628 --enable-languages=LIST specify which front-ends to build
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-sjlj-exceptions
1631 arrange to use setjmp/longjmp exception handling
1632 --enable-secureplt enable -msecure-plt by default for PowerPC
1633 --enable-leading-mingw64-underscores
1634 enable leading underscores on 64 bit mingw targets
1635 --enable-cld enable -mcld by default for 32bit x86
1636 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1638 --disable-win32-registry
1639 disable lookup of installation paths in the Registry
1640 on Windows hosts
1641 --enable-win32-registry enable registry lookup (default)
1642 --enable-win32-registry=KEY
1643 use KEY instead of GCC version as the last portion
1644 of the registry key
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=yes]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1651 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1652 --enable-gnu-indirect-function
1653 enable the use of the @gnu_indirect_function to
1654 glibc systems
1655 --enable-initfini-array use .init_array/.fini_array sections
1656 --enable-comdat enable COMDAT group support
1658 --enable-fix-cortex-a53-835769
1659 enable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1661 --disable-fix-cortex-a53-835769
1662 disable workaround for AArch64 Cortex-A53 erratum
1663 835769 by default
1666 --enable-fix-cortex-a53-843419
1667 enable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1669 --disable-fix-cortex-a53-843419
1670 disable workaround for AArch64 Cortex-A53 erratum
1671 843419 by default
1673 --enable-gnu-unique-object
1674 enable the use of the @gnu_unique_object ELF
1675 extension on glibc systems
1676 --enable-linker-build-id
1677 compiler will always pass --build-id to linker
1678 --enable-default-ssp enable Stack Smashing Protection as default
1679 --enable-maintainer-mode
1680 enable make rules and dependencies not useful (and
1681 sometimes confusing) to the casual installer
1682 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1683 thrashing on the build machine
1684 --enable-version-specific-runtime-libs
1685 specify that runtime libraries should be installed
1686 in a compiler-specific directory
1687 --enable-plugin enable plugin support
1688 --enable-host-shared build host code as shared libraries
1689 --disable-libquadmath-support
1690 disable libquadmath support for Fortran
1691 --enable-default-pie enable Position Independent Executable as default
1693 Optional Packages:
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-build-libsubdir=DIR Directory where to find libraries for build system
1697 --with-local-prefix=DIR specifies directory to put local include
1698 --with-native-system-header-dir=dir
1699 use dir as the directory to look for standard
1700 system header files in. Defaults to /usr/include.
1701 --with-build-sysroot=sysroot
1702 use sysroot as the system root during the build
1703 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1704 --with-gxx-include-dir=DIR
1705 specifies directory to put g++ header files
1706 --with-cpp-install-dir=DIR
1707 install the user visible C preprocessor in DIR
1708 (relative to PREFIX) as well as PREFIX/bin
1709 --with-gnu-ld arrange to work with GNU ld
1710 --with-ld arrange to use the specified ld (full pathname)
1711 --with-demangler-in-ld try to use demangler in GNU ld
1712 --with-gnu-as arrange to work with GNU as
1713 --with-as arrange to use the specified as (full pathname)
1714 --with-stabs arrange to use stabs instead of host debug format
1715 --with-dwarf2 force the default debug format to be DWARF 2
1716 --with-specs=SPECS add SPECS to driver command-line processing
1717 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1718 --with-bugurl=URL Direct users to URL to report a bug
1719 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1720 --with-gnu-ld assume the C compiler uses GNU ld default=no
1721 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1722 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1723 --with-pic try to use only PIC/non-PIC objects [default=use
1724 both]
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1726 --with-plugin-ld=[ARG] specify the plugin linker
1727 --with-glibc-version=M.N
1728 assume GCC used with glibc version M.N or later
1729 --with-long-double-128 use 128-bit long double by default
1730 --with-gc={page,zone} this option is not supported anymore. It used to
1731 choose the garbage collection mechanism to use with
1732 the compiler
1733 --with-system-zlib use installed libz
1734 --with-linker-hash-style={sysv,gnu,both}
1735 specify the linker hash style
1736 --with-diagnostics-color={never,auto,auto-if-env,always}
1737 specify the default of -fdiagnostics-color option
1738 auto-if-env stands for -fdiagnostics-color=auto if
1739 GCC_COLOR environment variable is present and
1740 -fdiagnostics-color=never otherwise
1742 Some influential environment variables:
1743 CC C compiler command
1744 CFLAGS C compiler flags
1745 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1746 nonstandard directory <lib dir>
1747 LIBS libraries to pass to the linker, e.g. -l<library>
1748 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1749 you have headers in a nonstandard directory <include dir>
1750 CXX C++ compiler command
1751 CXXFLAGS C++ compiler flags
1752 CXXCPP C++ preprocessor
1753 CPP C preprocessor
1754 GMPLIBS How to link GMP
1755 GMPINC How to find GMP include files
1756 ISLLIBS How to link isl
1757 ISLINC How to find isl include files
1759 Use these variables to override the choices made by `configure' or to help
1760 it to find libraries and programs with nonstandard names/locations.
1762 Report bugs to the package provider.
1763 _ACEOF
1764 ac_status=$?
1767 if test "$ac_init_help" = "recursive"; then
1768 # If there are subdirs, report their specific --help.
1769 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1770 test -d "$ac_dir" ||
1771 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1772 continue
1773 ac_builddir=.
1775 case "$ac_dir" in
1776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1779 # A ".." for each directory in $ac_dir_suffix.
1780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1781 case $ac_top_builddir_sub in
1782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784 esac ;;
1785 esac
1786 ac_abs_top_builddir=$ac_pwd
1787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir=$ac_top_build_prefix
1791 case $srcdir in
1792 .) # We are building in place.
1793 ac_srcdir=.
1794 ac_top_srcdir=$ac_top_builddir_sub
1795 ac_abs_top_srcdir=$ac_pwd ;;
1796 [\\/]* | ?:[\\/]* ) # Absolute name.
1797 ac_srcdir=$srcdir$ac_dir_suffix;
1798 ac_top_srcdir=$srcdir
1799 ac_abs_top_srcdir=$srcdir ;;
1800 *) # Relative name.
1801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802 ac_top_srcdir=$ac_top_build_prefix$srcdir
1803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 esac
1805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807 cd "$ac_dir" || { ac_status=$?; continue; }
1808 # Check for guested configure.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1813 echo &&
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1815 else
1816 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 fi || ac_status=$?
1818 cd "$ac_pwd" || { ac_status=$?; break; }
1819 done
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1824 cat <<\_ACEOF
1825 configure
1826 generated by GNU Autoconf 2.64
1828 Copyright (C) 2009 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1831 _ACEOF
1832 exit
1835 ## ------------------------ ##
1836 ## Autoconf initialization. ##
1837 ## ------------------------ ##
1839 # ac_fn_c_try_compile LINENO
1840 # --------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=1
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 return $ac_retval
1875 } # ac_fn_c_try_compile
1877 # ac_fn_cxx_try_compile LINENO
1878 # ----------------------------
1879 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_compile ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext
1884 if { { ac_try="$ac_compile"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_compile") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest.$ac_objext; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_cxx_try_compile
1915 # ac_fn_cxx_try_cpp LINENO
1916 # ------------------------
1917 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1918 ac_fn_cxx_try_cpp ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_cpp conftest.$ac_ext"
1922 case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1929 ac_status=$?
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } >/dev/null && {
1937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1938 test ! -s conftest.err
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1945 ac_retval=1
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 return $ac_retval
1950 } # ac_fn_cxx_try_cpp
1952 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1953 # ---------------------------------------------------------
1954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1955 # the include files in INCLUDES and setting the cache variable VAR
1956 # accordingly.
1957 ac_fn_cxx_check_header_mongrel ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 else
1970 # Is the header compilable?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1972 $as_echo_n "checking $2 usability... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_cxx_try_compile "$LINENO"; then :
1979 ac_header_compiler=yes
1980 else
1981 ac_header_compiler=no
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1985 $as_echo "$ac_header_compiler" >&6; }
1987 # Is the header present?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1989 $as_echo_n "checking $2 presence... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_cxx_try_cpp "$LINENO"; then :
1995 ac_header_preproc=yes
1996 else
1997 ac_header_preproc=no
1999 rm -f conftest.err conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001 $as_echo "$ac_header_preproc" >&6; }
2003 # So? What about this header?
2004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2005 yes:no: )
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 no:yes:* )
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 esac
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 eval "$3=\$ac_header_compiler"
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 } # ac_fn_cxx_check_header_mongrel
2039 # ac_fn_cxx_try_run LINENO
2040 # ------------------------
2041 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2042 # that executables *can* be run.
2043 ac_fn_cxx_try_run ()
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_link"
2047 case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_link") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2057 { { case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_try") 2>&5
2064 ac_status=$?
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; }; }; then :
2067 ac_retval=0
2068 else
2069 $as_echo "$as_me: program exited with status $ac_status" >&5
2070 $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 ac_retval=$ac_status
2075 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 return $ac_retval
2079 } # ac_fn_cxx_try_run
2081 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2082 # ---------------------------------------------------------
2083 # Tests whether HEADER exists and can be compiled using the include files in
2084 # INCLUDES, setting the cache variable VAR accordingly.
2085 ac_fn_cxx_check_header_compile ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2096 #include <$2>
2097 _ACEOF
2098 if ac_fn_cxx_try_compile "$LINENO"; then :
2099 eval "$3=yes"
2100 else
2101 eval "$3=no"
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110 } # ac_fn_cxx_check_header_compile
2112 # ac_fn_c_try_cpp LINENO
2113 # ----------------------
2114 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_c_try_cpp ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_cpp conftest.$ac_ext"
2119 case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } >/dev/null && {
2134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 }; then :
2137 ac_retval=0
2138 else
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 ac_retval=1
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 return $ac_retval
2147 } # ac_fn_c_try_cpp
2149 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2150 # ----------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2153 # computed
2154 ac_fn_cxx_compute_int ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 main ()
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2166 test_array [0] = 0
2169 return 0;
2171 _ACEOF
2172 if ac_fn_cxx_try_compile "$LINENO"; then :
2173 ac_lo=0 ac_mid=0
2174 while :; do
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2179 main ()
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 test_array [0] = 0
2185 return 0;
2187 _ACEOF
2188 if ac_fn_cxx_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2190 else
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2193 ac_lo= ac_hi=
2194 break
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 done
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 static int test_array [1 - 2 * !(($2) < 0)];
2208 test_array [0] = 0
2211 return 0;
2213 _ACEOF
2214 if ac_fn_cxx_try_compile "$LINENO"; then :
2215 ac_hi=-1 ac_mid=-1
2216 while :; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2221 main ()
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2224 test_array [0] = 0
2227 return 0;
2229 _ACEOF
2230 if ac_fn_cxx_try_compile "$LINENO"; then :
2231 ac_lo=$ac_mid; break
2232 else
2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234 if test $ac_mid -le $ac_hi; then
2235 ac_lo= ac_hi=
2236 break
2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 else
2243 ac_lo= ac_hi=
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258 test_array [0] = 0
2261 return 0;
2263 _ACEOF
2264 if ac_fn_cxx_try_compile "$LINENO"; then :
2265 ac_hi=$ac_mid
2266 else
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 case $ac_lo in #((
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273 '') ac_retval=1 ;;
2274 esac
2275 else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2281 #include <stdio.h>
2282 #include <stdlib.h>
2284 main ()
2287 FILE *f = fopen ("conftest.val", "w");
2288 if (! f)
2289 return 1;
2290 if (($2) < 0)
2292 long int i = longval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%ld", i);
2297 else
2299 unsigned long int i = ulongval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%lu", i);
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2309 return 0;
2311 _ACEOF
2312 if ac_fn_cxx_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314 else
2315 ac_retval=1
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 rm -f conftest.val
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 return $ac_retval
2325 } # ac_fn_cxx_compute_int
2327 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2328 # ---------------------------------------------
2329 # Tests whether TYPE exists after having included INCLUDES, setting cache
2330 # variable VAR accordingly.
2331 ac_fn_cxx_check_type ()
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 eval "$3=no"
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2344 main ()
2346 if (sizeof ($2))
2347 return 0;
2349 return 0;
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2357 main ()
2359 if (sizeof (($2)))
2360 return 0;
2362 return 0;
2364 _ACEOF
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2367 else
2368 eval "$3=yes"
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 } # ac_fn_cxx_check_type
2381 # ac_fn_c_find_intX_t LINENO BITS VAR
2382 # -----------------------------------
2383 # Finds a signed integer type with width BITS, setting cache variable VAR
2384 # accordingly.
2385 ac_fn_c_find_intX_t ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2389 $as_echo_n "checking for int$2_t... " >&6; }
2390 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 eval "$3=no"
2394 for ac_type in int$2_t 'int' 'long int' \
2395 'long long int' 'short int' 'signed char'; do
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2398 $ac_includes_default
2400 main ()
2402 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2403 test_array [0] = 0
2406 return 0;
2408 _ACEOF
2409 if ac_fn_cxx_try_compile "$LINENO"; then :
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2414 main ()
2416 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2417 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2418 test_array [0] = 0
2421 return 0;
2423 _ACEOF
2424 if ac_fn_cxx_try_compile "$LINENO"; then :
2426 else
2427 case $ac_type in #(
2428 int$2_t) :
2429 eval "$3=yes" ;; #(
2430 *) :
2431 eval "$3=\$ac_type" ;;
2432 esac
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval as_val=\$$3
2438 if test "x$as_val" = x""no; then :
2440 else
2441 break
2443 done
2445 eval ac_res=\$$3
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450 } # ac_fn_c_find_intX_t
2452 # ac_fn_cxx_try_link LINENO
2453 # -------------------------
2454 # Try to link conftest.$ac_ext, and return whether this succeeded.
2455 ac_fn_cxx_try_link ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { { ac_try="$ac_link"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466 (eval "$ac_link") 2>conftest.err
2467 ac_status=$?
2468 if test -s conftest.err; then
2469 grep -v '^ *+' conftest.err >conftest.er1
2470 cat conftest.er1 >&5
2471 mv -f conftest.er1 conftest.err
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } && {
2475 test -z "$ac_cxx_werror_flag" ||
2476 test ! -s conftest.err
2477 } && test -s conftest$ac_exeext && {
2478 test "$cross_compiling" = yes ||
2479 $as_test_x conftest$ac_exeext
2480 }; then :
2481 ac_retval=0
2482 else
2483 $as_echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2486 ac_retval=1
2488 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2489 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2490 # interfere with the next link command; also delete a directory that is
2491 # left behind by Apple's compiler. We do this before executing the actions.
2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 return $ac_retval
2496 } # ac_fn_cxx_try_link
2498 # ac_fn_c_find_uintX_t LINENO BITS VAR
2499 # ------------------------------------
2500 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2501 # accordingly.
2502 ac_fn_c_find_uintX_t ()
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2506 $as_echo_n "checking for uint$2_t... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 eval "$3=no"
2511 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2512 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $ac_includes_default
2517 main ()
2519 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2520 test_array [0] = 0
2523 return 0;
2525 _ACEOF
2526 if ac_fn_cxx_try_compile "$LINENO"; then :
2527 case $ac_type in #(
2528 uint$2_t) :
2529 eval "$3=yes" ;; #(
2530 *) :
2531 eval "$3=\$ac_type" ;;
2532 esac
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 eval as_val=\$$3
2536 if test "x$as_val" = x""no; then :
2538 else
2539 break
2541 done
2543 eval ac_res=\$$3
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2548 } # ac_fn_c_find_uintX_t
2550 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2551 # ------------------------------------------------
2552 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2553 ac_fn_cxx_check_header_preproc ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2557 $as_echo_n "checking for $2... " >&6; }
2558 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 #include <$2>
2564 _ACEOF
2565 if ac_fn_cxx_try_cpp "$LINENO"; then :
2566 eval "$3=yes"
2567 else
2568 eval "$3=no"
2570 rm -f conftest.err conftest.$ac_ext
2572 eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577 } # ac_fn_cxx_check_header_preproc
2579 # ac_fn_cxx_check_func LINENO FUNC VAR
2580 # ------------------------------------
2581 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2582 ac_fn_cxx_check_func ()
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2586 $as_echo_n "checking for $2... " >&6; }
2587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2594 #define $2 innocuous_$2
2596 /* System header to define __stub macros and hopefully few prototypes,
2597 which can conflict with char $2 (); below.
2598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2599 <limits.h> exists even on freestanding compilers. */
2601 #ifdef __STDC__
2602 # include <limits.h>
2603 #else
2604 # include <assert.h>
2605 #endif
2607 #undef $2
2609 /* Override any GCC internal prototype to avoid an error.
2610 Use char because int might match the return type of a GCC
2611 builtin and then its argument prototype would still apply. */
2612 #ifdef __cplusplus
2613 extern "C"
2614 #endif
2615 char $2 ();
2616 /* The GNU C library defines this for functions which it implements
2617 to always fail with ENOSYS. Some functions are actually named
2618 something starting with __ and the normal name is an alias. */
2619 #if defined __stub_$2 || defined __stub___$2
2620 choke me
2621 #endif
2624 main ()
2626 return $2 ();
2628 return 0;
2630 _ACEOF
2631 if ac_fn_cxx_try_link "$LINENO"; then :
2632 eval "$3=yes"
2633 else
2634 eval "$3=no"
2636 rm -f core conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2639 eval ac_res=\$$3
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641 $as_echo "$ac_res" >&6; }
2642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644 } # ac_fn_cxx_check_func
2646 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2647 # --------------------------------------
2648 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2649 ac_fn_cxx_check_decl ()
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 as_decl_name=`echo $2|sed 's/ *(.*//'`
2653 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2655 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2663 main ()
2665 #ifndef $as_decl_name
2666 #ifdef __cplusplus
2667 (void) $as_decl_use;
2668 #else
2669 (void) $as_decl_name;
2670 #endif
2671 #endif
2674 return 0;
2676 _ACEOF
2677 if ac_fn_cxx_try_compile "$LINENO"; then :
2678 eval "$3=yes"
2679 else
2680 eval "$3=no"
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689 } # ac_fn_cxx_check_decl
2691 # ac_fn_c_try_link LINENO
2692 # -----------------------
2693 # Try to link conftest.$ac_ext, and return whether this succeeded.
2694 ac_fn_c_try_link ()
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 rm -f conftest.$ac_objext conftest$ac_exeext
2698 if { { ac_try="$ac_link"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705 (eval "$ac_link") 2>conftest.err
2706 ac_status=$?
2707 if test -s conftest.err; then
2708 grep -v '^ *+' conftest.err >conftest.er1
2709 cat conftest.er1 >&5
2710 mv -f conftest.er1 conftest.err
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest$ac_exeext && {
2717 test "$cross_compiling" = yes ||
2718 $as_test_x conftest$ac_exeext
2719 }; then :
2720 ac_retval=0
2721 else
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 ac_retval=1
2727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2729 # interfere with the next link command; also delete a directory that is
2730 # left behind by Apple's compiler. We do this before executing the actions.
2731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733 return $ac_retval
2735 } # ac_fn_c_try_link
2737 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2738 # ----------------------------------------------
2739 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2740 ac_fn_c_check_header_preproc ()
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 #include <$2>
2751 _ACEOF
2752 if ac_fn_c_try_cpp "$LINENO"; then :
2753 eval "$3=yes"
2754 else
2755 eval "$3=no"
2757 rm -f conftest.err conftest.$ac_ext
2759 eval ac_res=\$$3
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2764 } # ac_fn_c_check_header_preproc
2766 # ac_fn_c_check_func LINENO FUNC VAR
2767 # ----------------------------------
2768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2769 ac_fn_c_check_func ()
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2773 $as_echo_n "checking for $2... " >&6; }
2774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2781 #define $2 innocuous_$2
2783 /* System header to define __stub macros and hopefully few prototypes,
2784 which can conflict with char $2 (); below.
2785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786 <limits.h> exists even on freestanding compilers. */
2788 #ifdef __STDC__
2789 # include <limits.h>
2790 #else
2791 # include <assert.h>
2792 #endif
2794 #undef $2
2796 /* Override any GCC internal prototype to avoid an error.
2797 Use char because int might match the return type of a GCC
2798 builtin and then its argument prototype would still apply. */
2799 #ifdef __cplusplus
2800 extern "C"
2801 #endif
2802 char $2 ();
2803 /* The GNU C library defines this for functions which it implements
2804 to always fail with ENOSYS. Some functions are actually named
2805 something starting with __ and the normal name is an alias. */
2806 #if defined __stub_$2 || defined __stub___$2
2807 choke me
2808 #endif
2811 main ()
2813 return $2 ();
2815 return 0;
2817 _ACEOF
2818 if ac_fn_c_try_link "$LINENO"; then :
2819 eval "$3=yes"
2820 else
2821 eval "$3=no"
2823 rm -f core conftest.err conftest.$ac_objext \
2824 conftest$ac_exeext conftest.$ac_ext
2826 eval ac_res=\$$3
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2828 $as_echo "$ac_res" >&6; }
2829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2831 } # ac_fn_c_check_func
2832 cat >config.log <<_ACEOF
2833 This file contains any messages produced by compilers while
2834 running configure, to aid debugging if configure makes a mistake.
2836 It was created by $as_me, which was
2837 generated by GNU Autoconf 2.64. Invocation command line was
2839 $ $0 $@
2841 _ACEOF
2842 exec 5>>config.log
2844 cat <<_ASUNAME
2845 ## --------- ##
2846 ## Platform. ##
2847 ## --------- ##
2849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2850 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2851 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2852 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2853 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2866 _ASUNAME
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 $as_echo "PATH: $as_dir"
2874 done
2875 IFS=$as_save_IFS
2877 } >&5
2879 cat >&5 <<_ACEOF
2882 ## ----------- ##
2883 ## Core tests. ##
2884 ## ----------- ##
2886 _ACEOF
2889 # Keep a trace of the command line.
2890 # Strip out --no-create and --no-recursion so they do not pile up.
2891 # Strip out --silent because we don't want to record it for future runs.
2892 # Also quote any args containing shell meta-characters.
2893 # Make two passes to allow for proper duplicate-argument suppression.
2894 ac_configure_args=
2895 ac_configure_args0=
2896 ac_configure_args1=
2897 ac_must_keep_next=false
2898 for ac_pass in 1 2
2900 for ac_arg
2902 case $ac_arg in
2903 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2905 | -silent | --silent | --silen | --sile | --sil)
2906 continue ;;
2907 *\'*)
2908 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2909 esac
2910 case $ac_pass in
2911 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2913 as_fn_append ac_configure_args1 " '$ac_arg'"
2914 if test $ac_must_keep_next = true; then
2915 ac_must_keep_next=false # Got value, back to normal.
2916 else
2917 case $ac_arg in
2918 *=* | --config-cache | -C | -disable-* | --disable-* \
2919 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2920 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2921 | -with-* | --with-* | -without-* | --without-* | --x)
2922 case "$ac_configure_args0 " in
2923 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2924 esac
2926 -* ) ac_must_keep_next=true ;;
2927 esac
2929 as_fn_append ac_configure_args " '$ac_arg'"
2931 esac
2932 done
2933 done
2934 { ac_configure_args0=; unset ac_configure_args0;}
2935 { ac_configure_args1=; unset ac_configure_args1;}
2937 # When interrupted or exit'd, cleanup temporary files, and complete
2938 # config.log. We remove comments because anyway the quotes in there
2939 # would cause problems or look ugly.
2940 # WARNING: Use '\'' to represent an apostrophe within the trap.
2941 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2942 trap 'exit_status=$?
2943 # Save into config.log some information that might help in debugging.
2945 echo
2947 cat <<\_ASBOX
2948 ## ---------------- ##
2949 ## Cache variables. ##
2950 ## ---------------- ##
2951 _ASBOX
2952 echo
2953 # The following way of writing the cache mishandles newlines in values,
2955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2956 eval ac_val=\$$ac_var
2957 case $ac_val in #(
2958 *${as_nl}*)
2959 case $ac_var in #(
2960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2962 esac
2963 case $ac_var in #(
2964 _ | IFS | as_nl) ;; #(
2965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2966 *) { eval $ac_var=; unset $ac_var;} ;;
2967 esac ;;
2968 esac
2969 done
2970 (set) 2>&1 |
2971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2972 *${as_nl}ac_space=\ *)
2973 sed -n \
2974 "s/'\''/'\''\\\\'\'''\''/g;
2975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2976 ;; #(
2978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2980 esac |
2981 sort
2983 echo
2985 cat <<\_ASBOX
2986 ## ----------------- ##
2987 ## Output variables. ##
2988 ## ----------------- ##
2989 _ASBOX
2990 echo
2991 for ac_var in $ac_subst_vars
2993 eval ac_val=\$$ac_var
2994 case $ac_val in
2995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2996 esac
2997 $as_echo "$ac_var='\''$ac_val'\''"
2998 done | sort
2999 echo
3001 if test -n "$ac_subst_files"; then
3002 cat <<\_ASBOX
3003 ## ------------------- ##
3004 ## File substitutions. ##
3005 ## ------------------- ##
3006 _ASBOX
3007 echo
3008 for ac_var in $ac_subst_files
3010 eval ac_val=\$$ac_var
3011 case $ac_val in
3012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 esac
3014 $as_echo "$ac_var='\''$ac_val'\''"
3015 done | sort
3016 echo
3019 if test -s confdefs.h; then
3020 cat <<\_ASBOX
3021 ## ----------- ##
3022 ## confdefs.h. ##
3023 ## ----------- ##
3024 _ASBOX
3025 echo
3026 cat confdefs.h
3027 echo
3029 test "$ac_signal" != 0 &&
3030 $as_echo "$as_me: caught signal $ac_signal"
3031 $as_echo "$as_me: exit $exit_status"
3032 } >&5
3033 rm -f core *.core core.conftest.* &&
3034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3035 exit $exit_status
3037 for ac_signal in 1 2 13 15; do
3038 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3039 done
3040 ac_signal=0
3042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3043 rm -f -r conftest* confdefs.h
3045 $as_echo "/* confdefs.h */" > confdefs.h
3047 # Predefined preprocessor variables.
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE_NAME "$PACKAGE_NAME"
3051 _ACEOF
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3055 _ACEOF
3057 cat >>confdefs.h <<_ACEOF
3058 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3059 _ACEOF
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_STRING "$PACKAGE_STRING"
3063 _ACEOF
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3067 _ACEOF
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_URL "$PACKAGE_URL"
3071 _ACEOF
3074 # Let the site file select an alternate cache file if it wants to.
3075 # Prefer an explicitly selected file to automatically selected ones.
3076 ac_site_file1=NONE
3077 ac_site_file2=NONE
3078 if test -n "$CONFIG_SITE"; then
3079 ac_site_file1=$CONFIG_SITE
3080 elif test "x$prefix" != xNONE; then
3081 ac_site_file1=$prefix/share/config.site
3082 ac_site_file2=$prefix/etc/config.site
3083 else
3084 ac_site_file1=$ac_default_prefix/share/config.site
3085 ac_site_file2=$ac_default_prefix/etc/config.site
3087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3089 test "x$ac_site_file" = xNONE && continue
3090 if test -r "$ac_site_file"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3093 sed 's/^/| /' "$ac_site_file" >&5
3094 . "$ac_site_file"
3096 done
3098 if test -r "$cache_file"; then
3099 # Some versions of bash will fail to source /dev/null (special
3100 # files actually), so we avoid doing that.
3101 if test -f "$cache_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3103 $as_echo "$as_me: loading cache $cache_file" >&6;}
3104 case $cache_file in
3105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3106 *) . "./$cache_file";;
3107 esac
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3111 $as_echo "$as_me: creating cache $cache_file" >&6;}
3112 >$cache_file
3115 # Check that the precious variables saved in the cache have kept the same
3116 # value.
3117 ac_cache_corrupted=false
3118 for ac_var in $ac_precious_vars; do
3119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3120 eval ac_new_set=\$ac_env_${ac_var}_set
3121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3122 eval ac_new_val=\$ac_env_${ac_var}_value
3123 case $ac_old_set,$ac_new_set in
3124 set,)
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3127 ac_cache_corrupted=: ;;
3128 ,set)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3131 ac_cache_corrupted=: ;;
3132 ,);;
3134 if test "x$ac_old_val" != "x$ac_new_val"; then
3135 # differences in whitespace do not lead to failure.
3136 ac_old_val_w=`echo x $ac_old_val`
3137 ac_new_val_w=`echo x $ac_new_val`
3138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3141 ac_cache_corrupted=:
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3145 eval $ac_var=\$ac_old_val
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3151 fi;;
3152 esac
3153 # Pass precious variables to config.status.
3154 if test "$ac_new_set" = set; then
3155 case $ac_new_val in
3156 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3157 *) ac_arg=$ac_var=$ac_new_val ;;
3158 esac
3159 case " $ac_configure_args " in
3160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3161 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3162 esac
3164 done
3165 if $ac_cache_corrupted; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3170 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3172 ## -------------------- ##
3173 ## Main body of script. ##
3174 ## -------------------- ##
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3190 gcc_version=`cat $srcdir/BASE-VER`
3192 # Determine the host, build, and target systems
3193 ac_aux_dir=
3194 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3195 for ac_t in install-sh install.sh shtool; do
3196 if test -f "$ac_dir/$ac_t"; then
3197 ac_aux_dir=$ac_dir
3198 ac_install_sh="$ac_aux_dir/$ac_t -c"
3199 break 2
3201 done
3202 done
3203 if test -z "$ac_aux_dir"; then
3204 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3207 # These three variables are undocumented and unsupported,
3208 # and are intended to be withdrawn in a future Autoconf release.
3209 # They can cause serious problems if a builder's source tree is in a directory
3210 # whose full name contains unusual characters.
3211 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3212 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3213 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3216 # Make sure we can run config.sub.
3217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3218 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3221 $as_echo_n "checking build system type... " >&6; }
3222 if test "${ac_cv_build+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 ac_build_alias=$build_alias
3226 test "x$ac_build_alias" = x &&
3227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3228 test "x$ac_build_alias" = x &&
3229 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3231 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3235 $as_echo "$ac_cv_build" >&6; }
3236 case $ac_cv_build in
3237 *-*-*) ;;
3238 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3239 esac
3240 build=$ac_cv_build
3241 ac_save_IFS=$IFS; IFS='-'
3242 set x $ac_cv_build
3243 shift
3244 build_cpu=$1
3245 build_vendor=$2
3246 shift; shift
3247 # Remember, the first character of IFS is used to create $*,
3248 # except with old shells:
3249 build_os=$*
3250 IFS=$ac_save_IFS
3251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3255 $as_echo_n "checking host system type... " >&6; }
3256 if test "${ac_cv_host+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test "x$host_alias" = x; then
3260 ac_cv_host=$ac_cv_build
3261 else
3262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3263 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3268 $as_echo "$ac_cv_host" >&6; }
3269 case $ac_cv_host in
3270 *-*-*) ;;
3271 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3272 esac
3273 host=$ac_cv_host
3274 ac_save_IFS=$IFS; IFS='-'
3275 set x $ac_cv_host
3276 shift
3277 host_cpu=$1
3278 host_vendor=$2
3279 shift; shift
3280 # Remember, the first character of IFS is used to create $*,
3281 # except with old shells:
3282 host_os=$*
3283 IFS=$ac_save_IFS
3284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3288 $as_echo_n "checking target system type... " >&6; }
3289 if test "${ac_cv_target+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test "x$target_alias" = x; then
3293 ac_cv_target=$ac_cv_host
3294 else
3295 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3296 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3301 $as_echo "$ac_cv_target" >&6; }
3302 case $ac_cv_target in
3303 *-*-*) ;;
3304 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3305 esac
3306 target=$ac_cv_target
3307 ac_save_IFS=$IFS; IFS='-'
3308 set x $ac_cv_target
3309 shift
3310 target_cpu=$1
3311 target_vendor=$2
3312 shift; shift
3313 # Remember, the first character of IFS is used to create $*,
3314 # except with old shells:
3315 target_os=$*
3316 IFS=$ac_save_IFS
3317 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3320 # The aliases save the names the user supplied, while $host etc.
3321 # will get canonicalized.
3322 test -n "$target_alias" &&
3323 test "$program_prefix$program_suffix$program_transform_name" = \
3324 NONENONEs,x,x, &&
3325 program_prefix=${target_alias}-
3327 # Determine the noncanonical host name, for Ada.
3328 case ${build_alias} in
3329 "") build_noncanonical=${build} ;;
3330 *) build_noncanonical=${build_alias} ;;
3331 esac
3333 case ${host_alias} in
3334 "") host_noncanonical=${build_noncanonical} ;;
3335 *) host_noncanonical=${host_alias} ;;
3336 esac
3341 # Determine the noncanonical target name, for directory use.
3342 case ${target_alias} in
3343 "") target_noncanonical=${host_noncanonical} ;;
3344 *) target_noncanonical=${target_alias} ;;
3345 esac
3350 # Used for constructing correct paths for offload compilers.
3351 real_target_noncanonical=${target_noncanonical}
3352 accel_dir_suffix=
3354 # Determine the target- and build-specific subdirectories
3356 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3357 # have matching libraries, they should use host libraries: Makefile.tpl
3358 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3359 # However, they still use the build modules, because the corresponding
3360 # host modules (e.g. bison) are only built for the host when bootstrap
3361 # finishes. So:
3362 # - build_subdir is where we find build modules, and never changes.
3363 # - build_libsubdir is where we find build libraries, and can be overridden.
3365 # Prefix 'build-' so this never conflicts with target_subdir.
3366 build_subdir="build-${build_noncanonical}"
3368 # Check whether --with-build-libsubdir was given.
3369 if test "${with_build_libsubdir+set}" = set; then :
3370 withval=$with_build_libsubdir; build_libsubdir="$withval"
3371 else
3372 build_libsubdir="$build_subdir"
3375 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3376 if ( test $srcdir = . && test -d gcc ) \
3377 || test -d $srcdir/../host-${host_noncanonical}; then
3378 host_subdir="host-${host_noncanonical}"
3379 else
3380 host_subdir=.
3382 # No prefix.
3383 target_subdir=${target_noncanonical}
3386 # Set program_transform_name
3387 test "$program_prefix" != NONE &&
3388 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3389 # Use a double $ so make ignores it.
3390 test "$program_suffix" != NONE &&
3391 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3392 # Double any \ or $.
3393 # By default was `s,x,x', remove it if useless.
3394 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3395 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3398 # Check for bogus environment variables.
3399 # Test if LIBRARY_PATH contains the notation for the current directory
3400 # since this would lead to problems installing/building glibc.
3401 # LIBRARY_PATH contains the current directory if one of the following
3402 # is true:
3403 # - one of the terminals (":" and ";") is the first or last sign
3404 # - two terminals occur directly after each other
3405 # - the path contains an element with a dot in it
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3407 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3408 case ${LIBRARY_PATH} in
3409 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3410 library_path_setting="contains current directory"
3413 library_path_setting="ok"
3415 esac
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3417 $as_echo "$library_path_setting" >&6; }
3418 if test "$library_path_setting" != "ok"; then
3419 as_fn_error "
3420 *** LIBRARY_PATH shouldn't contain the current directory when
3421 *** building gcc. Please change the environment variable
3422 *** and run configure again." "$LINENO" 5
3425 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3426 # since this would lead to problems installing/building glibc.
3427 # GCC_EXEC_PREFIX contains the current directory if one of the following
3428 # is true:
3429 # - one of the terminals (":" and ";") is the first or last sign
3430 # - two terminals occur directly after each other
3431 # - the path contains an element with a dot in it
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3433 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3434 case ${GCC_EXEC_PREFIX} in
3435 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3436 gcc_exec_prefix_setting="contains current directory"
3439 gcc_exec_prefix_setting="ok"
3441 esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3443 $as_echo "$gcc_exec_prefix_setting" >&6; }
3444 if test "$gcc_exec_prefix_setting" != "ok"; then
3445 as_fn_error "
3446 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3447 *** building gcc. Please change the environment variable
3448 *** and run configure again." "$LINENO" 5
3451 # -----------
3452 # Directories
3453 # -----------
3455 # Specify the local prefix
3456 local_prefix=
3458 # Check whether --with-local-prefix was given.
3459 if test "${with_local_prefix+set}" = set; then :
3460 withval=$with_local_prefix; case "${withval}" in
3461 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3462 no) ;;
3463 *) local_prefix=$with_local_prefix ;;
3464 esac
3468 # Default local prefix if it is empty
3469 if test x$local_prefix = x; then
3470 local_prefix=/usr/local
3474 # Check whether --with-native-system-header-dir was given.
3475 if test "${with_native_system_header_dir+set}" = set; then :
3476 withval=$with_native_system_header_dir;
3477 case ${with_native_system_header_dir} in
3478 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3479 /* | [A-Za-z]:[\\/]*) ;;
3480 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3481 esac
3482 configured_native_system_header_dir="${withval}"
3484 else
3485 configured_native_system_header_dir=
3490 # Check whether --with-build-sysroot was given.
3491 if test "${with_build_sysroot+set}" = set; then :
3492 withval=$with_build_sysroot; if test x"$withval" != x ; then
3493 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3495 else
3496 SYSROOT_CFLAGS_FOR_TARGET=
3501 if test "x$prefix" = xNONE; then
3502 test_prefix=/usr/local
3503 else
3504 test_prefix=$prefix
3506 if test "x$exec_prefix" = xNONE; then
3507 test_exec_prefix=$test_prefix
3508 else
3509 test_exec_prefix=$exec_prefix
3513 # Check whether --with-sysroot was given.
3514 if test "${with_sysroot+set}" = set; then :
3515 withval=$with_sysroot;
3516 case ${with_sysroot} in
3517 /) ;;
3518 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3519 esac
3520 case ${with_sysroot} in
3521 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3522 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3523 esac
3525 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3526 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3528 case ${TARGET_SYSTEM_ROOT} in
3529 "${test_prefix}"|"${test_prefix}/"*|\
3530 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3531 '${prefix}'|'${prefix}/'*|\
3532 '${exec_prefix}'|'${exec_prefix}/'*)
3533 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3534 TARGET_SYSTEM_ROOT_DEFINE="$t"
3536 esac
3538 else
3540 TARGET_SYSTEM_ROOT=
3541 TARGET_SYSTEM_ROOT_DEFINE=
3542 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3550 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3551 # passed in by the toplevel make and thus we'd get different behavior
3552 # depending on where we built the sources.
3553 gcc_gxx_include_dir=
3554 # Specify the g++ header file directory
3556 # Check whether --with-gxx-include-dir was given.
3557 if test "${with_gxx_include_dir+set}" = set; then :
3558 withval=$with_gxx_include_dir; case "${withval}" in
3559 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3560 no) ;;
3561 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3562 esac
3566 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3567 if test x${gcc_gxx_include_dir} = x; then
3568 if test x${enable_version_specific_runtime_libs} = xyes; then
3569 gcc_gxx_include_dir='${libsubdir}/include/c++'
3570 else
3571 libstdcxx_incdir='include/c++/$(version)'
3572 if test x$host != x$target; then
3573 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3575 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3579 gcc_gxx_include_dir_add_sysroot=0
3580 if test "${with_sysroot+set}" = set; then
3581 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3582 if test "${gcc_gxx_without_sysroot}"; then
3583 if test x${with_sysroot} != x/; then
3584 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3586 gcc_gxx_include_dir_add_sysroot=1
3591 # Check whether --with-cpp_install_dir was given.
3592 if test "${with_cpp_install_dir+set}" = set; then :
3593 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3594 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3595 elif test x$withval != xno; then
3596 cpp_install_dir=$withval
3601 # We would like to our source tree to be readonly. However when releases or
3602 # pre-releases are generated, the flex/bison generated files as well as the
3603 # various formats of manuals need to be included along with the rest of the
3604 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3605 # just that.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3608 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3609 # Check whether --enable-generated-files-in-srcdir was given.
3610 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3611 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3612 else
3613 generated_files_in_srcdir=no
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3618 $as_echo "$generated_files_in_srcdir" >&6; }
3620 if test "$generated_files_in_srcdir" = "yes"; then
3621 GENINSRC=''
3622 else
3623 GENINSRC='#'
3627 # -------------------
3628 # Find default linker
3629 # -------------------
3631 # With GNU ld
3633 # Check whether --with-gnu-ld was given.
3634 if test "${with_gnu_ld+set}" = set; then :
3635 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3636 else
3637 gnu_ld_flag=no
3641 # With pre-defined ld
3643 # Check whether --with-ld was given.
3644 if test "${with_ld+set}" = set; then :
3645 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3648 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3649 if test ! -x "$DEFAULT_LINKER"; then
3650 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3651 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3652 gnu_ld_flag=yes
3655 cat >>confdefs.h <<_ACEOF
3656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3657 _ACEOF
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3662 $as_echo_n "checking whether a default linker was specified... " >&6; }
3663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3664 if test x"$gnu_ld_flag" = x"no"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3666 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3669 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3676 # With demangler in GNU ld
3678 # Check whether --with-demangler-in-ld was given.
3679 if test "${with_demangler_in_ld+set}" = set; then :
3680 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3681 else
3682 demangler_in_ld=yes
3686 # ----------------------
3687 # Find default assembler
3688 # ----------------------
3690 # With GNU as
3692 # Check whether --with-gnu-as was given.
3693 if test "${with_gnu_as+set}" = set; then :
3694 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3695 else
3696 gas_flag=no
3701 # Check whether --with-as was given.
3702 if test "${with_as+set}" = set; then :
3703 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3706 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3707 if test ! -x "$DEFAULT_ASSEMBLER"; then
3708 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3709 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3710 gas_flag=yes
3713 cat >>confdefs.h <<_ACEOF
3714 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3715 _ACEOF
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3720 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3721 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3722 if test x"$gas_flag" = x"no"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3724 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3727 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3734 # ---------------
3735 # Find C compiler
3736 # ---------------
3738 # If a non-executable a.out is present (e.g. created by GNU as above even if
3739 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3740 # file, even when creating an executable, so an execution test fails.
3741 # Remove possible default executable files to avoid this.
3743 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3744 # Autoconf includes it.
3745 rm -f a.out a.exe b.out
3747 # Find the native compiler
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3792 if test -z "$ac_cv_prog_CC"; then
3793 ac_ct_CC=$CC
3794 # Extract the first word of "gcc", so it can be a program name with args.
3795 set dummy gcc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_CC="gcc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3817 IFS=$as_save_IFS
3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 $as_echo "$ac_ct_CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3830 if test "x$ac_ct_CC" = x; then
3831 CC=""
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839 CC=$ac_ct_CC
3841 else
3842 CC="$ac_cv_prog_CC"
3845 if test -z "$CC"; then
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}cc; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CC="${ac_tool_prefix}cc"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3886 if test -z "$CC"; then
3887 # Extract the first word of "cc", so it can be a program name with args.
3888 set dummy cc; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_CC+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 else
3897 ac_prog_rejected=no
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3906 ac_prog_rejected=yes
3907 continue
3909 ac_cv_prog_CC="cc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3917 if test $ac_prog_rejected = yes; then
3918 # We found a bogon in the path, so make sure we never use it.
3919 set dummy $ac_cv_prog_CC
3920 shift
3921 if test $# != 0; then
3922 # We chose a different compiler from the bogus one.
3923 # However, it has the same basename, so the bogon will be chosen
3924 # first if we set CC to just the basename; use the full file name.
3925 shift
3926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3942 if test -z "$CC"; then
3943 if test -n "$ac_tool_prefix"; then
3944 for ac_prog in cl.exe
3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3983 test -n "$CC" && break
3984 done
3986 if test -z "$CC"; then
3987 ac_ct_CC=$CC
3988 for ac_prog in cl.exe
3990 # Extract the first word of "$ac_prog", so it can be a program name with args.
3991 set dummy $ac_prog; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_ac_ct_CC="$ac_prog"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4013 IFS=$as_save_IFS
4017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4018 if test -n "$ac_ct_CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020 $as_echo "$ac_ct_CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4027 test -n "$ac_ct_CC" && break
4028 done
4030 if test "x$ac_ct_CC" = x; then
4031 CC=""
4032 else
4033 case $cross_compiling:$ac_tool_warned in
4034 yes:)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4038 esac
4039 CC=$ac_ct_CC
4046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error "no acceptable C compiler found in \$PATH
4049 See \`config.log' for more details." "$LINENO" 5; }
4051 # Provide some information about the compiler.
4052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4053 set X $ac_compile
4054 ac_compiler=$2
4055 for ac_option in --version -v -V -qversion; do
4056 { { ac_try="$ac_compiler $ac_option >&5"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4064 ac_status=$?
4065 if test -s conftest.err; then
4066 sed '10a\
4067 ... rest of stderr output deleted ...
4068 10q' conftest.err >conftest.er1
4069 cat conftest.er1 >&5
4070 rm -f conftest.er1 conftest.err
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }
4074 done
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 ac_clean_files_save=$ac_clean_files
4088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4089 # Try to create an executable without -o first, disregard a.out.
4090 # It will help us diagnose broken compilers, and finding out an intuition
4091 # of exeext.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4093 $as_echo_n "checking for C compiler default output file name... " >&6; }
4094 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4096 # The possible output files:
4097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4099 ac_rmfiles=
4100 for ac_file in $ac_files
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4105 esac
4106 done
4107 rm -f $ac_rmfiles
4109 if { { ac_try="$ac_link_default"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_link_default") 2>&5
4117 ac_status=$?
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }; then :
4120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4123 # so that the user can short-circuit this test for compilers unknown to
4124 # Autoconf.
4125 for ac_file in $ac_files ''
4127 test -f "$ac_file" || continue
4128 case $ac_file in
4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4131 [ab].out )
4132 # We found the default executable, but exeext='' is most
4133 # certainly right.
4134 break;;
4135 *.* )
4136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4137 then :; else
4138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 # We set ac_cv_exeext here because the later test for it is not
4141 # safe: cross compilers may not add the suffix if given an `-o'
4142 # argument, so we may need to know it at that point already.
4143 # Even if this section looks crufty: it has the advantage of
4144 # actually working.
4145 break;;
4147 break;;
4148 esac
4149 done
4150 test "$ac_cv_exeext" = no && ac_cv_exeext=
4152 else
4153 ac_file=''
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156 $as_echo "$ac_file" >&6; }
4157 if test -z "$ac_file"; then :
4158 $as_echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 { as_fn_set_status 77
4164 as_fn_error "C compiler cannot create executables
4165 See \`config.log' for more details." "$LINENO" 5; }; }
4167 ac_exeext=$ac_cv_exeext
4169 # Check that the compiler produces executables we can run. If not, either
4170 # the compiler is broken, or we cross compile.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4172 $as_echo_n "checking whether the C compiler works... " >&6; }
4173 # If not cross compiling, check that we can run a simple program.
4174 if test "$cross_compiling" != yes; then
4175 if { ac_try='./$ac_file'
4176 { { case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_try") 2>&5
4183 ac_status=$?
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; }; then
4186 cross_compiling=no
4187 else
4188 if test "$cross_compiling" = maybe; then
4189 cross_compiling=yes
4190 else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error "cannot run C compiled programs.
4194 If you meant to cross compile, use \`--host'.
4195 See \`config.log' for more details." "$LINENO" 5; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 $as_echo "yes" >&6; }
4202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4203 ac_clean_files=$ac_clean_files_save
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4207 $as_echo_n "checking whether we are cross compiling... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4209 $as_echo "$cross_compiling" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4212 $as_echo_n "checking for suffix of executables... " >&6; }
4213 if { { ac_try="$ac_link"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_link") 2>&5
4221 ac_status=$?
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; then :
4224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4226 # work properly (i.e., refer to `conftest.exe'), while it won't with
4227 # `rm'.
4228 for ac_file in conftest.exe conftest conftest.*; do
4229 test -f "$ac_file" || continue
4230 case $ac_file in
4231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4233 break;;
4234 * ) break;;
4235 esac
4236 done
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error "cannot compute suffix of executables: cannot compile and link
4241 See \`config.log' for more details." "$LINENO" 5; }
4243 rm -f conftest$ac_cv_exeext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4245 $as_echo "$ac_cv_exeext" >&6; }
4247 rm -f conftest.$ac_ext
4248 EXEEXT=$ac_cv_exeext
4249 ac_exeext=$EXEEXT
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4251 $as_echo_n "checking for suffix of object files... " >&6; }
4252 if test "${ac_cv_objext+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4259 main ()
4263 return 0;
4265 _ACEOF
4266 rm -f conftest.o conftest.obj
4267 if { { ac_try="$ac_compile"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compile") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 for ac_file in conftest.o conftest.obj conftest.*; do
4279 test -f "$ac_file" || continue;
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4283 break;;
4284 esac
4285 done
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "cannot compute suffix of object files: cannot compile
4293 See \`config.log' for more details." "$LINENO" 5; }
4295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4298 $as_echo "$ac_cv_objext" >&6; }
4299 OBJEXT=$ac_cv_objext
4300 ac_objext=$OBJEXT
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4310 main ()
4312 #ifndef __GNUC__
4313 choke me
4314 #endif
4317 return 0;
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_compiler_gnu=yes
4322 else
4323 ac_compiler_gnu=no
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4331 if test $ac_compiler_gnu = yes; then
4332 GCC=yes
4333 else
4334 GCC=
4336 ac_test_CFLAGS=${CFLAGS+set}
4337 ac_save_CFLAGS=$CFLAGS
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4340 if test "${ac_cv_prog_cc_g+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 ac_save_c_werror_flag=$ac_c_werror_flag
4344 ac_c_werror_flag=yes
4345 ac_cv_prog_cc_g=no
4346 CFLAGS="-g"
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4351 main ()
4355 return 0;
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_prog_cc_g=yes
4360 else
4361 CFLAGS=""
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4366 main ()
4370 return 0;
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4375 else
4376 ac_c_werror_flag=$ac_save_c_werror_flag
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
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4400 $as_echo "$ac_cv_prog_cc_g" >&6; }
4401 if test "$ac_test_CFLAGS" = set; then
4402 CFLAGS=$ac_save_CFLAGS
4403 elif test $ac_cv_prog_cc_g = yes; then
4404 if test "$GCC" = yes; then
4405 CFLAGS="-g -O2"
4406 else
4407 CFLAGS="-g"
4409 else
4410 if test "$GCC" = yes; then
4411 CFLAGS="-O2"
4412 else
4413 CFLAGS=
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 ac_cv_prog_cc_c89=no
4422 ac_save_CC=$CC
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <stdarg.h>
4426 #include <stdio.h>
4427 #include <sys/types.h>
4428 #include <sys/stat.h>
4429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4430 struct buf { int x; };
4431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4432 static char *e (p, i)
4433 char **p;
4434 int i;
4436 return p[i];
4438 static char *f (char * (*g) (char **, int), char **p, ...)
4440 char *s;
4441 va_list v;
4442 va_start (v,p);
4443 s = g (p, va_arg (v,int));
4444 va_end (v);
4445 return s;
4448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4449 function prototypes and stuff, but not '\xHH' hex character constants.
4450 These don't provoke an error unfortunately, instead are silently treated
4451 as 'x'. The following induces an error, until -std is added to get
4452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4453 array size at least. It's necessary to write '\x00'==0 to get something
4454 that's true only with -std. */
4455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4458 inside strings and character constants. */
4459 #define FOO(x) 'x'
4460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4462 int test (int i, double x);
4463 struct s1 {int (*f) (int a);};
4464 struct s2 {int (*f) (double a);};
4465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4466 int argc;
4467 char **argv;
4469 main ()
4471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4473 return 0;
4475 _ACEOF
4476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 CC="$ac_save_CC $ac_arg"
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_prog_cc_c89=$ac_arg
4483 rm -f core conftest.err conftest.$ac_objext
4484 test "x$ac_cv_prog_cc_c89" != "xno" && break
4485 done
4486 rm -f conftest.$ac_ext
4487 CC=$ac_save_CC
4490 # AC_CACHE_VAL
4491 case "x$ac_cv_prog_cc_c89" in
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4494 $as_echo "none needed" >&6; } ;;
4495 xno)
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 $as_echo "unsupported" >&6; } ;;
4499 CC="$CC $ac_cv_prog_cc_c89"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4502 esac
4503 if test "x$ac_cv_prog_cc_c89" != xno; then :
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 ac_ext=cpp
4514 ac_cpp='$CXXCPP $CPPFLAGS'
4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518 if test -z "$CXX"; then
4519 if test -n "$CCC"; then
4520 CXX=$CCC
4521 else
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_CXX+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$CXX"; then
4533 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 CXX=$ac_cv_prog_CXX
4553 if test -n "$CXX"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4555 $as_echo "$CXX" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4562 test -n "$CXX" && break
4563 done
4565 if test -z "$CXX"; then
4566 ac_ct_CXX=$CXX
4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$ac_ct_CXX"; then
4577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CXX="$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4590 done
4591 done
4592 IFS=$as_save_IFS
4596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4597 if test -n "$ac_ct_CXX"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4599 $as_echo "$ac_ct_CXX" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4606 test -n "$ac_ct_CXX" && break
4607 done
4609 if test "x$ac_ct_CXX" = x; then
4610 CXX="g++"
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613 yes:)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned=yes ;;
4617 esac
4618 CXX=$ac_ct_CXX
4624 # Provide some information about the compiler.
4625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4626 set X $ac_compile
4627 ac_compiler=$2
4628 for ac_option in --version -v -V -qversion; do
4629 { { ac_try="$ac_compiler $ac_option >&5"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 $as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4637 ac_status=$?
4638 if test -s conftest.err; then
4639 sed '10a\
4640 ... rest of stderr output deleted ...
4641 10q' conftest.err >conftest.er1
4642 cat conftest.er1 >&5
4643 rm -f conftest.er1 conftest.err
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4647 done
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4650 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4651 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4658 main ()
4660 #ifndef __GNUC__
4661 choke me
4662 #endif
4665 return 0;
4667 _ACEOF
4668 if ac_fn_cxx_try_compile "$LINENO"; then :
4669 ac_compiler_gnu=yes
4670 else
4671 ac_compiler_gnu=no
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4679 if test $ac_compiler_gnu = yes; then
4680 GXX=yes
4681 else
4682 GXX=
4684 ac_test_CXXFLAGS=${CXXFLAGS+set}
4685 ac_save_CXXFLAGS=$CXXFLAGS
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4688 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4692 ac_cxx_werror_flag=yes
4693 ac_cv_prog_cxx_g=no
4694 CXXFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4699 main ()
4703 return 0;
4705 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707 ac_cv_prog_cxx_g=yes
4708 else
4709 CXXFLAGS=""
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4714 main ()
4718 return 0;
4720 _ACEOF
4721 if ac_fn_cxx_try_compile "$LINENO"; then :
4723 else
4724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4748 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4749 if test "$ac_test_CXXFLAGS" = set; then
4750 CXXFLAGS=$ac_save_CXXFLAGS
4751 elif test $ac_cv_prog_cxx_g = yes; then
4752 if test "$GXX" = yes; then
4753 CXXFLAGS="-g -O2"
4754 else
4755 CXXFLAGS="-g"
4757 else
4758 if test "$GXX" = yes; then
4759 CXXFLAGS="-O2"
4760 else
4761 CXXFLAGS=
4764 ac_ext=c
4765 ac_cpp='$CPP $CPPFLAGS'
4766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$GNATBIND"; then
4782 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4797 IFS=$as_save_IFS
4801 GNATBIND=$ac_cv_prog_GNATBIND
4802 if test -n "$GNATBIND"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4804 $as_echo "$GNATBIND" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$ac_cv_prog_GNATBIND"; then
4813 ac_ct_GNATBIND=$GNATBIND
4814 # Extract the first word of "gnatbind", so it can be a program name with args.
4815 set dummy gnatbind; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_GNATBIND"; then
4822 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4842 if test -n "$ac_ct_GNATBIND"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4844 $as_echo "$ac_ct_GNATBIND" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4850 if test "x$ac_ct_GNATBIND" = x; then
4851 GNATBIND="no"
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 GNATBIND=$ac_ct_GNATBIND
4861 else
4862 GNATBIND="$ac_cv_prog_GNATBIND"
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4867 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$GNATMAKE"; then
4874 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 GNATMAKE=$ac_cv_prog_GNATMAKE
4894 if test -n "$GNATMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4896 $as_echo "$GNATMAKE" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4904 if test -z "$ac_cv_prog_GNATMAKE"; then
4905 ac_ct_GNATMAKE=$GNATMAKE
4906 # Extract the first word of "gnatmake", so it can be a program name with args.
4907 set dummy gnatmake; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$ac_ct_GNATMAKE"; then
4914 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4934 if test -n "$ac_ct_GNATMAKE"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4936 $as_echo "$ac_ct_GNATMAKE" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4942 if test "x$ac_ct_GNATMAKE" = x; then
4943 GNATMAKE="no"
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946 yes:)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951 GNATMAKE=$ac_ct_GNATMAKE
4953 else
4954 GNATMAKE="$ac_cv_prog_GNATMAKE"
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4958 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4959 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 cat >conftest.adb <<EOF
4963 procedure conftest is begin null; end conftest;
4965 acx_cv_cc_gcc_supports_ada=no
4966 # There is a bug in old released versions of GCC which causes the
4967 # driver to exit successfully when the appropriate language module
4968 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4969 # Therefore we must check for the error message as well as an
4970 # unsuccessful exit.
4971 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4972 # given a .adb file, but produce no object file. So we must check
4973 # if an object file was really produced to guard against this.
4974 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4975 if test x"$errors" = x && test -f conftest.$ac_objext; then
4976 acx_cv_cc_gcc_supports_ada=yes
4978 rm -f conftest.*
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4981 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4983 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4984 have_gnat=yes
4985 else
4986 have_gnat=no
4990 # Do configure tests with the C++ compiler, since that's what we build with.
4991 ac_ext=cpp
4992 ac_cpp='$CXXCPP $CPPFLAGS'
4993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4998 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4999 # optimizations to be activated explicitly by the toplevel.
5000 case "$CC" in
5001 */prev-gcc/xgcc*) ;;
5002 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5003 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5004 esac
5008 # Determine PICFLAG for target gnatlib.
5013 case "${target}" in
5014 # PIC is the default on some targets or must not be used.
5015 *-*-darwin*)
5016 # For darwin, common symbols are not allowed in MH_DYLIB files
5017 case "${CFLAGS}" in
5018 # If we are using a compiler supporting mdynamic-no-pic
5019 # and the option has been tested as safe to add, then cancel
5020 # it here, since the code generated is incompatible with shared
5021 # libs.
5022 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5023 *) PICFLAG_FOR_TARGET=-fno-common ;;
5024 esac
5026 alpha*-dec-osf5*)
5027 # PIC is the default.
5029 hppa*64*-*-hpux*)
5030 # PIC is the default for 64-bit PA HP-UX.
5032 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5034 i[34567]86-*-mingw* | x86_64-*-mingw*)
5036 i[34567]86-*-nto-qnx*)
5037 # QNX uses GNU C++, but need to define -shared option too, otherwise
5038 # it will coredump.
5039 PICFLAG_FOR_TARGET='-fPIC -shared'
5041 i[34567]86-pc-msdosdjgpp*)
5042 # DJGPP does not support shared libraries at all.
5044 ia64*-*-hpux*)
5045 # On IA64 HP-UX, PIC is the default but the pic flag
5046 # sets the default TLS model and affects inlining.
5047 PICFLAG_FOR_TARGET=-fPIC
5049 mips-sgi-irix6*)
5050 # PIC is the default.
5052 rs6000-ibm-aix* | powerpc-ibm-aix*)
5053 # All AIX code is PIC.
5056 # Some targets support both -fPIC and -fpic, but prefer the latter.
5057 # FIXME: Why?
5058 i[34567]86-*-* | x86_64-*-*)
5059 PICFLAG_FOR_TARGET=-fpic
5061 # FIXME: Override -fPIC default in libgcc only?
5062 sh-*-linux* | sh[2346lbe]*-*-linux*)
5063 PICFLAG_FOR_TARGET=-fpic
5065 # FIXME: Simplify to sh*-*-netbsd*?
5066 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5067 PICFLAG_FOR_TARGET=-fpic
5069 # Default to -fPIC unless specified otherwise.
5071 PICFLAG_FOR_TARGET=-fPIC
5073 esac
5075 # If the user explicitly uses -fpic/-fPIC, keep that.
5076 case "${CFLAGS_FOR_TARGET}" in
5077 *-fpic*)
5078 PICFLAG_FOR_TARGET=-fpic
5080 *-fPIC*)
5081 PICFLAG_FOR_TARGET=-fPIC
5083 esac
5087 # -------------------------
5088 # Check C compiler features
5089 # -------------------------
5092 ac_ext=cpp
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5098 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5099 if test -z "$CXXCPP"; then
5100 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 # Double quotes because CXXCPP needs to be expanded
5104 for CXXCPP in "$CXX -E" "/lib/cpp"
5106 ac_preproc_ok=false
5107 for ac_cxx_preproc_warn_flag in '' yes
5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #ifdef __STDC__
5118 # include <limits.h>
5119 #else
5120 # include <assert.h>
5121 #endif
5122 Syntax error
5123 _ACEOF
5124 if ac_fn_cxx_try_cpp "$LINENO"; then :
5126 else
5127 # Broken: fails on valid input.
5128 continue
5130 rm -f conftest.err conftest.$ac_ext
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <ac_nonexistent.h>
5137 _ACEOF
5138 if ac_fn_cxx_try_cpp "$LINENO"; then :
5139 # Broken: success on invalid input.
5140 continue
5141 else
5142 # Passes both tests.
5143 ac_preproc_ok=:
5144 break
5146 rm -f conftest.err conftest.$ac_ext
5148 done
5149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5150 rm -f conftest.err conftest.$ac_ext
5151 if $ac_preproc_ok; then :
5152 break
5155 done
5156 ac_cv_prog_CXXCPP=$CXXCPP
5159 CXXCPP=$ac_cv_prog_CXXCPP
5160 else
5161 ac_cv_prog_CXXCPP=$CXXCPP
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5164 $as_echo "$CXXCPP" >&6; }
5165 ac_preproc_ok=false
5166 for ac_cxx_preproc_warn_flag in '' yes
5168 # Use a header file that comes with gcc, so configuring glibc
5169 # with a fresh cross-compiler works.
5170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5171 # <limits.h> exists even on freestanding compilers.
5172 # On the NeXT, cc -E runs the code through the compiler's parser,
5173 # not just through cpp. "Syntax error" is here to catch this case.
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #ifdef __STDC__
5177 # include <limits.h>
5178 #else
5179 # include <assert.h>
5180 #endif
5181 Syntax error
5182 _ACEOF
5183 if ac_fn_cxx_try_cpp "$LINENO"; then :
5185 else
5186 # Broken: fails on valid input.
5187 continue
5189 rm -f conftest.err conftest.$ac_ext
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 #include <ac_nonexistent.h>
5196 _ACEOF
5197 if ac_fn_cxx_try_cpp "$LINENO"; then :
5198 # Broken: success on invalid input.
5199 continue
5200 else
5201 # Passes both tests.
5202 ac_preproc_ok=:
5203 break
5205 rm -f conftest.err conftest.$ac_ext
5207 done
5208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209 rm -f conftest.err conftest.$ac_ext
5210 if $ac_preproc_ok; then :
5212 else
5213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5216 See \`config.log' for more details." "$LINENO" 5; }
5219 ac_ext=cpp
5220 ac_cpp='$CXXCPP $CPPFLAGS'
5221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5227 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5228 if test "${ac_cv_path_GREP+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -z "$GREP"; then
5232 ac_path_GREP_found=false
5233 # Loop through the user's path and test for each of PROGNAME-LIST
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_prog in grep ggrep; do
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5242 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5243 # Check for GNU ac_path_GREP and select it if it is found.
5244 # Check for GNU $ac_path_GREP
5245 case `"$ac_path_GREP" --version 2>&1` in
5246 *GNU*)
5247 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5249 ac_count=0
5250 $as_echo_n 0123456789 >"conftest.in"
5251 while :
5253 cat "conftest.in" "conftest.in" >"conftest.tmp"
5254 mv "conftest.tmp" "conftest.in"
5255 cp "conftest.in" "conftest.nl"
5256 $as_echo 'GREP' >> "conftest.nl"
5257 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5259 as_fn_arith $ac_count + 1 && ac_count=$as_val
5260 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5261 # Best one so far, save it but keep looking for a better one
5262 ac_cv_path_GREP="$ac_path_GREP"
5263 ac_path_GREP_max=$ac_count
5265 # 10*(2^10) chars as input seems more than enough
5266 test $ac_count -gt 10 && break
5267 done
5268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5269 esac
5271 $ac_path_GREP_found && break 3
5272 done
5273 done
5274 done
5275 IFS=$as_save_IFS
5276 if test -z "$ac_cv_path_GREP"; then
5277 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5279 else
5280 ac_cv_path_GREP=$GREP
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5285 $as_echo "$ac_cv_path_GREP" >&6; }
5286 GREP="$ac_cv_path_GREP"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5290 $as_echo_n "checking for egrep... " >&6; }
5291 if test "${ac_cv_path_EGREP+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5295 then ac_cv_path_EGREP="$GREP -E"
5296 else
5297 if test -z "$EGREP"; then
5298 ac_path_EGREP_found=false
5299 # Loop through the user's path and test for each of PROGNAME-LIST
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_prog in egrep; do
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5308 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5309 # Check for GNU ac_path_EGREP and select it if it is found.
5310 # Check for GNU $ac_path_EGREP
5311 case `"$ac_path_EGREP" --version 2>&1` in
5312 *GNU*)
5313 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5315 ac_count=0
5316 $as_echo_n 0123456789 >"conftest.in"
5317 while :
5319 cat "conftest.in" "conftest.in" >"conftest.tmp"
5320 mv "conftest.tmp" "conftest.in"
5321 cp "conftest.in" "conftest.nl"
5322 $as_echo 'EGREP' >> "conftest.nl"
5323 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325 as_fn_arith $ac_count + 1 && ac_count=$as_val
5326 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5327 # Best one so far, save it but keep looking for a better one
5328 ac_cv_path_EGREP="$ac_path_EGREP"
5329 ac_path_EGREP_max=$ac_count
5331 # 10*(2^10) chars as input seems more than enough
5332 test $ac_count -gt 10 && break
5333 done
5334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335 esac
5337 $ac_path_EGREP_found && break 3
5338 done
5339 done
5340 done
5341 IFS=$as_save_IFS
5342 if test -z "$ac_cv_path_EGREP"; then
5343 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5345 else
5346 ac_cv_path_EGREP=$EGREP
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5352 $as_echo "$ac_cv_path_EGREP" >&6; }
5353 EGREP="$ac_cv_path_EGREP"
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5357 $as_echo_n "checking for ANSI C header files... " >&6; }
5358 if test "${ac_cv_header_stdc+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <stdlib.h>
5364 #include <stdarg.h>
5365 #include <string.h>
5366 #include <float.h>
5369 main ()
5373 return 0;
5375 _ACEOF
5376 if ac_fn_cxx_try_compile "$LINENO"; then :
5377 ac_cv_header_stdc=yes
5378 else
5379 ac_cv_header_stdc=no
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 if test $ac_cv_header_stdc = yes; then
5384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <string.h>
5389 _ACEOF
5390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5391 $EGREP "memchr" >/dev/null 2>&1; then :
5393 else
5394 ac_cv_header_stdc=no
5396 rm -f conftest*
5400 if test $ac_cv_header_stdc = yes; then
5401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <stdlib.h>
5406 _ACEOF
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "free" >/dev/null 2>&1; then :
5410 else
5411 ac_cv_header_stdc=no
5413 rm -f conftest*
5417 if test $ac_cv_header_stdc = yes; then
5418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5419 if test "$cross_compiling" = yes; then :
5421 else
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 #include <ctype.h>
5425 #include <stdlib.h>
5426 #if ((' ' & 0x0FF) == 0x020)
5427 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5428 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5429 #else
5430 # define ISLOWER(c) \
5431 (('a' <= (c) && (c) <= 'i') \
5432 || ('j' <= (c) && (c) <= 'r') \
5433 || ('s' <= (c) && (c) <= 'z'))
5434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5435 #endif
5437 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5439 main ()
5441 int i;
5442 for (i = 0; i < 256; i++)
5443 if (XOR (islower (i), ISLOWER (i))
5444 || toupper (i) != TOUPPER (i))
5445 return 2;
5446 return 0;
5448 _ACEOF
5449 if ac_fn_cxx_try_run "$LINENO"; then :
5451 else
5452 ac_cv_header_stdc=no
5454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5455 conftest.$ac_objext conftest.beam conftest.$ac_ext
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5461 $as_echo "$ac_cv_header_stdc" >&6; }
5462 if test $ac_cv_header_stdc = yes; then
5464 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5468 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5469 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5470 inttypes.h stdint.h unistd.h
5471 do :
5472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5475 eval as_val=\$$as_ac_Header
5476 if test "x$as_val" = x""yes; then :
5477 cat >>confdefs.h <<_ACEOF
5478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5479 _ACEOF
5483 done
5487 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5488 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5489 MINIX=yes
5490 else
5491 MINIX=
5495 if test "$MINIX" = yes; then
5497 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5500 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5503 $as_echo "#define _MINIX 1" >>confdefs.h
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5509 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5510 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5516 # define __EXTENSIONS__ 1
5517 $ac_includes_default
5519 main ()
5523 return 0;
5525 _ACEOF
5526 if ac_fn_cxx_try_compile "$LINENO"; then :
5527 ac_cv_safe_to_define___extensions__=yes
5528 else
5529 ac_cv_safe_to_define___extensions__=no
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5534 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5535 test $ac_cv_safe_to_define___extensions__ = yes &&
5536 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5538 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5540 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5542 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5544 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5553 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5554 # On Suns, sometimes $CPP names a directory.
5555 if test -n "$CPP" && test -d "$CPP"; then
5556 CPP=
5558 if test -z "$CPP"; then
5559 if test "${ac_cv_prog_CPP+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 # Double quotes because CPP needs to be expanded
5563 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5565 ac_preproc_ok=false
5566 for ac_c_preproc_warn_flag in '' yes
5568 # Use a header file that comes with gcc, so configuring glibc
5569 # with a fresh cross-compiler works.
5570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571 # <limits.h> exists even on freestanding compilers.
5572 # On the NeXT, cc -E runs the code through the compiler's parser,
5573 # not just through cpp. "Syntax error" is here to catch this case.
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #ifdef __STDC__
5577 # include <limits.h>
5578 #else
5579 # include <assert.h>
5580 #endif
5581 Syntax error
5582 _ACEOF
5583 if ac_fn_c_try_cpp "$LINENO"; then :
5585 else
5586 # Broken: fails on valid input.
5587 continue
5589 rm -f conftest.err conftest.$ac_ext
5591 # OK, works on sane cases. Now check whether nonexistent headers
5592 # can be detected and how.
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5598 # Broken: success on invalid input.
5599 continue
5600 else
5601 # Passes both tests.
5602 ac_preproc_ok=:
5603 break
5605 rm -f conftest.err conftest.$ac_ext
5607 done
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then :
5611 break
5614 done
5615 ac_cv_prog_CPP=$CPP
5618 CPP=$ac_cv_prog_CPP
5619 else
5620 ac_cv_prog_CPP=$CPP
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5623 $as_echo "$CPP" >&6; }
5624 ac_preproc_ok=false
5625 for ac_c_preproc_warn_flag in '' yes
5627 # Use a header file that comes with gcc, so configuring glibc
5628 # with a fresh cross-compiler works.
5629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630 # <limits.h> exists even on freestanding compilers.
5631 # On the NeXT, cc -E runs the code through the compiler's parser,
5632 # not just through cpp. "Syntax error" is here to catch this case.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #ifdef __STDC__
5636 # include <limits.h>
5637 #else
5638 # include <assert.h>
5639 #endif
5640 Syntax error
5641 _ACEOF
5642 if ac_fn_c_try_cpp "$LINENO"; then :
5644 else
5645 # Broken: fails on valid input.
5646 continue
5648 rm -f conftest.err conftest.$ac_ext
5650 # OK, works on sane cases. Now check whether nonexistent headers
5651 # can be detected and how.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <ac_nonexistent.h>
5655 _ACEOF
5656 if ac_fn_c_try_cpp "$LINENO"; then :
5657 # Broken: success on invalid input.
5658 continue
5659 else
5660 # Passes both tests.
5661 ac_preproc_ok=:
5662 break
5664 rm -f conftest.err conftest.$ac_ext
5666 done
5667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5668 rm -f conftest.err conftest.$ac_ext
5669 if $ac_preproc_ok; then :
5671 else
5672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5674 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5675 See \`config.log' for more details." "$LINENO" 5; }
5678 ac_ext=cpp
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5685 $as_echo_n "checking for inline... " >&6; }
5686 if test "${ac_cv_c_inline+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 ac_cv_c_inline=no
5690 for ac_kw in inline __inline__ __inline; do
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #ifndef __cplusplus
5694 typedef int foo_t;
5695 static $ac_kw foo_t static_foo () {return 0; }
5696 $ac_kw foo_t foo () {return 0; }
5697 #endif
5699 _ACEOF
5700 if ac_fn_cxx_try_compile "$LINENO"; then :
5701 ac_cv_c_inline=$ac_kw
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 test "$ac_cv_c_inline" != no && break
5705 done
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5709 $as_echo "$ac_cv_c_inline" >&6; }
5711 case $ac_cv_c_inline in
5712 inline | yes) ;;
5714 case $ac_cv_c_inline in
5715 no) ac_val=;;
5716 *) ac_val=$ac_cv_c_inline;;
5717 esac
5718 cat >>confdefs.h <<_ACEOF
5719 #ifndef __cplusplus
5720 #define inline $ac_val
5721 #endif
5722 _ACEOF
5724 esac
5727 # Check whether --enable-largefile was given.
5728 if test "${enable_largefile+set}" = set; then :
5729 enableval=$enable_largefile;
5732 if test "$enable_largefile" != no; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5735 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5736 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 ac_cv_sys_largefile_CC=no
5740 if test "$GCC" != yes; then
5741 ac_save_CC=$CC
5742 while :; do
5743 # IRIX 6.2 and later do not support large files by default,
5744 # so use the C compiler's -n32 option if that helps.
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 /* Check that off_t can represent 2**63 - 1 correctly.
5749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5750 since some C++ compilers masquerading as C compilers
5751 incorrectly reject 9223372036854775807. */
5752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5754 && LARGE_OFF_T % 2147483647 == 1)
5755 ? 1 : -1];
5757 main ()
5761 return 0;
5763 _ACEOF
5764 if ac_fn_cxx_try_compile "$LINENO"; then :
5765 break
5767 rm -f core conftest.err conftest.$ac_objext
5768 CC="$CC -n32"
5769 if ac_fn_cxx_try_compile "$LINENO"; then :
5770 ac_cv_sys_largefile_CC=' -n32'; break
5772 rm -f core conftest.err conftest.$ac_objext
5773 break
5774 done
5775 CC=$ac_save_CC
5776 rm -f conftest.$ac_ext
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5780 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5781 if test "$ac_cv_sys_largefile_CC" != no; then
5782 CC=$CC$ac_cv_sys_largefile_CC
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5786 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5787 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 while :; do
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5801 ? 1 : -1];
5803 main ()
5807 return 0;
5809 _ACEOF
5810 if ac_fn_cxx_try_compile "$LINENO"; then :
5811 ac_cv_sys_file_offset_bits=no; break
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #define _FILE_OFFSET_BITS 64
5817 #include <sys/types.h>
5818 /* Check that off_t can represent 2**63 - 1 correctly.
5819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5820 since some C++ compilers masquerading as C compilers
5821 incorrectly reject 9223372036854775807. */
5822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5824 && LARGE_OFF_T % 2147483647 == 1)
5825 ? 1 : -1];
5827 main ()
5831 return 0;
5833 _ACEOF
5834 if ac_fn_cxx_try_compile "$LINENO"; then :
5835 ac_cv_sys_file_offset_bits=64; break
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 ac_cv_sys_file_offset_bits=unknown
5839 break
5840 done
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5843 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5844 case $ac_cv_sys_file_offset_bits in #(
5845 no | unknown) ;;
5847 cat >>confdefs.h <<_ACEOF
5848 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5849 _ACEOF
5851 esac
5852 rm -rf conftest*
5853 if test $ac_cv_sys_file_offset_bits = unknown; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5855 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5856 if test "${ac_cv_sys_large_files+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 while :; do
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 #include <sys/types.h>
5863 /* Check that off_t can represent 2**63 - 1 correctly.
5864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5865 since some C++ compilers masquerading as C compilers
5866 incorrectly reject 9223372036854775807. */
5867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5869 && LARGE_OFF_T % 2147483647 == 1)
5870 ? 1 : -1];
5872 main ()
5876 return 0;
5878 _ACEOF
5879 if ac_fn_cxx_try_compile "$LINENO"; then :
5880 ac_cv_sys_large_files=no; break
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #define _LARGE_FILES 1
5886 #include <sys/types.h>
5887 /* Check that off_t can represent 2**63 - 1 correctly.
5888 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5889 since some C++ compilers masquerading as C compilers
5890 incorrectly reject 9223372036854775807. */
5891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5892 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5893 && LARGE_OFF_T % 2147483647 == 1)
5894 ? 1 : -1];
5896 main ()
5900 return 0;
5902 _ACEOF
5903 if ac_fn_cxx_try_compile "$LINENO"; then :
5904 ac_cv_sys_large_files=1; break
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 ac_cv_sys_large_files=unknown
5908 break
5909 done
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5912 $as_echo "$ac_cv_sys_large_files" >&6; }
5913 case $ac_cv_sys_large_files in #(
5914 no | unknown) ;;
5916 cat >>confdefs.h <<_ACEOF
5917 #define _LARGE_FILES $ac_cv_sys_large_files
5918 _ACEOF
5920 esac
5921 rm -rf conftest*
5926 # sizeof(char) is 1 by definition.
5927 # The cast to long int works around a bug in the HP C Compiler
5928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5930 # This bug is HP SR number 8606223364.
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5932 $as_echo_n "checking size of void *... " >&6; }
5933 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5938 else
5939 if test "$ac_cv_type_void_p" = yes; then
5940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5942 { as_fn_set_status 77
5943 as_fn_error "cannot compute sizeof (void *)
5944 See \`config.log' for more details." "$LINENO" 5; }; }
5945 else
5946 ac_cv_sizeof_void_p=0
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5952 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5956 cat >>confdefs.h <<_ACEOF
5957 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5958 _ACEOF
5961 # The cast to long int works around a bug in the HP C Compiler
5962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5964 # This bug is HP SR number 8606223364.
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5966 $as_echo_n "checking size of short... " >&6; }
5967 if test "${ac_cv_sizeof_short+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5972 else
5973 if test "$ac_cv_type_short" = yes; then
5974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5976 { as_fn_set_status 77
5977 as_fn_error "cannot compute sizeof (short)
5978 See \`config.log' for more details." "$LINENO" 5; }; }
5979 else
5980 ac_cv_sizeof_short=0
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5986 $as_echo "$ac_cv_sizeof_short" >&6; }
5990 cat >>confdefs.h <<_ACEOF
5991 #define SIZEOF_SHORT $ac_cv_sizeof_short
5992 _ACEOF
5995 # The cast to long int works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6000 $as_echo_n "checking size of int... " >&6; }
6001 if test "${ac_cv_sizeof_int+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6006 else
6007 if test "$ac_cv_type_int" = yes; then
6008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010 { as_fn_set_status 77
6011 as_fn_error "cannot compute sizeof (int)
6012 See \`config.log' for more details." "$LINENO" 5; }; }
6013 else
6014 ac_cv_sizeof_int=0
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6020 $as_echo "$ac_cv_sizeof_int" >&6; }
6024 cat >>confdefs.h <<_ACEOF
6025 #define SIZEOF_INT $ac_cv_sizeof_int
6026 _ACEOF
6029 # The cast to long int works around a bug in the HP C Compiler
6030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6032 # This bug is HP SR number 8606223364.
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6034 $as_echo_n "checking size of long... " >&6; }
6035 if test "${ac_cv_sizeof_long+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6040 else
6041 if test "$ac_cv_type_long" = yes; then
6042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 { as_fn_set_status 77
6045 as_fn_error "cannot compute sizeof (long)
6046 See \`config.log' for more details." "$LINENO" 5; }; }
6047 else
6048 ac_cv_sizeof_long=0
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6054 $as_echo "$ac_cv_sizeof_long" >&6; }
6058 cat >>confdefs.h <<_ACEOF
6059 #define SIZEOF_LONG $ac_cv_sizeof_long
6060 _ACEOF
6063 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6064 if test "x$ac_cv_type_long_long" = x""yes; then :
6066 cat >>confdefs.h <<_ACEOF
6067 #define HAVE_LONG_LONG 1
6068 _ACEOF
6070 # The cast to long int works around a bug in the HP C Compiler
6071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6073 # This bug is HP SR number 8606223364.
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6075 $as_echo_n "checking size of long long... " >&6; }
6076 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6081 else
6082 if test "$ac_cv_type_long_long" = yes; then
6083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6085 { as_fn_set_status 77
6086 as_fn_error "cannot compute sizeof (long long)
6087 See \`config.log' for more details." "$LINENO" 5; }; }
6088 else
6089 ac_cv_sizeof_long_long=0
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6095 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6099 cat >>confdefs.h <<_ACEOF
6100 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6101 _ACEOF
6106 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6107 case $ac_cv_c_int8_t in #(
6108 no|yes) ;; #(
6111 cat >>confdefs.h <<_ACEOF
6112 #define int8_t $ac_cv_c_int8_t
6113 _ACEOF
6115 esac
6117 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6118 case $ac_cv_c_int16_t in #(
6119 no|yes) ;; #(
6122 cat >>confdefs.h <<_ACEOF
6123 #define int16_t $ac_cv_c_int16_t
6124 _ACEOF
6126 esac
6128 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6129 case $ac_cv_c_int32_t in #(
6130 no|yes) ;; #(
6133 cat >>confdefs.h <<_ACEOF
6134 #define int32_t $ac_cv_c_int32_t
6135 _ACEOF
6137 esac
6139 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6140 case $ac_cv_c_int64_t in #(
6141 no|yes) ;; #(
6144 cat >>confdefs.h <<_ACEOF
6145 #define int64_t $ac_cv_c_int64_t
6146 _ACEOF
6148 esac
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6152 $as_echo_n "checking for long long int... " >&6; }
6153 if test "${ac_cv_type_long_long_int+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6159 /* For now, do not test the preprocessor; as of 2007 there are too many
6160 implementations with broken preprocessors. Perhaps this can
6161 be revisited in 2012. In the meantime, code should not expect
6162 #if to work with literals wider than 32 bits. */
6163 /* Test literals. */
6164 long long int ll = 9223372036854775807ll;
6165 long long int nll = -9223372036854775807LL;
6166 unsigned long long int ull = 18446744073709551615ULL;
6167 /* Test constant expressions. */
6168 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6169 ? 1 : -1)];
6170 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6171 ? 1 : -1)];
6172 int i = 63;
6174 main ()
6176 /* Test availability of runtime routines for shift and division. */
6177 long long int llmax = 9223372036854775807ll;
6178 unsigned long long int ullmax = 18446744073709551615ull;
6179 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6180 | (llmax / ll) | (llmax % ll)
6181 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6182 | (ullmax / ull) | (ullmax % ull));
6184 return 0;
6187 _ACEOF
6188 if ac_fn_cxx_try_link "$LINENO"; then :
6189 if test "$cross_compiling" = yes; then :
6190 ac_cv_type_long_long_int=yes
6191 else
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #include <limits.h>
6195 #ifndef LLONG_MAX
6196 # define HALF \
6197 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6198 # define LLONG_MAX (HALF - 1 + HALF)
6199 #endif
6201 main ()
6203 long long int n = 1;
6204 int i;
6205 for (i = 0; ; i++)
6207 long long int m = n << i;
6208 if (m >> i != n)
6209 return 1;
6210 if (LLONG_MAX / 2 < m)
6211 break;
6213 return 0;
6215 return 0;
6217 _ACEOF
6218 if ac_fn_cxx_try_run "$LINENO"; then :
6219 ac_cv_type_long_long_int=yes
6220 else
6221 ac_cv_type_long_long_int=no
6223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6224 conftest.$ac_objext conftest.beam conftest.$ac_ext
6227 else
6228 ac_cv_type_long_long_int=no
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6234 $as_echo "$ac_cv_type_long_long_int" >&6; }
6235 if test $ac_cv_type_long_long_int = yes; then
6237 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6243 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6244 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6246 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6248 else
6249 test $ac_cv_type_long_long_int = yes \
6250 && ac_type='long long int' \
6251 || ac_type='long int'
6253 cat >>confdefs.h <<_ACEOF
6254 #define intmax_t $ac_type
6255 _ACEOF
6261 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6262 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6264 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6266 else
6267 for ac_type in 'int' 'long int' 'long long int'; do
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 $ac_includes_default
6272 main ()
6274 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6275 test_array [0] = 0
6278 return 0;
6280 _ACEOF
6281 if ac_fn_cxx_try_compile "$LINENO"; then :
6283 cat >>confdefs.h <<_ACEOF
6284 #define intptr_t $ac_type
6285 _ACEOF
6287 ac_type=
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 test -z "$ac_type" && break
6291 done
6295 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6296 case $ac_cv_c_uint8_t in #(
6297 no|yes) ;; #(
6300 $as_echo "#define _UINT8_T 1" >>confdefs.h
6303 cat >>confdefs.h <<_ACEOF
6304 #define uint8_t $ac_cv_c_uint8_t
6305 _ACEOF
6307 esac
6309 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6310 case $ac_cv_c_uint16_t in #(
6311 no|yes) ;; #(
6315 cat >>confdefs.h <<_ACEOF
6316 #define uint16_t $ac_cv_c_uint16_t
6317 _ACEOF
6319 esac
6321 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6322 case $ac_cv_c_uint32_t in #(
6323 no|yes) ;; #(
6326 $as_echo "#define _UINT32_T 1" >>confdefs.h
6329 cat >>confdefs.h <<_ACEOF
6330 #define uint32_t $ac_cv_c_uint32_t
6331 _ACEOF
6333 esac
6335 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6336 case $ac_cv_c_uint64_t in #(
6337 no|yes) ;; #(
6340 $as_echo "#define _UINT64_T 1" >>confdefs.h
6343 cat >>confdefs.h <<_ACEOF
6344 #define uint64_t $ac_cv_c_uint64_t
6345 _ACEOF
6347 esac
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6351 $as_echo_n "checking for unsigned long long int... " >&6; }
6352 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6358 /* For now, do not test the preprocessor; as of 2007 there are too many
6359 implementations with broken preprocessors. Perhaps this can
6360 be revisited in 2012. In the meantime, code should not expect
6361 #if to work with literals wider than 32 bits. */
6362 /* Test literals. */
6363 long long int ll = 9223372036854775807ll;
6364 long long int nll = -9223372036854775807LL;
6365 unsigned long long int ull = 18446744073709551615ULL;
6366 /* Test constant expressions. */
6367 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6368 ? 1 : -1)];
6369 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6370 ? 1 : -1)];
6371 int i = 63;
6373 main ()
6375 /* Test availability of runtime routines for shift and division. */
6376 long long int llmax = 9223372036854775807ll;
6377 unsigned long long int ullmax = 18446744073709551615ull;
6378 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6379 | (llmax / ll) | (llmax % ll)
6380 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6381 | (ullmax / ull) | (ullmax % ull));
6383 return 0;
6386 _ACEOF
6387 if ac_fn_cxx_try_link "$LINENO"; then :
6388 ac_cv_type_unsigned_long_long_int=yes
6389 else
6390 ac_cv_type_unsigned_long_long_int=no
6392 rm -f core conftest.err conftest.$ac_objext \
6393 conftest$ac_exeext conftest.$ac_ext
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6396 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6397 if test $ac_cv_type_unsigned_long_long_int = yes; then
6399 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6405 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6406 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6408 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6410 else
6411 test $ac_cv_type_unsigned_long_long_int = yes \
6412 && ac_type='unsigned long long int' \
6413 || ac_type='unsigned long int'
6415 cat >>confdefs.h <<_ACEOF
6416 #define uintmax_t $ac_type
6417 _ACEOF
6423 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6424 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6426 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6428 else
6429 for ac_type in 'unsigned int' 'unsigned long int' \
6430 'unsigned long long int'; do
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433 $ac_includes_default
6435 main ()
6437 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6438 test_array [0] = 0
6441 return 0;
6443 _ACEOF
6444 if ac_fn_cxx_try_compile "$LINENO"; then :
6446 cat >>confdefs.h <<_ACEOF
6447 #define uintptr_t $ac_type
6448 _ACEOF
6450 ac_type=
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 test -z "$ac_type" && break
6454 done
6470 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6471 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6474 # check what underlying integer type int64_t uses
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6476 $as_echo_n "checking for int64_t underlying type... " >&6; }
6477 if test "${ac_cv_int64_t_type+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6484 #ifdef HAVE_STDINT_H
6485 #include <stdint.h>
6486 #endif
6487 template <typename T> struct X { };
6488 template <>
6489 struct X<long> { typedef long t; };
6492 main ()
6494 X<int64_t>::t x;
6496 return 0;
6498 _ACEOF
6499 if ac_fn_cxx_try_compile "$LINENO"; then :
6500 ac_cv_int64_t_type=long
6501 else
6502 ac_cv_int64_t_type="long long"
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6507 $as_echo "$ac_cv_int64_t_type" >&6; }
6508 if test "$ac_cv_int64_t_type" = "long"; then
6510 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6512 else
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6516 #ifdef HAVE_STDINT_H
6517 #include <stdint.h>
6518 #endif
6519 template <typename T> struct X { };
6520 template <>
6521 struct X<long long> { typedef long long t; };
6524 main ()
6526 X<int64_t>::t x;
6528 return 0;
6530 _ACEOF
6531 if ac_fn_cxx_try_compile "$LINENO"; then :
6533 else
6534 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6540 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6541 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6548 #include <utility>
6551 main ()
6553 int a, b; std::swap(a,b);
6555 return 0;
6557 _ACEOF
6558 if ac_fn_cxx_try_compile "$LINENO"; then :
6559 ac_cv_std_swap_in_utility=yes
6560 else
6561 ac_cv_std_swap_in_utility=no
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6566 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6567 if test $ac_cv_std_swap_in_utility = yes; then
6569 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6573 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6574 # If the host compiler is affected by the bug, and we build with optimization
6575 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6576 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6577 # Since there is no reliable feature check for the presence of this bug,
6578 # we simply use a GCC version number check. (This should never trigger for
6579 # stages 2 or 3 of a native bootstrap.)
6580 aliasing_flags=
6581 if test "$GCC" = yes; then
6582 saved_CXXFLAGS="$CXXFLAGS"
6584 # The following test compilation will succeed if and only if $CXX accepts
6585 # -fno-strict-aliasing *and* is older than GCC 4.3.
6586 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6588 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6592 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6593 #error compiler not affected by placement new aliasing bug
6594 #endif
6596 _ACEOF
6597 if ac_fn_cxx_try_compile "$LINENO"; then :
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6599 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 CXXFLAGS="$saved_CXXFLAGS"
6612 # ---------------------
6613 # Warnings and checking
6614 # ---------------------
6616 # Check $CC warning features (if it's GCC).
6617 # We want to use -pedantic, but we don't want warnings about
6618 # * 'long long'
6619 # * variadic macros
6620 # * overlong strings
6621 # * C++11 narrowing conversions in { }
6622 # So, we only use -pedantic if we can disable those warnings.
6624 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6625 # Check whether --enable-build-format-warnings was given.
6626 if test "${enable_build_format_warnings+set}" = set; then :
6627 enableval=$enable_build_format_warnings;
6628 else
6629 enable_build_format_warnings=yes
6632 if test $enable_build_format_warnings = no; then :
6633 wf_opt=-Wno-format
6634 else
6635 wf_opt=
6637 ac_ext=cpp
6638 ac_cpp='$CXXCPP $CPPFLAGS'
6639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6643 loose_warn=
6644 save_CXXFLAGS="$CXXFLAGS"
6645 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option=$real_option ;;
6651 esac
6652 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6655 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6656 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 CXXFLAGS="$option"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6664 main ()
6668 return 0;
6670 _ACEOF
6671 if ac_fn_cxx_try_compile "$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6673 else
6674 eval "$as_acx_Woption=no"
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 eval ac_res=\$$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6685 done
6686 CXXFLAGS="$save_CXXFLAGS"
6687 ac_ext=cpp
6688 ac_cpp='$CXXCPP $CPPFLAGS'
6689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6695 ac_ext=c
6696 ac_cpp='$CPP $CPPFLAGS'
6697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701 c_loose_warn=
6702 save_CFLAGS="$CFLAGS"
6703 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6704 # Do the check with the no- prefix removed since gcc silently
6705 # accepts any -Wno-* option on purpose
6706 case $real_option in
6707 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6708 *) option=$real_option ;;
6709 esac
6710 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6713 $as_echo_n "checking whether $CC supports $option... " >&6; }
6714 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 CFLAGS="$option"
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6722 main ()
6726 return 0;
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 eval "$as_acx_Woption=yes"
6731 else
6732 eval "$as_acx_Woption=no"
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 eval ac_res=\$$as_acx_Woption
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6739 $as_echo "$ac_res" >&6; }
6740 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6741 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6743 done
6744 CFLAGS="$save_CFLAGS"
6745 ac_ext=cpp
6746 ac_cpp='$CXXCPP $CPPFLAGS'
6747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6752 ac_ext=cpp
6753 ac_cpp='$CXXCPP $CPPFLAGS'
6754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6758 strict_warn=
6759 save_CXXFLAGS="$CXXFLAGS"
6760 for real_option in -Wmissing-format-attribute; do
6761 # Do the check with the no- prefix removed since gcc silently
6762 # accepts any -Wno-* option on purpose
6763 case $real_option in
6764 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6765 *) option=$real_option ;;
6766 esac
6767 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6770 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6771 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 CXXFLAGS="$option"
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6779 main ()
6783 return 0;
6785 _ACEOF
6786 if ac_fn_cxx_try_compile "$LINENO"; then :
6787 eval "$as_acx_Woption=yes"
6788 else
6789 eval "$as_acx_Woption=no"
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 eval ac_res=\$$as_acx_Woption
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796 $as_echo "$ac_res" >&6; }
6797 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6798 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6800 done
6801 CXXFLAGS="$save_CXXFLAGS"
6802 ac_ext=cpp
6803 ac_cpp='$CXXCPP $CPPFLAGS'
6804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6809 ac_ext=cpp
6810 ac_cpp='$CXXCPP $CPPFLAGS'
6811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6815 save_CXXFLAGS="$CXXFLAGS"
6816 for real_option in -Woverloaded-virtual; do
6817 # Do the check with the no- prefix removed since gcc silently
6818 # accepts any -Wno-* option on purpose
6819 case $real_option in
6820 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6821 *) option=$real_option ;;
6822 esac
6823 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6826 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6827 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 CXXFLAGS="$option"
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6835 main ()
6839 return 0;
6841 _ACEOF
6842 if ac_fn_cxx_try_compile "$LINENO"; then :
6843 eval "$as_acx_Woption=yes"
6844 else
6845 eval "$as_acx_Woption=no"
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 eval ac_res=\$$as_acx_Woption
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6852 $as_echo "$ac_res" >&6; }
6853 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6854 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6856 done
6857 CXXFLAGS="$save_CXXFLAGS"
6858 ac_ext=cpp
6859 ac_cpp='$CXXCPP $CPPFLAGS'
6860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6865 ac_ext=c
6866 ac_cpp='$CPP $CPPFLAGS'
6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6871 c_strict_warn=
6872 save_CFLAGS="$CFLAGS"
6873 for real_option in -Wold-style-definition -Wc++-compat; do
6874 # Do the check with the no- prefix removed since gcc silently
6875 # accepts any -Wno-* option on purpose
6876 case $real_option in
6877 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6878 *) option=$real_option ;;
6879 esac
6880 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6883 $as_echo_n "checking whether $CC supports $option... " >&6; }
6884 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 CFLAGS="$option"
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6892 main ()
6896 return 0;
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 eval "$as_acx_Woption=yes"
6901 else
6902 eval "$as_acx_Woption=no"
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 eval ac_res=\$$as_acx_Woption
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6909 $as_echo "$ac_res" >&6; }
6910 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6911 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6913 done
6914 CFLAGS="$save_CFLAGS"
6915 ac_ext=cpp
6916 ac_cpp='$CXXCPP $CPPFLAGS'
6917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6922 ac_ext=cpp
6923 ac_cpp='$CXXCPP $CPPFLAGS'
6924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6928 # Do the check with the no- prefix removed from the warning options
6929 # since gcc silently accepts any -Wno-* option on purpose
6930 if test "$GXX" = yes; then :
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6932 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6933 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 save_CXXFLAGS="$CXXFLAGS"
6937 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6942 main ()
6946 return 0;
6948 _ACEOF
6949 if ac_fn_cxx_try_compile "$LINENO"; then :
6950 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6951 else
6952 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 CXXFLAGS="$save_CXXFLAGS"
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6958 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6959 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6960 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6964 ac_ext=cpp
6965 ac_cpp='$CXXCPP $CPPFLAGS'
6966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6971 ac_ext=cpp
6972 ac_cpp='$CXXCPP $CPPFLAGS'
6973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6977 # Check whether --enable-werror-always was given.
6978 if test "${enable_werror_always+set}" = set; then :
6979 enableval=$enable_werror_always;
6980 else
6981 enable_werror_always=no
6984 if test $enable_werror_always = yes; then :
6985 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6988 ac_ext=cpp
6989 ac_cpp='$CXXCPP $CPPFLAGS'
6990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6996 # The above macros do nothing if the compiler is not GCC. However, the
6997 # Makefile has more goo to add other flags, so these variables are used
6998 # to enable warnings only for GCC.
6999 warn_cflags=
7000 warn_cxxflags=
7001 if test "x$GCC" = "xyes"; then
7002 warn_cflags='$(GCC_WARN_CFLAGS)'
7003 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7008 # Disable exceptions and RTTI if building with g++
7009 ac_ext=c
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015 noexception_flags=
7016 save_CFLAGS="$CFLAGS"
7017 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7018 # Do the check with the no- prefix removed since gcc silently
7019 # accepts any -Wno-* option on purpose
7020 case $real_option in
7021 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7022 *) option=$real_option ;;
7023 esac
7024 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7027 $as_echo_n "checking whether $CC supports $option... " >&6; }
7028 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 CFLAGS="$option"
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7036 main ()
7040 return 0;
7042 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"; then :
7044 eval "$as_acx_Woption=yes"
7045 else
7046 eval "$as_acx_Woption=no"
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 eval ac_res=\$$as_acx_Woption
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7053 $as_echo "$ac_res" >&6; }
7054 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7055 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7057 done
7058 CFLAGS="$save_CFLAGS"
7059 ac_ext=cpp
7060 ac_cpp='$CXXCPP $CPPFLAGS'
7061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7067 # Enable expensive internal checks
7068 is_release=
7069 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7070 is_release=yes
7073 # Check whether --enable-checking was given.
7074 if test "${enable_checking+set}" = set; then :
7075 enableval=$enable_checking; ac_checking_flags="${enableval}"
7076 else
7078 # Determine the default checks.
7079 if test x$is_release = x ; then
7080 ac_checking_flags=yes,extra
7081 else
7082 ac_checking_flags=release
7086 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7087 for check in release $ac_checking_flags
7089 case $check in
7090 # these set all the flags to specific states
7091 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7092 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7093 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7094 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7095 ac_tree_checking=1 ; ac_valgrind_checking= ;
7096 ac_types_checking=1 ;;
7097 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7098 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7099 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7100 ac_rtlflag_checking= ; ac_runtime_checking= ;
7101 ac_tree_checking= ; ac_valgrind_checking= ;
7102 ac_types_checking= ;;
7103 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7104 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7105 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7106 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7107 ac_tree_checking=1 ; ac_valgrind_checking= ;
7108 ac_types_checking=1 ;;
7109 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7110 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7111 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7112 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7113 ac_tree_checking= ; ac_valgrind_checking= ;
7114 ac_types_checking= ;;
7115 # these enable particular checks
7116 assert) ac_assert_checking=1 ;;
7117 df) ac_df_checking=1 ;;
7118 extra) ac_extra_checking=1 ;;
7119 fold) ac_fold_checking=1 ;;
7120 gc) ac_gc_checking=1 ;;
7121 gcac) ac_gc_always_collect=1 ;;
7122 gimple) ac_gimple_checking=1 ;;
7123 misc) ac_checking=1 ;;
7124 rtl) ac_rtl_checking=1 ;;
7125 rtlflag) ac_rtlflag_checking=1 ;;
7126 runtime) ac_runtime_checking=1 ;;
7127 tree) ac_tree_checking=1 ;;
7128 types) ac_types_checking=1 ;;
7129 valgrind) ac_valgrind_checking=1 ;;
7130 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7131 esac
7132 done
7133 IFS="$ac_save_IFS"
7135 nocommon_flag=""
7136 if test x$ac_checking != x ; then
7137 if test x$ac_extra_checking != x ; then
7138 ac_checking=2
7141 cat >>confdefs.h <<_ACEOF
7142 #define CHECKING_P $ac_checking
7143 _ACEOF
7145 nocommon_flag=-fno-common
7146 else
7147 $as_echo "#define CHECKING_P 0" >>confdefs.h
7151 if test x$ac_df_checking != x ; then
7153 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7156 if test x$ac_assert_checking != x ; then
7158 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7161 if test x$ac_gimple_checking != x ; then
7163 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7167 if test x$ac_runtime_checking != x ; then
7169 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7172 if test x$ac_tree_checking != x ; then
7174 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7176 TREECHECKING=yes
7178 if test x$ac_types_checking != x ; then
7180 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7184 if test x$ac_rtl_checking != x ; then
7186 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7189 if test x$ac_rtlflag_checking != x ; then
7191 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7194 if test x$ac_gc_checking != x ; then
7196 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7199 if test x$ac_gc_always_collect != x ; then
7201 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7204 if test x$ac_fold_checking != x ; then
7206 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7209 valgrind_path_defines=
7210 valgrind_command=
7212 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7213 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7214 have_valgrind_h=yes
7215 else
7216 have_valgrind_h=no
7221 # It is certainly possible that there's valgrind but no valgrind.h.
7222 # GCC relies on making annotations so we must have both.
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7224 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <valgrind/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_valgrind_memcheck_h=yes
7234 else
7235 gcc_cv_header_valgrind_memcheck_h=no
7237 rm -f conftest.err conftest.$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7239 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7241 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 #include <memcheck.h>
7245 #ifndef VALGRIND_DISCARD
7246 #error VALGRIND_DISCARD not defined
7247 #endif
7248 _ACEOF
7249 if ac_fn_cxx_try_cpp "$LINENO"; then :
7250 gcc_cv_header_memcheck_h=yes
7251 else
7252 gcc_cv_header_memcheck_h=no
7254 rm -f conftest.err conftest.$ac_ext
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7256 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7257 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7259 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7262 if test $gcc_cv_header_memcheck_h = yes; then
7264 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7268 if test x$ac_valgrind_checking != x ; then
7270 # Prepare PATH_SEPARATOR.
7271 # The user is always right.
7272 if test "${PATH_SEPARATOR+set}" != set; then
7273 echo "#! /bin/sh" >conf$$.sh
7274 echo "exit 0" >>conf$$.sh
7275 chmod +x conf$$.sh
7276 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7277 PATH_SEPARATOR=';'
7278 else
7279 PATH_SEPARATOR=:
7281 rm -f conf$$.sh
7284 # Find out how to test for executable files. Don't use a zero-byte file,
7285 # as systems may use methods other than mode bits to determine executability.
7286 cat >conf$$.file <<_ASEOF
7287 #! /bin/sh
7288 exit 0
7289 _ASEOF
7290 chmod +x conf$$.file
7291 if test -x conf$$.file >/dev/null 2>&1; then
7292 ac_executable_p="test -x"
7293 else
7294 ac_executable_p="test -f"
7296 rm -f conf$$.file
7298 # Extract the first word of "valgrind", so it can be a program name with args.
7299 set dummy valgrind; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 case "$valgrind_path" in
7306 [\\/]* | ?:[\\/]*)
7307 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7310 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7311 for ac_dir in $PATH; do
7312 IFS="$ac_save_IFS"
7313 test -z "$ac_dir" && ac_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7316 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7317 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7318 break 2
7321 done
7322 done
7323 IFS="$ac_save_IFS"
7325 esac
7327 valgrind_path="$ac_cv_path_valgrind_path"
7328 if test -n "$valgrind_path"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7330 $as_echo "$valgrind_path" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7336 if test "x$valgrind_path" = "x" \
7337 || (test $have_valgrind_h = no \
7338 && test $gcc_cv_header_memcheck_h = no \
7339 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7340 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7342 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7343 valgrind_command="$valgrind_path -q"
7345 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7351 # Enable code coverage collection
7352 # Check whether --enable-coverage was given.
7353 if test "${enable_coverage+set}" = set; then :
7354 enableval=$enable_coverage; case "${enableval}" in
7355 yes|noopt)
7356 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7358 opt)
7359 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7362 # a.k.a. --disable-coverage
7363 coverage_flags=""
7366 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7368 esac
7369 else
7370 coverage_flags=""
7375 # Check whether --enable-gather-detailed-mem-stats was given.
7376 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7377 enableval=$enable_gather_detailed_mem_stats;
7378 else
7379 enable_gather_detailed_mem_stats=no
7382 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7384 cat >>confdefs.h <<_ACEOF
7385 #define GATHER_STATISTICS $gather_stats
7386 _ACEOF
7389 # Check whether --enable-valgrind-annotations was given.
7390 if test "${enable_valgrind_annotations+set}" = set; then :
7391 enableval=$enable_valgrind_annotations;
7392 else
7393 enable_valgrind_annotations=no
7396 if test x$enable_valgrind_annotations != xno \
7397 || test x$ac_valgrind_checking != x; then
7398 if (test $have_valgrind_h = no \
7399 && test $gcc_cv_header_memcheck_h = no \
7400 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7401 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7404 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7408 # -------------------------------
7409 # Miscenalleous configure options
7410 # -------------------------------
7412 # With stabs
7414 # Check whether --with-stabs was given.
7415 if test "${with_stabs+set}" = set; then :
7416 withval=$with_stabs; stabs="$with_stabs"
7417 else
7418 stabs=no
7422 # Determine whether or not multilibs are enabled.
7423 # Check whether --enable-multilib was given.
7424 if test "${enable_multilib+set}" = set; then :
7425 enableval=$enable_multilib;
7426 else
7427 enable_multilib=yes
7432 # Determine whether or not multiarch is enabled.
7433 # Check whether --enable-multiarch was given.
7434 if test "${enable_multiarch+set}" = set; then :
7435 enableval=$enable_multiarch; case "${enableval}" in
7436 yes|no|auto) enable_multiarch=$enableval;;
7437 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7438 esac
7439 else
7440 enable_multiarch=auto
7443 if test x${enable_multiarch} = xauto; then
7444 if test x${with_native_system_header_dir} != x; then
7445 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7446 enable_multiarch=no
7448 if test x$host != x$target && test "x$with_sysroot" = x; then
7449 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7450 enable_multiarch=no
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7454 $as_echo_n "checking for multiarch configuration... " >&6; }
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7457 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7459 # needed for setting the multiarch name for soft-float/hard-float ABIs
7463 # Enable __cxa_atexit for C++.
7464 # Check whether --enable-__cxa_atexit was given.
7465 if test "${enable___cxa_atexit+set}" = set; then :
7466 enableval=$enable___cxa_atexit;
7470 # Enable C extension for decimal float if target supports it.
7472 # Check whether --enable-decimal-float was given.
7473 if test "${enable_decimal_float+set}" = set; then :
7474 enableval=$enable_decimal_float;
7475 case $enable_decimal_float in
7476 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7477 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7478 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7479 esac
7481 else
7483 case $target in
7484 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7485 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7486 i?86*-*-mingw* | x86_64*-*-mingw* | \
7487 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7488 enable_decimal_float=yes
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7492 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7493 enable_decimal_float=no
7495 esac
7500 # x86's use BID format instead of DPD
7501 case x$enable_decimal_float in
7502 xyes)
7503 case $target in
7504 i?86*-*-* | x86_64*-*-*)
7505 enable_decimal_float=bid
7508 enable_decimal_float=dpd
7510 esac
7511 default_decimal_float=$enable_decimal_float
7513 xno)
7514 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7515 # dependency on libdecnumber.
7516 default_decimal_float=dpd
7518 esac
7523 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7525 cat >>confdefs.h <<_ACEOF
7526 #define ENABLE_DECIMAL_FLOAT $dfp
7527 _ACEOF
7530 # Use default_decimal_float for dependency.
7531 enable_decimal_float=$default_decimal_float
7533 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7535 cat >>confdefs.h <<_ACEOF
7536 #define ENABLE_DECIMAL_BID_FORMAT $bid
7537 _ACEOF
7540 # Enable C extension for fixed-point arithmetic.
7541 # Check whether --enable-fixed-point was given.
7542 if test "${enable_fixed_point+set}" = set; then :
7543 enableval=$enable_fixed_point;
7544 else
7546 case $target in
7547 arm*)
7548 enable_fixed_point=yes
7551 mips*-*-*)
7552 enable_fixed_point=yes
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7556 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7557 enable_fixed_point=no
7559 esac
7565 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7567 cat >>confdefs.h <<_ACEOF
7568 #define ENABLE_FIXED_POINT $fixedpoint
7569 _ACEOF
7572 # Enable threads
7573 # Pass with no value to take the default
7574 # Pass with a value to specify a thread package
7575 # Check whether --enable-threads was given.
7576 if test "${enable_threads+set}" = set; then :
7577 enableval=$enable_threads;
7578 else
7579 enable_threads=''
7583 # Check whether --enable-tls was given.
7584 if test "${enable_tls+set}" = set; then :
7585 enableval=$enable_tls;
7586 case $enable_tls in
7587 yes | no) ;;
7588 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7589 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7590 esac
7592 else
7593 enable_tls=''
7597 # Check whether --enable-vtable-verify was given.
7598 if test "${enable_vtable_verify+set}" = set; then :
7599 enableval=$enable_vtable_verify;
7600 else
7601 enable_vtable_verify=no
7604 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7606 cat >>confdefs.h <<_ACEOF
7607 #define ENABLE_VTABLE_VERIFY $vtable_verify
7608 _ACEOF
7611 # Check whether --enable-objc-gc was given.
7612 if test "${enable_objc_gc+set}" = set; then :
7613 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7614 objc_boehm_gc=''
7615 else
7616 objc_boehm_gc=1
7618 else
7619 objc_boehm_gc=''
7624 # Check whether --with-dwarf2 was given.
7625 if test "${with_dwarf2+set}" = set; then :
7626 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7627 else
7628 dwarf2=no
7632 # Check whether --enable-shared was given.
7633 if test "${enable_shared+set}" = set; then :
7634 enableval=$enable_shared;
7635 case $enable_shared in
7636 yes | no) ;;
7638 enable_shared=no
7639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7640 for pkg in $enableval; do
7641 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7642 enable_shared=yes
7644 done
7645 IFS="$ac_save_ifs"
7647 esac
7649 else
7650 enable_shared=yes
7656 # Check whether --with-specs was given.
7657 if test "${with_specs+set}" = set; then :
7658 withval=$with_specs; CONFIGURE_SPECS=$withval
7659 else
7660 CONFIGURE_SPECS=
7668 # Check whether --with-pkgversion was given.
7669 if test "${with_pkgversion+set}" = set; then :
7670 withval=$with_pkgversion; case "$withval" in
7671 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7672 no) PKGVERSION= ;;
7673 *) PKGVERSION="($withval) " ;;
7674 esac
7675 else
7676 PKGVERSION="(GCC) "
7684 # Check whether --with-bugurl was given.
7685 if test "${with_bugurl+set}" = set; then :
7686 withval=$with_bugurl; case "$withval" in
7687 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7688 no) BUGURL=
7690 *) BUGURL="$withval"
7692 esac
7693 else
7694 BUGURL="http://gcc.gnu.org/bugs.html"
7698 case ${BUGURL} in
7700 REPORT_BUGS_TO=
7701 REPORT_BUGS_TEXI=
7704 REPORT_BUGS_TO="<$BUGURL>"
7705 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7707 esac;
7712 # Sanity check enable_languages in case someone does not run the toplevel
7713 # configure # script.
7714 # Check whether --enable-languages was given.
7715 if test "${enable_languages+set}" = set; then :
7716 enableval=$enable_languages; case ,${enable_languages}, in
7717 ,,|,yes,)
7718 # go safe -- we cannot be much sure without the toplevel
7719 # configure's
7720 # analysis of which target libs are present and usable
7721 enable_languages=c
7723 *,all,*)
7724 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7726 *,c,*)
7729 enable_languages=c,${enable_languages}
7731 esac
7732 else
7733 enable_languages=c
7737 if test x"$enable_as_accelerator_for" != x; then
7739 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7741 enable_as_accelerator=yes
7742 case "${target}" in
7743 *-intelmicemul-*)
7744 # In this case we expect offload compiler to be built as native, so we
7745 # need to rename the driver to avoid clashes with host's drivers.
7746 program_transform_name="s&^&${target}-&" ;;
7747 esac
7748 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7749 program_transform_name=`echo $program_transform_name | sed $sedscript`
7750 accel_dir_suffix=/accel/${target_noncanonical}
7751 real_target_noncanonical=${enable_as_accelerator_for}
7757 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7758 tgt=`echo $tgt | sed 's/=.*//'`
7760 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7761 enable_hsa=1
7762 else
7763 enable_offloading=1
7766 if test x"$offload_targets" = x; then
7767 offload_targets=$tgt
7768 else
7769 offload_targets="$offload_targets,$tgt"
7771 done
7773 cat >>confdefs.h <<_ACEOF
7774 #define OFFLOAD_TARGETS "$offload_targets"
7775 _ACEOF
7777 if test x"$enable_offloading" != x; then
7779 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7781 else
7783 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7787 if test x"$enable_hsa" = x1 ; then
7789 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7794 # Check whether --with-multilib-list was given.
7795 if test "${with_multilib_list+set}" = set; then :
7796 withval=$with_multilib_list; :
7797 else
7798 with_multilib_list=default
7802 # -------------------------
7803 # Checks for other programs
7804 # -------------------------
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7807 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7808 set x ${MAKE-make}
7809 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7810 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 cat >conftest.make <<\_ACEOF
7814 SHELL = /bin/sh
7815 all:
7816 @echo '@@@%%%=$(MAKE)=@@@%%%'
7817 _ACEOF
7818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7819 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7820 *@@@%%%=?*=@@@%%%*)
7821 eval ac_cv_prog_make_${ac_make}_set=yes;;
7823 eval ac_cv_prog_make_${ac_make}_set=no;;
7824 esac
7825 rm -f conftest.make
7827 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7829 $as_echo "yes" >&6; }
7830 SET_MAKE=
7831 else
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 SET_MAKE="MAKE=${MAKE-make}"
7838 # Find some useful tools
7839 for ac_prog in gawk mawk nawk awk
7841 # Extract the first word of "$ac_prog", so it can be a program name with args.
7842 set dummy $ac_prog; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_AWK+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$AWK"; then
7849 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_AWK="$ac_prog"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7864 IFS=$as_save_IFS
7868 AWK=$ac_cv_prog_AWK
7869 if test -n "$AWK"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7871 $as_echo "$AWK" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7878 test -n "$AWK" && break
7879 done
7881 # We need awk to create options.c and options.h.
7882 # Bail out if it's missing.
7883 case ${AWK} in
7884 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7885 esac
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7888 $as_echo_n "checking whether ln -s works... " >&6; }
7889 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 rm -f conftestdata_t
7893 echo >conftestdata_f
7894 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7895 then
7896 gcc_cv_prog_LN_S="ln -s"
7897 else
7898 if ln conftestdata_f conftestdata_t 2>/dev/null
7899 then
7900 gcc_cv_prog_LN_S=ln
7901 else
7902 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7903 then
7904 gcc_cv_prog_LN_S="cp -p"
7905 else
7906 gcc_cv_prog_LN_S=cp
7910 rm -f conftestdata_f conftestdata_t
7913 LN_S="$gcc_cv_prog_LN_S"
7914 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7916 $as_echo "yes" >&6; }
7917 else
7918 if test "$gcc_cv_prog_LN_S" = "ln"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7920 $as_echo "no, using ln" >&6; }
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7923 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7928 $as_echo_n "checking whether ln works... " >&6; }
7929 if test "${acx_cv_prog_LN+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 rm -f conftestdata_t
7933 echo >conftestdata_f
7934 if ln conftestdata_f conftestdata_t 2>/dev/null
7935 then
7936 acx_cv_prog_LN=ln
7937 else
7938 acx_cv_prog_LN=no
7940 rm -f conftestdata_f conftestdata_t
7943 if test $acx_cv_prog_LN = no; then
7944 LN="$LN_S"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7946 $as_echo "no, using $LN" >&6; }
7947 else
7948 LN="$acx_cv_prog_LN"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950 $as_echo "yes" >&6; }
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$RANLIB"; then
7962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7975 done
7976 done
7977 IFS=$as_save_IFS
7981 RANLIB=$ac_cv_prog_RANLIB
7982 if test -n "$RANLIB"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7984 $as_echo "$RANLIB" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7992 if test -z "$ac_cv_prog_RANLIB"; then
7993 ac_ct_RANLIB=$RANLIB
7994 # Extract the first word of "ranlib", so it can be a program name with args.
7995 set dummy ranlib; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 if test -n "$ac_ct_RANLIB"; then
8002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_ac_ct_RANLIB="ranlib"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8015 done
8016 done
8017 IFS=$as_save_IFS
8021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8022 if test -n "$ac_ct_RANLIB"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8024 $as_echo "$ac_ct_RANLIB" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8030 if test "x$ac_ct_RANLIB" = x; then
8031 RANLIB=":"
8032 else
8033 case $cross_compiling:$ac_tool_warned in
8034 yes:)
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8037 ac_tool_warned=yes ;;
8038 esac
8039 RANLIB=$ac_ct_RANLIB
8041 else
8042 RANLIB="$ac_cv_prog_RANLIB"
8045 ranlib_flags=""
8048 # Find a good install program. We prefer a C program (faster),
8049 # so one script is as good as another. But avoid the broken or
8050 # incompatible versions:
8051 # SysV /etc/install, /usr/sbin/install
8052 # SunOS /usr/etc/install
8053 # IRIX /sbin/install
8054 # AIX /bin/install
8055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8057 # ./install, which can be erroneously created by make from ./install.sh.
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8059 $as_echo_n "checking for a BSD compatible install... " >&6; }
8060 if test -z "$INSTALL"; then
8061 if test "${ac_cv_path_install+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8065 for ac_dir in $PATH; do
8066 # Account for people who put trailing slashes in PATH elements.
8067 case "$ac_dir/" in
8068 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8070 # OSF1 and SCO ODT 3.0 have their own names for install.
8071 for ac_prog in ginstall scoinst install; do
8072 if test -f $ac_dir/$ac_prog; then
8073 if test $ac_prog = install &&
8074 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8075 # AIX install. It has an incompatible calling convention.
8076 # OSF/1 installbsd also uses dspmsg, but is usable.
8078 else
8079 ac_cv_path_install="$ac_dir/$ac_prog -c"
8080 break 2
8083 done
8085 esac
8086 done
8087 IFS="$ac_save_IFS"
8090 if test "${ac_cv_path_install+set}" = set; then
8091 INSTALL="$ac_cv_path_install"
8092 else
8093 # As a last resort, use the slow shell script. We don't cache a
8094 # path for INSTALL within a source directory, because that will
8095 # break other packages using the cache if that directory is
8096 # removed, or if the path is relative.
8097 INSTALL="$ac_install_sh"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8101 $as_echo "$INSTALL" >&6; }
8103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8104 # It thinks the first close brace ends the variable substitution.
8105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8110 # See if cmp has --ignore-initial.
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8112 $as_echo_n "checking for cmp's capabilities... " >&6; }
8113 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 echo abfoo >t1
8117 echo cdfoo >t2
8118 gcc_cv_prog_cmp_skip=slowcompare
8119 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8120 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8122 else
8123 gcc_cv_prog_cmp_skip=gnucompare
8126 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8127 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8128 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8130 else
8131 gcc_cv_prog_cmp_skip=fastcompare
8135 rm t1 t2
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8139 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8140 make_compare_target=$gcc_cv_prog_cmp_skip
8144 # See if we have the mktemp command.
8145 # Extract the first word of "mktemp", so it can be a program name with args.
8146 set dummy mktemp; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$have_mktemp_command"; then
8153 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_have_mktemp_command="yes"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8166 done
8167 done
8168 IFS=$as_save_IFS
8170 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8173 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8174 if test -n "$have_mktemp_command"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8176 $as_echo "$have_mktemp_command" >&6; }
8177 else
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8184 # See if makeinfo has been installed and is modern enough
8185 # that we can use it.
8187 # Extract the first word of "makeinfo", so it can be a program name with args.
8188 set dummy makeinfo; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 if test -n "$MAKEINFO"; then
8195 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_prog_MAKEINFO="makeinfo"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8210 IFS=$as_save_IFS
8214 MAKEINFO=$ac_cv_prog_MAKEINFO
8215 if test -n "$MAKEINFO"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8217 $as_echo "$MAKEINFO" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8224 if test -n "$MAKEINFO"; then
8225 # Found it, now check the version.
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8227 $as_echo_n "checking for modern makeinfo... " >&6; }
8228 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8232 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8234 case $ac_prog_version in
8235 '') gcc_cv_prog_makeinfo_modern=no;;
8236 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8237 *) gcc_cv_prog_makeinfo_modern=no;;
8238 esac
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8242 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8243 else
8244 gcc_cv_prog_makeinfo_modern=no
8246 if test $gcc_cv_prog_makeinfo_modern = no; then
8247 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8250 if test $gcc_cv_prog_makeinfo_modern = no; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8252 *** Makeinfo is missing or too old.
8253 *** Info documentation will not be built." >&5
8254 $as_echo "$as_me: WARNING:
8255 *** Makeinfo is missing or too old.
8256 *** Info documentation will not be built." >&2;}
8257 BUILD_INFO=
8258 else
8259 BUILD_INFO=info
8263 # Is pod2man recent enough to regenerate manpages?
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8265 $as_echo_n "checking for recent Pod::Man... " >&6; }
8266 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8268 $as_echo "yes" >&6; }
8269 GENERATED_MANPAGES=generated-manpages
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 GENERATED_MANPAGES=
8277 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8279 # How about lex?
8280 for ac_prog in flex
8282 # Extract the first word of "$ac_prog", so it can be a program name with args.
8283 set dummy $ac_prog; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if test "${ac_cv_prog_FLEX+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$FLEX"; then
8290 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_FLEX="$ac_prog"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8303 done
8304 done
8305 IFS=$as_save_IFS
8309 FLEX=$ac_cv_prog_FLEX
8310 if test -n "$FLEX"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8312 $as_echo "$FLEX" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8319 test -n "$FLEX" && break
8320 done
8321 test -n "$FLEX" || FLEX="$MISSING flex"
8324 # Bison?
8325 for ac_prog in bison
8327 # Extract the first word of "$ac_prog", so it can be a program name with args.
8328 set dummy $ac_prog; ac_word=$2
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 $as_echo_n "checking for $ac_word... " >&6; }
8331 if test "${ac_cv_prog_BISON+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 if test -n "$BISON"; then
8335 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8344 ac_cv_prog_BISON="$ac_prog"
8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346 break 2
8348 done
8349 done
8350 IFS=$as_save_IFS
8354 BISON=$ac_cv_prog_BISON
8355 if test -n "$BISON"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8357 $as_echo "$BISON" >&6; }
8358 else
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8364 test -n "$BISON" && break
8365 done
8366 test -n "$BISON" || BISON="$MISSING bison"
8369 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8370 # check for build == host before using them.
8372 # NM
8373 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8374 && test -d ../binutils ; then
8375 NM='${objdir}/../binutils/nm-new'
8376 else
8377 # Extract the first word of "nm", so it can be a program name with args.
8378 set dummy nm; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_NM+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$NM"; then
8385 ac_cv_prog_NM="$NM" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_NM="nm"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8402 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8405 NM=$ac_cv_prog_NM
8406 if test -n "$NM"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8408 $as_echo "$NM" >&6; }
8409 else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8417 # AR
8418 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8419 && test -d ../binutils ; then
8420 AR='${objdir}/../binutils/ar'
8421 else
8422 # Extract the first word of "ar", so it can be a program name with args.
8423 set dummy ar; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if test "${ac_cv_prog_AR+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$AR"; then
8430 ac_cv_prog_AR="$AR" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8439 ac_cv_prog_AR="ar"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8447 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8450 AR=$ac_cv_prog_AR
8451 if test -n "$AR"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8453 $as_echo "$AR" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8462 # The jit documentation looks better if built with sphinx, but can be
8463 # built with texinfo if sphinx is not available.
8464 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8465 # Extract the first word of "sphinx-build", so it can be a program name with args.
8466 set dummy sphinx-build; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 if test -n "$doc_build_sys"; then
8473 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8482 ac_cv_prog_doc_build_sys="sphinx"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8486 done
8487 done
8488 IFS=$as_save_IFS
8490 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8493 doc_build_sys=$ac_cv_prog_doc_build_sys
8494 if test -n "$doc_build_sys"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8496 $as_echo "$doc_build_sys" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8504 # --------------------
8505 # Checks for C headers
8506 # --------------------
8508 # Need to reject headers which give warnings, so that the -Werror bootstrap
8509 # works later. *sigh* This needs to come before all header checks.
8511 ac_c_preproc_warn_flag=yes
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8514 $as_echo_n "checking for ANSI C header files... " >&6; }
8515 if test "${ac_cv_header_stdc+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520 #include <stdlib.h>
8521 #include <stdarg.h>
8522 #include <string.h>
8523 #include <float.h>
8526 main ()
8530 return 0;
8532 _ACEOF
8533 if ac_fn_cxx_try_compile "$LINENO"; then :
8534 ac_cv_header_stdc=yes
8535 else
8536 ac_cv_header_stdc=no
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 if test $ac_cv_header_stdc = yes; then
8541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8544 #include <string.h>
8546 _ACEOF
8547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8548 $EGREP "memchr" >/dev/null 2>&1; then :
8550 else
8551 ac_cv_header_stdc=no
8553 rm -f conftest*
8557 if test $ac_cv_header_stdc = yes; then
8558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 #include <stdlib.h>
8563 _ACEOF
8564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8565 $EGREP "free" >/dev/null 2>&1; then :
8567 else
8568 ac_cv_header_stdc=no
8570 rm -f conftest*
8574 if test $ac_cv_header_stdc = yes; then
8575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8576 if test "$cross_compiling" = yes; then :
8578 else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <ctype.h>
8582 #include <stdlib.h>
8583 #if ((' ' & 0x0FF) == 0x020)
8584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8586 #else
8587 # define ISLOWER(c) \
8588 (('a' <= (c) && (c) <= 'i') \
8589 || ('j' <= (c) && (c) <= 'r') \
8590 || ('s' <= (c) && (c) <= 'z'))
8591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8592 #endif
8594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8596 main ()
8598 int i;
8599 for (i = 0; i < 256; i++)
8600 if (XOR (islower (i), ISLOWER (i))
8601 || toupper (i) != TOUPPER (i))
8602 return 2;
8603 return 0;
8605 _ACEOF
8606 if ac_fn_cxx_try_run "$LINENO"; then :
8608 else
8609 ac_cv_header_stdc=no
8611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8612 conftest.$ac_objext conftest.beam conftest.$ac_ext
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8618 $as_echo "$ac_cv_header_stdc" >&6; }
8619 if test $ac_cv_header_stdc = yes; then
8621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8626 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8627 if test "${ac_cv_header_time+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <sys/types.h>
8633 #include <sys/time.h>
8634 #include <time.h>
8637 main ()
8639 if ((struct tm *) 0)
8640 return 0;
8642 return 0;
8644 _ACEOF
8645 if ac_fn_cxx_try_compile "$LINENO"; then :
8646 ac_cv_header_time=yes
8647 else
8648 ac_cv_header_time=no
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8653 $as_echo "$ac_cv_header_time" >&6; }
8654 if test $ac_cv_header_time = yes; then
8656 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8661 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8662 if test "${gcc_cv_header_string+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <string.h>
8668 #include <strings.h>
8670 main ()
8674 return 0;
8676 _ACEOF
8677 if ac_fn_cxx_try_compile "$LINENO"; then :
8678 gcc_cv_header_string=yes
8679 else
8680 gcc_cv_header_string=no
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8685 $as_echo "$gcc_cv_header_string" >&6; }
8686 if test $gcc_cv_header_string = yes; then
8688 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8693 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8694 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 #include <sys/types.h>
8700 #include <sys/wait.h>
8701 #ifndef WEXITSTATUS
8702 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8703 #endif
8704 #ifndef WIFEXITED
8705 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8706 #endif
8709 main ()
8711 int s;
8712 wait (&s);
8713 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8715 return 0;
8717 _ACEOF
8718 if ac_fn_cxx_try_compile "$LINENO"; then :
8719 ac_cv_header_sys_wait_h=yes
8720 else
8721 ac_cv_header_sys_wait_h=no
8723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8726 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8727 if test $ac_cv_header_sys_wait_h = yes; then
8729 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8734 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8735 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8740 #include <sys/types.h>
8741 #include <termios.h>
8742 #ifdef TIOCGWINSZ
8744 #endif
8746 _ACEOF
8747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8748 $EGREP "yes" >/dev/null 2>&1; then :
8749 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8750 else
8751 ac_cv_sys_tiocgwinsz_in_termios_h=no
8753 rm -f conftest*
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8757 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8759 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8761 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8762 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 #include <sys/types.h>
8768 #include <sys/ioctl.h>
8769 #ifdef TIOCGWINSZ
8771 #endif
8773 _ACEOF
8774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8775 $EGREP "yes" >/dev/null 2>&1; then :
8776 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8777 else
8778 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8780 rm -f conftest*
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8784 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8786 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8788 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8793 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8794 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8795 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8796 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8797 do :
8798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8799 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8800 eval as_val=\$$as_ac_Header
8801 if test "x$as_val" = x""yes; then :
8802 cat >>confdefs.h <<_ACEOF
8803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 _ACEOF
8807 done
8810 # Check for thread headers.
8811 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8812 if test "x$ac_cv_header_thread_h" = x""yes; then :
8813 have_thread_h=yes
8814 else
8815 have_thread_h=
8818 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8819 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8820 have_pthread_h=yes
8821 else
8822 have_pthread_h=
8826 # These tests can't be done till we know if we have limits.h.
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8828 $as_echo_n "checking for CHAR_BIT... " >&6; }
8829 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #ifdef HAVE_LIMITS_H
8835 #include <limits.h>
8836 #endif
8837 #ifdef CHAR_BIT
8838 found
8839 #endif
8840 _ACEOF
8841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8842 $EGREP "found" >/dev/null 2>&1; then :
8843 gcc_cv_decl_char_bit=yes
8844 else
8845 gcc_cv_decl_char_bit=no
8847 rm -f conftest*
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8852 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8853 if test $gcc_cv_decl_char_bit = no; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8855 $as_echo_n "checking number of bits in a byte... " >&6; }
8856 if test "${gcc_cv_c_nbby+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8860 gcc_cv_c_nbby=
8861 while test $i -lt 65; do
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8866 main ()
8868 switch(0) {
8869 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8870 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8873 return 0;
8875 _ACEOF
8876 if ac_fn_cxx_try_compile "$LINENO"; then :
8877 gcc_cv_c_nbby=$i; break
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 i=`expr $i + 1`
8881 done
8882 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8886 $as_echo "$gcc_cv_c_nbby" >&6; }
8887 if test $gcc_cv_c_nbby = failed; then
8888 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8889 else
8891 cat >>confdefs.h <<_ACEOF
8892 #define CHAR_BIT $gcc_cv_c_nbby
8893 _ACEOF
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8898 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8899 if test "${ac_cv_c_bigendian+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 ac_cv_c_bigendian=unknown
8903 # See if we're dealing with a universal compiler.
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #ifndef __APPLE_CC__
8907 not a universal capable compiler
8908 #endif
8909 typedef int dummy;
8911 _ACEOF
8912 if ac_fn_cxx_try_compile "$LINENO"; then :
8914 # Check for potential -arch flags. It is not universal unless
8915 # there are at least two -arch flags with different values.
8916 ac_arch=
8917 ac_prev=
8918 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8919 if test -n "$ac_prev"; then
8920 case $ac_word in
8921 i?86 | x86_64 | ppc | ppc64)
8922 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8923 ac_arch=$ac_word
8924 else
8925 ac_cv_c_bigendian=universal
8926 break
8929 esac
8930 ac_prev=
8931 elif test "x$ac_word" = "x-arch"; then
8932 ac_prev=arch
8934 done
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 if test $ac_cv_c_bigendian = unknown; then
8938 # See if sys/param.h defines the BYTE_ORDER macro.
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8941 #include <sys/types.h>
8942 #include <sys/param.h>
8945 main ()
8947 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8948 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8949 && LITTLE_ENDIAN)
8950 bogus endian macros
8951 #endif
8954 return 0;
8956 _ACEOF
8957 if ac_fn_cxx_try_compile "$LINENO"; then :
8958 # It does; now see whether it defined to BIG_ENDIAN or not.
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 BYTE_ORDER != BIG_ENDIAN
8968 not big endian
8969 #endif
8972 return 0;
8974 _ACEOF
8975 if ac_fn_cxx_try_compile "$LINENO"; then :
8976 ac_cv_c_bigendian=yes
8977 else
8978 ac_cv_c_bigendian=no
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 if test $ac_cv_c_bigendian = unknown; then
8985 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #include <limits.h>
8991 main ()
8993 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8994 bogus endian macros
8995 #endif
8998 return 0;
9000 _ACEOF
9001 if ac_fn_cxx_try_compile "$LINENO"; then :
9002 # It does; now see whether it defined to _BIG_ENDIAN or not.
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 #include <limits.h>
9008 main ()
9010 #ifndef _BIG_ENDIAN
9011 not big endian
9012 #endif
9015 return 0;
9017 _ACEOF
9018 if ac_fn_cxx_try_compile "$LINENO"; then :
9019 ac_cv_c_bigendian=yes
9020 else
9021 ac_cv_c_bigendian=no
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 if test $ac_cv_c_bigendian = unknown; then
9028 # Compile a test program.
9029 if test "$cross_compiling" = yes; then :
9030 # Try to guess by grepping values from an object file.
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033 short int ascii_mm[] =
9034 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9035 short int ascii_ii[] =
9036 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9037 int use_ascii (int i) {
9038 return ascii_mm[i] + ascii_ii[i];
9040 short int ebcdic_ii[] =
9041 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9042 short int ebcdic_mm[] =
9043 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9044 int use_ebcdic (int i) {
9045 return ebcdic_mm[i] + ebcdic_ii[i];
9047 extern int foo;
9050 main ()
9052 return use_ascii (foo) == use_ebcdic (foo);
9054 return 0;
9056 _ACEOF
9057 if ac_fn_cxx_try_compile "$LINENO"; then :
9058 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9059 ac_cv_c_bigendian=yes
9061 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9062 if test "$ac_cv_c_bigendian" = unknown; then
9063 ac_cv_c_bigendian=no
9064 else
9065 # finding both strings is unlikely to happen, but who knows?
9066 ac_cv_c_bigendian=unknown
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 else
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 $ac_includes_default
9076 main ()
9079 /* Are we little or big endian? From Harbison&Steele. */
9080 union
9082 long int l;
9083 char c[sizeof (long int)];
9084 } u;
9085 u.l = 1;
9086 return u.c[sizeof (long int) - 1] == 1;
9089 return 0;
9091 _ACEOF
9092 if ac_fn_cxx_try_run "$LINENO"; then :
9093 ac_cv_c_bigendian=no
9094 else
9095 ac_cv_c_bigendian=yes
9097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9098 conftest.$ac_objext conftest.beam conftest.$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9104 $as_echo "$ac_cv_c_bigendian" >&6; }
9105 case $ac_cv_c_bigendian in #(
9106 yes)
9107 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9108 ;; #(
9110 ;; #(
9111 universal)
9113 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9115 ;; #(
9117 as_fn_error "unknown endianness
9118 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9119 esac
9122 # ----------------------
9123 # Checks for C++ headers
9124 # ----------------------
9126 ac_ext=cpp
9127 ac_cpp='$CXXCPP $CPPFLAGS'
9128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9132 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9133 if test -z "$CXXCPP"; then
9134 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 # Double quotes because CXXCPP needs to be expanded
9138 for CXXCPP in "$CXX -E" "/lib/cpp"
9140 ac_preproc_ok=false
9141 for ac_cxx_preproc_warn_flag in '' yes
9143 # Use a header file that comes with gcc, so configuring glibc
9144 # with a fresh cross-compiler works.
9145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9146 # <limits.h> exists even on freestanding compilers.
9147 # On the NeXT, cc -E runs the code through the compiler's parser,
9148 # not just through cpp. "Syntax error" is here to catch this case.
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 #ifdef __STDC__
9152 # include <limits.h>
9153 #else
9154 # include <assert.h>
9155 #endif
9156 Syntax error
9157 _ACEOF
9158 if ac_fn_cxx_try_cpp "$LINENO"; then :
9160 else
9161 # Broken: fails on valid input.
9162 continue
9164 rm -f conftest.err conftest.$ac_ext
9166 # OK, works on sane cases. Now check whether nonexistent headers
9167 # can be detected and how.
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170 #include <ac_nonexistent.h>
9171 _ACEOF
9172 if ac_fn_cxx_try_cpp "$LINENO"; then :
9173 # Broken: success on invalid input.
9174 continue
9175 else
9176 # Passes both tests.
9177 ac_preproc_ok=:
9178 break
9180 rm -f conftest.err conftest.$ac_ext
9182 done
9183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9184 rm -f conftest.err conftest.$ac_ext
9185 if $ac_preproc_ok; then :
9186 break
9189 done
9190 ac_cv_prog_CXXCPP=$CXXCPP
9193 CXXCPP=$ac_cv_prog_CXXCPP
9194 else
9195 ac_cv_prog_CXXCPP=$CXXCPP
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9198 $as_echo "$CXXCPP" >&6; }
9199 ac_preproc_ok=false
9200 for ac_cxx_preproc_warn_flag in '' yes
9202 # Use a header file that comes with gcc, so configuring glibc
9203 # with a fresh cross-compiler works.
9204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9205 # <limits.h> exists even on freestanding compilers.
9206 # On the NeXT, cc -E runs the code through the compiler's parser,
9207 # not just through cpp. "Syntax error" is here to catch this case.
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 #ifdef __STDC__
9211 # include <limits.h>
9212 #else
9213 # include <assert.h>
9214 #endif
9215 Syntax error
9216 _ACEOF
9217 if ac_fn_cxx_try_cpp "$LINENO"; then :
9219 else
9220 # Broken: fails on valid input.
9221 continue
9223 rm -f conftest.err conftest.$ac_ext
9225 # OK, works on sane cases. Now check whether nonexistent headers
9226 # can be detected and how.
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 #include <ac_nonexistent.h>
9230 _ACEOF
9231 if ac_fn_cxx_try_cpp "$LINENO"; then :
9232 # Broken: success on invalid input.
9233 continue
9234 else
9235 # Passes both tests.
9236 ac_preproc_ok=:
9237 break
9239 rm -f conftest.err conftest.$ac_ext
9241 done
9242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9243 rm -f conftest.err conftest.$ac_ext
9244 if $ac_preproc_ok; then :
9246 else
9247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9250 See \`config.log' for more details." >&5
9251 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9252 See \`config.log' for more details." >&2;}; }
9255 ac_ext=cpp
9256 ac_cpp='$CXXCPP $CPPFLAGS'
9257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9262 for ac_header in unordered_map
9263 do :
9264 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9265 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_UNORDERED_MAP 1
9268 _ACEOF
9271 done
9273 for ac_header in tr1/unordered_map
9274 do :
9275 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9276 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9277 cat >>confdefs.h <<_ACEOF
9278 #define HAVE_TR1_UNORDERED_MAP 1
9279 _ACEOF
9282 done
9284 for ac_header in ext/hash_map
9285 do :
9286 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9287 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9288 cat >>confdefs.h <<_ACEOF
9289 #define HAVE_EXT_HASH_MAP 1
9290 _ACEOF
9293 done
9296 # --------
9297 # Dependency checking.
9298 # --------
9300 rm -rf .tst 2>/dev/null
9301 mkdir .tst 2>/dev/null
9302 if test -d .tst; then
9303 am__leading_dot=.
9304 else
9305 am__leading_dot=_
9307 rmdir .tst 2>/dev/null
9309 DEPDIR="${am__leading_dot}deps"
9311 ac_config_commands="$ac_config_commands depdir"
9314 ac_config_commands="$ac_config_commands gccdepdir"
9317 depcc="$CXX" am_compiler_list=
9319 am_depcomp=$ac_aux_dir/depcomp
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9321 $as_echo_n "checking dependency style of $depcc... " >&6; }
9322 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 if test -f "$am_depcomp"; then
9326 # We make a subdir and do the tests there. Otherwise we can end up
9327 # making bogus files that we don't know about and never remove. For
9328 # instance it was reported that on HP-UX the gcc test will end up
9329 # making a dummy file named `D' -- because `-MD' means `put the output
9330 # in D'.
9331 mkdir conftest.dir
9332 # Copy depcomp to subdir because otherwise we won't find it if we're
9333 # using a relative directory.
9334 cp "$am_depcomp" conftest.dir
9335 cd conftest.dir
9336 # We will build objects and dependencies in a subdirectory because
9337 # it helps to detect inapplicable dependency modes. For instance
9338 # both Tru64's cc and ICC support -MD to output dependencies as a
9339 # side effect of compilation, but ICC will put the dependencies in
9340 # the current directory while Tru64 will put them in the object
9341 # directory.
9342 mkdir sub
9344 am_cv_CXX_dependencies_compiler_type=none
9345 if test "$am_compiler_list" = ""; then
9346 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9348 for depmode in $am_compiler_list; do
9349 if test $depmode = none; then break; fi
9351 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9352 # Setup a source with many dependencies, because some compilers
9353 # like to wrap large dependency lists on column 80 (with \), and
9354 # we should not choose a depcomp mode which is confused by this.
9356 # We need to recreate these files for each test, as the compiler may
9357 # overwrite some of them when testing with obscure command lines.
9358 # This happens at least with the AIX C compiler.
9359 : > sub/conftest.c
9360 for i in 1 2 3 4 5 6; do
9361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9362 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9363 # Solaris 8's {/usr,}/bin/sh.
9364 touch sub/conftst$i.h
9365 done
9366 echo "include sub/conftest.Po" > confmf
9368 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9369 # mode. It turns out that the SunPro C++ compiler does not properly
9370 # handle `-M -o', and we need to detect this.
9371 depcmd="depmode=$depmode \
9372 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9374 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9375 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9376 if env $depcmd > conftest.err 2>&1 &&
9377 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9378 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9379 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9380 # icc doesn't choke on unknown options, it will just issue warnings
9381 # or remarks (even with -Werror). So we grep stderr for any message
9382 # that says an option was ignored or not supported.
9383 # When given -MP, icc 7.0 and 7.1 complain thusly:
9384 # icc: Command line warning: ignoring option '-M'; no argument required
9385 # The diagnosis changed in icc 8.0:
9386 # icc: Command line remark: option '-MP' not supported
9387 if (grep 'ignoring option' conftest.err ||
9388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9389 am_cv_CXX_dependencies_compiler_type=$depmode
9390 $as_echo "$as_me:$LINENO: success" >&5
9391 break
9394 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9395 sed -e 's/^/| /' < conftest.err >&5
9396 done
9398 cd ..
9399 rm -rf conftest.dir
9400 else
9401 am_cv_CXX_dependencies_compiler_type=none
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9406 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9407 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9408 then as_fn_error "no usable dependency style found" "$LINENO" 5
9409 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9414 # --------
9415 # UNSORTED
9416 # --------
9419 # These libraries may be used by collect2.
9420 # We may need a special search path to get them linked.
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9422 $as_echo_n "checking for collect2 libraries... " >&6; }
9423 if test "${gcc_cv_collect2_libs+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 save_LIBS="$LIBS"
9427 for libs in '' -lld -lmld \
9428 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9429 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9431 LIBS="$libs"
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9435 /* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9438 #ifdef __cplusplus
9439 extern "C"
9440 #endif
9441 char ldopen ();
9443 main ()
9445 return ldopen ();
9447 return 0;
9449 _ACEOF
9450 if ac_fn_cxx_try_link "$LINENO"; then :
9451 gcc_cv_collect2_libs="$libs"; break
9453 rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455 done
9456 LIBS="$save_LIBS"
9457 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9460 $as_echo "$gcc_cv_collect2_libs" >&6; }
9461 case $gcc_cv_collect2_libs in
9462 "none required") ;;
9463 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9464 esac
9467 # When building Ada code on Alpha, we need exc_resume which is usually in
9468 # -lexc. So test for it.
9469 save_LIBS="$LIBS"
9470 LIBS=
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9472 $as_echo_n "checking for library containing exc_resume... " >&6; }
9473 if test "${ac_cv_search_exc_resume+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 ac_func_search_save_LIBS=$LIBS
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char exc_resume ();
9488 main ()
9490 return exc_resume ();
9492 return 0;
9494 _ACEOF
9495 for ac_lib in '' exc; do
9496 if test -z "$ac_lib"; then
9497 ac_res="none required"
9498 else
9499 ac_res=-l$ac_lib
9500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9502 if ac_fn_cxx_try_link "$LINENO"; then :
9503 ac_cv_search_exc_resume=$ac_res
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext
9507 if test "${ac_cv_search_exc_resume+set}" = set; then :
9508 break
9510 done
9511 if test "${ac_cv_search_exc_resume+set}" = set; then :
9513 else
9514 ac_cv_search_exc_resume=no
9516 rm conftest.$ac_ext
9517 LIBS=$ac_func_search_save_LIBS
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9520 $as_echo "$ac_cv_search_exc_resume" >&6; }
9521 ac_res=$ac_cv_search_exc_resume
9522 if test "$ac_res" != no; then :
9523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9527 GNAT_LIBEXC="$LIBS"
9528 LIBS="$save_LIBS"
9531 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9532 save_LIBS="$LIBS"
9533 LIBS=
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9535 $as_echo_n "checking for library containing kstat_open... " >&6; }
9536 if test "${ac_cv_search_kstat_open+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 ac_func_search_save_LIBS=$LIBS
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char kstat_open ();
9551 main ()
9553 return kstat_open ();
9555 return 0;
9557 _ACEOF
9558 for ac_lib in '' kstat; do
9559 if test -z "$ac_lib"; then
9560 ac_res="none required"
9561 else
9562 ac_res=-l$ac_lib
9563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9565 if ac_fn_cxx_try_link "$LINENO"; then :
9566 ac_cv_search_kstat_open=$ac_res
9568 rm -f core conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext
9570 if test "${ac_cv_search_kstat_open+set}" = set; then :
9571 break
9573 done
9574 if test "${ac_cv_search_kstat_open+set}" = set; then :
9576 else
9577 ac_cv_search_kstat_open=no
9579 rm conftest.$ac_ext
9580 LIBS=$ac_func_search_save_LIBS
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9583 $as_echo "$ac_cv_search_kstat_open" >&6; }
9584 ac_res=$ac_cv_search_kstat_open
9585 if test "$ac_res" != no; then :
9586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9590 EXTRA_GCC_LIBS="$LIBS"
9591 LIBS="$save_LIBS"
9594 # Some systems put ldexp and frexp in libm instead of libc; assume
9595 # they're both in the same place. jcf-dump needs them.
9596 save_LIBS="$LIBS"
9597 LIBS=
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9599 $as_echo_n "checking for library containing ldexp... " >&6; }
9600 if test "${ac_cv_search_ldexp+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 ac_func_search_save_LIBS=$LIBS
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9607 /* Override any GCC internal prototype to avoid an error.
9608 Use char because int might match the return type of a GCC
9609 builtin and then its argument prototype would still apply. */
9610 #ifdef __cplusplus
9611 extern "C"
9612 #endif
9613 char ldexp ();
9615 main ()
9617 return ldexp ();
9619 return 0;
9621 _ACEOF
9622 for ac_lib in '' m; do
9623 if test -z "$ac_lib"; then
9624 ac_res="none required"
9625 else
9626 ac_res=-l$ac_lib
9627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9629 if ac_fn_cxx_try_link "$LINENO"; then :
9630 ac_cv_search_ldexp=$ac_res
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext
9634 if test "${ac_cv_search_ldexp+set}" = set; then :
9635 break
9637 done
9638 if test "${ac_cv_search_ldexp+set}" = set; then :
9640 else
9641 ac_cv_search_ldexp=no
9643 rm conftest.$ac_ext
9644 LIBS=$ac_func_search_save_LIBS
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9647 $as_echo "$ac_cv_search_ldexp" >&6; }
9648 ac_res=$ac_cv_search_ldexp
9649 if test "$ac_res" != no; then :
9650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9654 LDEXP_LIB="$LIBS"
9655 LIBS="$save_LIBS"
9658 # Use <inttypes.h> only if it exists,
9659 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9660 # PRId64
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9662 $as_echo_n "checking for inttypes.h... " >&6; }
9663 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 #define __STDC_FORMAT_MACROS
9669 #include <sys/types.h>
9670 #include <inttypes.h>
9672 main ()
9674 intmax_t i = -1;
9675 #ifndef PRId64
9676 choke me
9677 #endif
9679 return 0;
9681 _ACEOF
9682 if ac_fn_cxx_try_compile "$LINENO"; then :
9683 gcc_cv_header_inttypes_h=yes
9684 else
9685 gcc_cv_header_inttypes_h=no
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9691 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9692 if test $gcc_cv_header_inttypes_h = yes; then
9694 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9700 for ac_func in times clock kill getrlimit setrlimit atoq \
9701 popen sysconf strsignal getrusage nl_langinfo \
9702 gettimeofday mbstowcs wcswidth mmap setlocale \
9703 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
9704 do :
9705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9706 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9707 eval as_val=\$$as_ac_var
9708 if test "x$as_val" = x""yes; then :
9709 cat >>confdefs.h <<_ACEOF
9710 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9711 _ACEOF
9714 done
9717 if test x$ac_cv_func_mbstowcs = xyes; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9719 $as_echo_n "checking whether mbstowcs works... " >&6; }
9720 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 if test "$cross_compiling" = yes; then :
9724 gcc_cv_func_mbstowcs_works=yes
9725 else
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <stdlib.h>
9729 int main()
9731 mbstowcs(0, "", 0);
9732 return 0;
9734 _ACEOF
9735 if ac_fn_cxx_try_run "$LINENO"; then :
9736 gcc_cv_func_mbstowcs_works=yes
9737 else
9738 gcc_cv_func_mbstowcs_works=no
9740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9741 conftest.$ac_objext conftest.beam conftest.$ac_ext
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9746 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9747 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9749 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9754 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9755 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9757 else
9759 cat >>confdefs.h <<_ACEOF
9760 #define ssize_t int
9761 _ACEOF
9765 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9766 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9768 else
9770 cat >>confdefs.h <<_ACEOF
9771 #define caddr_t char *
9772 _ACEOF
9778 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9779 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9780 gcc_header_sys_mman_h=yes
9781 else
9782 gcc_header_sys_mman_h=no
9785 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9786 if test "x$ac_cv_func_mmap" = x""yes; then :
9787 gcc_func_mmap=yes
9788 else
9789 gcc_func_mmap=no
9792 if test "$gcc_header_sys_mman_h" != yes \
9793 || test "$gcc_func_mmap" != yes; then
9794 gcc_cv_func_mmap_file=no
9795 gcc_cv_func_mmap_dev_zero=no
9796 gcc_cv_func_mmap_anon=no
9797 else
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9799 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9800 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 # Add a system to this blacklist if
9804 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9805 # memory area containing the same data that you'd get if you applied
9806 # read() to the same fd. The only system known to have a problem here
9807 # is VMS, where text files have record structure.
9808 case "$host_os" in
9809 *vms* | ultrix*)
9810 gcc_cv_func_mmap_file=no ;;
9812 gcc_cv_func_mmap_file=yes;;
9813 esac
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9816 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9818 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9819 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 # Add a system to this blacklist if it has mmap() but /dev/zero
9823 # does not exist, or if mmapping /dev/zero does not give anonymous
9824 # zeroed pages with both the following properties:
9825 # 1. If you map N consecutive pages in with one call, and then
9826 # unmap any subset of those pages, the pages that were not
9827 # explicitly unmapped remain accessible.
9828 # 2. If you map two adjacent blocks of memory and then unmap them
9829 # both at once, they must both go away.
9830 # Systems known to be in this category are Windows (all variants),
9831 # VMS, and Darwin.
9832 case "$host_os" in
9833 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9834 gcc_cv_func_mmap_dev_zero=no ;;
9836 gcc_cv_func_mmap_dev_zero=yes;;
9837 esac
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9840 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9842 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9844 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9845 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9850 #include <sys/types.h>
9851 #include <sys/mman.h>
9852 #include <unistd.h>
9854 #ifndef MAP_ANONYMOUS
9855 #define MAP_ANONYMOUS MAP_ANON
9856 #endif
9859 main ()
9861 int n = MAP_ANONYMOUS;
9863 return 0;
9865 _ACEOF
9866 if ac_fn_cxx_try_compile "$LINENO"; then :
9867 gcc_cv_decl_map_anon=yes
9868 else
9869 gcc_cv_decl_map_anon=no
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9874 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9876 if test $gcc_cv_decl_map_anon = no; then
9877 gcc_cv_func_mmap_anon=no
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9880 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9881 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9885 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9886 # doesn't give anonymous zeroed pages with the same properties listed
9887 # above for use of /dev/zero.
9888 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9889 case "$host_os" in
9890 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9891 gcc_cv_func_mmap_anon=no ;;
9893 gcc_cv_func_mmap_anon=yes;;
9894 esac
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9897 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9901 if test $gcc_cv_func_mmap_file = yes; then
9903 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9906 if test $gcc_cv_func_mmap_dev_zero = yes; then
9908 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9911 if test $gcc_cv_func_mmap_anon = yes; then
9913 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9918 case "${host}" in
9919 *-*-*vms*)
9920 # Under VMS, vfork works very differently than on Unix. The standard test
9921 # won't work, and it isn't easily adaptable. It makes more sense to
9922 # just force it.
9923 ac_cv_func_vfork_works=yes
9925 esac
9926 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9927 if test "x$ac_cv_type_pid_t" = x""yes; then :
9929 else
9931 cat >>confdefs.h <<_ACEOF
9932 #define pid_t int
9933 _ACEOF
9937 for ac_header in vfork.h
9938 do :
9939 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9940 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9941 cat >>confdefs.h <<_ACEOF
9942 #define HAVE_VFORK_H 1
9943 _ACEOF
9946 done
9948 for ac_func in fork vfork
9949 do :
9950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9951 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9952 eval as_val=\$$as_ac_var
9953 if test "x$as_val" = x""yes; then :
9954 cat >>confdefs.h <<_ACEOF
9955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9956 _ACEOF
9959 done
9961 if test "x$ac_cv_func_fork" = xyes; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9963 $as_echo_n "checking for working fork... " >&6; }
9964 if test "${ac_cv_func_fork_works+set}" = set; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 if test "$cross_compiling" = yes; then :
9968 ac_cv_func_fork_works=cross
9969 else
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9972 $ac_includes_default
9974 main ()
9977 /* By Ruediger Kuhlmann. */
9978 return fork () < 0;
9981 return 0;
9983 _ACEOF
9984 if ac_fn_cxx_try_run "$LINENO"; then :
9985 ac_cv_func_fork_works=yes
9986 else
9987 ac_cv_func_fork_works=no
9989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9990 conftest.$ac_objext conftest.beam conftest.$ac_ext
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9995 $as_echo "$ac_cv_func_fork_works" >&6; }
9997 else
9998 ac_cv_func_fork_works=$ac_cv_func_fork
10000 if test "x$ac_cv_func_fork_works" = xcross; then
10001 case $host in
10002 *-*-amigaos* | *-*-msdosdjgpp*)
10003 # Override, as these systems have only a dummy fork() stub
10004 ac_cv_func_fork_works=no
10007 ac_cv_func_fork_works=yes
10009 esac
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10011 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10013 ac_cv_func_vfork_works=$ac_cv_func_vfork
10014 if test "x$ac_cv_func_vfork" = xyes; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10016 $as_echo_n "checking for working vfork... " >&6; }
10017 if test "${ac_cv_func_vfork_works+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 if test "$cross_compiling" = yes; then :
10021 ac_cv_func_vfork_works=cross
10022 else
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 /* Thanks to Paul Eggert for this test. */
10026 $ac_includes_default
10027 #include <sys/wait.h>
10028 #ifdef HAVE_VFORK_H
10029 # include <vfork.h>
10030 #endif
10031 /* On some sparc systems, changes by the child to local and incoming
10032 argument registers are propagated back to the parent. The compiler
10033 is told about this with #include <vfork.h>, but some compilers
10034 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10035 static variable whose address is put into a register that is
10036 clobbered by the vfork. */
10037 static void
10038 #ifdef __cplusplus
10039 sparc_address_test (int arg)
10040 # else
10041 sparc_address_test (arg) int arg;
10042 #endif
10044 static pid_t child;
10045 if (!child) {
10046 child = vfork ();
10047 if (child < 0) {
10048 perror ("vfork");
10049 _exit(2);
10051 if (!child) {
10052 arg = getpid();
10053 write(-1, "", 0);
10054 _exit (arg);
10060 main ()
10062 pid_t parent = getpid ();
10063 pid_t child;
10065 sparc_address_test (0);
10067 child = vfork ();
10069 if (child == 0) {
10070 /* Here is another test for sparc vfork register problems. This
10071 test uses lots of local variables, at least as many local
10072 variables as main has allocated so far including compiler
10073 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10074 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10075 reuse the register of parent for one of the local variables,
10076 since it will think that parent can't possibly be used any more
10077 in this routine. Assigning to the local variable will thus
10078 munge parent in the parent process. */
10079 pid_t
10080 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10081 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10082 /* Convince the compiler that p..p7 are live; otherwise, it might
10083 use the same hardware register for all 8 local variables. */
10084 if (p != p1 || p != p2 || p != p3 || p != p4
10085 || p != p5 || p != p6 || p != p7)
10086 _exit(1);
10088 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10089 from child file descriptors. If the child closes a descriptor
10090 before it execs or exits, this munges the parent's descriptor
10091 as well. Test for this by closing stdout in the child. */
10092 _exit(close(fileno(stdout)) != 0);
10093 } else {
10094 int status;
10095 struct stat st;
10097 while (wait(&status) != child)
10099 return (
10100 /* Was there some problem with vforking? */
10101 child < 0
10103 /* Did the child fail? (This shouldn't happen.) */
10104 || status
10106 /* Did the vfork/compiler bug occur? */
10107 || parent != getpid()
10109 /* Did the file descriptor bug occur? */
10110 || fstat(fileno(stdout), &st) != 0
10114 _ACEOF
10115 if ac_fn_cxx_try_run "$LINENO"; then :
10116 ac_cv_func_vfork_works=yes
10117 else
10118 ac_cv_func_vfork_works=no
10120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10121 conftest.$ac_objext conftest.beam conftest.$ac_ext
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10126 $as_echo "$ac_cv_func_vfork_works" >&6; }
10129 if test "x$ac_cv_func_fork_works" = xcross; then
10130 ac_cv_func_vfork_works=$ac_cv_func_vfork
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10132 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10135 if test "x$ac_cv_func_vfork_works" = xyes; then
10137 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10139 else
10141 $as_echo "#define vfork fork" >>confdefs.h
10144 if test "x$ac_cv_func_fork_works" = xyes; then
10146 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10152 if test "X$prefix" = "XNONE"; then
10153 acl_final_prefix="$ac_default_prefix"
10154 else
10155 acl_final_prefix="$prefix"
10157 if test "X$exec_prefix" = "XNONE"; then
10158 acl_final_exec_prefix='${prefix}'
10159 else
10160 acl_final_exec_prefix="$exec_prefix"
10162 acl_save_prefix="$prefix"
10163 prefix="$acl_final_prefix"
10164 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10165 prefix="$acl_save_prefix"
10168 # Check whether --with-gnu-ld was given.
10169 if test "${with_gnu_ld+set}" = set; then :
10170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10171 else
10172 with_gnu_ld=no
10175 # Prepare PATH_SEPARATOR.
10176 # The user is always right.
10177 if test "${PATH_SEPARATOR+set}" != set; then
10178 echo "#! /bin/sh" >conf$$.sh
10179 echo "exit 0" >>conf$$.sh
10180 chmod +x conf$$.sh
10181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10182 PATH_SEPARATOR=';'
10183 else
10184 PATH_SEPARATOR=:
10186 rm -f conf$$.sh
10188 ac_prog=ld
10189 if test "$GCC" = yes; then
10190 # Check if gcc -print-prog-name=ld gives a path.
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10192 $as_echo_n "checking for ld used by GCC... " >&6; }
10193 case $host in
10194 *-*-mingw*)
10195 # gcc leaves a trailing carriage return which upsets mingw
10196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10199 esac
10200 case $ac_prog in
10201 # Accept absolute paths.
10202 [\\/]* | [A-Za-z]:[\\/]*)
10203 re_direlt='/[^/][^/]*/\.\./'
10204 # Canonicalize the path of ld
10205 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10206 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10207 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10208 done
10209 test -z "$LD" && LD="$ac_prog"
10212 # If it fails, then pretend we aren't using GCC.
10213 ac_prog=ld
10216 # If it is relative, then search for the first ld in PATH.
10217 with_gnu_ld=unknown
10219 esac
10220 elif test "$with_gnu_ld" = yes; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10222 $as_echo_n "checking for GNU ld... " >&6; }
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10225 $as_echo_n "checking for non-GNU ld... " >&6; }
10227 if test "${acl_cv_path_LD+set}" = set; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 if test -z "$LD"; then
10231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10232 for ac_dir in $PATH; do
10233 test -z "$ac_dir" && ac_dir=.
10234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10235 acl_cv_path_LD="$ac_dir/$ac_prog"
10236 # Check to see if the program is GNU ld. I'd rather use --version,
10237 # but apparently some GNU ld's only accept -v.
10238 # Break only if it was the GNU/non-GNU ld that we prefer.
10239 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10240 test "$with_gnu_ld" != no && break
10241 else
10242 test "$with_gnu_ld" != yes && break
10245 done
10246 IFS="$ac_save_ifs"
10247 else
10248 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10252 LD="$acl_cv_path_LD"
10253 if test -n "$LD"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10255 $as_echo "$LD" >&6; }
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10260 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10263 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10267 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10268 acl_cv_prog_gnu_ld=yes
10269 else
10270 acl_cv_prog_gnu_ld=no
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10274 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10275 with_gnu_ld=$acl_cv_prog_gnu_ld
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10280 $as_echo_n "checking for shared library run path origin... " >&6; }
10281 if test "${acl_cv_rpath+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10285 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10286 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10287 . ./conftest.sh
10288 rm -f ./conftest.sh
10289 acl_cv_rpath=done
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10293 $as_echo "$acl_cv_rpath" >&6; }
10294 wl="$acl_cv_wl"
10295 libext="$acl_cv_libext"
10296 shlibext="$acl_cv_shlibext"
10297 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10298 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10299 hardcode_direct="$acl_cv_hardcode_direct"
10300 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10301 # Check whether --enable-rpath was given.
10302 if test "${enable_rpath+set}" = set; then :
10303 enableval=$enable_rpath; :
10304 else
10305 enable_rpath=yes
10315 use_additional=yes
10317 acl_save_prefix="$prefix"
10318 prefix="$acl_final_prefix"
10319 acl_save_exec_prefix="$exec_prefix"
10320 exec_prefix="$acl_final_exec_prefix"
10322 eval additional_includedir=\"$includedir\"
10323 eval additional_libdir=\"$libdir\"
10325 exec_prefix="$acl_save_exec_prefix"
10326 prefix="$acl_save_prefix"
10329 # Check whether --with-libiconv-prefix was given.
10330 if test "${with_libiconv_prefix+set}" = set; then :
10331 withval=$with_libiconv_prefix;
10332 if test "X$withval" = "Xno"; then
10333 use_additional=no
10334 else
10335 if test "X$withval" = "X"; then
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"
10348 else
10349 additional_includedir="$withval/include"
10350 additional_libdir="$withval/lib"
10356 LIBICONV=
10357 LTLIBICONV=
10358 INCICONV=
10359 rpathdirs=
10360 ltrpathdirs=
10361 names_already_handled=
10362 names_next_round='iconv '
10363 while test -n "$names_next_round"; do
10364 names_this_round="$names_next_round"
10365 names_next_round=
10366 for name in $names_this_round; do
10367 already_handled=
10368 for n in $names_already_handled; do
10369 if test "$n" = "$name"; then
10370 already_handled=yes
10371 break
10373 done
10374 if test -z "$already_handled"; then
10375 names_already_handled="$names_already_handled $name"
10376 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10377 eval value=\"\$HAVE_LIB$uppername\"
10378 if test -n "$value"; then
10379 if test "$value" = yes; then
10380 eval value=\"\$LIB$uppername\"
10381 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10382 eval value=\"\$LTLIB$uppername\"
10383 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10384 else
10387 else
10388 found_dir=
10389 found_la=
10390 found_so=
10391 found_a=
10392 if test $use_additional = yes; then
10393 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10394 found_dir="$additional_libdir"
10395 found_so="$additional_libdir/lib$name.$shlibext"
10396 if test -f "$additional_libdir/lib$name.la"; then
10397 found_la="$additional_libdir/lib$name.la"
10399 else
10400 if test -f "$additional_libdir/lib$name.$libext"; then
10401 found_dir="$additional_libdir"
10402 found_a="$additional_libdir/lib$name.$libext"
10403 if test -f "$additional_libdir/lib$name.la"; then
10404 found_la="$additional_libdir/lib$name.la"
10409 if test "X$found_dir" = "X"; then
10410 for x in $LDFLAGS $LTLIBICONV; do
10412 acl_save_prefix="$prefix"
10413 prefix="$acl_final_prefix"
10414 acl_save_exec_prefix="$exec_prefix"
10415 exec_prefix="$acl_final_exec_prefix"
10416 eval x=\"$x\"
10417 exec_prefix="$acl_save_exec_prefix"
10418 prefix="$acl_save_prefix"
10420 case "$x" in
10421 -L*)
10422 dir=`echo "X$x" | sed -e 's/^X-L//'`
10423 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10424 found_dir="$dir"
10425 found_so="$dir/lib$name.$shlibext"
10426 if test -f "$dir/lib$name.la"; then
10427 found_la="$dir/lib$name.la"
10429 else
10430 if test -f "$dir/lib$name.$libext"; then
10431 found_dir="$dir"
10432 found_a="$dir/lib$name.$libext"
10433 if test -f "$dir/lib$name.la"; then
10434 found_la="$dir/lib$name.la"
10439 esac
10440 if test "X$found_dir" != "X"; then
10441 break
10443 done
10445 if test "X$found_dir" != "X"; then
10446 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10447 if test "X$found_so" != "X"; then
10448 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10450 else
10451 haveit=
10452 for x in $ltrpathdirs; do
10453 if test "X$x" = "X$found_dir"; then
10454 haveit=yes
10455 break
10457 done
10458 if test -z "$haveit"; then
10459 ltrpathdirs="$ltrpathdirs $found_dir"
10461 if test "$hardcode_direct" = yes; then
10462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10463 else
10464 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10466 haveit=
10467 for x in $rpathdirs; do
10468 if test "X$x" = "X$found_dir"; then
10469 haveit=yes
10470 break
10472 done
10473 if test -z "$haveit"; then
10474 rpathdirs="$rpathdirs $found_dir"
10476 else
10477 haveit=
10478 for x in $LDFLAGS $LIBICONV; do
10480 acl_save_prefix="$prefix"
10481 prefix="$acl_final_prefix"
10482 acl_save_exec_prefix="$exec_prefix"
10483 exec_prefix="$acl_final_exec_prefix"
10484 eval x=\"$x\"
10485 exec_prefix="$acl_save_exec_prefix"
10486 prefix="$acl_save_prefix"
10488 if test "X$x" = "X-L$found_dir"; then
10489 haveit=yes
10490 break
10492 done
10493 if test -z "$haveit"; then
10494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10496 if test "$hardcode_minus_L" != no; then
10497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10498 else
10499 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10504 else
10505 if test "X$found_a" != "X"; then
10506 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10507 else
10508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10511 additional_includedir=
10512 case "$found_dir" in
10513 */lib | */lib/)
10514 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10515 additional_includedir="$basedir/include"
10517 esac
10518 if test "X$additional_includedir" != "X"; then
10519 if test "X$additional_includedir" != "X/usr/include"; then
10520 haveit=
10521 if test "X$additional_includedir" = "X/usr/local/include"; then
10522 if test -n "$GCC"; then
10523 case $host_os in
10524 linux*) haveit=yes;;
10525 esac
10528 if test -z "$haveit"; then
10529 for x in $CPPFLAGS $INCICONV; do
10531 acl_save_prefix="$prefix"
10532 prefix="$acl_final_prefix"
10533 acl_save_exec_prefix="$exec_prefix"
10534 exec_prefix="$acl_final_exec_prefix"
10535 eval x=\"$x\"
10536 exec_prefix="$acl_save_exec_prefix"
10537 prefix="$acl_save_prefix"
10539 if test "X$x" = "X-I$additional_includedir"; then
10540 haveit=yes
10541 break
10543 done
10544 if test -z "$haveit"; then
10545 if test -d "$additional_includedir"; then
10546 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10552 if test -n "$found_la"; then
10553 save_libdir="$libdir"
10554 case "$found_la" in
10555 */* | *\\*) . "$found_la" ;;
10556 *) . "./$found_la" ;;
10557 esac
10558 libdir="$save_libdir"
10559 for dep in $dependency_libs; do
10560 case "$dep" in
10561 -L*)
10562 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10563 if test "X$additional_libdir" != "X/usr/lib"; then
10564 haveit=
10565 if test "X$additional_libdir" = "X/usr/local/lib"; then
10566 if test -n "$GCC"; then
10567 case $host_os in
10568 linux*) haveit=yes;;
10569 esac
10572 if test -z "$haveit"; then
10573 haveit=
10574 for x in $LDFLAGS $LIBICONV; do
10576 acl_save_prefix="$prefix"
10577 prefix="$acl_final_prefix"
10578 acl_save_exec_prefix="$exec_prefix"
10579 exec_prefix="$acl_final_exec_prefix"
10580 eval x=\"$x\"
10581 exec_prefix="$acl_save_exec_prefix"
10582 prefix="$acl_save_prefix"
10584 if test "X$x" = "X-L$additional_libdir"; then
10585 haveit=yes
10586 break
10588 done
10589 if test -z "$haveit"; then
10590 if test -d "$additional_libdir"; then
10591 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10594 haveit=
10595 for x in $LDFLAGS $LTLIBICONV; do
10597 acl_save_prefix="$prefix"
10598 prefix="$acl_final_prefix"
10599 acl_save_exec_prefix="$exec_prefix"
10600 exec_prefix="$acl_final_exec_prefix"
10601 eval x=\"$x\"
10602 exec_prefix="$acl_save_exec_prefix"
10603 prefix="$acl_save_prefix"
10605 if test "X$x" = "X-L$additional_libdir"; then
10606 haveit=yes
10607 break
10609 done
10610 if test -z "$haveit"; then
10611 if test -d "$additional_libdir"; then
10612 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10618 -R*)
10619 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10620 if test "$enable_rpath" != no; then
10621 haveit=
10622 for x in $rpathdirs; do
10623 if test "X$x" = "X$dir"; then
10624 haveit=yes
10625 break
10627 done
10628 if test -z "$haveit"; then
10629 rpathdirs="$rpathdirs $dir"
10631 haveit=
10632 for x in $ltrpathdirs; do
10633 if test "X$x" = "X$dir"; then
10634 haveit=yes
10635 break
10637 done
10638 if test -z "$haveit"; then
10639 ltrpathdirs="$ltrpathdirs $dir"
10643 -l*)
10644 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10646 *.la)
10647 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10650 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10653 esac
10654 done
10656 else
10657 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10658 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10662 done
10663 done
10664 if test "X$rpathdirs" != "X"; then
10665 if test -n "$hardcode_libdir_separator"; then
10666 alldirs=
10667 for found_dir in $rpathdirs; do
10668 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10669 done
10670 acl_save_libdir="$libdir"
10671 libdir="$alldirs"
10672 eval flag=\"$hardcode_libdir_flag_spec\"
10673 libdir="$acl_save_libdir"
10674 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10675 else
10676 for found_dir in $rpathdirs; do
10677 acl_save_libdir="$libdir"
10678 libdir="$found_dir"
10679 eval flag=\"$hardcode_libdir_flag_spec\"
10680 libdir="$acl_save_libdir"
10681 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10682 done
10685 if test "X$ltrpathdirs" != "X"; then
10686 for found_dir in $ltrpathdirs; do
10687 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10688 done
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10698 $as_echo_n "checking for iconv... " >&6; }
10699 if test "${am_cv_func_iconv+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10703 am_cv_func_iconv="no, consider installing GNU libiconv"
10704 am_cv_lib_iconv=no
10705 am_save_CPPFLAGS="$CPPFLAGS"
10706 CPPFLAGS="$CPPFLAGS $INCICONV"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 #include <stdlib.h>
10710 #include <iconv.h>
10712 main ()
10714 iconv_t cd = iconv_open("","");
10715 iconv(cd,NULL,NULL,NULL,NULL);
10716 iconv_close(cd);
10718 return 0;
10720 _ACEOF
10721 if ac_fn_cxx_try_link "$LINENO"; then :
10722 am_cv_func_iconv=yes
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 CPPFLAGS="$am_save_CPPFLAGS"
10728 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10729 for _libs in .libs _libs; do
10730 am_save_CPPFLAGS="$CPPFLAGS"
10731 am_save_LIBS="$LIBS"
10732 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10733 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #include <stdlib.h>
10737 #include <iconv.h>
10739 main ()
10741 iconv_t cd = iconv_open("","");
10742 iconv(cd,NULL,NULL,NULL,NULL);
10743 iconv_close(cd);
10745 return 0;
10747 _ACEOF
10748 if ac_fn_cxx_try_link "$LINENO"; then :
10749 INCICONV="-I../libiconv/include"
10750 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10751 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10752 am_cv_lib_iconv=yes
10753 am_cv_func_iconv=yes
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 CPPFLAGS="$am_save_CPPFLAGS"
10758 LIBS="$am_save_LIBS"
10759 if test "$am_cv_func_iconv" = "yes"; then
10760 break
10762 done
10765 if test "$am_cv_func_iconv" != yes; then
10766 am_save_CPPFLAGS="$CPPFLAGS"
10767 am_save_LIBS="$LIBS"
10768 CPPFLAGS="$LIBS $INCICONV"
10769 LIBS="$LIBS $LIBICONV"
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772 #include <stdlib.h>
10773 #include <iconv.h>
10775 main ()
10777 iconv_t cd = iconv_open("","");
10778 iconv(cd,NULL,NULL,NULL,NULL);
10779 iconv_close(cd);
10781 return 0;
10783 _ACEOF
10784 if ac_fn_cxx_try_link "$LINENO"; then :
10785 am_cv_lib_iconv=yes
10786 am_cv_func_iconv=yes
10788 rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
10790 CPPFLAGS="$am_save_CPPFLAGS"
10791 LIBS="$am_save_LIBS"
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10796 $as_echo "$am_cv_func_iconv" >&6; }
10797 if test "$am_cv_func_iconv" = yes; then
10799 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10802 if test "$am_cv_lib_iconv" = yes; then
10804 for element in $INCICONV; do
10805 haveit=
10806 for x in $CPPFLAGS; do
10808 acl_save_prefix="$prefix"
10809 prefix="$acl_final_prefix"
10810 acl_save_exec_prefix="$exec_prefix"
10811 exec_prefix="$acl_final_exec_prefix"
10812 eval x=\"$x\"
10813 exec_prefix="$acl_save_exec_prefix"
10814 prefix="$acl_save_prefix"
10816 if test "X$x" = "X$element"; then
10817 haveit=yes
10818 break
10820 done
10821 if test -z "$haveit"; then
10822 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10824 done
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10827 $as_echo_n "checking how to link with libiconv... " >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10829 $as_echo "$LIBICONV" >&6; }
10830 else
10831 LIBICONV=
10832 LTLIBICONV=
10837 if test "$am_cv_func_iconv" = yes; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10839 $as_echo_n "checking for iconv declaration... " >&6; }
10840 if test "${am_cv_proto_iconv+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10847 #include <stdlib.h>
10848 #include <iconv.h>
10849 extern
10850 #ifdef __cplusplus
10852 #endif
10853 #if defined(__STDC__) || defined(__cplusplus)
10854 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10855 #else
10856 size_t iconv();
10857 #endif
10860 main ()
10864 return 0;
10866 _ACEOF
10867 if ac_fn_cxx_try_compile "$LINENO"; then :
10868 am_cv_proto_iconv_arg1=""
10869 else
10870 am_cv_proto_iconv_arg1="const"
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 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);"
10876 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10878 }$am_cv_proto_iconv" >&5
10879 $as_echo "${ac_t:-
10880 }$am_cv_proto_iconv" >&6; }
10882 cat >>confdefs.h <<_ACEOF
10883 #define ICONV_CONST $am_cv_proto_iconv_arg1
10884 _ACEOF
10889 # Until we have in-tree GNU iconv:
10890 LIBICONV_DEP=
10891 if test -f "$LTLIBICONV"; then
10892 LIBICONV_DEP=$LTLIBICONV
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10898 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10899 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904 #include <locale.h>
10906 main ()
10908 return LC_MESSAGES
10910 return 0;
10912 _ACEOF
10913 if ac_fn_cxx_try_link "$LINENO"; then :
10914 am_cv_val_LC_MESSAGES=yes
10915 else
10916 am_cv_val_LC_MESSAGES=no
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10922 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10923 if test $am_cv_val_LC_MESSAGES = yes; then
10925 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10932 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10933 if test "${am_cv_langinfo_codeset+set}" = set; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 #include <langinfo.h>
10940 main ()
10942 char* cs = nl_langinfo(CODESET);
10944 return 0;
10946 _ACEOF
10947 if ac_fn_cxx_try_link "$LINENO"; then :
10948 am_cv_langinfo_codeset=yes
10949 else
10950 am_cv_langinfo_codeset=no
10952 rm -f core conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10957 $as_echo "$am_cv_langinfo_codeset" >&6; }
10958 if test $am_cv_langinfo_codeset = yes; then
10960 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10965 # We will need to find libiberty.h and ansidecl.h
10966 saved_CFLAGS="$CFLAGS"
10967 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10968 saved_CXXFLAGS="$CXXFLAGS"
10969 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10971 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10972 # normal autoconf function for these. But force definition of
10973 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10974 # basename handling in libiberty.h.
10975 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10976 #undef HAVE_DECL_BASENAME
10977 #define HAVE_DECL_BASENAME 1
10978 #include \"ansidecl.h\"
10979 #include \"system.h\"
10981 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10982 ac_have_decl=1
10983 else
10984 ac_have_decl=0
10987 cat >>confdefs.h <<_ACEOF
10988 #define HAVE_DECL_BASENAME $ac_have_decl
10989 _ACEOF
10990 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10991 #undef HAVE_DECL_BASENAME
10992 #define HAVE_DECL_BASENAME 1
10993 #include \"ansidecl.h\"
10994 #include \"system.h\"
10996 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10997 ac_have_decl=1
10998 else
10999 ac_have_decl=0
11002 cat >>confdefs.h <<_ACEOF
11003 #define HAVE_DECL_STRSTR $ac_have_decl
11004 _ACEOF
11007 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11008 madvise stpcpy strnlen strsignal strverscmp \
11009 strtol strtoul strtoll strtoull setenv unsetenv \
11010 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11011 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
11013 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11015 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11016 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11021 #undef $ac_tr_decl
11022 #define $ac_tr_decl 1
11024 #include "ansidecl.h"
11025 #include "system.h"
11028 main ()
11030 #ifndef $ac_func
11031 char *(*pfn) = (char *(*)) $ac_func ;
11032 #endif
11034 return 0;
11036 _ACEOF
11037 if ac_fn_cxx_try_compile "$LINENO"; then :
11038 eval "gcc_cv_have_decl_$ac_func=yes"
11039 else
11040 eval "gcc_cv_have_decl_$ac_func=no"
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11047 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11048 #define $ac_tr_decl 1
11049 _ACEOF
11051 else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11054 #define $ac_tr_decl 0
11055 _ACEOF
11059 done
11062 for ac_func in getrlimit setrlimit getrusage
11064 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11066 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11067 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 #undef $ac_tr_decl
11073 #define $ac_tr_decl 1
11075 #include "ansidecl.h"
11076 #include "system.h"
11077 #ifdef HAVE_SYS_RESOURCE_H
11078 #include <sys/resource.h>
11079 #endif
11083 main ()
11085 #ifndef $ac_func
11086 char *(*pfn) = (char *(*)) $ac_func ;
11087 #endif
11089 return 0;
11091 _ACEOF
11092 if ac_fn_cxx_try_compile "$LINENO"; then :
11093 eval "gcc_cv_have_decl_$ac_func=yes"
11094 else
11095 eval "gcc_cv_have_decl_$ac_func=no"
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11103 #define $ac_tr_decl 1
11104 _ACEOF
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11109 #define $ac_tr_decl 0
11110 _ACEOF
11114 done
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11120 #include "ansidecl.h"
11121 #include "system.h"
11122 #ifdef HAVE_SYS_RESOURCE_H
11123 #include <sys/resource.h>
11124 #endif
11127 main ()
11129 rlim_t l = 0;
11131 return 0;
11133 _ACEOF
11134 if ac_fn_cxx_try_compile "$LINENO"; then :
11136 else
11138 $as_echo "#define rlim_t long" >>confdefs.h
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11144 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11145 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11146 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11147 for ac_func in ldgetname
11149 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11151 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11152 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157 #undef $ac_tr_decl
11158 #define $ac_tr_decl 1
11160 #include "ansidecl.h"
11161 #include "system.h"
11162 #ifdef HAVE_LDFCN_H
11163 #undef FREAD
11164 #undef FWRITE
11165 #include <ldfcn.h>
11166 #endif
11170 main ()
11172 #ifndef $ac_func
11173 char *(*pfn) = (char *(*)) $ac_func ;
11174 #endif
11176 return 0;
11178 _ACEOF
11179 if ac_fn_cxx_try_compile "$LINENO"; then :
11180 eval "gcc_cv_have_decl_$ac_func=yes"
11181 else
11182 eval "gcc_cv_have_decl_$ac_func=no"
11184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11187 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11189 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11190 #define $ac_tr_decl 1
11191 _ACEOF
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11196 #define $ac_tr_decl 0
11197 _ACEOF
11201 done
11204 for ac_func in times
11206 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11208 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11209 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214 #undef $ac_tr_decl
11215 #define $ac_tr_decl 1
11217 #include "ansidecl.h"
11218 #include "system.h"
11219 #ifdef HAVE_SYS_TIMES_H
11220 #include <sys/times.h>
11221 #endif
11225 main ()
11227 #ifndef $ac_func
11228 char *(*pfn) = (char *(*)) $ac_func ;
11229 #endif
11231 return 0;
11233 _ACEOF
11234 if ac_fn_cxx_try_compile "$LINENO"; then :
11235 eval "gcc_cv_have_decl_$ac_func=yes"
11236 else
11237 eval "gcc_cv_have_decl_$ac_func=no"
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11244 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11245 #define $ac_tr_decl 1
11246 _ACEOF
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11251 #define $ac_tr_decl 0
11252 _ACEOF
11256 done
11259 for ac_func in sigaltstack
11261 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11263 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11264 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11269 #undef $ac_tr_decl
11270 #define $ac_tr_decl 1
11272 #include "ansidecl.h"
11273 #include "system.h"
11274 #include <signal.h>
11278 main ()
11280 #ifndef $ac_func
11281 char *(*pfn) = (char *(*)) $ac_func ;
11282 #endif
11284 return 0;
11286 _ACEOF
11287 if ac_fn_cxx_try_compile "$LINENO"; then :
11288 eval "gcc_cv_have_decl_$ac_func=yes"
11289 else
11290 eval "gcc_cv_have_decl_$ac_func=no"
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11297 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11298 #define $ac_tr_decl 1
11299 _ACEOF
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11304 #define $ac_tr_decl 0
11305 _ACEOF
11309 done
11312 # More time-related stuff.
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11314 $as_echo_n "checking for struct tms... " >&6; }
11315 if test "${ac_cv_struct_tms+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11322 #include "ansidecl.h"
11323 #include "system.h"
11324 #ifdef HAVE_SYS_TIMES_H
11325 #include <sys/times.h>
11326 #endif
11329 main ()
11331 struct tms tms;
11333 return 0;
11335 _ACEOF
11336 if ac_fn_cxx_try_compile "$LINENO"; then :
11337 ac_cv_struct_tms=yes
11338 else
11339 ac_cv_struct_tms=no
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11344 $as_echo "$ac_cv_struct_tms" >&6; }
11345 if test $ac_cv_struct_tms = yes; then
11347 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11351 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11352 # revisit after autoconf 2.50.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11354 $as_echo_n "checking for clock_t... " >&6; }
11355 if test "${gcc_cv_type_clock_t+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 #include "ansidecl.h"
11363 #include "system.h"
11366 main ()
11368 clock_t x;
11370 return 0;
11372 _ACEOF
11373 if ac_fn_cxx_try_compile "$LINENO"; then :
11374 gcc_cv_type_clock_t=yes
11375 else
11376 gcc_cv_type_clock_t=no
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11381 $as_echo "$gcc_cv_type_clock_t" >&6; }
11382 if test $gcc_cv_type_clock_t = yes; then
11384 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11388 # Check if F_SETLKW is supported by fcntl.
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11390 $as_echo_n "checking for F_SETLKW... " >&6; }
11391 if test "${ac_cv_f_setlkw+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11398 #include <fcntl.h>
11400 main ()
11403 struct flock fl;
11404 fl.l_whence = 0;
11405 fl.l_start = 0;
11406 fl.l_len = 0;
11407 fl.l_pid = 0;
11408 return fcntl (1, F_SETLKW, &fl);
11410 return 0;
11412 _ACEOF
11413 if ac_fn_cxx_try_compile "$LINENO"; then :
11414 ac_cv_f_setlkw=yes
11415 else
11416 ac_cv_f_setlkw=no
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11421 $as_echo "$ac_cv_f_setlkw" >&6; }
11422 if test $ac_cv_f_setlkw = yes; then
11424 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11428 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11429 CFLAGS="$saved_CFLAGS"
11430 CXXFLAGS="$saved_CXXFLAGS"
11432 # mkdir takes a single argument on some systems.
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11434 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11435 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11441 #include <sys/types.h>
11442 #ifdef HAVE_SYS_STAT_H
11443 # include <sys/stat.h>
11444 #endif
11445 #ifdef HAVE_UNISTD_H
11446 # include <unistd.h>
11447 #endif
11448 #ifdef HAVE_DIRECT_H
11449 # include <direct.h>
11450 #endif
11452 main ()
11454 mkdir ("foo", 0);
11456 return 0;
11458 _ACEOF
11459 if ac_fn_cxx_try_compile "$LINENO"; then :
11460 gcc_cv_mkdir_takes_one_arg=no
11461 else
11462 gcc_cv_mkdir_takes_one_arg=yes
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11467 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11468 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11470 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11475 # File extensions
11476 manext='.1'
11477 objext='.o'
11481 # With Setjmp/Longjmp based exception handling.
11482 # Check whether --enable-sjlj-exceptions was given.
11483 if test "${enable_sjlj_exceptions+set}" = set; then :
11484 enableval=$enable_sjlj_exceptions; case $target in
11485 *-*-hpux10*)
11486 if test $enableval != yes; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11488 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11489 enableval=yes
11492 esac
11493 force_sjlj_exceptions=yes
11494 else
11495 case $target in
11496 *-*-hpux10*)
11497 force_sjlj_exceptions=yes
11498 enableval=yes
11500 lm32*-*-*)
11501 force_sjlj_exceptions=yes
11502 enableval=yes
11505 force_sjlj_exceptions=no
11507 esac
11510 if test $force_sjlj_exceptions = yes; then
11511 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11513 cat >>confdefs.h <<_ACEOF
11514 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11515 _ACEOF
11519 # --------------------------------------------------------
11520 # Build, host, and target specific configuration fragments
11521 # --------------------------------------------------------
11523 # Collect build-machine-specific information.
11524 . ${srcdir}/config.build
11526 # Collect host-machine-specific information.
11527 . ${srcdir}/config.host
11529 target_gtfiles=
11531 # Collect target-machine-specific information.
11532 . ${srcdir}/config.gcc
11534 extra_objs="${host_extra_objs} ${extra_objs}"
11535 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11537 # Default the target-machine variables that were not explicitly set.
11538 if test x"$tm_file" = x
11539 then tm_file=$cpu_type/$cpu_type.h; fi
11541 if test x"$extra_headers" = x
11542 then extra_headers=; fi
11544 if test x$md_file = x
11545 then md_file=$cpu_type/$cpu_type.md; fi
11547 if test x$out_file = x
11548 then out_file=$cpu_type/$cpu_type.c; fi
11550 if test x"$tmake_file" = x
11551 then tmake_file=$cpu_type/t-$cpu_type
11554 # Support --enable-initfini-array.
11555 if test x$enable_initfini_array != xno; then
11556 tm_file="${tm_file} initfini-array.h"
11559 if test x"$dwarf2" = xyes
11560 then tm_file="$tm_file tm-dwarf2.h"
11563 # Say what files are being used for the output code and MD file.
11564 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11565 echo "Using \`$srcdir/config/$md_file' as machine description file."
11567 # If any of the xm_file variables contain nonexistent files, warn
11568 # about them and drop them.
11571 for x in $build_xm_file; do
11572 if test -f $srcdir/config/$x
11573 then bx="$bx $x"
11574 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11575 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11577 done
11578 build_xm_file="$bx"
11581 for x in $host_xm_file; do
11582 if test -f $srcdir/config/$x
11583 then hx="$hx $x"
11584 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11585 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11587 done
11588 host_xm_file="$hx"
11591 for x in $xm_file; do
11592 if test -f $srcdir/config/$x
11593 then tx="$tx $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 xm_file="$tx"
11600 count=a
11601 for f in $tm_file; do
11602 count=${count}x
11603 done
11604 if test $count = ax; then
11605 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11606 else
11607 echo "Using the following target machine macro files:"
11608 for f in $tm_file; do
11609 echo " $srcdir/config/$f"
11610 done
11613 if test x$use_long_long_for_widest_fast_int = xyes; then
11615 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11619 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11621 cat >>confdefs.h <<_ACEOF
11622 #define HAVE_GNU_LD $gnu_ld_bool
11623 _ACEOF
11626 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_GNU_AS $gnu_as_bool
11630 _ACEOF
11633 count=a
11634 for f in $host_xm_file; do
11635 count=${count}x
11636 done
11637 if test $count = a; then
11639 elif test $count = ax; then
11640 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11641 else
11642 echo "Using the following host machine macro files:"
11643 for f in $host_xm_file; do
11644 echo " $srcdir/config/$f"
11645 done
11647 echo "Using ${out_host_hook_obj} for host machine hooks."
11649 if test "$host_xm_file" != "$build_xm_file"; then
11650 count=a
11651 for f in $build_xm_file; do
11652 count=${count}x
11653 done
11654 if test $count = a; then
11656 elif test $count = ax; then
11657 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11658 else
11659 echo "Using the following build machine macro files:"
11660 for f in $build_xm_file; do
11661 echo " $srcdir/config/$f"
11662 done
11666 if test -n "$configured_native_system_header_dir"; then
11667 native_system_header_dir=$configured_native_system_header_dir
11669 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11672 case ${host} in
11673 powerpc*-*-darwin*)
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11675 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11676 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11682 #include <sys/cdefs.h>
11683 #include <sys/signal.h>
11684 #include <ucontext.h>
11685 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11687 _ACEOF
11688 if ac_fn_cxx_try_compile "$LINENO"; then :
11689 gcc_cv_mcontext_underscores=no
11690 else
11691 gcc_cv_mcontext_underscores=yes
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11696 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11697 if test $gcc_cv_mcontext_underscores = yes; then
11699 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11703 esac
11705 # ---------
11706 # Threading
11707 # ---------
11709 # Check if a valid thread package
11710 case ${enable_threads} in
11711 "" | no)
11712 # No threads
11713 target_thread_file='single'
11715 yes)
11716 # default
11717 target_thread_file='single'
11719 aix | dce | lynx | mipssde | posix | rtems | \
11720 single | tpf | vxworks | win32)
11721 target_thread_file=${enable_threads}
11724 echo "${enable_threads} is an unknown thread package" 1>&2
11725 exit 1
11727 esac
11729 if test x${thread_file} = x; then
11730 # No thread file set by target-specific clauses in config.gcc,
11731 # so use file chosen by default logic above
11732 thread_file=${target_thread_file}
11735 # --------
11736 # UNSORTED
11737 # --------
11739 use_cxa_atexit=no
11740 if test x$enable___cxa_atexit = xyes || \
11741 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11742 if test x$host = x$target; then
11743 case $host in
11744 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11745 # keyed to flag_use_cxa_atexit
11746 *-*-mingw32*)
11747 use_cxa_atexit=yes
11749 powerpc-ibm-aix*)
11750 use_cxa_atexit=yes
11753 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11754 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11755 use_cxa_atexit=yes
11756 else
11757 echo "__cxa_atexit can't be enabled on this target"
11761 esac
11762 else
11763 # We can't check for __cxa_atexit when building a cross, so assume
11764 # it is available
11765 use_cxa_atexit=yes
11767 if test x$use_cxa_atexit = xyes; then
11769 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11774 # Look for a file containing extra machine modes.
11775 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11776 extra_modes_file='$(srcdir)'/config/${extra_modes}
11779 cat >>confdefs.h <<_ACEOF
11780 #define EXTRA_MODES_FILE "config/$extra_modes"
11781 _ACEOF
11785 # Convert extra_options into a form suitable for Makefile use.
11786 extra_opt_files=
11787 all_opt_files=
11788 for f in $extra_options; do
11789 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11790 all_opt_files="$all_opt_files $srcdir/config/$f"
11791 done
11794 # auto-host.h is the file containing items generated by autoconf and is
11795 # the first file included by config.h.
11796 # If host=build, it is correct to have bconfig include auto-host.h
11797 # as well. If host!=build, we are in error and need to do more
11798 # work to find out the build config parameters.
11799 if test x$host = x$build
11800 then
11801 build_auto=auto-host.h
11802 else
11803 # We create a subdir, then run autoconf in the subdir.
11804 # To prevent recursion we set host and build for the new
11805 # invocation of configure to the build for this invocation
11806 # of configure.
11807 tempdir=build.$$
11808 rm -rf $tempdir
11809 mkdir $tempdir
11810 cd $tempdir
11811 case ${srcdir} in
11812 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11813 *) realsrcdir=../${srcdir};;
11814 esac
11815 # Clearing GMPINC is necessary to prevent host headers being
11816 # used by the build compiler. Defining GENERATOR_FILE stops
11817 # system.h from including gmp.h.
11818 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11819 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11820 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11821 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11822 ${realsrcdir}/configure \
11823 --enable-languages=${enable_languages-all} \
11824 --target=$target_alias --host=$build_alias --build=$build_alias
11826 # We just finished tests for the build machine, so rename
11827 # the file auto-build.h in the gcc directory.
11828 mv auto-host.h ../auto-build.h
11829 cd ..
11830 rm -rf $tempdir
11831 build_auto=auto-build.h
11835 tm_file="${tm_file} defaults.h"
11836 tm_p_file="${tm_p_file} tm-preds.h"
11837 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11838 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11839 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11840 # put this back in temporarily.
11841 xm_file="auto-host.h ansidecl.h ${xm_file}"
11843 # --------
11844 # UNSORTED
11845 # --------
11847 # Compile in configure arguments.
11848 if test -f configargs.h ; then
11849 # Being re-configured.
11850 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11851 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11852 else
11853 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11856 # Double all backslashes and backslash all quotes to turn
11857 # gcc_config_arguments into a C string.
11858 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11859 $gcc_config_arguments
11861 gcc_config_arguments_str=`cat conftest.out`
11862 rm -f conftest.out
11864 cat > configargs.h <<EOF
11865 /* Generated automatically. */
11866 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11867 static const char thread_model[] = "$thread_file";
11869 static const struct {
11870 const char *name, *value;
11871 } configure_default_options[] = $configure_default_options;
11874 gcc_BASEVER=`cat $srcdir/BASE-VER`
11875 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11876 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11877 if test -f $srcdir/REVISION ; then
11878 gcc_REVISION=`cat $srcdir/REVISION`
11879 else
11880 gcc_REVISION=""
11882 cat > plugin-version.h <<EOF
11883 #include "configargs.h"
11885 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11886 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11887 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11888 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11890 static char basever[] = "$gcc_BASEVER";
11891 static char datestamp[] = "$gcc_DATESTAMP";
11892 static char devphase[] = "$gcc_DEVPHASE";
11893 static char revision[] = "$gcc_REVISION";
11895 /* FIXME plugins: We should make the version information more precise.
11896 One way to do is to add a checksum. */
11898 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11899 devphase, revision,
11900 configuration_arguments};
11903 # Internationalization
11904 # If we haven't got the data from the intl directory,
11905 # assume NLS is disabled.
11906 USE_NLS=no
11907 LIBINTL=
11908 LIBINTL_DEP=
11909 INCINTL=
11910 XGETTEXT=
11911 GMSGFMT=
11912 POSUB=
11914 if test -f ../intl/config.intl; then
11915 . ../intl/config.intl
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11918 $as_echo_n "checking whether NLS is requested... " >&6; }
11919 if test x"$USE_NLS" != xyes; then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11924 $as_echo "yes" >&6; }
11926 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11930 $as_echo_n "checking for catalogs to be installed... " >&6; }
11931 # Look for .po and .gmo files in the source directory.
11932 CATALOGS=
11933 XLINGUAS=
11934 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11935 # If there aren't any .gmo files the shell will give us the
11936 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11937 # weeded out.
11938 case "$cat" in *\**)
11939 continue;;
11940 esac
11941 # The quadruple backslash is collapsed to a double backslash
11942 # by the backticks, then collapsed again by the double quotes,
11943 # leaving us with one backslash in the sed expression (right
11944 # before the dot that mustn't act as a wildcard).
11945 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11946 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11947 # The user is allowed to set LINGUAS to a list of languages to
11948 # install catalogs for. If it's empty that means "all of them."
11949 if test "x$LINGUAS" = x; then
11950 CATALOGS="$CATALOGS $cat"
11951 XLINGUAS="$XLINGUAS $lang"
11952 else
11953 case "$LINGUAS" in *$lang*)
11954 CATALOGS="$CATALOGS $cat"
11955 XLINGUAS="$XLINGUAS $lang"
11957 esac
11959 done
11960 LINGUAS="$XLINGUAS"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11962 $as_echo "$LINGUAS" >&6; }
11965 DATADIRNAME=share
11967 INSTOBJEXT=.mo
11969 GENCAT=gencat
11971 CATOBJEXT=.gmo
11975 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11976 # -liconv on the link line twice.
11977 case "$LIBINTL" in *$LIBICONV*)
11978 LIBICONV= ;;
11979 esac
11981 # Check whether --enable-secureplt was given.
11982 if test "${enable_secureplt+set}" = set; then :
11983 enableval=$enable_secureplt;
11987 # Check whether --enable-leading-mingw64-underscores was given.
11988 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11989 enableval=$enable_leading_mingw64_underscores;
11992 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11994 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11998 # Check whether --enable-cld was given.
11999 if test "${enable_cld+set}" = set; then :
12000 enableval=$enable_cld;
12001 else
12002 enable_cld=no
12006 # Check whether --enable-frame-pointer was given.
12007 if test "${enable_frame_pointer+set}" = set; then :
12008 enableval=$enable_frame_pointer;
12009 else
12011 case $target_os in
12012 linux* | darwin[8912]*)
12013 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12014 # DWARF2.
12015 enable_frame_pointer=no
12018 enable_frame_pointer=yes
12020 esac
12025 # Windows32 Registry support for specifying GCC installation paths.
12026 # Check whether --enable-win32-registry was given.
12027 if test "${enable_win32_registry+set}" = set; then :
12028 enableval=$enable_win32_registry;
12032 case $host_os in
12033 win32 | pe | cygwin* | mingw32*)
12034 if test "x$enable_win32_registry" != xno; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12036 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12037 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 ac_func_search_save_LIBS=$LIBS
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char RegOpenKeyExA ();
12052 main ()
12054 return RegOpenKeyExA ();
12056 return 0;
12058 _ACEOF
12059 for ac_lib in '' advapi32; do
12060 if test -z "$ac_lib"; then
12061 ac_res="none required"
12062 else
12063 ac_res=-l$ac_lib
12064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12066 if ac_fn_cxx_try_link "$LINENO"; then :
12067 ac_cv_search_RegOpenKeyExA=$ac_res
12069 rm -f core conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext
12071 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12072 break
12074 done
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12077 else
12078 ac_cv_search_RegOpenKeyExA=no
12080 rm conftest.$ac_ext
12081 LIBS=$ac_func_search_save_LIBS
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12084 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12085 ac_res=$ac_cv_search_RegOpenKeyExA
12086 if test "$ac_res" != no; then :
12087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12089 else
12090 enable_win32_registry=no
12095 if test "x$enable_win32_registry" != xno; then
12097 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12100 if test "x$enable_win32_registry" != xyes \
12101 && test "x$enable_win32_registry" != x; then
12103 cat >>confdefs.h <<_ACEOF
12104 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12105 _ACEOF
12110 esac
12112 # Get an absolute path to the GCC top-level source directory
12113 holddir=`${PWDCMD-pwd}`
12114 cd $srcdir
12115 topdir=`${PWDCMD-pwd}`
12116 cd $holddir
12118 # Conditionalize the makefile for this host machine.
12119 xmake_file=
12120 for f in ${host_xmake_file}
12122 if test -f ${srcdir}/config/$f
12123 then
12124 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12126 done
12128 # Conditionalize the makefile for this target machine.
12129 tmake_file_=
12130 for f in ${tmake_file}
12132 if test -f ${srcdir}/config/$f
12133 then
12134 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12136 done
12137 tmake_file="${tmake_file_}"
12139 out_object_file=`basename $out_file .c`.o
12140 common_out_object_file=`basename $common_out_file .c`.o
12142 tm_file_list="options.h"
12143 tm_include_list="options.h insn-constants.h"
12144 for f in $tm_file; do
12145 case $f in
12146 ./* )
12147 f=`echo $f | sed 's/^..//'`
12148 tm_file_list="${tm_file_list} $f"
12149 tm_include_list="${tm_include_list} $f"
12151 defaults.h )
12152 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12153 tm_include_list="${tm_include_list} $f"
12156 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12157 tm_include_list="${tm_include_list} config/$f"
12159 esac
12160 done
12162 tm_p_file_list=
12163 tm_p_include_list=
12164 for f in $tm_p_file; do
12165 case $f in
12166 tm-preds.h )
12167 tm_p_file_list="${tm_p_file_list} $f"
12168 tm_p_include_list="${tm_p_include_list} $f"
12171 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12172 tm_p_include_list="${tm_p_include_list} config/$f"
12173 esac
12174 done
12176 xm_file_list=
12177 xm_include_list=
12178 for f in $xm_file; do
12179 case $f in
12180 ansidecl.h )
12181 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12182 xm_include_list="${xm_include_list} $f"
12184 auto-host.h )
12185 xm_file_list="${xm_file_list} $f"
12186 xm_include_list="${xm_include_list} $f"
12189 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12190 xm_include_list="${xm_include_list} config/$f"
12192 esac
12193 done
12195 host_xm_file_list=
12196 host_xm_include_list=
12197 for f in $host_xm_file; do
12198 case $f in
12199 ansidecl.h )
12200 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12201 host_xm_include_list="${host_xm_include_list} $f"
12203 auto-host.h )
12204 host_xm_file_list="${host_xm_file_list} $f"
12205 host_xm_include_list="${host_xm_include_list} $f"
12208 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12209 host_xm_include_list="${host_xm_include_list} config/$f"
12211 esac
12212 done
12214 build_xm_file_list=
12215 for f in $build_xm_file; do
12216 case $f in
12217 ansidecl.h )
12218 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12219 build_xm_include_list="${build_xm_include_list} $f"
12221 auto-build.h | auto-host.h )
12222 build_xm_file_list="${build_xm_file_list} $f"
12223 build_xm_include_list="${build_xm_include_list} $f"
12226 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12227 build_xm_include_list="${build_xm_include_list} config/$f"
12229 esac
12230 done
12232 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12233 # cross-compiler which does not use the native headers and libraries.
12234 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12235 CROSS=
12236 ALL=all.internal
12237 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12239 if test "x$with_build_sysroot" != x; then
12240 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12241 else
12242 # This value is used, even on a native system, because
12243 # CROSS_SYSTEM_HEADER_DIR is just
12244 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12245 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12248 if test x$host != x$target
12249 then
12250 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12251 ALL=all.cross
12252 SYSTEM_HEADER_DIR=$build_system_header_dir
12253 case "$host","$target" in
12254 # Darwin crosses can use the host system's libraries and headers,
12255 # because of the fat library support. Of course, it must be the
12256 # same version of Darwin on both sides. Allow the user to
12257 # just say --target=foo-darwin without a version number to mean
12258 # "the version on this system".
12259 *-*-darwin*,*-*-darwin*)
12260 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12261 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12262 if test $hostos = $targetos -o $targetos = darwin ; then
12263 CROSS=
12264 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12265 with_headers=yes
12269 i?86-*-*,x86_64-*-* \
12270 | powerpc*-*-*,powerpc64*-*-*)
12271 CROSS="$CROSS -DNATIVE_CROSS" ;;
12272 esac
12274 case $target in
12275 *-*-mingw*)
12276 if test "x$with_headers" = x; then
12277 with_headers=yes
12282 esac
12283 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12284 SYSTEM_HEADER_DIR=$build_system_header_dir
12287 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12288 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12289 target_header_dir=$with_headers
12290 elif test "x$with_sysroot" = x; then
12291 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12292 elif test "x$with_build_sysroot" != "x"; then
12293 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12294 elif test "x$with_sysroot" = xyes; then
12295 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12296 else
12297 target_header_dir="${with_sysroot}${native_system_header_dir}"
12299 else
12300 target_header_dir=${native_system_header_dir}
12303 # If this is a cross-compiler that does not
12304 # have its own set of headers then define
12305 # inhibit_libc
12307 # If this is using newlib, without having the headers available now,
12308 # then define inhibit_libc in LIBGCC2_CFLAGS.
12309 # This prevents libgcc2 from containing any code which requires libc
12310 # support.
12311 : ${inhibit_libc=false}
12312 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12313 test x$with_newlib = xyes ; } &&
12314 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12315 inhibit_libc=true
12319 # When building gcc with a cross-compiler, we need to adjust things so
12320 # that the generator programs are still built with the native compiler.
12321 # Also, we cannot run fixincludes.
12323 # These are the normal (build=host) settings:
12324 CC_FOR_BUILD='$(CC)'
12325 CXX_FOR_BUILD='$(CXX)'
12326 BUILD_CFLAGS='$(ALL_CFLAGS)'
12327 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12328 BUILD_LDFLAGS='$(LDFLAGS)'
12329 STMP_FIXINC=stmp-fixinc
12331 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12332 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12334 # And these apply if build != host, or we are generating coverage data
12335 if test x$build != x$host || test "x$coverage_flags" != x
12336 then
12337 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12338 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12339 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12341 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12342 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12343 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12344 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12349 # Expand extra_headers to include complete path.
12350 # This substitutes for lots of t-* files.
12351 extra_headers_list=
12352 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12353 for file in ${extra_headers} ; do
12354 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12355 done
12357 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12358 if test x"$use_gcc_tgmath" = xyes
12359 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12362 # Define collect2 in Makefile.
12363 case $host_can_use_collect2 in
12364 no) collect2= ;;
12365 *) collect2='collect2$(exeext)' ;;
12366 esac
12369 # Add a definition of USE_COLLECT2 if system wants one.
12370 case $use_collect2 in
12371 no) use_collect2= ;;
12372 "") ;;
12374 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12375 xm_defines="${xm_defines} USE_COLLECT2"
12376 case $host_can_use_collect2 in
12378 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12380 esac
12382 esac
12385 cat >>confdefs.h <<_ACEOF
12386 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12387 _ACEOF
12390 # ---------------------------
12391 # Assembler & linker features
12392 # ---------------------------
12394 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12395 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12396 # However when ld-new is first executed from the build tree, libtool will
12397 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12398 # to the build tree. While doing this we need to use the previous-stage
12399 # linker, or we have an infinite loop. The presence of a shell script as
12400 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12401 # the gcc/collect-ld script. So we need to know how libtool works, or
12402 # exec-tool will fail.
12405 case `pwd` in
12406 *\ * | *\ *)
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12408 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12409 esac
12413 macro_version='2.2.7a'
12414 macro_revision='1.3134'
12428 ltmain="$ac_aux_dir/ltmain.sh"
12430 # Backslashify metacharacters that are still active within
12431 # double-quoted strings.
12432 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12434 # Same as above, but do not quote variable references.
12435 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12437 # Sed substitution to delay expansion of an escaped shell variable in a
12438 # double_quote_subst'ed string.
12439 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12441 # Sed substitution to delay expansion of an escaped single quote.
12442 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12444 # Sed substitution to avoid accidental globbing in evaled expressions
12445 no_glob_subst='s/\*/\\\*/g'
12447 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12448 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12449 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12452 $as_echo_n "checking how to print strings... " >&6; }
12453 # Test print first, because it will be a builtin if present.
12454 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12455 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12456 ECHO='print -r --'
12457 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12458 ECHO='printf %s\n'
12459 else
12460 # Use this function as a fallback that always works.
12461 func_fallback_echo ()
12463 eval 'cat <<_LTECHO_EOF
12465 _LTECHO_EOF'
12467 ECHO='func_fallback_echo'
12470 # func_echo_all arg...
12471 # Invoke $ECHO with all args, space-separated.
12472 func_echo_all ()
12474 $ECHO ""
12477 case "$ECHO" in
12478 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12479 $as_echo "printf" >&6; } ;;
12480 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12481 $as_echo "print -r" >&6; } ;;
12482 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12483 $as_echo "cat" >&6; } ;;
12484 esac
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12500 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12501 if test "${ac_cv_path_SED+set}" = set; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12505 for ac_i in 1 2 3 4 5 6 7; do
12506 ac_script="$ac_script$as_nl$ac_script"
12507 done
12508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12509 { ac_script=; unset ac_script;}
12510 if test -z "$SED"; then
12511 ac_path_SED_found=false
12512 # Loop through the user's path and test for each of PROGNAME-LIST
12513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 for as_dir in $PATH
12516 IFS=$as_save_IFS
12517 test -z "$as_dir" && as_dir=.
12518 for ac_prog in sed gsed; do
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12522 # Check for GNU ac_path_SED and select it if it is found.
12523 # Check for GNU $ac_path_SED
12524 case `"$ac_path_SED" --version 2>&1` in
12525 *GNU*)
12526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12528 ac_count=0
12529 $as_echo_n 0123456789 >"conftest.in"
12530 while :
12532 cat "conftest.in" "conftest.in" >"conftest.tmp"
12533 mv "conftest.tmp" "conftest.in"
12534 cp "conftest.in" "conftest.nl"
12535 $as_echo '' >> "conftest.nl"
12536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12538 as_fn_arith $ac_count + 1 && ac_count=$as_val
12539 if test $ac_count -gt ${ac_path_SED_max-0}; then
12540 # Best one so far, save it but keep looking for a better one
12541 ac_cv_path_SED="$ac_path_SED"
12542 ac_path_SED_max=$ac_count
12544 # 10*(2^10) chars as input seems more than enough
12545 test $ac_count -gt 10 && break
12546 done
12547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12548 esac
12550 $ac_path_SED_found && break 3
12551 done
12552 done
12553 done
12554 IFS=$as_save_IFS
12555 if test -z "$ac_cv_path_SED"; then
12556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12558 else
12559 ac_cv_path_SED=$SED
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12564 $as_echo "$ac_cv_path_SED" >&6; }
12565 SED="$ac_cv_path_SED"
12566 rm -f conftest.sed
12568 test -z "$SED" && SED=sed
12569 Xsed="$SED -e 1s/^X//"
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12582 $as_echo_n "checking for fgrep... " >&6; }
12583 if test "${ac_cv_path_FGREP+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12587 then ac_cv_path_FGREP="$GREP -F"
12588 else
12589 if test -z "$FGREP"; then
12590 ac_path_FGREP_found=false
12591 # Loop through the user's path and test for each of PROGNAME-LIST
12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
12597 for ac_prog in fgrep; do
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12600 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12601 # Check for GNU ac_path_FGREP and select it if it is found.
12602 # Check for GNU $ac_path_FGREP
12603 case `"$ac_path_FGREP" --version 2>&1` in
12604 *GNU*)
12605 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12607 ac_count=0
12608 $as_echo_n 0123456789 >"conftest.in"
12609 while :
12611 cat "conftest.in" "conftest.in" >"conftest.tmp"
12612 mv "conftest.tmp" "conftest.in"
12613 cp "conftest.in" "conftest.nl"
12614 $as_echo 'FGREP' >> "conftest.nl"
12615 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12617 as_fn_arith $ac_count + 1 && ac_count=$as_val
12618 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12619 # Best one so far, save it but keep looking for a better one
12620 ac_cv_path_FGREP="$ac_path_FGREP"
12621 ac_path_FGREP_max=$ac_count
12623 # 10*(2^10) chars as input seems more than enough
12624 test $ac_count -gt 10 && break
12625 done
12626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12627 esac
12629 $ac_path_FGREP_found && break 3
12630 done
12631 done
12632 done
12633 IFS=$as_save_IFS
12634 if test -z "$ac_cv_path_FGREP"; then
12635 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12637 else
12638 ac_cv_path_FGREP=$FGREP
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12644 $as_echo "$ac_cv_path_FGREP" >&6; }
12645 FGREP="$ac_cv_path_FGREP"
12648 test -z "$GREP" && GREP=grep
12668 # Check whether --with-gnu-ld was given.
12669 if test "${with_gnu_ld+set}" = set; then :
12670 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12671 else
12672 with_gnu_ld=no
12675 ac_prog=ld
12676 if test "$GCC" = yes; then
12677 # Check if gcc -print-prog-name=ld gives a path.
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12679 $as_echo_n "checking for ld used by $CC... " >&6; }
12680 case $host in
12681 *-*-mingw*)
12682 # gcc leaves a trailing carriage return which upsets mingw
12683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12686 esac
12687 case $ac_prog in
12688 # Accept absolute paths.
12689 [\\/]* | ?:[\\/]*)
12690 re_direlt='/[^/][^/]*/\.\./'
12691 # Canonicalize the pathname of ld
12692 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12693 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12694 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12695 done
12696 test -z "$LD" && LD="$ac_prog"
12699 # If it fails, then pretend we aren't using GCC.
12700 ac_prog=ld
12703 # If it is relative, then search for the first ld in PATH.
12704 with_gnu_ld=unknown
12706 esac
12707 elif test "$with_gnu_ld" = yes; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12709 $as_echo_n "checking for GNU ld... " >&6; }
12710 else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12712 $as_echo_n "checking for non-GNU ld... " >&6; }
12714 if test "${lt_cv_path_LD+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 if test -z "$LD"; then
12718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12719 for ac_dir in $PATH; do
12720 IFS="$lt_save_ifs"
12721 test -z "$ac_dir" && ac_dir=.
12722 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12723 lt_cv_path_LD="$ac_dir/$ac_prog"
12724 # Check to see if the program is GNU ld. I'd rather use --version,
12725 # but apparently some variants of GNU ld only accept -v.
12726 # Break only if it was the GNU/non-GNU ld that we prefer.
12727 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12728 *GNU* | *'with BFD'*)
12729 test "$with_gnu_ld" != no && break
12732 test "$with_gnu_ld" != yes && break
12734 esac
12736 done
12737 IFS="$lt_save_ifs"
12738 else
12739 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12743 LD="$lt_cv_path_LD"
12744 if test -n "$LD"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12746 $as_echo "$LD" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12751 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12753 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12754 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12758 case `$LD -v 2>&1 </dev/null` in
12759 *GNU* | *'with BFD'*)
12760 lt_cv_prog_gnu_ld=yes
12763 lt_cv_prog_gnu_ld=no
12765 esac
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12768 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12769 with_gnu_ld=$lt_cv_prog_gnu_ld
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12780 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12781 if test "${lt_cv_path_NM+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12783 else
12784 if test -n "$NM"; then
12785 # Let the user override the test.
12786 lt_cv_path_NM="$NM"
12787 else
12788 lt_nm_to_check="${ac_tool_prefix}nm"
12789 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12790 lt_nm_to_check="$lt_nm_to_check nm"
12792 for lt_tmp_nm in $lt_nm_to_check; do
12793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12794 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12795 IFS="$lt_save_ifs"
12796 test -z "$ac_dir" && ac_dir=.
12797 tmp_nm="$ac_dir/$lt_tmp_nm"
12798 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12799 # Check to see if the nm accepts a BSD-compat flag.
12800 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12801 # nm: unknown option "B" ignored
12802 # Tru64's nm complains that /dev/null is an invalid object file
12803 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12804 */dev/null* | *'Invalid file or object type'*)
12805 lt_cv_path_NM="$tmp_nm -B"
12806 break
12809 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12810 */dev/null*)
12811 lt_cv_path_NM="$tmp_nm -p"
12812 break
12815 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12816 continue # so that we can try to find one that supports BSD flags
12818 esac
12820 esac
12822 done
12823 IFS="$lt_save_ifs"
12824 done
12825 : ${lt_cv_path_NM=no}
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12829 $as_echo "$lt_cv_path_NM" >&6; }
12830 if test "$lt_cv_path_NM" != "no"; then
12831 NM="$lt_cv_path_NM"
12832 else
12833 # Didn't find any BSD compatible name lister, look for dumpbin.
12834 if test -n "$DUMPBIN"; then :
12835 # Let the user override the test.
12836 else
12837 if test -n "$ac_tool_prefix"; then
12838 for ac_prog in dumpbin "link -dump"
12840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 if test -n "$DUMPBIN"; then
12848 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12849 else
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12861 done
12862 done
12863 IFS=$as_save_IFS
12867 DUMPBIN=$ac_cv_prog_DUMPBIN
12868 if test -n "$DUMPBIN"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12870 $as_echo "$DUMPBIN" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12877 test -n "$DUMPBIN" && break
12878 done
12880 if test -z "$DUMPBIN"; then
12881 ac_ct_DUMPBIN=$DUMPBIN
12882 for ac_prog in dumpbin "link -dump"
12884 # Extract the first word of "$ac_prog", so it can be a program name with args.
12885 set dummy $ac_prog; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test -n "$ac_ct_DUMPBIN"; then
12892 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12905 done
12906 done
12907 IFS=$as_save_IFS
12911 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12912 if test -n "$ac_ct_DUMPBIN"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12914 $as_echo "$ac_ct_DUMPBIN" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12921 test -n "$ac_ct_DUMPBIN" && break
12922 done
12924 if test "x$ac_ct_DUMPBIN" = x; then
12925 DUMPBIN=":"
12926 else
12927 case $cross_compiling:$ac_tool_warned in
12928 yes:)
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12931 ac_tool_warned=yes ;;
12932 esac
12933 DUMPBIN=$ac_ct_DUMPBIN
12937 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12938 *COFF*)
12939 DUMPBIN="$DUMPBIN -symbols"
12942 DUMPBIN=:
12944 esac
12947 if test "$DUMPBIN" != ":"; then
12948 NM="$DUMPBIN"
12951 test -z "$NM" && NM=nm
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12959 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12960 if test "${lt_cv_nm_interface+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 lt_cv_nm_interface="BSD nm"
12964 echo "int some_variable = 0;" > conftest.$ac_ext
12965 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12966 (eval "$ac_compile" 2>conftest.err)
12967 cat conftest.err >&5
12968 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12969 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12970 cat conftest.err >&5
12971 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12972 cat conftest.out >&5
12973 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12974 lt_cv_nm_interface="MS dumpbin"
12976 rm -f conftest*
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12979 $as_echo "$lt_cv_nm_interface" >&6; }
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12982 $as_echo_n "checking whether ln -s works... " >&6; }
12983 LN_S=$as_ln_s
12984 if test "$LN_S" = "ln -s"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12986 $as_echo "yes" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12989 $as_echo "no, using $LN_S" >&6; }
12992 # find the maximum length of command line arguments
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12994 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12995 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12999 teststring="ABCD"
13001 case $build_os in
13002 msdosdjgpp*)
13003 # On DJGPP, this test can blow up pretty badly due to problems in libc
13004 # (any single argument exceeding 2000 bytes causes a buffer overrun
13005 # during glob expansion). Even if it were fixed, the result of this
13006 # check would be larger than it should be.
13007 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13010 gnu*)
13011 # Under GNU Hurd, this test is not required because there is
13012 # no limit to the length of command line arguments.
13013 # Libtool will interpret -1 as no limit whatsoever
13014 lt_cv_sys_max_cmd_len=-1;
13017 cygwin* | mingw* | cegcc*)
13018 # On Win9x/ME, this test blows up -- it succeeds, but takes
13019 # about 5 minutes as the teststring grows exponentially.
13020 # Worse, since 9x/ME are not pre-emptively multitasking,
13021 # you end up with a "frozen" computer, even though with patience
13022 # the test eventually succeeds (with a max line length of 256k).
13023 # Instead, let's just punt: use the minimum linelength reported by
13024 # all of the supported platforms: 8192 (on NT/2K/XP).
13025 lt_cv_sys_max_cmd_len=8192;
13028 mint*)
13029 # On MiNT this can take a long time and run out of memory.
13030 lt_cv_sys_max_cmd_len=8192;
13033 amigaos*)
13034 # On AmigaOS with pdksh, this test takes hours, literally.
13035 # So we just punt and use a minimum line length of 8192.
13036 lt_cv_sys_max_cmd_len=8192;
13039 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13040 # This has been around since 386BSD, at least. Likely further.
13041 if test -x /sbin/sysctl; then
13042 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13043 elif test -x /usr/sbin/sysctl; then
13044 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13045 else
13046 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13048 # And add a safety zone
13049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13053 interix*)
13054 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13055 lt_cv_sys_max_cmd_len=196608
13058 osf*)
13059 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13060 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13061 # nice to cause kernel panics so lets avoid the loop below.
13062 # First set a reasonable default.
13063 lt_cv_sys_max_cmd_len=16384
13065 if test -x /sbin/sysconfig; then
13066 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13067 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13068 esac
13071 sco3.2v5*)
13072 lt_cv_sys_max_cmd_len=102400
13074 sysv5* | sco5v6* | sysv4.2uw2*)
13075 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13076 if test -n "$kargmax"; then
13077 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13078 else
13079 lt_cv_sys_max_cmd_len=32768
13083 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13084 if test -n "$lt_cv_sys_max_cmd_len"; then
13085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13087 else
13088 # Make teststring a little bigger before we do anything with it.
13089 # a 1K string should be a reasonable start.
13090 for i in 1 2 3 4 5 6 7 8 ; do
13091 teststring=$teststring$teststring
13092 done
13093 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13094 # If test is not a shell built-in, we'll probably end up computing a
13095 # maximum length that is only half of the actual maximum length, but
13096 # we can't tell.
13097 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13098 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13099 test $i != 17 # 1/2 MB should be enough
13101 i=`expr $i + 1`
13102 teststring=$teststring$teststring
13103 done
13104 # Only check the string length outside the loop.
13105 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13106 teststring=
13107 # Add a significant safety factor because C++ compilers can tack on
13108 # massive amounts of additional arguments before passing them to the
13109 # linker. It appears as though 1/2 is a usable value.
13110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13113 esac
13117 if test -n $lt_cv_sys_max_cmd_len ; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13119 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13120 else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13122 $as_echo "none" >&6; }
13124 max_cmd_len=$lt_cv_sys_max_cmd_len
13131 : ${CP="cp -f"}
13132 : ${MV="mv -f"}
13133 : ${RM="rm -f"}
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13136 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13137 # Try some XSI features
13138 xsi_shell=no
13139 ( _lt_dummy="a/b/c"
13140 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13141 = c,a/b,, \
13142 && eval 'test $(( 1 + 1 )) -eq 2 \
13143 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13144 && xsi_shell=yes
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13146 $as_echo "$xsi_shell" >&6; }
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13150 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13151 lt_shell_append=no
13152 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13153 >/dev/null 2>&1 \
13154 && lt_shell_append=yes
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13156 $as_echo "$lt_shell_append" >&6; }
13159 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13160 lt_unset=unset
13161 else
13162 lt_unset=false
13169 # test EBCDIC or ASCII
13170 case `echo X|tr X '\101'` in
13171 A) # ASCII based system
13172 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13173 lt_SP2NL='tr \040 \012'
13174 lt_NL2SP='tr \015\012 \040\040'
13176 *) # EBCDIC based system
13177 lt_SP2NL='tr \100 \n'
13178 lt_NL2SP='tr \r\n \100\100'
13180 esac
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13191 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13192 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 lt_cv_ld_reload_flag='-r'
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13198 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13199 reload_flag=$lt_cv_ld_reload_flag
13200 case $reload_flag in
13201 "" | " "*) ;;
13202 *) reload_flag=" $reload_flag" ;;
13203 esac
13204 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13205 case $host_os in
13206 darwin*)
13207 if test "$GCC" = yes; then
13208 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13209 else
13210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13213 esac
13223 if test -n "$ac_tool_prefix"; then
13224 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13225 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 if test -n "$OBJDUMP"; then
13232 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13233 else
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13245 done
13246 done
13247 IFS=$as_save_IFS
13251 OBJDUMP=$ac_cv_prog_OBJDUMP
13252 if test -n "$OBJDUMP"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13254 $as_echo "$OBJDUMP" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13262 if test -z "$ac_cv_prog_OBJDUMP"; then
13263 ac_ct_OBJDUMP=$OBJDUMP
13264 # Extract the first word of "objdump", so it can be a program name with args.
13265 set dummy objdump; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 if test -n "$ac_ct_OBJDUMP"; then
13272 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13285 done
13286 done
13287 IFS=$as_save_IFS
13291 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13292 if test -n "$ac_ct_OBJDUMP"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13294 $as_echo "$ac_ct_OBJDUMP" >&6; }
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13300 if test "x$ac_ct_OBJDUMP" = x; then
13301 OBJDUMP="false"
13302 else
13303 case $cross_compiling:$ac_tool_warned in
13304 yes:)
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13307 ac_tool_warned=yes ;;
13308 esac
13309 OBJDUMP=$ac_ct_OBJDUMP
13311 else
13312 OBJDUMP="$ac_cv_prog_OBJDUMP"
13315 test -z "$OBJDUMP" && OBJDUMP=objdump
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13326 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13327 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 lt_cv_file_magic_cmd='$MAGIC_CMD'
13331 lt_cv_file_magic_test_file=
13332 lt_cv_deplibs_check_method='unknown'
13333 # Need to set the preceding variable on all platforms that support
13334 # interlibrary dependencies.
13335 # 'none' -- dependencies not supported.
13336 # `unknown' -- same as none, but documents that we really don't know.
13337 # 'pass_all' -- all dependencies passed with no checks.
13338 # 'test_compile' -- check by making test program.
13339 # 'file_magic [[regex]]' -- check by looking for files in library path
13340 # which responds to the $file_magic_cmd with a given extended regex.
13341 # If you have `file' or equivalent on your system and you're not sure
13342 # whether `pass_all' will *always* work, you probably want this one.
13344 case $host_os in
13345 aix[4-9]*)
13346 lt_cv_deplibs_check_method=pass_all
13349 beos*)
13350 lt_cv_deplibs_check_method=pass_all
13353 bsdi[45]*)
13354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13355 lt_cv_file_magic_cmd='/usr/bin/file -L'
13356 lt_cv_file_magic_test_file=/shlib/libc.so
13359 cygwin*)
13360 # func_win32_libid is a shell function defined in ltmain.sh
13361 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13362 lt_cv_file_magic_cmd='func_win32_libid'
13365 mingw* | pw32*)
13366 # Base MSYS/MinGW do not provide the 'file' command needed by
13367 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13368 # unless we find 'file', for example because we are cross-compiling.
13369 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13370 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13371 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13372 lt_cv_file_magic_cmd='func_win32_libid'
13373 else
13374 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13375 lt_cv_file_magic_cmd='$OBJDUMP -f'
13379 cegcc*)
13380 # use the weaker test based on 'objdump'. See mingw*.
13381 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13382 lt_cv_file_magic_cmd='$OBJDUMP -f'
13385 darwin* | rhapsody*)
13386 lt_cv_deplibs_check_method=pass_all
13389 freebsd* | dragonfly*)
13390 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13391 case $host_cpu in
13392 i*86 )
13393 # Not sure whether the presence of OpenBSD here was a mistake.
13394 # Let's accept both of them until this is cleared up.
13395 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13396 lt_cv_file_magic_cmd=/usr/bin/file
13397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13399 esac
13400 else
13401 lt_cv_deplibs_check_method=pass_all
13405 gnu*)
13406 lt_cv_deplibs_check_method=pass_all
13409 haiku*)
13410 lt_cv_deplibs_check_method=pass_all
13413 hpux10.20* | hpux11*)
13414 lt_cv_file_magic_cmd=/usr/bin/file
13415 case $host_cpu in
13416 ia64*)
13417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13418 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13420 hppa*64*)
13421 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]'
13422 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13426 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13428 esac
13431 interix[3-9]*)
13432 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13436 irix5* | irix6* | nonstopux*)
13437 case $LD in
13438 *-32|*"-32 ") libmagic=32-bit;;
13439 *-n32|*"-n32 ") libmagic=N32;;
13440 *-64|*"-64 ") libmagic=64-bit;;
13441 *) libmagic=never-match;;
13442 esac
13443 lt_cv_deplibs_check_method=pass_all
13446 # This must be Linux ELF.
13447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13448 lt_cv_deplibs_check_method=pass_all
13451 netbsd*)
13452 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13454 else
13455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13459 newos6*)
13460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13461 lt_cv_file_magic_cmd=/usr/bin/file
13462 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13465 *nto* | *qnx*)
13466 lt_cv_deplibs_check_method=pass_all
13469 openbsd*)
13470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13472 else
13473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13477 osf3* | osf4* | osf5*)
13478 lt_cv_deplibs_check_method=pass_all
13481 rdos*)
13482 lt_cv_deplibs_check_method=pass_all
13485 solaris*)
13486 lt_cv_deplibs_check_method=pass_all
13489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13490 lt_cv_deplibs_check_method=pass_all
13493 sysv4 | sysv4.3*)
13494 case $host_vendor in
13495 motorola)
13496 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]'
13497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13499 ncr)
13500 lt_cv_deplibs_check_method=pass_all
13502 sequent)
13503 lt_cv_file_magic_cmd='/bin/file'
13504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13506 sni)
13507 lt_cv_file_magic_cmd='/bin/file'
13508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13509 lt_cv_file_magic_test_file=/lib/libc.so
13511 siemens)
13512 lt_cv_deplibs_check_method=pass_all
13515 lt_cv_deplibs_check_method=pass_all
13517 esac
13520 tpf*)
13521 lt_cv_deplibs_check_method=pass_all
13523 esac
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13527 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13528 file_magic_cmd=$lt_cv_file_magic_cmd
13529 deplibs_check_method=$lt_cv_deplibs_check_method
13530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13543 if test -n "$ac_tool_prefix"; then
13544 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13545 set dummy ${ac_tool_prefix}ar; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if test "${ac_cv_prog_AR+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test -n "$AR"; then
13552 ac_cv_prog_AR="$AR" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13561 ac_cv_prog_AR="${ac_tool_prefix}ar"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13565 done
13566 done
13567 IFS=$as_save_IFS
13571 AR=$ac_cv_prog_AR
13572 if test -n "$AR"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13574 $as_echo "$AR" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13582 if test -z "$ac_cv_prog_AR"; then
13583 ac_ct_AR=$AR
13584 # Extract the first word of "ar", so it can be a program name with args.
13585 set dummy ar; ac_word=$2
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13587 $as_echo_n "checking for $ac_word... " >&6; }
13588 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 if test -n "$ac_ct_AR"; then
13592 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13593 else
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13597 IFS=$as_save_IFS
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13601 ac_cv_prog_ac_ct_AR="ar"
13602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13603 break 2
13605 done
13606 done
13607 IFS=$as_save_IFS
13611 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13612 if test -n "$ac_ct_AR"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13614 $as_echo "$ac_ct_AR" >&6; }
13615 else
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 $as_echo "no" >&6; }
13620 if test "x$ac_ct_AR" = x; then
13621 AR="false"
13622 else
13623 case $cross_compiling:$ac_tool_warned in
13624 yes:)
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13627 ac_tool_warned=yes ;;
13628 esac
13629 AR=$ac_ct_AR
13631 else
13632 AR="$ac_cv_prog_AR"
13635 test -z "$AR" && AR=ar
13636 test -z "$AR_FLAGS" && AR_FLAGS=cru
13648 if test -n "$ac_tool_prefix"; then
13649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13650 set dummy ${ac_tool_prefix}strip; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if test "${ac_cv_prog_STRIP+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 if test -n "$STRIP"; then
13657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13658 else
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13666 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 break 2
13670 done
13671 done
13672 IFS=$as_save_IFS
13676 STRIP=$ac_cv_prog_STRIP
13677 if test -n "$STRIP"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13679 $as_echo "$STRIP" >&6; }
13680 else
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13687 if test -z "$ac_cv_prog_STRIP"; then
13688 ac_ct_STRIP=$STRIP
13689 # Extract the first word of "strip", so it can be a program name with args.
13690 set dummy strip; ac_word=$2
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692 $as_echo_n "checking for $ac_word... " >&6; }
13693 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 if test -n "$ac_ct_STRIP"; then
13697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13698 else
13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13706 ac_cv_prog_ac_ct_STRIP="strip"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13710 done
13711 done
13712 IFS=$as_save_IFS
13716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13717 if test -n "$ac_ct_STRIP"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13719 $as_echo "$ac_ct_STRIP" >&6; }
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722 $as_echo "no" >&6; }
13725 if test "x$ac_ct_STRIP" = x; then
13726 STRIP=":"
13727 else
13728 case $cross_compiling:$ac_tool_warned in
13729 yes:)
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13732 ac_tool_warned=yes ;;
13733 esac
13734 STRIP=$ac_ct_STRIP
13736 else
13737 STRIP="$ac_cv_prog_STRIP"
13740 test -z "$STRIP" && STRIP=:
13747 if test -n "$ac_tool_prefix"; then
13748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13749 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751 $as_echo_n "checking for $ac_word... " >&6; }
13752 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 if test -n "$RANLIB"; then
13756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13757 else
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13769 done
13770 done
13771 IFS=$as_save_IFS
13775 RANLIB=$ac_cv_prog_RANLIB
13776 if test -n "$RANLIB"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13778 $as_echo "$RANLIB" >&6; }
13779 else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13786 if test -z "$ac_cv_prog_RANLIB"; then
13787 ac_ct_RANLIB=$RANLIB
13788 # Extract the first word of "ranlib", so it can be a program name with args.
13789 set dummy ranlib; ac_word=$2
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13791 $as_echo_n "checking for $ac_word... " >&6; }
13792 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 if test -n "$ac_ct_RANLIB"; then
13796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13797 else
13798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799 for as_dir in $PATH
13801 IFS=$as_save_IFS
13802 test -z "$as_dir" && as_dir=.
13803 for ac_exec_ext in '' $ac_executable_extensions; do
13804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13805 ac_cv_prog_ac_ct_RANLIB="ranlib"
13806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 break 2
13809 done
13810 done
13811 IFS=$as_save_IFS
13815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13816 if test -n "$ac_ct_RANLIB"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13818 $as_echo "$ac_ct_RANLIB" >&6; }
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13824 if test "x$ac_ct_RANLIB" = x; then
13825 RANLIB=":"
13826 else
13827 case $cross_compiling:$ac_tool_warned in
13828 yes:)
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13831 ac_tool_warned=yes ;;
13832 esac
13833 RANLIB=$ac_ct_RANLIB
13835 else
13836 RANLIB="$ac_cv_prog_RANLIB"
13839 test -z "$RANLIB" && RANLIB=:
13846 # Determine commands to create old-style static archives.
13847 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13848 old_postinstall_cmds='chmod 644 $oldlib'
13849 old_postuninstall_cmds=
13851 if test -n "$RANLIB"; then
13852 case $host_os in
13853 openbsd*)
13854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13859 esac
13860 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13863 case $host_os in
13864 darwin*)
13865 lock_old_archive_extraction=yes ;;
13867 lock_old_archive_extraction=no ;;
13868 esac
13908 # If no C compiler was specified, use CC.
13909 LTCC=${LTCC-"$CC"}
13911 # If no C compiler flags were specified, use CFLAGS.
13912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13914 # Allow CC to be a program name with arguments.
13915 compiler=$CC
13918 # Check for command to grab the raw symbol name followed by C symbol from nm.
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13920 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13921 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13925 # These are sane defaults that work on at least a few old systems.
13926 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13928 # Character class describing NM global symbol codes.
13929 symcode='[BCDEGRST]'
13931 # Regexp to match symbols that can be accessed directly from C.
13932 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13934 # Define system-specific variables.
13935 case $host_os in
13936 aix*)
13937 symcode='[BCDT]'
13939 cygwin* | mingw* | pw32* | cegcc*)
13940 symcode='[ABCDGISTW]'
13942 hpux*)
13943 if test "$host_cpu" = ia64; then
13944 symcode='[ABCDEGRST]'
13947 irix* | nonstopux*)
13948 symcode='[BCDEGRST]'
13950 osf*)
13951 symcode='[BCDEGQRST]'
13953 solaris*)
13954 symcode='[BDRT]'
13956 sco3.2v5*)
13957 symcode='[DT]'
13959 sysv4.2uw2*)
13960 symcode='[DT]'
13962 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13963 symcode='[ABDT]'
13965 sysv4)
13966 symcode='[DFNSTU]'
13968 esac
13970 # If we're using GNU nm, then use its standard symbol codes.
13971 case `$NM -V 2>&1` in
13972 *GNU* | *'with BFD'*)
13973 symcode='[ABCDGIRSTW]' ;;
13974 esac
13976 # Transform an extracted symbol line into a proper C declaration.
13977 # Some systems (esp. on ia64) link data and code symbols differently,
13978 # so use this general approach.
13979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13981 # Transform an extracted symbol line into symbol name and symbol address
13982 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13983 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'"
13985 # Handle CRLF in mingw tool chain
13986 opt_cr=
13987 case $build_os in
13988 mingw*)
13989 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13991 esac
13993 # Try without a prefix underscore, then with it.
13994 for ac_symprfx in "" "_"; do
13996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13997 symxfrm="\\1 $ac_symprfx\\2 \\2"
13999 # Write the raw and C identifiers.
14000 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14001 # Fake it for dumpbin and say T for any non-static function
14002 # and D for any global variable.
14003 # Also find C++ and __fastcall symbols from MSVC++,
14004 # which start with @ or ?.
14005 lt_cv_sys_global_symbol_pipe="$AWK '"\
14006 " {last_section=section; section=\$ 3};"\
14007 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14008 " \$ 0!~/External *\|/{next};"\
14009 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14010 " {if(hide[section]) next};"\
14011 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14012 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14013 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14014 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14015 " ' prfx=^$ac_symprfx"
14016 else
14017 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14020 # Check to see that the pipe works correctly.
14021 pipe_works=no
14023 rm -f conftest*
14024 cat > conftest.$ac_ext <<_LT_EOF
14025 #ifdef __cplusplus
14026 extern "C" {
14027 #endif
14028 char nm_test_var;
14029 void nm_test_func(void);
14030 void nm_test_func(void){}
14031 #ifdef __cplusplus
14033 #endif
14034 int main(){nm_test_var='a';nm_test_func();return(0);}
14035 _LT_EOF
14037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14038 (eval $ac_compile) 2>&5
14039 ac_status=$?
14040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14041 test $ac_status = 0; }; then
14042 # Now try to grab the symbols.
14043 nlist=conftest.nm
14044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14045 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14046 ac_status=$?
14047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14048 test $ac_status = 0; } && test -s "$nlist"; then
14049 # Try sorting and uniquifying the output.
14050 if sort "$nlist" | uniq > "$nlist"T; then
14051 mv -f "$nlist"T "$nlist"
14052 else
14053 rm -f "$nlist"T
14056 # Make sure that we snagged all the symbols we need.
14057 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14058 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14059 cat <<_LT_EOF > conftest.$ac_ext
14060 #ifdef __cplusplus
14061 extern "C" {
14062 #endif
14064 _LT_EOF
14065 # Now generate the symbol file.
14066 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14068 cat <<_LT_EOF >> conftest.$ac_ext
14070 /* The mapping between symbol names and symbols. */
14071 const struct {
14072 const char *name;
14073 void *address;
14075 lt__PROGRAM__LTX_preloaded_symbols[] =
14077 { "@PROGRAM@", (void *) 0 },
14078 _LT_EOF
14079 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14080 cat <<\_LT_EOF >> conftest.$ac_ext
14081 {0, (void *) 0}
14084 /* This works around a problem in FreeBSD linker */
14085 #ifdef FREEBSD_WORKAROUND
14086 static const void *lt_preloaded_setup() {
14087 return lt__PROGRAM__LTX_preloaded_symbols;
14089 #endif
14091 #ifdef __cplusplus
14093 #endif
14094 _LT_EOF
14095 # Now try linking the two files.
14096 mv conftest.$ac_objext conftstm.$ac_objext
14097 lt_save_LIBS="$LIBS"
14098 lt_save_CFLAGS="$CFLAGS"
14099 LIBS="conftstm.$ac_objext"
14100 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14102 (eval $ac_link) 2>&5
14103 ac_status=$?
14104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14105 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14106 pipe_works=yes
14108 LIBS="$lt_save_LIBS"
14109 CFLAGS="$lt_save_CFLAGS"
14110 else
14111 echo "cannot find nm_test_func in $nlist" >&5
14113 else
14114 echo "cannot find nm_test_var in $nlist" >&5
14116 else
14117 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14119 else
14120 echo "$progname: failed program was:" >&5
14121 cat conftest.$ac_ext >&5
14123 rm -rf conftest* conftst*
14125 # Do not use the global_symbol_pipe unless it works.
14126 if test "$pipe_works" = yes; then
14127 break
14128 else
14129 lt_cv_sys_global_symbol_pipe=
14131 done
14135 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14136 lt_cv_sys_global_symbol_to_cdecl=
14138 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14140 $as_echo "failed" >&6; }
14141 else
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14143 $as_echo "ok" >&6; }
14167 # Check whether --enable-libtool-lock was given.
14168 if test "${enable_libtool_lock+set}" = set; then :
14169 enableval=$enable_libtool_lock;
14172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14174 # Some flags need to be propagated to the compiler or linker for good
14175 # libtool support.
14176 case $host in
14177 ia64-*-hpux*)
14178 # Find out which ABI we are using.
14179 echo 'int i;' > conftest.$ac_ext
14180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14181 (eval $ac_compile) 2>&5
14182 ac_status=$?
14183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14184 test $ac_status = 0; }; then
14185 case `/usr/bin/file conftest.$ac_objext` in
14186 *ELF-32*)
14187 HPUX_IA64_MODE="32"
14189 *ELF-64*)
14190 HPUX_IA64_MODE="64"
14192 esac
14194 rm -rf conftest*
14196 *-*-irix6*)
14197 # Find out which ABI we are using.
14198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14200 (eval $ac_compile) 2>&5
14201 ac_status=$?
14202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14203 test $ac_status = 0; }; then
14204 if test "$lt_cv_prog_gnu_ld" = yes; then
14205 case `/usr/bin/file conftest.$ac_objext` in
14206 *32-bit*)
14207 LD="${LD-ld} -melf32bsmip"
14209 *N32*)
14210 LD="${LD-ld} -melf32bmipn32"
14212 *64-bit*)
14213 LD="${LD-ld} -melf64bmip"
14215 esac
14216 else
14217 case `/usr/bin/file conftest.$ac_objext` in
14218 *32-bit*)
14219 LD="${LD-ld} -32"
14221 *N32*)
14222 LD="${LD-ld} -n32"
14224 *64-bit*)
14225 LD="${LD-ld} -64"
14227 esac
14230 rm -rf conftest*
14233 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14234 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14235 # Find out which ABI we are using.
14236 echo 'int i;' > conftest.$ac_ext
14237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14238 (eval $ac_compile) 2>&5
14239 ac_status=$?
14240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; then
14242 case `/usr/bin/file conftest.o` in
14243 *32-bit*)
14244 case $host in
14245 x86_64-*kfreebsd*-gnu)
14246 LD="${LD-ld} -m elf_i386_fbsd"
14248 x86_64-*linux*)
14249 case `/usr/bin/file conftest.o` in
14250 *x86-64*)
14251 LD="${LD-ld} -m elf32_x86_64"
14254 LD="${LD-ld} -m elf_i386"
14256 esac
14258 powerpc64le-*linux*)
14259 LD="${LD-ld} -m elf32lppclinux"
14261 powerpc64-*linux*)
14262 LD="${LD-ld} -m elf32ppclinux"
14264 s390x-*linux*)
14265 LD="${LD-ld} -m elf_s390"
14267 sparc64-*linux*)
14268 LD="${LD-ld} -m elf32_sparc"
14270 esac
14272 *64-bit*)
14273 case $host in
14274 x86_64-*kfreebsd*-gnu)
14275 LD="${LD-ld} -m elf_x86_64_fbsd"
14277 x86_64-*linux*)
14278 LD="${LD-ld} -m elf_x86_64"
14280 powerpcle-*linux*)
14281 LD="${LD-ld} -m elf64lppc"
14283 powerpc-*linux*)
14284 LD="${LD-ld} -m elf64ppc"
14286 s390*-*linux*|s390*-*tpf*)
14287 LD="${LD-ld} -m elf64_s390"
14289 sparc*-*linux*)
14290 LD="${LD-ld} -m elf64_sparc"
14292 esac
14294 esac
14296 rm -rf conftest*
14299 *-*-sco3.2v5*)
14300 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14301 SAVE_CFLAGS="$CFLAGS"
14302 CFLAGS="$CFLAGS -belf"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14304 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14305 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 ac_ext=c
14309 ac_cpp='$CPP $CPPFLAGS'
14310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14318 main ()
14322 return 0;
14324 _ACEOF
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 lt_cv_cc_needs_belf=yes
14327 else
14328 lt_cv_cc_needs_belf=no
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332 ac_ext=c
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14340 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14343 CFLAGS="$SAVE_CFLAGS"
14346 sparc*-*solaris*)
14347 # Find out which ABI we are using.
14348 echo 'int i;' > conftest.$ac_ext
14349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14350 (eval $ac_compile) 2>&5
14351 ac_status=$?
14352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14353 test $ac_status = 0; }; then
14354 case `/usr/bin/file conftest.o` in
14355 *64-bit*)
14356 case $lt_cv_prog_gnu_ld in
14357 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14359 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14360 LD="${LD-ld} -64"
14363 esac
14365 esac
14367 rm -rf conftest*
14369 esac
14371 need_locks="$enable_libtool_lock"
14374 case $host_os in
14375 rhapsody* | darwin*)
14376 if test -n "$ac_tool_prefix"; then
14377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14378 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14380 $as_echo_n "checking for $ac_word... " >&6; }
14381 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 if test -n "$DSYMUTIL"; then
14385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14386 else
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14390 IFS=$as_save_IFS
14391 test -z "$as_dir" && as_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14396 break 2
14398 done
14399 done
14400 IFS=$as_save_IFS
14404 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14405 if test -n "$DSYMUTIL"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14407 $as_echo "$DSYMUTIL" >&6; }
14408 else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 $as_echo "no" >&6; }
14415 if test -z "$ac_cv_prog_DSYMUTIL"; then
14416 ac_ct_DSYMUTIL=$DSYMUTIL
14417 # Extract the first word of "dsymutil", so it can be a program name with args.
14418 set dummy dsymutil; ac_word=$2
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14420 $as_echo_n "checking for $ac_word... " >&6; }
14421 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 if test -n "$ac_ct_DSYMUTIL"; then
14425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14426 else
14427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14428 for as_dir in $PATH
14430 IFS=$as_save_IFS
14431 test -z "$as_dir" && as_dir=.
14432 for ac_exec_ext in '' $ac_executable_extensions; do
14433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14436 break 2
14438 done
14439 done
14440 IFS=$as_save_IFS
14444 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14445 if test -n "$ac_ct_DSYMUTIL"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14447 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14448 else
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14453 if test "x$ac_ct_DSYMUTIL" = x; then
14454 DSYMUTIL=":"
14455 else
14456 case $cross_compiling:$ac_tool_warned in
14457 yes:)
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14460 ac_tool_warned=yes ;;
14461 esac
14462 DSYMUTIL=$ac_ct_DSYMUTIL
14464 else
14465 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14468 if test -n "$ac_tool_prefix"; then
14469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14470 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 $as_echo_n "checking for $ac_word... " >&6; }
14473 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14476 if test -n "$NMEDIT"; then
14477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14478 else
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14482 IFS=$as_save_IFS
14483 test -z "$as_dir" && as_dir=.
14484 for ac_exec_ext in '' $ac_executable_extensions; do
14485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14488 break 2
14490 done
14491 done
14492 IFS=$as_save_IFS
14496 NMEDIT=$ac_cv_prog_NMEDIT
14497 if test -n "$NMEDIT"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14499 $as_echo "$NMEDIT" >&6; }
14500 else
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14507 if test -z "$ac_cv_prog_NMEDIT"; then
14508 ac_ct_NMEDIT=$NMEDIT
14509 # Extract the first word of "nmedit", so it can be a program name with args.
14510 set dummy nmedit; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 if test -n "$ac_ct_NMEDIT"; then
14517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14518 else
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14522 IFS=$as_save_IFS
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14526 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 break 2
14530 done
14531 done
14532 IFS=$as_save_IFS
14536 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14537 if test -n "$ac_ct_NMEDIT"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14539 $as_echo "$ac_ct_NMEDIT" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14545 if test "x$ac_ct_NMEDIT" = x; then
14546 NMEDIT=":"
14547 else
14548 case $cross_compiling:$ac_tool_warned in
14549 yes:)
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14552 ac_tool_warned=yes ;;
14553 esac
14554 NMEDIT=$ac_ct_NMEDIT
14556 else
14557 NMEDIT="$ac_cv_prog_NMEDIT"
14560 if test -n "$ac_tool_prefix"; then
14561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14562 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 $as_echo_n "checking for $ac_word... " >&6; }
14565 if test "${ac_cv_prog_LIPO+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 if test -n "$LIPO"; then
14569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14570 else
14571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14572 for as_dir in $PATH
14574 IFS=$as_save_IFS
14575 test -z "$as_dir" && as_dir=.
14576 for ac_exec_ext in '' $ac_executable_extensions; do
14577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14580 break 2
14582 done
14583 done
14584 IFS=$as_save_IFS
14588 LIPO=$ac_cv_prog_LIPO
14589 if test -n "$LIPO"; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14591 $as_echo "$LIPO" >&6; }
14592 else
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594 $as_echo "no" >&6; }
14599 if test -z "$ac_cv_prog_LIPO"; then
14600 ac_ct_LIPO=$LIPO
14601 # Extract the first word of "lipo", so it can be a program name with args.
14602 set dummy lipo; ac_word=$2
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14604 $as_echo_n "checking for $ac_word... " >&6; }
14605 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 if test -n "$ac_ct_LIPO"; then
14609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14610 else
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14618 ac_cv_prog_ac_ct_LIPO="lipo"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14622 done
14623 done
14624 IFS=$as_save_IFS
14628 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14629 if test -n "$ac_ct_LIPO"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14631 $as_echo "$ac_ct_LIPO" >&6; }
14632 else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14637 if test "x$ac_ct_LIPO" = x; then
14638 LIPO=":"
14639 else
14640 case $cross_compiling:$ac_tool_warned in
14641 yes:)
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14644 ac_tool_warned=yes ;;
14645 esac
14646 LIPO=$ac_ct_LIPO
14648 else
14649 LIPO="$ac_cv_prog_LIPO"
14652 if test -n "$ac_tool_prefix"; then
14653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14654 set dummy ${ac_tool_prefix}otool; ac_word=$2
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14656 $as_echo_n "checking for $ac_word... " >&6; }
14657 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 if test -n "$OTOOL"; then
14661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14662 else
14663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14664 for as_dir in $PATH
14666 IFS=$as_save_IFS
14667 test -z "$as_dir" && as_dir=.
14668 for ac_exec_ext in '' $ac_executable_extensions; do
14669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14672 break 2
14674 done
14675 done
14676 IFS=$as_save_IFS
14680 OTOOL=$ac_cv_prog_OTOOL
14681 if test -n "$OTOOL"; then
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14683 $as_echo "$OTOOL" >&6; }
14684 else
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686 $as_echo "no" >&6; }
14691 if test -z "$ac_cv_prog_OTOOL"; then
14692 ac_ct_OTOOL=$OTOOL
14693 # Extract the first word of "otool", so it can be a program name with args.
14694 set dummy otool; ac_word=$2
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14696 $as_echo_n "checking for $ac_word... " >&6; }
14697 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 if test -n "$ac_ct_OTOOL"; then
14701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14702 else
14703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14704 for as_dir in $PATH
14706 IFS=$as_save_IFS
14707 test -z "$as_dir" && as_dir=.
14708 for ac_exec_ext in '' $ac_executable_extensions; do
14709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14710 ac_cv_prog_ac_ct_OTOOL="otool"
14711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14712 break 2
14714 done
14715 done
14716 IFS=$as_save_IFS
14720 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14721 if test -n "$ac_ct_OTOOL"; then
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14723 $as_echo "$ac_ct_OTOOL" >&6; }
14724 else
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14729 if test "x$ac_ct_OTOOL" = x; then
14730 OTOOL=":"
14731 else
14732 case $cross_compiling:$ac_tool_warned in
14733 yes:)
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14736 ac_tool_warned=yes ;;
14737 esac
14738 OTOOL=$ac_ct_OTOOL
14740 else
14741 OTOOL="$ac_cv_prog_OTOOL"
14744 if test -n "$ac_tool_prefix"; then
14745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14746 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14748 $as_echo_n "checking for $ac_word... " >&6; }
14749 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 if test -n "$OTOOL64"; then
14753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14754 else
14755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14758 IFS=$as_save_IFS
14759 test -z "$as_dir" && as_dir=.
14760 for ac_exec_ext in '' $ac_executable_extensions; do
14761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14764 break 2
14766 done
14767 done
14768 IFS=$as_save_IFS
14772 OTOOL64=$ac_cv_prog_OTOOL64
14773 if test -n "$OTOOL64"; then
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14775 $as_echo "$OTOOL64" >&6; }
14776 else
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14778 $as_echo "no" >&6; }
14783 if test -z "$ac_cv_prog_OTOOL64"; then
14784 ac_ct_OTOOL64=$OTOOL64
14785 # Extract the first word of "otool64", so it can be a program name with args.
14786 set dummy otool64; ac_word=$2
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14788 $as_echo_n "checking for $ac_word... " >&6; }
14789 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14790 $as_echo_n "(cached) " >&6
14791 else
14792 if test -n "$ac_ct_OTOOL64"; then
14793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14794 else
14795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $PATH
14798 IFS=$as_save_IFS
14799 test -z "$as_dir" && as_dir=.
14800 for ac_exec_ext in '' $ac_executable_extensions; do
14801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14802 ac_cv_prog_ac_ct_OTOOL64="otool64"
14803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14804 break 2
14806 done
14807 done
14808 IFS=$as_save_IFS
14812 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14813 if test -n "$ac_ct_OTOOL64"; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14815 $as_echo "$ac_ct_OTOOL64" >&6; }
14816 else
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14821 if test "x$ac_ct_OTOOL64" = x; then
14822 OTOOL64=":"
14823 else
14824 case $cross_compiling:$ac_tool_warned in
14825 yes:)
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14828 ac_tool_warned=yes ;;
14829 esac
14830 OTOOL64=$ac_ct_OTOOL64
14832 else
14833 OTOOL64="$ac_cv_prog_OTOOL64"
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14863 $as_echo_n "checking for -single_module linker flag... " >&6; }
14864 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 lt_cv_apple_cc_single_mod=no
14868 if test -z "${LT_MULTI_MODULE}"; then
14869 # By default we will add the -single_module flag. You can override
14870 # by either setting the environment variable LT_MULTI_MODULE
14871 # non-empty at configure time, or by adding -multi_module to the
14872 # link flags.
14873 rm -rf libconftest.dylib*
14874 echo "int foo(void){return 1;}" > conftest.c
14875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14876 -dynamiclib -Wl,-single_module conftest.c" >&5
14877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14879 _lt_result=$?
14880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14881 lt_cv_apple_cc_single_mod=yes
14882 else
14883 cat conftest.err >&5
14885 rm -rf libconftest.dylib*
14886 rm -f conftest.*
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14890 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14892 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14893 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14895 else
14896 lt_cv_ld_exported_symbols_list=no
14897 save_LDFLAGS=$LDFLAGS
14898 echo "_main" > conftest.sym
14899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14904 main ()
14908 return 0;
14910 _ACEOF
14911 if ac_fn_c_try_link "$LINENO"; then :
14912 lt_cv_ld_exported_symbols_list=yes
14913 else
14914 lt_cv_ld_exported_symbols_list=no
14916 rm -f core conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
14918 LDFLAGS="$save_LDFLAGS"
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14922 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14924 $as_echo_n "checking for -force_load linker flag... " >&6; }
14925 if test "${lt_cv_ld_force_load+set}" = set; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 lt_cv_ld_force_load=no
14929 cat > conftest.c << _LT_EOF
14930 int forced_loaded() { return 2;}
14931 _LT_EOF
14932 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14933 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14934 echo "$AR cru libconftest.a conftest.o" >&5
14935 $AR cru libconftest.a conftest.o 2>&5
14936 cat > conftest.c << _LT_EOF
14937 int main() { return 0;}
14938 _LT_EOF
14939 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14940 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14941 _lt_result=$?
14942 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14943 lt_cv_ld_force_load=yes
14944 else
14945 cat conftest.err >&5
14947 rm -f conftest.err libconftest.a conftest conftest.c
14948 rm -rf conftest.dSYM
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14952 $as_echo "$lt_cv_ld_force_load" >&6; }
14953 case $host_os in
14954 rhapsody* | darwin1.[012])
14955 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14956 darwin1.*)
14957 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14958 darwin*) # darwin 5.x on
14959 # if running on 10.5 or later, the deployment target defaults
14960 # to the OS version, if on x86, and 10.4, the deployment
14961 # target defaults to 10.4. Don't you love it?
14962 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14963 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14964 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14965 10.[012][,.]*)
14966 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14967 10.*)
14968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14969 esac
14971 esac
14972 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14973 _lt_dar_single_mod='$single_module'
14975 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14976 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14977 else
14978 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14980 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14981 _lt_dsymutil='~$DSYMUTIL $lib || :'
14982 else
14983 _lt_dsymutil=
14986 esac
14989 for ac_header in dlfcn.h
14990 do :
14991 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14992 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14993 cat >>confdefs.h <<_ACEOF
14994 #define HAVE_DLFCN_H 1
14995 _ACEOF
14998 done
15004 # Set options
15008 enable_dlopen=no
15011 enable_win32_dll=no
15014 # Check whether --enable-shared was given.
15015 if test "${enable_shared+set}" = set; then :
15016 enableval=$enable_shared; p=${PACKAGE-default}
15017 case $enableval in
15018 yes) enable_shared=yes ;;
15019 no) enable_shared=no ;;
15021 enable_shared=no
15022 # Look at the argument we got. We use all the common list separators.
15023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15024 for pkg in $enableval; do
15025 IFS="$lt_save_ifs"
15026 if test "X$pkg" = "X$p"; then
15027 enable_shared=yes
15029 done
15030 IFS="$lt_save_ifs"
15032 esac
15033 else
15034 enable_shared=yes
15045 # Check whether --enable-static was given.
15046 if test "${enable_static+set}" = set; then :
15047 enableval=$enable_static; p=${PACKAGE-default}
15048 case $enableval in
15049 yes) enable_static=yes ;;
15050 no) enable_static=no ;;
15052 enable_static=no
15053 # Look at the argument we got. We use all the common list separators.
15054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15055 for pkg in $enableval; do
15056 IFS="$lt_save_ifs"
15057 if test "X$pkg" = "X$p"; then
15058 enable_static=yes
15060 done
15061 IFS="$lt_save_ifs"
15063 esac
15064 else
15065 enable_static=yes
15077 # Check whether --with-pic was given.
15078 if test "${with_pic+set}" = set; then :
15079 withval=$with_pic; pic_mode="$withval"
15080 else
15081 pic_mode=default
15085 test -z "$pic_mode" && pic_mode=default
15093 # Check whether --enable-fast-install was given.
15094 if test "${enable_fast_install+set}" = set; then :
15095 enableval=$enable_fast_install; p=${PACKAGE-default}
15096 case $enableval in
15097 yes) enable_fast_install=yes ;;
15098 no) enable_fast_install=no ;;
15100 enable_fast_install=no
15101 # Look at the argument we got. We use all the common list separators.
15102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15103 for pkg in $enableval; do
15104 IFS="$lt_save_ifs"
15105 if test "X$pkg" = "X$p"; then
15106 enable_fast_install=yes
15108 done
15109 IFS="$lt_save_ifs"
15111 esac
15112 else
15113 enable_fast_install=yes
15126 # This can be used to rebuild libtool when needed
15127 LIBTOOL_DEPS="$ltmain"
15129 # Always use our own libtool.
15130 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15157 test -z "$LN_S" && LN_S="ln -s"
15172 if test -n "${ZSH_VERSION+set}" ; then
15173 setopt NO_GLOB_SUBST
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15177 $as_echo_n "checking for objdir... " >&6; }
15178 if test "${lt_cv_objdir+set}" = set; then :
15179 $as_echo_n "(cached) " >&6
15180 else
15181 rm -f .libs 2>/dev/null
15182 mkdir .libs 2>/dev/null
15183 if test -d .libs; then
15184 lt_cv_objdir=.libs
15185 else
15186 # MS-DOS does not allow filenames that begin with a dot.
15187 lt_cv_objdir=_libs
15189 rmdir .libs 2>/dev/null
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15192 $as_echo "$lt_cv_objdir" >&6; }
15193 objdir=$lt_cv_objdir
15199 cat >>confdefs.h <<_ACEOF
15200 #define LT_OBJDIR "$lt_cv_objdir/"
15201 _ACEOF
15206 case $host_os in
15207 aix3*)
15208 # AIX sometimes has problems with the GCC collect2 program. For some
15209 # reason, if we set the COLLECT_NAMES environment variable, the problems
15210 # vanish in a puff of smoke.
15211 if test "X${COLLECT_NAMES+set}" != Xset; then
15212 COLLECT_NAMES=
15213 export COLLECT_NAMES
15216 esac
15218 # Global variables:
15219 ofile=libtool
15220 can_build_shared=yes
15222 # All known linkers require a `.a' archive for static linking (except MSVC,
15223 # which needs '.lib').
15224 libext=a
15226 with_gnu_ld="$lt_cv_prog_gnu_ld"
15228 old_CC="$CC"
15229 old_CFLAGS="$CFLAGS"
15231 # Set sane defaults for various variables
15232 test -z "$CC" && CC=cc
15233 test -z "$LTCC" && LTCC=$CC
15234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15235 test -z "$LD" && LD=ld
15236 test -z "$ac_objext" && ac_objext=o
15238 for cc_temp in $compiler""; do
15239 case $cc_temp in
15240 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15241 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15242 \-*) ;;
15243 *) break;;
15244 esac
15245 done
15246 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15249 # Only perform the check for file, if the check method requires it
15250 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15251 case $deplibs_check_method in
15252 file_magic*)
15253 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15255 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15256 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 case $MAGIC_CMD in
15260 [\\/*] | ?:[\\/]*)
15261 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15264 lt_save_MAGIC_CMD="$MAGIC_CMD"
15265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15266 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15267 for ac_dir in $ac_dummy; do
15268 IFS="$lt_save_ifs"
15269 test -z "$ac_dir" && ac_dir=.
15270 if test -f $ac_dir/${ac_tool_prefix}file; then
15271 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15272 if test -n "$file_magic_test_file"; then
15273 case $deplibs_check_method in
15274 "file_magic "*)
15275 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15278 $EGREP "$file_magic_regex" > /dev/null; then
15280 else
15281 cat <<_LT_EOF 1>&2
15283 *** Warning: the command libtool uses to detect shared libraries,
15284 *** $file_magic_cmd, produces output that libtool cannot recognize.
15285 *** The result is that libtool may fail to recognize shared libraries
15286 *** as such. This will affect the creation of libtool libraries that
15287 *** depend on shared libraries, but programs linked with such libtool
15288 *** libraries will work regardless of this problem. Nevertheless, you
15289 *** may want to report the problem to your system manager and/or to
15290 *** bug-libtool@gnu.org
15292 _LT_EOF
15293 fi ;;
15294 esac
15296 break
15298 done
15299 IFS="$lt_save_ifs"
15300 MAGIC_CMD="$lt_save_MAGIC_CMD"
15302 esac
15305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15306 if test -n "$MAGIC_CMD"; then
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15308 $as_echo "$MAGIC_CMD" >&6; }
15309 else
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15311 $as_echo "no" >&6; }
15318 if test -z "$lt_cv_path_MAGIC_CMD"; then
15319 if test -n "$ac_tool_prefix"; then
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15321 $as_echo_n "checking for file... " >&6; }
15322 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15323 $as_echo_n "(cached) " >&6
15324 else
15325 case $MAGIC_CMD in
15326 [\\/*] | ?:[\\/]*)
15327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15330 lt_save_MAGIC_CMD="$MAGIC_CMD"
15331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15333 for ac_dir in $ac_dummy; do
15334 IFS="$lt_save_ifs"
15335 test -z "$ac_dir" && ac_dir=.
15336 if test -f $ac_dir/file; then
15337 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15338 if test -n "$file_magic_test_file"; then
15339 case $deplibs_check_method in
15340 "file_magic "*)
15341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15344 $EGREP "$file_magic_regex" > /dev/null; then
15346 else
15347 cat <<_LT_EOF 1>&2
15349 *** Warning: the command libtool uses to detect shared libraries,
15350 *** $file_magic_cmd, produces output that libtool cannot recognize.
15351 *** The result is that libtool may fail to recognize shared libraries
15352 *** as such. This will affect the creation of libtool libraries that
15353 *** depend on shared libraries, but programs linked with such libtool
15354 *** libraries will work regardless of this problem. Nevertheless, you
15355 *** may want to report the problem to your system manager and/or to
15356 *** bug-libtool@gnu.org
15358 _LT_EOF
15359 fi ;;
15360 esac
15362 break
15364 done
15365 IFS="$lt_save_ifs"
15366 MAGIC_CMD="$lt_save_MAGIC_CMD"
15368 esac
15371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15372 if test -n "$MAGIC_CMD"; then
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15374 $as_echo "$MAGIC_CMD" >&6; }
15375 else
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15381 else
15382 MAGIC_CMD=:
15388 esac
15390 # Use C for the default configuration in the libtool script
15392 lt_save_CC="$CC"
15393 ac_ext=c
15394 ac_cpp='$CPP $CPPFLAGS'
15395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15400 # Source file extension for C test sources.
15401 ac_ext=c
15403 # Object file extension for compiled C test sources.
15404 objext=o
15405 objext=$objext
15407 # Code to be used in simple compile tests
15408 lt_simple_compile_test_code="int some_variable = 0;"
15410 # Code to be used in simple link tests
15411 lt_simple_link_test_code='int main(){return(0);}'
15419 # If no C compiler was specified, use CC.
15420 LTCC=${LTCC-"$CC"}
15422 # If no C compiler flags were specified, use CFLAGS.
15423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15425 # Allow CC to be a program name with arguments.
15426 compiler=$CC
15428 # Save the default compiler, since it gets overwritten when the other
15429 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15430 compiler_DEFAULT=$CC
15432 # save warnings/boilerplate of simple test code
15433 ac_outfile=conftest.$ac_objext
15434 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15436 _lt_compiler_boilerplate=`cat conftest.err`
15437 $RM conftest*
15439 ac_outfile=conftest.$ac_objext
15440 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15442 _lt_linker_boilerplate=`cat conftest.err`
15443 $RM -r conftest*
15446 ## CAVEAT EMPTOR:
15447 ## There is no encapsulation within the following macros, do not change
15448 ## the running order or otherwise move them around unless you know exactly
15449 ## what you are doing...
15450 if test -n "$compiler"; then
15452 lt_prog_compiler_no_builtin_flag=
15454 if test "$GCC" = yes; then
15455 case $cc_basename in
15456 nvcc*)
15457 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15459 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15460 esac
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15463 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15464 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15465 $as_echo_n "(cached) " >&6
15466 else
15467 lt_cv_prog_compiler_rtti_exceptions=no
15468 ac_outfile=conftest.$ac_objext
15469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15470 lt_compiler_flag="-fno-rtti -fno-exceptions"
15471 # Insert the option either (1) after the last *FLAGS variable, or
15472 # (2) before a word containing "conftest.", or (3) at the end.
15473 # Note that $ac_compile itself does not contain backslashes and begins
15474 # with a dollar sign (not a hyphen), so the echo should work correctly.
15475 # The option is referenced via a variable to avoid confusing sed.
15476 lt_compile=`echo "$ac_compile" | $SED \
15477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15479 -e 's:$: $lt_compiler_flag:'`
15480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15481 (eval "$lt_compile" 2>conftest.err)
15482 ac_status=$?
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 if (exit $ac_status) && test -s "$ac_outfile"; then
15486 # The compiler can only warn and ignore the option if not recognized
15487 # So say no if there are warnings other than the usual output.
15488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15491 lt_cv_prog_compiler_rtti_exceptions=yes
15494 $RM conftest*
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15498 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15500 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15501 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15502 else
15513 lt_prog_compiler_wl=
15514 lt_prog_compiler_pic=
15515 lt_prog_compiler_static=
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15518 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15520 if test "$GCC" = yes; then
15521 lt_prog_compiler_wl='-Wl,'
15522 lt_prog_compiler_static='-static'
15524 case $host_os in
15525 aix*)
15526 # All AIX code is PIC.
15527 if test "$host_cpu" = ia64; then
15528 # AIX 5 now supports IA64 processor
15529 lt_prog_compiler_static='-Bstatic'
15531 lt_prog_compiler_pic='-fPIC'
15534 amigaos*)
15535 case $host_cpu in
15536 powerpc)
15537 # see comment about AmigaOS4 .so support
15538 lt_prog_compiler_pic='-fPIC'
15540 m68k)
15541 # FIXME: we need at least 68020 code to build shared libraries, but
15542 # adding the `-m68020' flag to GCC prevents building anything better,
15543 # like `-m68040'.
15544 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15546 esac
15549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15550 # PIC is the default for these OSes.
15553 mingw* | cygwin* | pw32* | os2* | cegcc*)
15554 # This hack is so that the source file can tell whether it is being
15555 # built for inclusion in a dll (and should export symbols for example).
15556 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15557 # (--disable-auto-import) libraries
15558 lt_prog_compiler_pic='-DDLL_EXPORT'
15561 darwin* | rhapsody*)
15562 # PIC is the default on this platform
15563 # Common symbols not allowed in MH_DYLIB files
15564 lt_prog_compiler_pic='-fno-common'
15567 haiku*)
15568 # PIC is the default for Haiku.
15569 # The "-static" flag exists, but is broken.
15570 lt_prog_compiler_static=
15573 hpux*)
15574 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15575 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15576 # sets the default TLS model and affects inlining.
15577 case $host_cpu in
15578 hppa*64*)
15579 # +Z the default
15582 lt_prog_compiler_pic='-fPIC'
15584 esac
15587 interix[3-9]*)
15588 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15589 # Instead, we relocate shared libraries at runtime.
15592 msdosdjgpp*)
15593 # Just because we use GCC doesn't mean we suddenly get shared libraries
15594 # on systems that don't support them.
15595 lt_prog_compiler_can_build_shared=no
15596 enable_shared=no
15599 *nto* | *qnx*)
15600 # QNX uses GNU C++, but need to define -shared option too, otherwise
15601 # it will coredump.
15602 lt_prog_compiler_pic='-fPIC -shared'
15605 sysv4*MP*)
15606 if test -d /usr/nec; then
15607 lt_prog_compiler_pic=-Kconform_pic
15612 lt_prog_compiler_pic='-fPIC'
15614 esac
15616 case $cc_basename in
15617 nvcc*) # Cuda Compiler Driver 2.2
15618 lt_prog_compiler_wl='-Xlinker '
15619 lt_prog_compiler_pic='-Xcompiler -fPIC'
15621 esac
15622 else
15623 # PORTME Check for flag to pass linker flags through the system compiler.
15624 case $host_os in
15625 aix*)
15626 lt_prog_compiler_wl='-Wl,'
15627 if test "$host_cpu" = ia64; then
15628 # AIX 5 now supports IA64 processor
15629 lt_prog_compiler_static='-Bstatic'
15630 else
15631 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15635 mingw* | cygwin* | pw32* | os2* | cegcc*)
15636 # This hack is so that the source file can tell whether it is being
15637 # built for inclusion in a dll (and should export symbols for example).
15638 lt_prog_compiler_pic='-DDLL_EXPORT'
15641 hpux9* | hpux10* | hpux11*)
15642 lt_prog_compiler_wl='-Wl,'
15643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15644 # not for PA HP-UX.
15645 case $host_cpu in
15646 hppa*64*|ia64*)
15647 # +Z the default
15650 lt_prog_compiler_pic='+Z'
15652 esac
15653 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15654 lt_prog_compiler_static='${wl}-a ${wl}archive'
15657 irix5* | irix6* | nonstopux*)
15658 lt_prog_compiler_wl='-Wl,'
15659 # PIC (with -KPIC) is the default.
15660 lt_prog_compiler_static='-non_shared'
15663 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15664 case $cc_basename in
15665 # old Intel for x86_64 which still supported -KPIC.
15666 ecc*)
15667 lt_prog_compiler_wl='-Wl,'
15668 lt_prog_compiler_pic='-KPIC'
15669 lt_prog_compiler_static='-static'
15671 # icc used to be incompatible with GCC.
15672 # ICC 10 doesn't accept -KPIC any more.
15673 icc* | ifort*)
15674 lt_prog_compiler_wl='-Wl,'
15675 lt_prog_compiler_pic='-fPIC'
15676 lt_prog_compiler_static='-static'
15678 # Lahey Fortran 8.1.
15679 lf95*)
15680 lt_prog_compiler_wl='-Wl,'
15681 lt_prog_compiler_pic='--shared'
15682 lt_prog_compiler_static='--static'
15684 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15685 # Portland Group compilers (*not* the Pentium gcc compiler,
15686 # which looks to be a dead project)
15687 lt_prog_compiler_wl='-Wl,'
15688 lt_prog_compiler_pic='-fpic'
15689 lt_prog_compiler_static='-Bstatic'
15691 ccc*)
15692 lt_prog_compiler_wl='-Wl,'
15693 # All Alpha code is PIC.
15694 lt_prog_compiler_static='-non_shared'
15696 xl* | bgxl* | bgf* | mpixl*)
15697 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15698 lt_prog_compiler_wl='-Wl,'
15699 lt_prog_compiler_pic='-qpic'
15700 lt_prog_compiler_static='-qstaticlink'
15703 case `$CC -V 2>&1 | sed 5q` in
15704 *Sun\ F* | *Sun*Fortran*)
15705 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15706 lt_prog_compiler_pic='-KPIC'
15707 lt_prog_compiler_static='-Bstatic'
15708 lt_prog_compiler_wl=''
15710 *Sun\ C*)
15711 # Sun C 5.9
15712 lt_prog_compiler_pic='-KPIC'
15713 lt_prog_compiler_static='-Bstatic'
15714 lt_prog_compiler_wl='-Wl,'
15716 esac
15718 esac
15721 newsos6)
15722 lt_prog_compiler_pic='-KPIC'
15723 lt_prog_compiler_static='-Bstatic'
15726 *nto* | *qnx*)
15727 # QNX uses GNU C++, but need to define -shared option too, otherwise
15728 # it will coredump.
15729 lt_prog_compiler_pic='-fPIC -shared'
15732 osf3* | osf4* | osf5*)
15733 lt_prog_compiler_wl='-Wl,'
15734 # All OSF/1 code is PIC.
15735 lt_prog_compiler_static='-non_shared'
15738 rdos*)
15739 lt_prog_compiler_static='-non_shared'
15742 solaris*)
15743 lt_prog_compiler_pic='-KPIC'
15744 lt_prog_compiler_static='-Bstatic'
15745 case $cc_basename in
15746 f77* | f90* | f95*)
15747 lt_prog_compiler_wl='-Qoption ld ';;
15749 lt_prog_compiler_wl='-Wl,';;
15750 esac
15753 sunos4*)
15754 lt_prog_compiler_wl='-Qoption ld '
15755 lt_prog_compiler_pic='-PIC'
15756 lt_prog_compiler_static='-Bstatic'
15759 sysv4 | sysv4.2uw2* | sysv4.3*)
15760 lt_prog_compiler_wl='-Wl,'
15761 lt_prog_compiler_pic='-KPIC'
15762 lt_prog_compiler_static='-Bstatic'
15765 sysv4*MP*)
15766 if test -d /usr/nec ;then
15767 lt_prog_compiler_pic='-Kconform_pic'
15768 lt_prog_compiler_static='-Bstatic'
15772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15773 lt_prog_compiler_wl='-Wl,'
15774 lt_prog_compiler_pic='-KPIC'
15775 lt_prog_compiler_static='-Bstatic'
15778 unicos*)
15779 lt_prog_compiler_wl='-Wl,'
15780 lt_prog_compiler_can_build_shared=no
15783 uts4*)
15784 lt_prog_compiler_pic='-pic'
15785 lt_prog_compiler_static='-Bstatic'
15789 lt_prog_compiler_can_build_shared=no
15791 esac
15794 case $host_os in
15795 # For platforms which do not support PIC, -DPIC is meaningless:
15796 *djgpp*)
15797 lt_prog_compiler_pic=
15800 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15802 esac
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15804 $as_echo "$lt_prog_compiler_pic" >&6; }
15812 # Check to make sure the PIC flag actually works.
15814 if test -n "$lt_prog_compiler_pic"; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15816 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15817 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15818 $as_echo_n "(cached) " >&6
15819 else
15820 lt_cv_prog_compiler_pic_works=no
15821 ac_outfile=conftest.$ac_objext
15822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15823 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15824 # Insert the option either (1) after the last *FLAGS variable, or
15825 # (2) before a word containing "conftest.", or (3) at the end.
15826 # Note that $ac_compile itself does not contain backslashes and begins
15827 # with a dollar sign (not a hyphen), so the echo should work correctly.
15828 # The option is referenced via a variable to avoid confusing sed.
15829 lt_compile=`echo "$ac_compile" | $SED \
15830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15832 -e 's:$: $lt_compiler_flag:'`
15833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15834 (eval "$lt_compile" 2>conftest.err)
15835 ac_status=$?
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 if (exit $ac_status) && test -s "$ac_outfile"; then
15839 # The compiler can only warn and ignore the option if not recognized
15840 # So say no if there are warnings other than the usual output.
15841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15844 lt_cv_prog_compiler_pic_works=yes
15847 $RM conftest*
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15851 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15853 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15854 case $lt_prog_compiler_pic in
15855 "" | " "*) ;;
15856 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15857 esac
15858 else
15859 lt_prog_compiler_pic=
15860 lt_prog_compiler_can_build_shared=no
15871 # Check to make sure the static flag actually works.
15873 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15875 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15876 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 lt_cv_prog_compiler_static_works=no
15880 save_LDFLAGS="$LDFLAGS"
15881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15882 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15884 # The linker can only warn and ignore the option if not recognized
15885 # So say no if there are warnings
15886 if test -s conftest.err; then
15887 # Append any errors to the config.log.
15888 cat conftest.err 1>&5
15889 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15891 if diff conftest.exp conftest.er2 >/dev/null; then
15892 lt_cv_prog_compiler_static_works=yes
15894 else
15895 lt_cv_prog_compiler_static_works=yes
15898 $RM -r conftest*
15899 LDFLAGS="$save_LDFLAGS"
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15903 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15905 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15907 else
15908 lt_prog_compiler_static=
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15919 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15920 $as_echo_n "(cached) " >&6
15921 else
15922 lt_cv_prog_compiler_c_o=no
15923 $RM -r conftest 2>/dev/null
15924 mkdir conftest
15925 cd conftest
15926 mkdir out
15927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15929 lt_compiler_flag="-o out/conftest2.$ac_objext"
15930 # Insert the option either (1) after the last *FLAGS variable, or
15931 # (2) before a word containing "conftest.", or (3) at the end.
15932 # Note that $ac_compile itself does not contain backslashes and begins
15933 # with a dollar sign (not a hyphen), so the echo should work correctly.
15934 lt_compile=`echo "$ac_compile" | $SED \
15935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15937 -e 's:$: $lt_compiler_flag:'`
15938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15939 (eval "$lt_compile" 2>out/conftest.err)
15940 ac_status=$?
15941 cat out/conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15944 then
15945 # The compiler can only warn and ignore the option if not recognized
15946 # So say no if there are warnings
15947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15950 lt_cv_prog_compiler_c_o=yes
15953 chmod u+w . 2>&5
15954 $RM conftest*
15955 # SGI C++ compiler will create directory out/ii_files/ for
15956 # template instantiation
15957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15958 $RM out/* && rmdir out
15959 cd ..
15960 $RM -r conftest
15961 $RM conftest*
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15965 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15975 $as_echo_n "(cached) " >&6
15976 else
15977 lt_cv_prog_compiler_c_o=no
15978 $RM -r conftest 2>/dev/null
15979 mkdir conftest
15980 cd conftest
15981 mkdir out
15982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15984 lt_compiler_flag="-o out/conftest2.$ac_objext"
15985 # Insert the option either (1) after the last *FLAGS variable, or
15986 # (2) before a word containing "conftest.", or (3) at the end.
15987 # Note that $ac_compile itself does not contain backslashes and begins
15988 # with a dollar sign (not a hyphen), so the echo should work correctly.
15989 lt_compile=`echo "$ac_compile" | $SED \
15990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15992 -e 's:$: $lt_compiler_flag:'`
15993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15994 (eval "$lt_compile" 2>out/conftest.err)
15995 ac_status=$?
15996 cat out/conftest.err >&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15999 then
16000 # The compiler can only warn and ignore the option if not recognized
16001 # So say no if there are warnings
16002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16005 lt_cv_prog_compiler_c_o=yes
16008 chmod u+w . 2>&5
16009 $RM conftest*
16010 # SGI C++ compiler will create directory out/ii_files/ for
16011 # template instantiation
16012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16013 $RM out/* && rmdir out
16014 cd ..
16015 $RM -r conftest
16016 $RM conftest*
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16020 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16025 hard_links="nottested"
16026 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16027 # do not overwrite the value of need_locks provided by the user
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16029 $as_echo_n "checking if we can lock with hard links... " >&6; }
16030 hard_links=yes
16031 $RM conftest*
16032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16033 touch conftest.a
16034 ln conftest.a conftest.b 2>&5 || hard_links=no
16035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16037 $as_echo "$hard_links" >&6; }
16038 if test "$hard_links" = no; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16040 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16041 need_locks=warn
16043 else
16044 need_locks=no
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16053 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16055 runpath_var=
16056 allow_undefined_flag=
16057 always_export_symbols=no
16058 archive_cmds=
16059 archive_expsym_cmds=
16060 compiler_needs_object=no
16061 enable_shared_with_static_runtimes=no
16062 export_dynamic_flag_spec=
16063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16064 hardcode_automatic=no
16065 hardcode_direct=no
16066 hardcode_direct_absolute=no
16067 hardcode_libdir_flag_spec=
16068 hardcode_libdir_flag_spec_ld=
16069 hardcode_libdir_separator=
16070 hardcode_minus_L=no
16071 hardcode_shlibpath_var=unsupported
16072 inherit_rpath=no
16073 link_all_deplibs=unknown
16074 module_cmds=
16075 module_expsym_cmds=
16076 old_archive_from_new_cmds=
16077 old_archive_from_expsyms_cmds=
16078 thread_safe_flag_spec=
16079 whole_archive_flag_spec=
16080 # include_expsyms should be a list of space-separated symbols to be *always*
16081 # included in the symbol list
16082 include_expsyms=
16083 # exclude_expsyms can be an extended regexp of symbols to exclude
16084 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16085 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16086 # as well as any symbol that contains `d'.
16087 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16088 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16089 # platforms (ab)use it in PIC code, but their linkers get confused if
16090 # the symbol is explicitly referenced. Since portable code cannot
16091 # rely on this symbol name, it's probably fine to never include it in
16092 # preloaded symbol tables.
16093 # Exclude shared library initialization/finalization symbols.
16094 extract_expsyms_cmds=
16096 case $host_os in
16097 cygwin* | mingw* | pw32* | cegcc*)
16098 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16099 # When not using gcc, we currently assume that we are using
16100 # Microsoft Visual C++.
16101 if test "$GCC" != yes; then
16102 with_gnu_ld=no
16105 interix*)
16106 # we just hope/assume this is gcc and not c89 (= MSVC++)
16107 with_gnu_ld=yes
16109 openbsd*)
16110 with_gnu_ld=no
16112 esac
16114 ld_shlibs=yes
16116 # On some targets, GNU ld is compatible enough with the native linker
16117 # that we're better off using the native interface for both.
16118 lt_use_gnu_ld_interface=no
16119 if test "$with_gnu_ld" = yes; then
16120 case $host_os in
16121 aix*)
16122 # The AIX port of GNU ld has always aspired to compatibility
16123 # with the native linker. However, as the warning in the GNU ld
16124 # block says, versions before 2.19.5* couldn't really create working
16125 # shared libraries, regardless of the interface used.
16126 case `$LD -v 2>&1` in
16127 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16128 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16129 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16131 lt_use_gnu_ld_interface=yes
16133 esac
16136 lt_use_gnu_ld_interface=yes
16138 esac
16141 if test "$lt_use_gnu_ld_interface" = yes; then
16142 # If archive_cmds runs LD, not CC, wlarc should be empty
16143 wlarc='${wl}'
16145 # Set some defaults for GNU ld with shared library support. These
16146 # are reset later if shared libraries are not supported. Putting them
16147 # here allows them to be overridden if necessary.
16148 runpath_var=LD_RUN_PATH
16149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16150 export_dynamic_flag_spec='${wl}--export-dynamic'
16151 # ancient GNU ld didn't support --whole-archive et. al.
16152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16153 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16154 else
16155 whole_archive_flag_spec=
16157 supports_anon_versioning=no
16158 case `$LD -v 2>&1` in
16159 *GNU\ gold*) supports_anon_versioning=yes ;;
16160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16163 *\ 2.11.*) ;; # other 2.11 versions
16164 *) supports_anon_versioning=yes ;;
16165 esac
16167 # See if GNU ld supports shared libraries.
16168 case $host_os in
16169 aix[3-9]*)
16170 # On AIX/PPC, the GNU linker is very broken
16171 if test "$host_cpu" != ia64; then
16172 ld_shlibs=no
16173 cat <<_LT_EOF 1>&2
16175 *** Warning: the GNU linker, at least up to release 2.19, is reported
16176 *** to be unable to reliably create shared libraries on AIX.
16177 *** Therefore, libtool is disabling shared libraries support. If you
16178 *** really care for shared libraries, you may want to install binutils
16179 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16180 *** You will then need to restart the configuration process.
16182 _LT_EOF
16186 amigaos*)
16187 case $host_cpu in
16188 powerpc)
16189 # see comment about AmigaOS4 .so support
16190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16191 archive_expsym_cmds=''
16193 m68k)
16194 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)'
16195 hardcode_libdir_flag_spec='-L$libdir'
16196 hardcode_minus_L=yes
16198 esac
16201 beos*)
16202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16203 allow_undefined_flag=unsupported
16204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16205 # support --undefined. This deserves some investigation. FIXME
16206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16207 else
16208 ld_shlibs=no
16212 cygwin* | mingw* | pw32* | cegcc*)
16213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16214 # as there is no search path for DLLs.
16215 hardcode_libdir_flag_spec='-L$libdir'
16216 export_dynamic_flag_spec='${wl}--export-all-symbols'
16217 allow_undefined_flag=unsupported
16218 always_export_symbols=no
16219 enable_shared_with_static_runtimes=yes
16220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16224 # If the export-symbols file already is a .def file (1st line
16225 # is EXPORTS), use it as is; otherwise, prepend...
16226 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16227 cp $export_symbols $output_objdir/$soname.def;
16228 else
16229 echo EXPORTS > $output_objdir/$soname.def;
16230 cat $export_symbols >> $output_objdir/$soname.def;
16232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16233 else
16234 ld_shlibs=no
16238 haiku*)
16239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240 link_all_deplibs=yes
16243 interix[3-9]*)
16244 hardcode_direct=no
16245 hardcode_shlibpath_var=no
16246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16247 export_dynamic_flag_spec='${wl}-E'
16248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16249 # Instead, shared libraries are loaded at an image base (0x10000000 by
16250 # default) and relocated if they conflict, which is a slow very memory
16251 # consuming and fragmenting process. To avoid this, we pick a random,
16252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16253 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16255 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'
16258 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16259 tmp_diet=no
16260 if test "$host_os" = linux-dietlibc; then
16261 case $cc_basename in
16262 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16263 esac
16265 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16266 && test "$tmp_diet" = no
16267 then
16268 tmp_addflag=' $pic_flag'
16269 tmp_sharedflag='-shared'
16270 case $cc_basename,$host_cpu in
16271 pgcc*) # Portland Group C compiler
16272 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'
16273 tmp_addflag=' $pic_flag'
16275 pgf77* | pgf90* | pgf95* | pgfortran*)
16276 # Portland Group f77 and f90 compilers
16277 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'
16278 tmp_addflag=' $pic_flag -Mnomain' ;;
16279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16280 tmp_addflag=' -i_dynamic' ;;
16281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16282 tmp_addflag=' -i_dynamic -nofor_main' ;;
16283 ifc* | ifort*) # Intel Fortran compiler
16284 tmp_addflag=' -nofor_main' ;;
16285 lf95*) # Lahey Fortran 8.1
16286 whole_archive_flag_spec=
16287 tmp_sharedflag='--shared' ;;
16288 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16289 tmp_sharedflag='-qmkshrobj'
16290 tmp_addflag= ;;
16291 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
16295 esac
16296 case `$CC -V 2>&1 | sed 5q` in
16297 *Sun\ C*) # Sun C 5.9
16298 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'
16299 compiler_needs_object=yes
16300 tmp_sharedflag='-G' ;;
16301 *Sun\ F*) # Sun Fortran 8.3
16302 tmp_sharedflag='-G' ;;
16303 esac
16304 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16306 if test "x$supports_anon_versioning" = xyes; then
16307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16309 echo "local: *; };" >> $output_objdir/$libname.ver~
16310 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16313 case $cc_basename in
16314 xlf* | bgf* | bgxlf* | mpixlf*)
16315 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16316 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16317 hardcode_libdir_flag_spec=
16318 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16319 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16320 if test "x$supports_anon_versioning" = xyes; then
16321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16323 echo "local: *; };" >> $output_objdir/$libname.ver~
16324 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16327 esac
16328 else
16329 ld_shlibs=no
16333 netbsd*)
16334 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16335 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16336 wlarc=
16337 else
16338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16343 solaris*)
16344 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16345 ld_shlibs=no
16346 cat <<_LT_EOF 1>&2
16348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16349 *** create shared libraries on Solaris systems. Therefore, libtool
16350 *** is disabling shared libraries support. We urge you to upgrade GNU
16351 *** binutils to release 2.9.1 or newer. Another option is to modify
16352 *** your PATH or compiler configuration so that the native linker is
16353 *** used, and then restart.
16355 _LT_EOF
16356 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16359 else
16360 ld_shlibs=no
16364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16365 case `$LD -v 2>&1` in
16366 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16367 ld_shlibs=no
16368 cat <<_LT_EOF 1>&2
16370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16371 *** reliably create shared libraries on SCO systems. Therefore, libtool
16372 *** is disabling shared libraries support. We urge you to upgrade GNU
16373 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16374 *** your PATH or compiler configuration so that the native linker is
16375 *** used, and then restart.
16377 _LT_EOF
16380 # For security reasons, it is highly recommended that you always
16381 # use absolute paths for naming shared libraries, and exclude the
16382 # DT_RUNPATH tag from executables and libraries. But doing so
16383 # requires that you compile everything twice, which is a pain.
16384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16388 else
16389 ld_shlibs=no
16392 esac
16395 sunos4*)
16396 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16397 wlarc=
16398 hardcode_direct=yes
16399 hardcode_shlibpath_var=no
16403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16406 else
16407 ld_shlibs=no
16410 esac
16412 if test "$ld_shlibs" = no; then
16413 runpath_var=
16414 hardcode_libdir_flag_spec=
16415 export_dynamic_flag_spec=
16416 whole_archive_flag_spec=
16418 else
16419 # PORTME fill in a description of your system's linker (not GNU ld)
16420 case $host_os in
16421 aix3*)
16422 allow_undefined_flag=unsupported
16423 always_export_symbols=yes
16424 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'
16425 # Note: this linker hardcodes the directories in LIBPATH if there
16426 # are no directories specified by -L.
16427 hardcode_minus_L=yes
16428 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16429 # Neither direct hardcoding nor static linking is supported with a
16430 # broken collect2.
16431 hardcode_direct=unsupported
16435 aix[4-9]*)
16436 if test "$host_cpu" = ia64; then
16437 # On IA64, the linker does run time linking by default, so we don't
16438 # have to do anything special.
16439 aix_use_runtimelinking=no
16440 exp_sym_flag='-Bexport'
16441 no_entry_flag=""
16442 else
16443 # If we're using GNU nm, then we don't want the "-C" option.
16444 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16445 # Also, AIX nm treats weak defined symbols like other global
16446 # defined symbols, whereas GNU nm marks them as "W".
16447 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16448 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'
16449 else
16450 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'
16452 aix_use_runtimelinking=no
16454 # Test if we are trying to use run time linking or normal
16455 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16456 # need to do runtime linking.
16457 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16458 for ld_flag in $LDFLAGS; do
16459 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16460 aix_use_runtimelinking=yes
16461 break
16463 done
16465 esac
16467 exp_sym_flag='-bexport'
16468 no_entry_flag='-bnoentry'
16471 # When large executables or shared objects are built, AIX ld can
16472 # have problems creating the table of contents. If linking a library
16473 # or program results in "error TOC overflow" add -mminimal-toc to
16474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16477 archive_cmds=''
16478 hardcode_direct=yes
16479 hardcode_direct_absolute=yes
16480 hardcode_libdir_separator=':'
16481 link_all_deplibs=yes
16482 file_list_spec='${wl}-f,'
16484 if test "$GCC" = yes; then
16485 case $host_os in aix4.[012]|aix4.[012].*)
16486 # We only want to do this on AIX 4.2 and lower, the check
16487 # below for broken collect2 doesn't work under 4.3+
16488 collect2name=`${CC} -print-prog-name=collect2`
16489 if test -f "$collect2name" &&
16490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16491 then
16492 # We have reworked collect2
16494 else
16495 # We have old collect2
16496 hardcode_direct=unsupported
16497 # It fails to find uninstalled libraries when the uninstalled
16498 # path is not listed in the libpath. Setting hardcode_minus_L
16499 # to unsupported forces relinking
16500 hardcode_minus_L=yes
16501 hardcode_libdir_flag_spec='-L$libdir'
16502 hardcode_libdir_separator=
16505 esac
16506 shared_flag='-shared'
16507 if test "$aix_use_runtimelinking" = yes; then
16508 shared_flag="$shared_flag "'${wl}-G'
16510 else
16511 # not using gcc
16512 if test "$host_cpu" = ia64; then
16513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16514 # chokes on -Wl,-G. The following line is correct:
16515 shared_flag='-G'
16516 else
16517 if test "$aix_use_runtimelinking" = yes; then
16518 shared_flag='${wl}-G'
16519 else
16520 shared_flag='${wl}-bM:SRE'
16525 export_dynamic_flag_spec='${wl}-bexpall'
16526 # It seems that -bexpall does not export symbols beginning with
16527 # underscore (_), so it is better to generate a list of symbols to export.
16528 always_export_symbols=yes
16529 if test "$aix_use_runtimelinking" = yes; then
16530 # Warning - without using the other runtime loading flags (-brtl),
16531 # -berok will link without error, but may produce a broken library.
16532 allow_undefined_flag='-berok'
16533 # Determine the default libpath from the value encoded in an
16534 # empty executable.
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16539 main ()
16543 return 0;
16545 _ACEOF
16546 if ac_fn_c_try_link "$LINENO"; then :
16548 lt_aix_libpath_sed='
16549 /Import File Strings/,/^$/ {
16550 /^0/ {
16551 s/^0 *\(.*\)$/\1/
16555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16556 # Check for a 64-bit object if we didn't find anything.
16557 if test -z "$aix_libpath"; then
16558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16561 rm -f core conftest.err conftest.$ac_objext \
16562 conftest$ac_exeext conftest.$ac_ext
16563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16566 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"
16567 else
16568 if test "$host_cpu" = ia64; then
16569 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16570 allow_undefined_flag="-z nodefs"
16571 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"
16572 else
16573 # Determine the default libpath from the value encoded in an
16574 # empty executable.
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16579 main ()
16583 return 0;
16585 _ACEOF
16586 if ac_fn_c_try_link "$LINENO"; then :
16588 lt_aix_libpath_sed='
16589 /Import File Strings/,/^$/ {
16590 /^0/ {
16591 s/^0 *\(.*\)$/\1/
16595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16596 # Check for a 64-bit object if we didn't find anything.
16597 if test -z "$aix_libpath"; then
16598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16601 rm -f core conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16605 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16606 # Warning - without using the other run time loading flags,
16607 # -berok will link without error, but may produce a broken library.
16608 no_undefined_flag=' ${wl}-bernotok'
16609 allow_undefined_flag=' ${wl}-berok'
16610 if test "$with_gnu_ld" = yes; then
16611 # We only use this code for GNU lds that support --whole-archive.
16612 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16613 else
16614 # Exported symbols can be pulled into shared objects from archives
16615 whole_archive_flag_spec='$convenience'
16617 archive_cmds_need_lc=yes
16618 # This is similar to how AIX traditionally builds its shared libraries.
16619 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'
16624 amigaos*)
16625 case $host_cpu in
16626 powerpc)
16627 # see comment about AmigaOS4 .so support
16628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16629 archive_expsym_cmds=''
16631 m68k)
16632 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)'
16633 hardcode_libdir_flag_spec='-L$libdir'
16634 hardcode_minus_L=yes
16636 esac
16639 bsdi[45]*)
16640 export_dynamic_flag_spec=-rdynamic
16643 cygwin* | mingw* | pw32* | cegcc*)
16644 # When not using gcc, we currently assume that we are using
16645 # Microsoft Visual C++.
16646 # hardcode_libdir_flag_spec is actually meaningless, as there is
16647 # no search path for DLLs.
16648 hardcode_libdir_flag_spec=' '
16649 allow_undefined_flag=unsupported
16650 # Tell ltmain to make .lib files, not .a files.
16651 libext=lib
16652 # Tell ltmain to make .dll files, not .so files.
16653 shrext_cmds=".dll"
16654 # FIXME: Setting linknames here is a bad hack.
16655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16656 # The linker will automatically build a .lib file if we build a DLL.
16657 old_archive_from_new_cmds='true'
16658 # FIXME: Should let the user specify the lib program.
16659 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16660 fix_srcfile_path='`cygpath -w "$srcfile"`'
16661 enable_shared_with_static_runtimes=yes
16664 darwin* | rhapsody*)
16667 archive_cmds_need_lc=no
16668 hardcode_direct=no
16669 hardcode_automatic=yes
16670 hardcode_shlibpath_var=unsupported
16671 if test "$lt_cv_ld_force_load" = "yes"; then
16672 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\"`'
16673 else
16674 whole_archive_flag_spec=''
16676 link_all_deplibs=yes
16677 allow_undefined_flag="$_lt_dar_allow_undefined"
16678 case $cc_basename in
16679 ifort*) _lt_dar_can_shared=yes ;;
16680 *) _lt_dar_can_shared=$GCC ;;
16681 esac
16682 if test "$_lt_dar_can_shared" = "yes"; then
16683 output_verbose_link_cmd=func_echo_all
16684 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16685 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16686 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}"
16687 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}"
16689 else
16690 ld_shlibs=no
16695 dgux*)
16696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16697 hardcode_libdir_flag_spec='-L$libdir'
16698 hardcode_shlibpath_var=no
16701 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16702 # support. Future versions do this automatically, but an explicit c++rt0.o
16703 # does not break anything, and helps significantly (at the cost of a little
16704 # extra space).
16705 freebsd2.2*)
16706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16707 hardcode_libdir_flag_spec='-R$libdir'
16708 hardcode_direct=yes
16709 hardcode_shlibpath_var=no
16712 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16713 freebsd2.*)
16714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16715 hardcode_direct=yes
16716 hardcode_minus_L=yes
16717 hardcode_shlibpath_var=no
16720 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16721 freebsd* | dragonfly*)
16722 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16723 hardcode_libdir_flag_spec='-R$libdir'
16724 hardcode_direct=yes
16725 hardcode_shlibpath_var=no
16728 hpux9*)
16729 if test "$GCC" = yes; then
16730 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'
16731 else
16732 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'
16734 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16735 hardcode_libdir_separator=:
16736 hardcode_direct=yes
16738 # hardcode_minus_L: Not really in the search PATH,
16739 # but as the default location of the library.
16740 hardcode_minus_L=yes
16741 export_dynamic_flag_spec='${wl}-E'
16744 hpux10*)
16745 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16746 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16747 else
16748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16750 if test "$with_gnu_ld" = no; then
16751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16752 hardcode_libdir_flag_spec_ld='+b $libdir'
16753 hardcode_libdir_separator=:
16754 hardcode_direct=yes
16755 hardcode_direct_absolute=yes
16756 export_dynamic_flag_spec='${wl}-E'
16757 # hardcode_minus_L: Not really in the search PATH,
16758 # but as the default location of the library.
16759 hardcode_minus_L=yes
16763 hpux11*)
16764 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16765 case $host_cpu in
16766 hppa*64*)
16767 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 ia64*)
16770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16773 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16775 esac
16776 else
16777 case $host_cpu in
16778 hppa*64*)
16779 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16781 ia64*)
16782 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16786 # Older versions of the 11.00 compiler do not understand -b yet
16787 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16789 $as_echo_n "checking if $CC understands -b... " >&6; }
16790 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 lt_cv_prog_compiler__b=no
16794 save_LDFLAGS="$LDFLAGS"
16795 LDFLAGS="$LDFLAGS -b"
16796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16798 # The linker can only warn and ignore the option if not recognized
16799 # So say no if there are warnings
16800 if test -s conftest.err; then
16801 # Append any errors to the config.log.
16802 cat conftest.err 1>&5
16803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16805 if diff conftest.exp conftest.er2 >/dev/null; then
16806 lt_cv_prog_compiler__b=yes
16808 else
16809 lt_cv_prog_compiler__b=yes
16812 $RM -r conftest*
16813 LDFLAGS="$save_LDFLAGS"
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16817 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16819 if test x"$lt_cv_prog_compiler__b" = xyes; then
16820 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16821 else
16822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16826 esac
16828 if test "$with_gnu_ld" = no; then
16829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16830 hardcode_libdir_separator=:
16832 case $host_cpu in
16833 hppa*64*|ia64*)
16834 hardcode_direct=no
16835 hardcode_shlibpath_var=no
16838 hardcode_direct=yes
16839 hardcode_direct_absolute=yes
16840 export_dynamic_flag_spec='${wl}-E'
16842 # hardcode_minus_L: Not really in the search PATH,
16843 # but as the default location of the library.
16844 hardcode_minus_L=yes
16846 esac
16850 irix5* | irix6* | nonstopux*)
16851 if test "$GCC" = yes; then
16852 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'
16853 # Try to use the -exported_symbol ld option, if it does not
16854 # work, assume that -exports_file does not work either and
16855 # implicitly export all symbols.
16856 save_LDFLAGS="$LDFLAGS"
16857 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16860 int foo(void) {}
16861 _ACEOF
16862 if ac_fn_c_try_link "$LINENO"; then :
16863 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'
16866 rm -f core conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
16868 LDFLAGS="$save_LDFLAGS"
16869 else
16870 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'
16871 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'
16873 archive_cmds_need_lc='no'
16874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16875 hardcode_libdir_separator=:
16876 inherit_rpath=yes
16877 link_all_deplibs=yes
16880 netbsd*)
16881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16883 else
16884 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16886 hardcode_libdir_flag_spec='-R$libdir'
16887 hardcode_direct=yes
16888 hardcode_shlibpath_var=no
16891 newsos6)
16892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16893 hardcode_direct=yes
16894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16895 hardcode_libdir_separator=:
16896 hardcode_shlibpath_var=no
16899 *nto* | *qnx*)
16902 openbsd*)
16903 if test -f /usr/libexec/ld.so; then
16904 hardcode_direct=yes
16905 hardcode_shlibpath_var=no
16906 hardcode_direct_absolute=yes
16907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16909 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16910 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16911 export_dynamic_flag_spec='${wl}-E'
16912 else
16913 case $host_os in
16914 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16916 hardcode_libdir_flag_spec='-R$libdir'
16919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16922 esac
16924 else
16925 ld_shlibs=no
16929 os2*)
16930 hardcode_libdir_flag_spec='-L$libdir'
16931 hardcode_minus_L=yes
16932 allow_undefined_flag=unsupported
16933 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'
16934 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16937 osf3*)
16938 if test "$GCC" = yes; then
16939 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16940 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'
16941 else
16942 allow_undefined_flag=' -expect_unresolved \*'
16943 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'
16945 archive_cmds_need_lc='no'
16946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16947 hardcode_libdir_separator=:
16950 osf4* | osf5*) # as osf3* with the addition of -msym flag
16951 if test "$GCC" = yes; then
16952 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16953 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'
16954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16955 else
16956 allow_undefined_flag=' -expect_unresolved \*'
16957 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'
16958 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~
16959 $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'
16961 # Both c and cxx compiler support -rpath directly
16962 hardcode_libdir_flag_spec='-rpath $libdir'
16964 archive_cmds_need_lc='no'
16965 hardcode_libdir_separator=:
16968 solaris*)
16969 no_undefined_flag=' -z defs'
16970 if test "$GCC" = yes; then
16971 wlarc='${wl}'
16972 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16974 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16975 else
16976 case `$CC -V 2>&1` in
16977 *"Compilers 5.0"*)
16978 wlarc=''
16979 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16981 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16984 wlarc='${wl}'
16985 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16986 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16987 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16989 esac
16991 hardcode_libdir_flag_spec='-R$libdir'
16992 hardcode_shlibpath_var=no
16993 case $host_os in
16994 solaris2.[0-5] | solaris2.[0-5].*) ;;
16996 # The compiler driver will combine and reorder linker options,
16997 # but understands `-z linker_flag'. GCC discards it without `$wl',
16998 # but is careful enough not to reorder.
16999 # Supported since Solaris 2.6 (maybe 2.5.1?)
17000 if test "$GCC" = yes; then
17001 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17002 else
17003 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17006 esac
17007 link_all_deplibs=yes
17010 sunos4*)
17011 if test "x$host_vendor" = xsequent; then
17012 # Use $CC to link under sequent, because it throws in some extra .o
17013 # files that make .init and .fini sections work.
17014 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17015 else
17016 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17018 hardcode_libdir_flag_spec='-L$libdir'
17019 hardcode_direct=yes
17020 hardcode_minus_L=yes
17021 hardcode_shlibpath_var=no
17024 sysv4)
17025 case $host_vendor in
17026 sni)
17027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17028 hardcode_direct=yes # is this really true???
17030 siemens)
17031 ## LD is ld it makes a PLAMLIB
17032 ## CC just makes a GrossModule.
17033 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17034 reload_cmds='$CC -r -o $output$reload_objs'
17035 hardcode_direct=no
17037 motorola)
17038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17039 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17041 esac
17042 runpath_var='LD_RUN_PATH'
17043 hardcode_shlibpath_var=no
17046 sysv4.3*)
17047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17048 hardcode_shlibpath_var=no
17049 export_dynamic_flag_spec='-Bexport'
17052 sysv4*MP*)
17053 if test -d /usr/nec; then
17054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17055 hardcode_shlibpath_var=no
17056 runpath_var=LD_RUN_PATH
17057 hardcode_runpath_var=yes
17058 ld_shlibs=yes
17062 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17063 no_undefined_flag='${wl}-z,text'
17064 archive_cmds_need_lc=no
17065 hardcode_shlibpath_var=no
17066 runpath_var='LD_RUN_PATH'
17068 if test "$GCC" = yes; then
17069 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 else
17072 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17073 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 sysv5* | sco3.2v5* | sco5v6*)
17078 # Note: We can NOT use -z defs as we might desire, because we do not
17079 # link with -lc, and that would cause any symbols used from libc to
17080 # always be unresolved, which means just about no library would
17081 # ever link correctly. If we're not using GNU ld we use -z text
17082 # though, which does catch some bad symbols but isn't as heavy-handed
17083 # as -z defs.
17084 no_undefined_flag='${wl}-z,text'
17085 allow_undefined_flag='${wl}-z,nodefs'
17086 archive_cmds_need_lc=no
17087 hardcode_shlibpath_var=no
17088 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17089 hardcode_libdir_separator=':'
17090 link_all_deplibs=yes
17091 export_dynamic_flag_spec='${wl}-Bexport'
17092 runpath_var='LD_RUN_PATH'
17094 if test "$GCC" = yes; then
17095 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 else
17098 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17099 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 uts4*)
17104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17105 hardcode_libdir_flag_spec='-L$libdir'
17106 hardcode_shlibpath_var=no
17110 ld_shlibs=no
17112 esac
17114 if test x$host_vendor = xsni; then
17115 case $host in
17116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17117 export_dynamic_flag_spec='${wl}-Blargedynsym'
17119 esac
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17124 $as_echo "$ld_shlibs" >&6; }
17125 test "$ld_shlibs" = no && can_build_shared=no
17127 with_gnu_ld=$with_gnu_ld
17144 # Do we need to explicitly link libc?
17146 case "x$archive_cmds_need_lc" in
17147 x|xyes)
17148 # Assume -lc should be added
17149 archive_cmds_need_lc=yes
17151 if test "$enable_shared" = yes && test "$GCC" = yes; then
17152 case $archive_cmds in
17153 *'~'*)
17154 # FIXME: we may have to deal with multi-command sequences.
17156 '$CC '*)
17157 # Test whether the compiler implicitly links with -lc since on some
17158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17159 # to ld, don't add -lc before -lgcc.
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17161 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17162 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17163 $as_echo_n "(cached) " >&6
17164 else
17165 $RM conftest*
17166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17169 (eval $ac_compile) 2>&5
17170 ac_status=$?
17171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17172 test $ac_status = 0; } 2>conftest.err; then
17173 soname=conftest
17174 lib=conftest
17175 libobjs=conftest.$ac_objext
17176 deplibs=
17177 wl=$lt_prog_compiler_wl
17178 pic_flag=$lt_prog_compiler_pic
17179 compiler_flags=-v
17180 linker_flags=-v
17181 verstring=
17182 output_objdir=.
17183 libname=conftest
17184 lt_save_allow_undefined_flag=$allow_undefined_flag
17185 allow_undefined_flag=
17186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17187 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17188 ac_status=$?
17189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17190 test $ac_status = 0; }
17191 then
17192 lt_cv_archive_cmds_need_lc=no
17193 else
17194 lt_cv_archive_cmds_need_lc=yes
17196 allow_undefined_flag=$lt_save_allow_undefined_flag
17197 else
17198 cat conftest.err 1>&5
17200 $RM conftest*
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17204 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17205 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17207 esac
17210 esac
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17369 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17371 if test "$GCC" = yes; then
17372 case $host_os in
17373 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17374 *) lt_awk_arg="/^libraries:/" ;;
17375 esac
17376 case $host_os in
17377 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17378 *) lt_sed_strip_eq="s,=/,/,g" ;;
17379 esac
17380 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17381 case $lt_search_path_spec in
17382 *\;*)
17383 # if the path contains ";" then we assume it to be the separator
17384 # otherwise default to the standard path separator (i.e. ":") - it is
17385 # assumed that no part of a normal pathname contains ";" but that should
17386 # okay in the real world where ";" in dirpaths is itself problematic.
17387 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17390 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17392 esac
17393 # Ok, now we have the path, separated by spaces, we can step through it
17394 # and add multilib dir if necessary.
17395 lt_tmp_lt_search_path_spec=
17396 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17397 for lt_sys_path in $lt_search_path_spec; do
17398 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17399 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17400 else
17401 test -d "$lt_sys_path" && \
17402 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17404 done
17405 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17406 BEGIN {RS=" "; FS="/|\n";} {
17407 lt_foo="";
17408 lt_count=0;
17409 for (lt_i = NF; lt_i > 0; lt_i--) {
17410 if ($lt_i != "" && $lt_i != ".") {
17411 if ($lt_i == "..") {
17412 lt_count++;
17413 } else {
17414 if (lt_count == 0) {
17415 lt_foo="/" $lt_i lt_foo;
17416 } else {
17417 lt_count--;
17422 if (lt_foo != "") { lt_freq[lt_foo]++; }
17423 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17425 # AWK program above erroneously prepends '/' to C:/dos/paths
17426 # for these hosts.
17427 case $host_os in
17428 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17429 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17430 esac
17431 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17432 else
17433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17435 library_names_spec=
17436 libname_spec='lib$name'
17437 soname_spec=
17438 shrext_cmds=".so"
17439 postinstall_cmds=
17440 postuninstall_cmds=
17441 finish_cmds=
17442 finish_eval=
17443 shlibpath_var=
17444 shlibpath_overrides_runpath=unknown
17445 version_type=none
17446 dynamic_linker="$host_os ld.so"
17447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17448 need_lib_prefix=unknown
17449 hardcode_into_libs=no
17451 # when you set need_version to no, make sure it does not cause -set_version
17452 # flags to be left without arguments
17453 need_version=unknown
17455 case $host_os in
17456 aix3*)
17457 version_type=linux
17458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17459 shlibpath_var=LIBPATH
17461 # AIX 3 has no versioning support, so we append a major version to the name.
17462 soname_spec='${libname}${release}${shared_ext}$major'
17465 aix[4-9]*)
17466 version_type=linux
17467 need_lib_prefix=no
17468 need_version=no
17469 hardcode_into_libs=yes
17470 if test "$host_cpu" = ia64; then
17471 # AIX 5 supports IA64
17472 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17473 shlibpath_var=LD_LIBRARY_PATH
17474 else
17475 # With GCC up to 2.95.x, collect2 would create an import file
17476 # for dependence libraries. The import file would start with
17477 # the line `#! .'. This would cause the generated library to
17478 # depend on `.', always an invalid library. This was fixed in
17479 # development snapshots of GCC prior to 3.0.
17480 case $host_os in
17481 aix4 | aix4.[01] | aix4.[01].*)
17482 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17483 echo ' yes '
17484 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17486 else
17487 can_build_shared=no
17490 esac
17491 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17492 # soname into executable. Probably we can add versioning support to
17493 # collect2, so additional links can be useful in future.
17494 if test "$aix_use_runtimelinking" = yes; then
17495 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17496 # instead of lib<name>.a to let people know that these are not
17497 # typical AIX shared libraries.
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 else
17500 # We preserve .a as extension for shared libraries through AIX4.2
17501 # and later when we are not doing run time linking.
17502 library_names_spec='${libname}${release}.a $libname.a'
17503 soname_spec='${libname}${release}${shared_ext}$major'
17505 shlibpath_var=LIBPATH
17509 amigaos*)
17510 case $host_cpu in
17511 powerpc)
17512 # Since July 2007 AmigaOS4 officially supports .so libraries.
17513 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17516 m68k)
17517 library_names_spec='$libname.ixlibrary $libname.a'
17518 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17519 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'
17521 esac
17524 beos*)
17525 library_names_spec='${libname}${shared_ext}'
17526 dynamic_linker="$host_os ld.so"
17527 shlibpath_var=LIBRARY_PATH
17530 bsdi[45]*)
17531 version_type=linux
17532 need_version=no
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17536 shlibpath_var=LD_LIBRARY_PATH
17537 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17538 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17539 # the default ld.so.conf also contains /usr/contrib/lib and
17540 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17541 # libtool to hard-code these into programs
17544 cygwin* | mingw* | pw32* | cegcc*)
17545 version_type=windows
17546 shrext_cmds=".dll"
17547 need_version=no
17548 need_lib_prefix=no
17550 case $GCC,$host_os in
17551 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17552 library_names_spec='$libname.dll.a'
17553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17554 postinstall_cmds='base_file=`basename \${file}`~
17555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17556 dldir=$destdir/`dirname \$dlpath`~
17557 test -d \$dldir || mkdir -p \$dldir~
17558 $install_prog $dir/$dlname \$dldir/$dlname~
17559 chmod a+x \$dldir/$dlname~
17560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17564 dlpath=$dir/\$dldll~
17565 $RM \$dlpath'
17566 shlibpath_overrides_runpath=yes
17568 case $host_os in
17569 cygwin*)
17570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17575 mingw* | cegcc*)
17576 # MinGW DLLs use traditional 'lib' prefix
17577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17579 pw32*)
17580 # pw32 DLLs use 'pw' prefix rather than 'lib'
17581 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17583 esac
17587 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17589 esac
17590 dynamic_linker='Win32 ld.exe'
17591 # FIXME: first we should search . and the directory the executable is in
17592 shlibpath_var=PATH
17595 darwin* | rhapsody*)
17596 dynamic_linker="$host_os dyld"
17597 version_type=darwin
17598 need_lib_prefix=no
17599 need_version=no
17600 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17601 soname_spec='${libname}${release}${major}$shared_ext'
17602 shlibpath_overrides_runpath=yes
17603 shlibpath_var=DYLD_LIBRARY_PATH
17604 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17606 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17607 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17610 dgux*)
17611 version_type=linux
17612 need_lib_prefix=no
17613 need_version=no
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 shlibpath_var=LD_LIBRARY_PATH
17619 freebsd* | dragonfly*)
17620 # DragonFly does not have aout. When/if they implement a new
17621 # versioning mechanism, adjust this.
17622 if test -x /usr/bin/objformat; then
17623 objformat=`/usr/bin/objformat`
17624 else
17625 case $host_os in
17626 freebsd[23].*) objformat=aout ;;
17627 *) objformat=elf ;;
17628 esac
17630 version_type=freebsd-$objformat
17631 case $version_type in
17632 freebsd-elf*)
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17634 need_version=no
17635 need_lib_prefix=no
17637 freebsd-*)
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17639 need_version=yes
17641 esac
17642 shlibpath_var=LD_LIBRARY_PATH
17643 case $host_os in
17644 freebsd2.*)
17645 shlibpath_overrides_runpath=yes
17647 freebsd3.[01]* | freebsdelf3.[01]*)
17648 shlibpath_overrides_runpath=yes
17649 hardcode_into_libs=yes
17651 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17652 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17653 shlibpath_overrides_runpath=no
17654 hardcode_into_libs=yes
17656 *) # from 4.6 on, and DragonFly
17657 shlibpath_overrides_runpath=yes
17658 hardcode_into_libs=yes
17660 esac
17663 gnu*)
17664 version_type=linux
17665 need_lib_prefix=no
17666 need_version=no
17667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 shlibpath_var=LD_LIBRARY_PATH
17670 hardcode_into_libs=yes
17673 haiku*)
17674 version_type=linux
17675 need_lib_prefix=no
17676 need_version=no
17677 dynamic_linker="$host_os runtime_loader"
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 shlibpath_var=LIBRARY_PATH
17681 shlibpath_overrides_runpath=yes
17682 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17683 hardcode_into_libs=yes
17686 hpux9* | hpux10* | hpux11*)
17687 # Give a soname corresponding to the major version so that dld.sl refuses to
17688 # link against other versions.
17689 version_type=sunos
17690 need_lib_prefix=no
17691 need_version=no
17692 case $host_cpu in
17693 ia64*)
17694 shrext_cmds='.so'
17695 hardcode_into_libs=yes
17696 dynamic_linker="$host_os dld.so"
17697 shlibpath_var=LD_LIBRARY_PATH
17698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700 soname_spec='${libname}${release}${shared_ext}$major'
17701 if test "X$HPUX_IA64_MODE" = X32; then
17702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17703 else
17704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17708 hppa*64*)
17709 shrext_cmds='.sl'
17710 hardcode_into_libs=yes
17711 dynamic_linker="$host_os dld.sl"
17712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17715 soname_spec='${libname}${release}${shared_ext}$major'
17716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17720 shrext_cmds='.sl'
17721 dynamic_linker="$host_os dld.sl"
17722 shlibpath_var=SHLIB_PATH
17723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17725 soname_spec='${libname}${release}${shared_ext}$major'
17727 esac
17728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17729 postinstall_cmds='chmod 555 $lib'
17730 # or fails outright, so override atomically:
17731 install_override_mode=555
17734 interix[3-9]*)
17735 version_type=linux
17736 need_lib_prefix=no
17737 need_version=no
17738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17741 shlibpath_var=LD_LIBRARY_PATH
17742 shlibpath_overrides_runpath=no
17743 hardcode_into_libs=yes
17746 irix5* | irix6* | nonstopux*)
17747 case $host_os in
17748 nonstopux*) version_type=nonstopux ;;
17750 if test "$lt_cv_prog_gnu_ld" = yes; then
17751 version_type=linux
17752 else
17753 version_type=irix
17754 fi ;;
17755 esac
17756 need_lib_prefix=no
17757 need_version=no
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17760 case $host_os in
17761 irix5* | nonstopux*)
17762 libsuff= shlibsuff=
17765 case $LD in # libtool.m4 will add one of these switches to LD
17766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17767 libsuff= shlibsuff= libmagic=32-bit;;
17768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17769 libsuff=32 shlibsuff=N32 libmagic=N32;;
17770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17772 *) libsuff= shlibsuff= libmagic=never-match;;
17773 esac
17775 esac
17776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17777 shlibpath_overrides_runpath=no
17778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17780 hardcode_into_libs=yes
17783 # No shared lib support for Linux oldld, aout, or coff.
17784 linux*oldld* | linux*aout* | linux*coff*)
17785 dynamic_linker=no
17788 # This must be Linux ELF.
17789 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17790 version_type=linux
17791 need_lib_prefix=no
17792 need_version=no
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 soname_spec='${libname}${release}${shared_ext}$major'
17795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17796 shlibpath_var=LD_LIBRARY_PATH
17797 shlibpath_overrides_runpath=no
17799 # Some binutils ld are patched to set DT_RUNPATH
17800 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17801 $as_echo_n "(cached) " >&6
17802 else
17803 lt_cv_shlibpath_overrides_runpath=no
17804 save_LDFLAGS=$LDFLAGS
17805 save_libdir=$libdir
17806 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17807 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17812 main ()
17816 return 0;
17818 _ACEOF
17819 if ac_fn_c_try_link "$LINENO"; then :
17820 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17821 lt_cv_shlibpath_overrides_runpath=yes
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 LDFLAGS=$save_LDFLAGS
17827 libdir=$save_libdir
17831 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17833 # This implies no fast_install, which is unacceptable.
17834 # Some rework will be needed to allow for fast_install
17835 # before this can be enabled.
17836 hardcode_into_libs=yes
17838 # Append ld.so.conf contents to the search path
17839 if test -f /etc/ld.so.conf; then
17840 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' ' '`
17841 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17844 # We used to test for /lib/ld.so.1 and disable shared libraries on
17845 # powerpc, because MkLinux only supported shared libraries with the
17846 # GNU dynamic linker. Since this was broken with cross compilers,
17847 # most powerpc-linux boxes support dynamic linking these days and
17848 # people can always --disable-shared, the test was removed, and we
17849 # assume the GNU/Linux dynamic linker is in use.
17850 dynamic_linker='GNU/Linux ld.so'
17853 netbsd*)
17854 version_type=sunos
17855 need_lib_prefix=no
17856 need_version=no
17857 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17860 dynamic_linker='NetBSD (a.out) ld.so'
17861 else
17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17863 soname_spec='${libname}${release}${shared_ext}$major'
17864 dynamic_linker='NetBSD ld.elf_so'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 shlibpath_overrides_runpath=yes
17868 hardcode_into_libs=yes
17871 newsos6)
17872 version_type=linux
17873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17874 shlibpath_var=LD_LIBRARY_PATH
17875 shlibpath_overrides_runpath=yes
17878 *nto* | *qnx*)
17879 version_type=qnx
17880 need_lib_prefix=no
17881 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
17885 shlibpath_overrides_runpath=no
17886 hardcode_into_libs=yes
17887 dynamic_linker='ldqnx.so'
17890 openbsd*)
17891 version_type=sunos
17892 sys_lib_dlsearch_path_spec="/usr/lib"
17893 need_lib_prefix=no
17894 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17895 case $host_os in
17896 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17897 *) need_version=no ;;
17898 esac
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17901 shlibpath_var=LD_LIBRARY_PATH
17902 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17903 case $host_os in
17904 openbsd2.[89] | openbsd2.[89].*)
17905 shlibpath_overrides_runpath=no
17908 shlibpath_overrides_runpath=yes
17910 esac
17911 else
17912 shlibpath_overrides_runpath=yes
17916 os2*)
17917 libname_spec='$name'
17918 shrext_cmds=".dll"
17919 need_lib_prefix=no
17920 library_names_spec='$libname${shared_ext} $libname.a'
17921 dynamic_linker='OS/2 ld.exe'
17922 shlibpath_var=LIBPATH
17925 osf3* | osf4* | osf5*)
17926 version_type=osf
17927 need_lib_prefix=no
17928 need_version=no
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931 shlibpath_var=LD_LIBRARY_PATH
17932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17936 rdos*)
17937 dynamic_linker=no
17940 solaris*)
17941 version_type=linux
17942 need_lib_prefix=no
17943 need_version=no
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945 soname_spec='${libname}${release}${shared_ext}$major'
17946 shlibpath_var=LD_LIBRARY_PATH
17947 shlibpath_overrides_runpath=yes
17948 hardcode_into_libs=yes
17949 # ldd complains unless libraries are executable
17950 postinstall_cmds='chmod +x $lib'
17953 sunos4*)
17954 version_type=sunos
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17956 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17957 shlibpath_var=LD_LIBRARY_PATH
17958 shlibpath_overrides_runpath=yes
17959 if test "$with_gnu_ld" = yes; then
17960 need_lib_prefix=no
17962 need_version=yes
17965 sysv4 | sysv4.3*)
17966 version_type=linux
17967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17968 soname_spec='${libname}${release}${shared_ext}$major'
17969 shlibpath_var=LD_LIBRARY_PATH
17970 case $host_vendor in
17971 sni)
17972 shlibpath_overrides_runpath=no
17973 need_lib_prefix=no
17974 runpath_var=LD_RUN_PATH
17976 siemens)
17977 need_lib_prefix=no
17979 motorola)
17980 need_lib_prefix=no
17981 need_version=no
17982 shlibpath_overrides_runpath=no
17983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17985 esac
17988 sysv4*MP*)
17989 if test -d /usr/nec ;then
17990 version_type=linux
17991 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17992 soname_spec='$libname${shared_ext}.$major'
17993 shlibpath_var=LD_LIBRARY_PATH
17997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17998 version_type=freebsd-elf
17999 need_lib_prefix=no
18000 need_version=no
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 shlibpath_var=LD_LIBRARY_PATH
18004 shlibpath_overrides_runpath=yes
18005 hardcode_into_libs=yes
18006 if test "$with_gnu_ld" = yes; then
18007 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18008 else
18009 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18010 case $host_os in
18011 sco3.2v5*)
18012 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18014 esac
18016 sys_lib_dlsearch_path_spec='/usr/lib'
18019 tpf*)
18020 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18021 version_type=linux
18022 need_lib_prefix=no
18023 need_version=no
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025 shlibpath_var=LD_LIBRARY_PATH
18026 shlibpath_overrides_runpath=no
18027 hardcode_into_libs=yes
18030 uts4*)
18031 version_type=linux
18032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18033 soname_spec='${libname}${release}${shared_ext}$major'
18034 shlibpath_var=LD_LIBRARY_PATH
18038 dynamic_linker=no
18040 esac
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18042 $as_echo "$dynamic_linker" >&6; }
18043 test "$dynamic_linker" = no && can_build_shared=no
18045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18046 if test "$GCC" = yes; then
18047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18050 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18051 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18053 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18054 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18149 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18150 hardcode_action=
18151 if test -n "$hardcode_libdir_flag_spec" ||
18152 test -n "$runpath_var" ||
18153 test "X$hardcode_automatic" = "Xyes" ; then
18155 # We can hardcode non-existent directories.
18156 if test "$hardcode_direct" != no &&
18157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18158 # have to relink, otherwise we might link with an installed library
18159 # when we should be linking with a yet-to-be-installed one
18160 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18161 test "$hardcode_minus_L" != no; then
18162 # Linking always hardcodes the temporary library directory.
18163 hardcode_action=relink
18164 else
18165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18166 hardcode_action=immediate
18168 else
18169 # We cannot hardcode anything, or else we can only hardcode existing
18170 # directories.
18171 hardcode_action=unsupported
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18174 $as_echo "$hardcode_action" >&6; }
18176 if test "$hardcode_action" = relink ||
18177 test "$inherit_rpath" = yes; then
18178 # Fast installation is not supported
18179 enable_fast_install=no
18180 elif test "$shlibpath_overrides_runpath" = yes ||
18181 test "$enable_shared" = no; then
18182 # Fast installation is not necessary
18183 enable_fast_install=needless
18191 if test "x$enable_dlopen" != xyes; then
18192 enable_dlopen=unknown
18193 enable_dlopen_self=unknown
18194 enable_dlopen_self_static=unknown
18195 else
18196 lt_cv_dlopen=no
18197 lt_cv_dlopen_libs=
18199 case $host_os in
18200 beos*)
18201 lt_cv_dlopen="load_add_on"
18202 lt_cv_dlopen_libs=
18203 lt_cv_dlopen_self=yes
18206 mingw* | pw32* | cegcc*)
18207 lt_cv_dlopen="LoadLibrary"
18208 lt_cv_dlopen_libs=
18211 cygwin*)
18212 lt_cv_dlopen="dlopen"
18213 lt_cv_dlopen_libs=
18216 darwin*)
18217 # if libdl is installed we need to link against it
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18220 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18221 $as_echo_n "(cached) " >&6
18222 else
18223 ac_check_lib_save_LIBS=$LIBS
18224 LIBS="-ldl $LIBS"
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char dlopen ();
18236 main ()
18238 return dlopen ();
18240 return 0;
18242 _ACEOF
18243 if ac_fn_c_try_link "$LINENO"; then :
18244 ac_cv_lib_dl_dlopen=yes
18245 else
18246 ac_cv_lib_dl_dlopen=no
18248 rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext conftest.$ac_ext
18250 LIBS=$ac_check_lib_save_LIBS
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18254 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18256 else
18258 lt_cv_dlopen="dyld"
18259 lt_cv_dlopen_libs=
18260 lt_cv_dlopen_self=yes
18267 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18268 if test "x$ac_cv_func_shl_load" = x""yes; then :
18269 lt_cv_dlopen="shl_load"
18270 else
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18272 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18274 $as_echo_n "(cached) " >&6
18275 else
18276 ac_check_lib_save_LIBS=$LIBS
18277 LIBS="-ldld $LIBS"
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18284 #ifdef __cplusplus
18285 extern "C"
18286 #endif
18287 char shl_load ();
18289 main ()
18291 return shl_load ();
18293 return 0;
18295 _ACEOF
18296 if ac_fn_c_try_link "$LINENO"; then :
18297 ac_cv_lib_dld_shl_load=yes
18298 else
18299 ac_cv_lib_dld_shl_load=no
18301 rm -f core conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18303 LIBS=$ac_check_lib_save_LIBS
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18306 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18307 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18308 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18309 else
18310 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18311 if test "x$ac_cv_func_dlopen" = x""yes; then :
18312 lt_cv_dlopen="dlopen"
18313 else
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18317 $as_echo_n "(cached) " >&6
18318 else
18319 ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-ldl $LIBS"
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18324 /* Override any GCC internal prototype to avoid an error.
18325 Use char because int might match the return type of a GCC
18326 builtin and then its argument prototype would still apply. */
18327 #ifdef __cplusplus
18328 extern "C"
18329 #endif
18330 char dlopen ();
18332 main ()
18334 return dlopen ();
18336 return 0;
18338 _ACEOF
18339 if ac_fn_c_try_link "$LINENO"; then :
18340 ac_cv_lib_dl_dlopen=yes
18341 else
18342 ac_cv_lib_dl_dlopen=no
18344 rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18350 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18352 else
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18354 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18355 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358 ac_check_lib_save_LIBS=$LIBS
18359 LIBS="-lsvld $LIBS"
18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361 /* end confdefs.h. */
18363 /* Override any GCC internal prototype to avoid an error.
18364 Use char because int might match the return type of a GCC
18365 builtin and then its argument prototype would still apply. */
18366 #ifdef __cplusplus
18367 extern "C"
18368 #endif
18369 char dlopen ();
18371 main ()
18373 return dlopen ();
18375 return 0;
18377 _ACEOF
18378 if ac_fn_c_try_link "$LINENO"; then :
18379 ac_cv_lib_svld_dlopen=yes
18380 else
18381 ac_cv_lib_svld_dlopen=no
18383 rm -f core conftest.err conftest.$ac_objext \
18384 conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18388 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18389 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18390 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18391 else
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18393 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18394 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18395 $as_echo_n "(cached) " >&6
18396 else
18397 ac_check_lib_save_LIBS=$LIBS
18398 LIBS="-ldld $LIBS"
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18405 #ifdef __cplusplus
18406 extern "C"
18407 #endif
18408 char dld_link ();
18410 main ()
18412 return dld_link ();
18414 return 0;
18416 _ACEOF
18417 if ac_fn_c_try_link "$LINENO"; then :
18418 ac_cv_lib_dld_dld_link=yes
18419 else
18420 ac_cv_lib_dld_dld_link=no
18422 rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18424 LIBS=$ac_check_lib_save_LIBS
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18427 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18428 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18429 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18448 esac
18450 if test "x$lt_cv_dlopen" != xno; then
18451 enable_dlopen=yes
18452 else
18453 enable_dlopen=no
18456 case $lt_cv_dlopen in
18457 dlopen)
18458 save_CPPFLAGS="$CPPFLAGS"
18459 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18461 save_LDFLAGS="$LDFLAGS"
18462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18464 save_LIBS="$LIBS"
18465 LIBS="$lt_cv_dlopen_libs $LIBS"
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18468 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18469 if test "${lt_cv_dlopen_self+set}" = set; then :
18470 $as_echo_n "(cached) " >&6
18471 else
18472 if test "$cross_compiling" = yes; then :
18473 lt_cv_dlopen_self=cross
18474 else
18475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18476 lt_status=$lt_dlunknown
18477 cat > conftest.$ac_ext <<_LT_EOF
18478 #line 18478 "configure"
18479 #include "confdefs.h"
18481 #if HAVE_DLFCN_H
18482 #include <dlfcn.h>
18483 #endif
18485 #include <stdio.h>
18487 #ifdef RTLD_GLOBAL
18488 # define LT_DLGLOBAL RTLD_GLOBAL
18489 #else
18490 # ifdef DL_GLOBAL
18491 # define LT_DLGLOBAL DL_GLOBAL
18492 # else
18493 # define LT_DLGLOBAL 0
18494 # endif
18495 #endif
18497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18498 find out it does not work in some platform. */
18499 #ifndef LT_DLLAZY_OR_NOW
18500 # ifdef RTLD_LAZY
18501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18502 # else
18503 # ifdef DL_LAZY
18504 # define LT_DLLAZY_OR_NOW DL_LAZY
18505 # else
18506 # ifdef RTLD_NOW
18507 # define LT_DLLAZY_OR_NOW RTLD_NOW
18508 # else
18509 # ifdef DL_NOW
18510 # define LT_DLLAZY_OR_NOW DL_NOW
18511 # else
18512 # define LT_DLLAZY_OR_NOW 0
18513 # endif
18514 # endif
18515 # endif
18516 # endif
18517 #endif
18519 /* When -fvisbility=hidden is used, assume the code has been annotated
18520 correspondingly for the symbols needed. */
18521 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18522 void fnord () __attribute__((visibility("default")));
18523 #endif
18525 void fnord () { int i=42; }
18526 int main ()
18528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18529 int status = $lt_dlunknown;
18531 if (self)
18533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18534 else
18536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18537 else puts (dlerror ());
18539 /* dlclose (self); */
18541 else
18542 puts (dlerror ());
18544 return status;
18546 _LT_EOF
18547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18548 (eval $ac_link) 2>&5
18549 ac_status=$?
18550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18552 (./conftest; exit; ) >&5 2>/dev/null
18553 lt_status=$?
18554 case x$lt_status in
18555 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18556 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18557 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18558 esac
18559 else :
18560 # compilation failed
18561 lt_cv_dlopen_self=no
18564 rm -fr conftest*
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18569 $as_echo "$lt_cv_dlopen_self" >&6; }
18571 if test "x$lt_cv_dlopen_self" = xyes; then
18572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18574 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18575 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18576 $as_echo_n "(cached) " >&6
18577 else
18578 if test "$cross_compiling" = yes; then :
18579 lt_cv_dlopen_self_static=cross
18580 else
18581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18582 lt_status=$lt_dlunknown
18583 cat > conftest.$ac_ext <<_LT_EOF
18584 #line 18584 "configure"
18585 #include "confdefs.h"
18587 #if HAVE_DLFCN_H
18588 #include <dlfcn.h>
18589 #endif
18591 #include <stdio.h>
18593 #ifdef RTLD_GLOBAL
18594 # define LT_DLGLOBAL RTLD_GLOBAL
18595 #else
18596 # ifdef DL_GLOBAL
18597 # define LT_DLGLOBAL DL_GLOBAL
18598 # else
18599 # define LT_DLGLOBAL 0
18600 # endif
18601 #endif
18603 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18604 find out it does not work in some platform. */
18605 #ifndef LT_DLLAZY_OR_NOW
18606 # ifdef RTLD_LAZY
18607 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18608 # else
18609 # ifdef DL_LAZY
18610 # define LT_DLLAZY_OR_NOW DL_LAZY
18611 # else
18612 # ifdef RTLD_NOW
18613 # define LT_DLLAZY_OR_NOW RTLD_NOW
18614 # else
18615 # ifdef DL_NOW
18616 # define LT_DLLAZY_OR_NOW DL_NOW
18617 # else
18618 # define LT_DLLAZY_OR_NOW 0
18619 # endif
18620 # endif
18621 # endif
18622 # endif
18623 #endif
18625 /* When -fvisbility=hidden is used, assume the code has been annotated
18626 correspondingly for the symbols needed. */
18627 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18628 void fnord () __attribute__((visibility("default")));
18629 #endif
18631 void fnord () { int i=42; }
18632 int main ()
18634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18635 int status = $lt_dlunknown;
18637 if (self)
18639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18640 else
18642 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18643 else puts (dlerror ());
18645 /* dlclose (self); */
18647 else
18648 puts (dlerror ());
18650 return status;
18652 _LT_EOF
18653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18654 (eval $ac_link) 2>&5
18655 ac_status=$?
18656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18657 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18658 (./conftest; exit; ) >&5 2>/dev/null
18659 lt_status=$?
18660 case x$lt_status in
18661 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18662 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18663 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18664 esac
18665 else :
18666 # compilation failed
18667 lt_cv_dlopen_self_static=no
18670 rm -fr conftest*
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18675 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18678 CPPFLAGS="$save_CPPFLAGS"
18679 LDFLAGS="$save_LDFLAGS"
18680 LIBS="$save_LIBS"
18682 esac
18684 case $lt_cv_dlopen_self in
18685 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18686 *) enable_dlopen_self=unknown ;;
18687 esac
18689 case $lt_cv_dlopen_self_static in
18690 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18691 *) enable_dlopen_self_static=unknown ;;
18692 esac
18711 striplib=
18712 old_striplib=
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18714 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18715 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18716 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18717 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18719 $as_echo "yes" >&6; }
18720 else
18721 # FIXME - insert some real tests, host_os isn't really good enough
18722 case $host_os in
18723 darwin*)
18724 if test -n "$STRIP" ; then
18725 striplib="$STRIP -x"
18726 old_striplib="$STRIP -S"
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18728 $as_echo "yes" >&6; }
18729 else
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731 $as_echo "no" >&6; }
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18736 $as_echo "no" >&6; }
18738 esac
18752 # Report which library types will actually be built
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18754 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18756 $as_echo "$can_build_shared" >&6; }
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18759 $as_echo_n "checking whether to build shared libraries... " >&6; }
18760 test "$can_build_shared" = "no" && enable_shared=no
18762 # On AIX, shared libraries and static libraries use the same namespace, and
18763 # are all built from PIC.
18764 case $host_os in
18765 aix3*)
18766 test "$enable_shared" = yes && enable_static=no
18767 if test -n "$RANLIB"; then
18768 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18769 postinstall_cmds='$RANLIB $lib'
18773 aix[4-9]*)
18774 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18775 test "$enable_shared" = yes && enable_static=no
18778 esac
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18780 $as_echo "$enable_shared" >&6; }
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18783 $as_echo_n "checking whether to build static libraries... " >&6; }
18784 # Make sure either enable_shared or enable_static is yes.
18785 test "$enable_shared" = yes || enable_static=yes
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18787 $as_echo "$enable_static" >&6; }
18793 ac_ext=cpp
18794 ac_cpp='$CXXCPP $CPPFLAGS'
18795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18799 CC="$lt_save_CC"
18801 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18802 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18803 (test "X$CXX" != "Xg++"))) ; then
18804 ac_ext=cpp
18805 ac_cpp='$CXXCPP $CPPFLAGS'
18806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18810 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18811 if test -z "$CXXCPP"; then
18812 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18813 $as_echo_n "(cached) " >&6
18814 else
18815 # Double quotes because CXXCPP needs to be expanded
18816 for CXXCPP in "$CXX -E" "/lib/cpp"
18818 ac_preproc_ok=false
18819 for ac_cxx_preproc_warn_flag in '' yes
18821 # Use a header file that comes with gcc, so configuring glibc
18822 # with a fresh cross-compiler works.
18823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18824 # <limits.h> exists even on freestanding compilers.
18825 # On the NeXT, cc -E runs the code through the compiler's parser,
18826 # not just through cpp. "Syntax error" is here to catch this case.
18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18829 #ifdef __STDC__
18830 # include <limits.h>
18831 #else
18832 # include <assert.h>
18833 #endif
18834 Syntax error
18835 _ACEOF
18836 if ac_fn_cxx_try_cpp "$LINENO"; then :
18838 else
18839 # Broken: fails on valid input.
18840 continue
18842 rm -f conftest.err conftest.$ac_ext
18844 # OK, works on sane cases. Now check whether nonexistent headers
18845 # can be detected and how.
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18848 #include <ac_nonexistent.h>
18849 _ACEOF
18850 if ac_fn_cxx_try_cpp "$LINENO"; then :
18851 # Broken: success on invalid input.
18852 continue
18853 else
18854 # Passes both tests.
18855 ac_preproc_ok=:
18856 break
18858 rm -f conftest.err conftest.$ac_ext
18860 done
18861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18862 rm -f conftest.err conftest.$ac_ext
18863 if $ac_preproc_ok; then :
18864 break
18867 done
18868 ac_cv_prog_CXXCPP=$CXXCPP
18871 CXXCPP=$ac_cv_prog_CXXCPP
18872 else
18873 ac_cv_prog_CXXCPP=$CXXCPP
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18876 $as_echo "$CXXCPP" >&6; }
18877 ac_preproc_ok=false
18878 for ac_cxx_preproc_warn_flag in '' yes
18880 # Use a header file that comes with gcc, so configuring glibc
18881 # with a fresh cross-compiler works.
18882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18883 # <limits.h> exists even on freestanding compilers.
18884 # On the NeXT, cc -E runs the code through the compiler's parser,
18885 # not just through cpp. "Syntax error" is here to catch this case.
18886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887 /* end confdefs.h. */
18888 #ifdef __STDC__
18889 # include <limits.h>
18890 #else
18891 # include <assert.h>
18892 #endif
18893 Syntax error
18894 _ACEOF
18895 if ac_fn_cxx_try_cpp "$LINENO"; then :
18897 else
18898 # Broken: fails on valid input.
18899 continue
18901 rm -f conftest.err conftest.$ac_ext
18903 # OK, works on sane cases. Now check whether nonexistent headers
18904 # can be detected and how.
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18907 #include <ac_nonexistent.h>
18908 _ACEOF
18909 if ac_fn_cxx_try_cpp "$LINENO"; then :
18910 # Broken: success on invalid input.
18911 continue
18912 else
18913 # Passes both tests.
18914 ac_preproc_ok=:
18915 break
18917 rm -f conftest.err conftest.$ac_ext
18919 done
18920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18921 rm -f conftest.err conftest.$ac_ext
18922 if $ac_preproc_ok; then :
18924 else
18925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18927 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18928 See \`config.log' for more details." "$LINENO" 5; }
18931 ac_ext=cpp
18932 ac_cpp='$CXXCPP $CPPFLAGS'
18933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18937 else
18938 _lt_caught_CXX_error=yes
18941 ac_ext=cpp
18942 ac_cpp='$CXXCPP $CPPFLAGS'
18943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18947 archive_cmds_need_lc_CXX=no
18948 allow_undefined_flag_CXX=
18949 always_export_symbols_CXX=no
18950 archive_expsym_cmds_CXX=
18951 compiler_needs_object_CXX=no
18952 export_dynamic_flag_spec_CXX=
18953 hardcode_direct_CXX=no
18954 hardcode_direct_absolute_CXX=no
18955 hardcode_libdir_flag_spec_CXX=
18956 hardcode_libdir_flag_spec_ld_CXX=
18957 hardcode_libdir_separator_CXX=
18958 hardcode_minus_L_CXX=no
18959 hardcode_shlibpath_var_CXX=unsupported
18960 hardcode_automatic_CXX=no
18961 inherit_rpath_CXX=no
18962 module_cmds_CXX=
18963 module_expsym_cmds_CXX=
18964 link_all_deplibs_CXX=unknown
18965 old_archive_cmds_CXX=$old_archive_cmds
18966 reload_flag_CXX=$reload_flag
18967 reload_cmds_CXX=$reload_cmds
18968 no_undefined_flag_CXX=
18969 whole_archive_flag_spec_CXX=
18970 enable_shared_with_static_runtimes_CXX=no
18972 # Source file extension for C++ test sources.
18973 ac_ext=cpp
18975 # Object file extension for compiled C++ test sources.
18976 objext=o
18977 objext_CXX=$objext
18979 # No sense in running all these tests if we already determined that
18980 # the CXX compiler isn't working. Some variables (like enable_shared)
18981 # are currently assumed to apply to all compilers on this platform,
18982 # and will be corrupted by setting them based on a non-working compiler.
18983 if test "$_lt_caught_CXX_error" != yes; then
18984 # Code to be used in simple compile tests
18985 lt_simple_compile_test_code="int some_variable = 0;"
18987 # Code to be used in simple link tests
18988 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18990 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18997 # If no C compiler was specified, use CC.
18998 LTCC=${LTCC-"$CC"}
19000 # If no C compiler flags were specified, use CFLAGS.
19001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19003 # Allow CC to be a program name with arguments.
19004 compiler=$CC
19007 # save warnings/boilerplate of simple test code
19008 ac_outfile=conftest.$ac_objext
19009 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19010 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19011 _lt_compiler_boilerplate=`cat conftest.err`
19012 $RM conftest*
19014 ac_outfile=conftest.$ac_objext
19015 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19016 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19017 _lt_linker_boilerplate=`cat conftest.err`
19018 $RM -r conftest*
19021 # Allow CC to be a program name with arguments.
19022 lt_save_CC=$CC
19023 lt_save_LD=$LD
19024 lt_save_GCC=$GCC
19025 GCC=$GXX
19026 lt_save_with_gnu_ld=$with_gnu_ld
19027 lt_save_path_LD=$lt_cv_path_LD
19028 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19029 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19030 else
19031 $as_unset lt_cv_prog_gnu_ld
19033 if test -n "${lt_cv_path_LDCXX+set}"; then
19034 lt_cv_path_LD=$lt_cv_path_LDCXX
19035 else
19036 $as_unset lt_cv_path_LD
19038 test -z "${LDCXX+set}" || LD=$LDCXX
19039 CC=${CXX-"c++"}
19040 compiler=$CC
19041 compiler_CXX=$CC
19042 for cc_temp in $compiler""; do
19043 case $cc_temp in
19044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19046 \-*) ;;
19047 *) break;;
19048 esac
19049 done
19050 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19053 if test -n "$compiler"; then
19054 # We don't want -fno-exception when compiling C++ code, so set the
19055 # no_builtin_flag separately
19056 if test "$GXX" = yes; then
19057 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19058 else
19059 lt_prog_compiler_no_builtin_flag_CXX=
19062 if test "$GXX" = yes; then
19063 # Set up default GNU C++ configuration
19067 # Check whether --with-gnu-ld was given.
19068 if test "${with_gnu_ld+set}" = set; then :
19069 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19070 else
19071 with_gnu_ld=no
19074 ac_prog=ld
19075 if test "$GCC" = yes; then
19076 # Check if gcc -print-prog-name=ld gives a path.
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19078 $as_echo_n "checking for ld used by $CC... " >&6; }
19079 case $host in
19080 *-*-mingw*)
19081 # gcc leaves a trailing carriage return which upsets mingw
19082 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19084 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19085 esac
19086 case $ac_prog in
19087 # Accept absolute paths.
19088 [\\/]* | ?:[\\/]*)
19089 re_direlt='/[^/][^/]*/\.\./'
19090 # Canonicalize the pathname of ld
19091 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19092 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19093 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19094 done
19095 test -z "$LD" && LD="$ac_prog"
19098 # If it fails, then pretend we aren't using GCC.
19099 ac_prog=ld
19102 # If it is relative, then search for the first ld in PATH.
19103 with_gnu_ld=unknown
19105 esac
19106 elif test "$with_gnu_ld" = yes; then
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19108 $as_echo_n "checking for GNU ld... " >&6; }
19109 else
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19111 $as_echo_n "checking for non-GNU ld... " >&6; }
19113 if test "${lt_cv_path_LD+set}" = set; then :
19114 $as_echo_n "(cached) " >&6
19115 else
19116 if test -z "$LD"; then
19117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19118 for ac_dir in $PATH; do
19119 IFS="$lt_save_ifs"
19120 test -z "$ac_dir" && ac_dir=.
19121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19122 lt_cv_path_LD="$ac_dir/$ac_prog"
19123 # Check to see if the program is GNU ld. I'd rather use --version,
19124 # but apparently some variants of GNU ld only accept -v.
19125 # Break only if it was the GNU/non-GNU ld that we prefer.
19126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19127 *GNU* | *'with BFD'*)
19128 test "$with_gnu_ld" != no && break
19131 test "$with_gnu_ld" != yes && break
19133 esac
19135 done
19136 IFS="$lt_save_ifs"
19137 else
19138 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19142 LD="$lt_cv_path_LD"
19143 if test -n "$LD"; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19145 $as_echo "$LD" >&6; }
19146 else
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19150 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19152 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19153 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19155 else
19156 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19157 case `$LD -v 2>&1 </dev/null` in
19158 *GNU* | *'with BFD'*)
19159 lt_cv_prog_gnu_ld=yes
19162 lt_cv_prog_gnu_ld=no
19164 esac
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19167 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19168 with_gnu_ld=$lt_cv_prog_gnu_ld
19176 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19177 # archiving commands below assume that GNU ld is being used.
19178 if test "$with_gnu_ld" = yes; then
19179 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19180 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'
19182 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19185 # If archive_cmds runs LD, not CC, wlarc should be empty
19186 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19187 # investigate it a little bit more. (MM)
19188 wlarc='${wl}'
19190 # ancient GNU ld didn't support --whole-archive et. al.
19191 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19192 $GREP 'no-whole-archive' > /dev/null; then
19193 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19194 else
19195 whole_archive_flag_spec_CXX=
19197 else
19198 with_gnu_ld=no
19199 wlarc=
19201 # A generic and very simple default shared library creation
19202 # command for GNU C++ for the case where it uses the native
19203 # linker, instead of GNU ld. If possible, this setting should
19204 # overridden to take advantage of the native linker features on
19205 # the platform it is being used on.
19206 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19209 # Commands to make compiler produce verbose output that lists
19210 # what "hidden" libraries, object files and flags are used when
19211 # linking a shared library.
19212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19214 else
19215 GXX=no
19216 with_gnu_ld=no
19217 wlarc=
19220 # PORTME: fill in a description of your system's C++ link characteristics
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19222 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19223 ld_shlibs_CXX=yes
19224 case $host_os in
19225 aix3*)
19226 # FIXME: insert proper C++ library support
19227 ld_shlibs_CXX=no
19229 aix[4-9]*)
19230 if test "$host_cpu" = ia64; then
19231 # On IA64, the linker does run time linking by default, so we don't
19232 # have to do anything special.
19233 aix_use_runtimelinking=no
19234 exp_sym_flag='-Bexport'
19235 no_entry_flag=""
19236 else
19237 aix_use_runtimelinking=no
19239 # Test if we are trying to use run time linking or normal
19240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19241 # need to do runtime linking.
19242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19243 for ld_flag in $LDFLAGS; do
19244 case $ld_flag in
19245 *-brtl*)
19246 aix_use_runtimelinking=yes
19247 break
19249 esac
19250 done
19252 esac
19254 exp_sym_flag='-bexport'
19255 no_entry_flag='-bnoentry'
19258 # When large executables or shared objects are built, AIX ld can
19259 # have problems creating the table of contents. If linking a library
19260 # or program results in "error TOC overflow" add -mminimal-toc to
19261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19264 archive_cmds_CXX=''
19265 hardcode_direct_CXX=yes
19266 hardcode_direct_absolute_CXX=yes
19267 hardcode_libdir_separator_CXX=':'
19268 link_all_deplibs_CXX=yes
19269 file_list_spec_CXX='${wl}-f,'
19271 if test "$GXX" = yes; then
19272 case $host_os in aix4.[012]|aix4.[012].*)
19273 # We only want to do this on AIX 4.2 and lower, the check
19274 # below for broken collect2 doesn't work under 4.3+
19275 collect2name=`${CC} -print-prog-name=collect2`
19276 if test -f "$collect2name" &&
19277 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19278 then
19279 # We have reworked collect2
19281 else
19282 # We have old collect2
19283 hardcode_direct_CXX=unsupported
19284 # It fails to find uninstalled libraries when the uninstalled
19285 # path is not listed in the libpath. Setting hardcode_minus_L
19286 # to unsupported forces relinking
19287 hardcode_minus_L_CXX=yes
19288 hardcode_libdir_flag_spec_CXX='-L$libdir'
19289 hardcode_libdir_separator_CXX=
19291 esac
19292 shared_flag='-shared'
19293 if test "$aix_use_runtimelinking" = yes; then
19294 shared_flag="$shared_flag "'${wl}-G'
19296 else
19297 # not using gcc
19298 if test "$host_cpu" = ia64; then
19299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19300 # chokes on -Wl,-G. The following line is correct:
19301 shared_flag='-G'
19302 else
19303 if test "$aix_use_runtimelinking" = yes; then
19304 shared_flag='${wl}-G'
19305 else
19306 shared_flag='${wl}-bM:SRE'
19311 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19312 # It seems that -bexpall does not export symbols beginning with
19313 # underscore (_), so it is better to generate a list of symbols to
19314 # export.
19315 always_export_symbols_CXX=yes
19316 if test "$aix_use_runtimelinking" = yes; then
19317 # Warning - without using the other runtime loading flags (-brtl),
19318 # -berok will link without error, but may produce a broken library.
19319 allow_undefined_flag_CXX='-berok'
19320 # Determine the default libpath from the value encoded in an empty
19321 # executable.
19322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19323 /* end confdefs.h. */
19326 main ()
19330 return 0;
19332 _ACEOF
19333 if ac_fn_cxx_try_link "$LINENO"; then :
19335 lt_aix_libpath_sed='
19336 /Import File Strings/,/^$/ {
19337 /^0/ {
19338 s/^0 *\(.*\)$/\1/
19342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19343 # Check for a 64-bit object if we didn't find anything.
19344 if test -z "$aix_libpath"; then
19345 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19348 rm -f core conftest.err conftest.$ac_objext \
19349 conftest$ac_exeext conftest.$ac_ext
19350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19352 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19354 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"
19355 else
19356 if test "$host_cpu" = ia64; then
19357 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19358 allow_undefined_flag_CXX="-z nodefs"
19359 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"
19360 else
19361 # Determine the default libpath from the value encoded in an
19362 # empty executable.
19363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364 /* end confdefs.h. */
19367 main ()
19371 return 0;
19373 _ACEOF
19374 if ac_fn_cxx_try_link "$LINENO"; then :
19376 lt_aix_libpath_sed='
19377 /Import File Strings/,/^$/ {
19378 /^0/ {
19379 s/^0 *\(.*\)$/\1/
19383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19384 # Check for a 64-bit object if we didn't find anything.
19385 if test -z "$aix_libpath"; then
19386 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19389 rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
19391 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19393 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19394 # Warning - without using the other run time loading flags,
19395 # -berok will link without error, but may produce a broken library.
19396 no_undefined_flag_CXX=' ${wl}-bernotok'
19397 allow_undefined_flag_CXX=' ${wl}-berok'
19398 if test "$with_gnu_ld" = yes; then
19399 # We only use this code for GNU lds that support --whole-archive.
19400 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19401 else
19402 # Exported symbols can be pulled into shared objects from archives
19403 whole_archive_flag_spec_CXX='$convenience'
19405 archive_cmds_need_lc_CXX=yes
19406 # This is similar to how AIX traditionally builds its shared
19407 # libraries.
19408 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'
19413 beos*)
19414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19415 allow_undefined_flag_CXX=unsupported
19416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19417 # support --undefined. This deserves some investigation. FIXME
19418 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19419 else
19420 ld_shlibs_CXX=no
19424 chorus*)
19425 case $cc_basename in
19427 # FIXME: insert proper C++ library support
19428 ld_shlibs_CXX=no
19430 esac
19433 cygwin* | mingw* | pw32* | cegcc*)
19434 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19435 # as there is no search path for DLLs.
19436 hardcode_libdir_flag_spec_CXX='-L$libdir'
19437 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19438 allow_undefined_flag_CXX=unsupported
19439 always_export_symbols_CXX=no
19440 enable_shared_with_static_runtimes_CXX=yes
19442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19443 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'
19444 # If the export-symbols file already is a .def file (1st line
19445 # is EXPORTS), use it as is; otherwise, prepend...
19446 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19447 cp $export_symbols $output_objdir/$soname.def;
19448 else
19449 echo EXPORTS > $output_objdir/$soname.def;
19450 cat $export_symbols >> $output_objdir/$soname.def;
19452 $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'
19453 else
19454 ld_shlibs_CXX=no
19457 darwin* | rhapsody*)
19460 archive_cmds_need_lc_CXX=no
19461 hardcode_direct_CXX=no
19462 hardcode_automatic_CXX=yes
19463 hardcode_shlibpath_var_CXX=unsupported
19464 if test "$lt_cv_ld_force_load" = "yes"; then
19465 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\"`'
19466 else
19467 whole_archive_flag_spec_CXX=''
19469 link_all_deplibs_CXX=yes
19470 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19471 case $cc_basename in
19472 ifort*) _lt_dar_can_shared=yes ;;
19473 *) _lt_dar_can_shared=$GCC ;;
19474 esac
19475 if test "$_lt_dar_can_shared" = "yes"; then
19476 output_verbose_link_cmd=func_echo_all
19477 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}"
19478 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19479 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}"
19480 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}"
19481 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19482 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}"
19483 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}"
19486 else
19487 ld_shlibs_CXX=no
19492 dgux*)
19493 case $cc_basename in
19494 ec++*)
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19498 ghcx*)
19499 # Green Hills C++ Compiler
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19507 esac
19510 freebsd2.*)
19511 # C++ shared libraries reported to be fairly broken before
19512 # switch to ELF
19513 ld_shlibs_CXX=no
19516 freebsd-elf*)
19517 archive_cmds_need_lc_CXX=no
19520 freebsd* | dragonfly*)
19521 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19522 # conventions
19523 ld_shlibs_CXX=yes
19526 gnu*)
19529 haiku*)
19530 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19531 link_all_deplibs_CXX=yes
19534 hpux9*)
19535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19536 hardcode_libdir_separator_CXX=:
19537 export_dynamic_flag_spec_CXX='${wl}-E'
19538 hardcode_direct_CXX=yes
19539 hardcode_minus_L_CXX=yes # Not in the search PATH,
19540 # but as the default
19541 # location of the library.
19543 case $cc_basename in
19544 CC*)
19545 # FIXME: insert proper C++ library support
19546 ld_shlibs_CXX=no
19548 aCC*)
19549 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'
19550 # Commands to make compiler produce verbose output that lists
19551 # what "hidden" libraries, object files and flags are used when
19552 # linking a shared library.
19554 # There doesn't appear to be a way to prevent this compiler from
19555 # explicitly linking system object files so we need to strip them
19556 # from the output so that they don't get included in the library
19557 # dependencies.
19558 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"'
19561 if test "$GXX" = yes; then
19562 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'
19563 else
19564 # FIXME: insert proper C++ library support
19565 ld_shlibs_CXX=no
19568 esac
19571 hpux10*|hpux11*)
19572 if test $with_gnu_ld = no; then
19573 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19574 hardcode_libdir_separator_CXX=:
19576 case $host_cpu in
19577 hppa*64*|ia64*)
19580 export_dynamic_flag_spec_CXX='${wl}-E'
19582 esac
19584 case $host_cpu in
19585 hppa*64*|ia64*)
19586 hardcode_direct_CXX=no
19587 hardcode_shlibpath_var_CXX=no
19590 hardcode_direct_CXX=yes
19591 hardcode_direct_absolute_CXX=yes
19592 hardcode_minus_L_CXX=yes # Not in the search PATH,
19593 # but as the default
19594 # location of the library.
19596 esac
19598 case $cc_basename in
19599 CC*)
19600 # FIXME: insert proper C++ library support
19601 ld_shlibs_CXX=no
19603 aCC*)
19604 case $host_cpu in
19605 hppa*64*)
19606 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19608 ia64*)
19609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19612 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19614 esac
19615 # Commands to make compiler produce verbose output that lists
19616 # what "hidden" libraries, object files and flags are used when
19617 # linking a shared library.
19619 # There doesn't appear to be a way to prevent this compiler from
19620 # explicitly linking system object files so we need to strip them
19621 # from the output so that they don't get included in the library
19622 # dependencies.
19623 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"'
19626 if test "$GXX" = yes; then
19627 if test $with_gnu_ld = no; then
19628 case $host_cpu in
19629 hppa*64*)
19630 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19632 ia64*)
19633 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19636 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'
19638 esac
19640 else
19641 # FIXME: insert proper C++ library support
19642 ld_shlibs_CXX=no
19645 esac
19648 interix[3-9]*)
19649 hardcode_direct_CXX=no
19650 hardcode_shlibpath_var_CXX=no
19651 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19652 export_dynamic_flag_spec_CXX='${wl}-E'
19653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19654 # Instead, shared libraries are loaded at an image base (0x10000000 by
19655 # default) and relocated if they conflict, which is a slow very memory
19656 # consuming and fragmenting process. To avoid this, we pick a random,
19657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19658 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19659 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'
19660 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'
19662 irix5* | irix6*)
19663 case $cc_basename in
19664 CC*)
19665 # SGI C++
19666 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'
19668 # Archives containing C++ object files must be created using
19669 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19670 # necessary to make sure instantiated templates are included
19671 # in the archive.
19672 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19675 if test "$GXX" = yes; then
19676 if test "$with_gnu_ld" = no; then
19677 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'
19678 else
19679 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'
19682 link_all_deplibs_CXX=yes
19684 esac
19685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19686 hardcode_libdir_separator_CXX=:
19687 inherit_rpath_CXX=yes
19690 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19691 case $cc_basename in
19692 KCC*)
19693 # Kuck and Associates, Inc. (KAI) C++ Compiler
19695 # KCC will only create a shared library if the output file
19696 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19697 # to its proper name (with version) after linking.
19698 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'
19699 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'
19700 # Commands to make compiler produce verbose output that lists
19701 # what "hidden" libraries, object files and flags are used when
19702 # linking a shared library.
19704 # There doesn't appear to be a way to prevent this compiler from
19705 # explicitly linking system object files so we need to strip them
19706 # from the output so that they don't get included in the library
19707 # dependencies.
19708 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"'
19710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19713 # Archives containing C++ object files must be created using
19714 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19715 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19717 icpc* | ecpc* )
19718 # Intel C++
19719 with_gnu_ld=yes
19720 # version 8.0 and above of icpc choke on multiply defined symbols
19721 # if we add $predep_objects and $postdep_objects, however 7.1 and
19722 # earlier do not add the objects themselves.
19723 case `$CC -V 2>&1` in
19724 *"Version 7."*)
19725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19726 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'
19728 *) # Version 8.0 or newer
19729 tmp_idyn=
19730 case $host_cpu in
19731 ia64*) tmp_idyn=' -i_dynamic';;
19732 esac
19733 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19734 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'
19736 esac
19737 archive_cmds_need_lc_CXX=no
19738 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19740 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19742 pgCC* | pgcpp*)
19743 # Portland Group C++ compiler
19744 case `$CC -V` in
19745 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19746 prelink_cmds_CXX='tpldir=Template.dir~
19747 rm -rf $tpldir~
19748 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19749 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19750 old_archive_cmds_CXX='tpldir=Template.dir~
19751 rm -rf $tpldir~
19752 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19753 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19754 $RANLIB $oldlib'
19755 archive_cmds_CXX='tpldir=Template.dir~
19756 rm -rf $tpldir~
19757 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19758 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19759 archive_expsym_cmds_CXX='tpldir=Template.dir~
19760 rm -rf $tpldir~
19761 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19762 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19764 *) # Version 6 and above use weak symbols
19765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19766 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'
19768 esac
19770 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19772 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'
19774 cxx*)
19775 # Compaq C++
19776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19777 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'
19779 runpath_var=LD_RUN_PATH
19780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19781 hardcode_libdir_separator_CXX=:
19783 # Commands to make compiler produce verbose output that lists
19784 # what "hidden" libraries, object files and flags are used when
19785 # linking a shared library.
19787 # There doesn't appear to be a way to prevent this compiler from
19788 # explicitly linking system object files so we need to strip them
19789 # from the output so that they don't get included in the library
19790 # dependencies.
19791 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'
19793 xl* | mpixl* | bgxl*)
19794 # IBM XL 8.0 on PPC, with GNU ld
19795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19797 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19798 if test "x$supports_anon_versioning" = xyes; then
19799 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19801 echo "local: *; };" >> $output_objdir/$libname.ver~
19802 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19806 case `$CC -V 2>&1 | sed 5q` in
19807 *Sun\ C*)
19808 # Sun C++ 5.9
19809 no_undefined_flag_CXX=' -zdefs'
19810 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19811 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'
19812 hardcode_libdir_flag_spec_CXX='-R$libdir'
19813 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'
19814 compiler_needs_object_CXX=yes
19816 # Not sure whether something based on
19817 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19818 # would be better.
19819 output_verbose_link_cmd='func_echo_all'
19821 # Archives containing C++ object files must be created using
19822 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19823 # necessary to make sure instantiated templates are included
19824 # in the archive.
19825 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19827 esac
19829 esac
19832 lynxos*)
19833 # FIXME: insert proper C++ library support
19834 ld_shlibs_CXX=no
19837 m88k*)
19838 # FIXME: insert proper C++ library support
19839 ld_shlibs_CXX=no
19842 mvs*)
19843 case $cc_basename in
19844 cxx*)
19845 # FIXME: insert proper C++ library support
19846 ld_shlibs_CXX=no
19849 # FIXME: insert proper C++ library support
19850 ld_shlibs_CXX=no
19852 esac
19855 netbsd*)
19856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19857 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19858 wlarc=
19859 hardcode_libdir_flag_spec_CXX='-R$libdir'
19860 hardcode_direct_CXX=yes
19861 hardcode_shlibpath_var_CXX=no
19863 # Workaround some broken pre-1.5 toolchains
19864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19867 *nto* | *qnx*)
19868 ld_shlibs_CXX=yes
19871 openbsd2*)
19872 # C++ shared libraries are fairly broken
19873 ld_shlibs_CXX=no
19876 openbsd*)
19877 if test -f /usr/libexec/ld.so; then
19878 hardcode_direct_CXX=yes
19879 hardcode_shlibpath_var_CXX=no
19880 hardcode_direct_absolute_CXX=yes
19881 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19884 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19885 export_dynamic_flag_spec_CXX='${wl}-E'
19886 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19888 output_verbose_link_cmd=func_echo_all
19889 else
19890 ld_shlibs_CXX=no
19894 osf3* | osf4* | osf5*)
19895 case $cc_basename in
19896 KCC*)
19897 # Kuck and Associates, Inc. (KAI) C++ Compiler
19899 # KCC will only create a shared library if the output file
19900 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19901 # to its proper name (with version) after linking.
19902 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'
19904 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19905 hardcode_libdir_separator_CXX=:
19907 # Archives containing C++ object files must be created using
19908 # the KAI C++ compiler.
19909 case $host in
19910 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19911 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19912 esac
19914 RCC*)
19915 # Rational C++ 2.4.1
19916 # FIXME: insert proper C++ library support
19917 ld_shlibs_CXX=no
19919 cxx*)
19920 case $host in
19921 osf3*)
19922 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19923 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'
19924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19927 allow_undefined_flag_CXX=' -expect_unresolved \*'
19928 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'
19929 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19930 echo "-hidden">> $lib.exp~
19931 $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~
19932 $RM $lib.exp'
19933 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19935 esac
19937 hardcode_libdir_separator_CXX=:
19939 # Commands to make compiler produce verbose output that lists
19940 # what "hidden" libraries, object files and flags are used when
19941 # linking a shared library.
19943 # There doesn't appear to be a way to prevent this compiler from
19944 # explicitly linking system object files so we need to strip them
19945 # from the output so that they don't get included in the library
19946 # dependencies.
19947 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"'
19950 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19951 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19952 case $host in
19953 osf3*)
19954 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'
19957 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'
19959 esac
19961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19962 hardcode_libdir_separator_CXX=:
19964 # Commands to make compiler produce verbose output that lists
19965 # what "hidden" libraries, object files and flags are used when
19966 # linking a shared library.
19967 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19969 else
19970 # FIXME: insert proper C++ library support
19971 ld_shlibs_CXX=no
19974 esac
19977 psos*)
19978 # FIXME: insert proper C++ library support
19979 ld_shlibs_CXX=no
19982 sunos4*)
19983 case $cc_basename in
19984 CC*)
19985 # Sun C++ 4.x
19986 # FIXME: insert proper C++ library support
19987 ld_shlibs_CXX=no
19989 lcc*)
19990 # Lucid
19991 # FIXME: insert proper C++ library support
19992 ld_shlibs_CXX=no
19995 # FIXME: insert proper C++ library support
19996 ld_shlibs_CXX=no
19998 esac
20001 solaris*)
20002 case $cc_basename in
20003 CC*)
20004 # Sun C++ 4.2, 5.x and Centerline C++
20005 archive_cmds_need_lc_CXX=yes
20006 no_undefined_flag_CXX=' -zdefs'
20007 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20008 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20009 $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'
20011 hardcode_libdir_flag_spec_CXX='-R$libdir'
20012 hardcode_shlibpath_var_CXX=no
20013 case $host_os in
20014 solaris2.[0-5] | solaris2.[0-5].*) ;;
20016 # The compiler driver will combine and reorder linker options,
20017 # but understands `-z linker_flag'.
20018 # Supported since Solaris 2.6 (maybe 2.5.1?)
20019 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20021 esac
20022 link_all_deplibs_CXX=yes
20024 output_verbose_link_cmd='func_echo_all'
20026 # Archives containing C++ object files must be created using
20027 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20028 # necessary to make sure instantiated templates are included
20029 # in the archive.
20030 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20032 gcx*)
20033 # Green Hills C++ Compiler
20034 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20036 # The C++ compiler must be used to create the archive.
20037 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20040 # GNU C++ compiler with Solaris linker
20041 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20042 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20043 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20044 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20046 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20048 # Commands to make compiler produce verbose output that lists
20049 # what "hidden" libraries, object files and flags are used when
20050 # linking a shared library.
20051 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20052 else
20053 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20054 # platform.
20055 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20056 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20057 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20059 # Commands to make compiler produce verbose output that lists
20060 # what "hidden" libraries, object files and flags are used when
20061 # linking a shared library.
20062 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20065 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20066 case $host_os in
20067 solaris2.[0-5] | solaris2.[0-5].*) ;;
20069 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20071 esac
20074 esac
20077 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20078 no_undefined_flag_CXX='${wl}-z,text'
20079 archive_cmds_need_lc_CXX=no
20080 hardcode_shlibpath_var_CXX=no
20081 runpath_var='LD_RUN_PATH'
20083 case $cc_basename in
20084 CC*)
20085 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20086 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20089 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20092 esac
20095 sysv5* | sco3.2v5* | sco5v6*)
20096 # Note: We can NOT use -z defs as we might desire, because we do not
20097 # link with -lc, and that would cause any symbols used from libc to
20098 # always be unresolved, which means just about no library would
20099 # ever link correctly. If we're not using GNU ld we use -z text
20100 # though, which does catch some bad symbols but isn't as heavy-handed
20101 # as -z defs.
20102 no_undefined_flag_CXX='${wl}-z,text'
20103 allow_undefined_flag_CXX='${wl}-z,nodefs'
20104 archive_cmds_need_lc_CXX=no
20105 hardcode_shlibpath_var_CXX=no
20106 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20107 hardcode_libdir_separator_CXX=':'
20108 link_all_deplibs_CXX=yes
20109 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20110 runpath_var='LD_RUN_PATH'
20112 case $cc_basename in
20113 CC*)
20114 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20115 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20116 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20117 '"$old_archive_cmds_CXX"
20118 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20119 '"$reload_cmds_CXX"
20122 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20123 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20125 esac
20128 tandem*)
20129 case $cc_basename in
20130 NCC*)
20131 # NonStop-UX NCC 3.20
20132 # FIXME: insert proper C++ library support
20133 ld_shlibs_CXX=no
20136 # FIXME: insert proper C++ library support
20137 ld_shlibs_CXX=no
20139 esac
20142 vxworks*)
20143 # FIXME: insert proper C++ library support
20144 ld_shlibs_CXX=no
20148 # FIXME: insert proper C++ library support
20149 ld_shlibs_CXX=no
20151 esac
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20154 $as_echo "$ld_shlibs_CXX" >&6; }
20155 test "$ld_shlibs_CXX" = no && can_build_shared=no
20157 GCC_CXX="$GXX"
20158 LD_CXX="$LD"
20160 ## CAVEAT EMPTOR:
20161 ## There is no encapsulation within the following macros, do not change
20162 ## the running order or otherwise move them around unless you know exactly
20163 ## what you are doing...
20164 # Dependencies to place before and after the object being linked:
20165 predep_objects_CXX=
20166 postdep_objects_CXX=
20167 predeps_CXX=
20168 postdeps_CXX=
20169 compiler_lib_search_path_CXX=
20171 cat > conftest.$ac_ext <<_LT_EOF
20172 class Foo
20174 public:
20175 Foo (void) { a = 0; }
20176 private:
20177 int a;
20179 _LT_EOF
20181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20182 (eval $ac_compile) 2>&5
20183 ac_status=$?
20184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20185 test $ac_status = 0; }; then
20186 # Parse the compiler output and extract the necessary
20187 # objects, libraries and library flags.
20189 # Sentinel used to keep track of whether or not we are before
20190 # the conftest object file.
20191 pre_test_object_deps_done=no
20193 for p in `eval "$output_verbose_link_cmd"`; do
20194 case $p in
20196 -L* | -R* | -l*)
20197 # Some compilers place space between "-{L,R}" and the path.
20198 # Remove the space.
20199 if test $p = "-L" ||
20200 test $p = "-R"; then
20201 prev=$p
20202 continue
20203 else
20204 prev=
20207 if test "$pre_test_object_deps_done" = no; then
20208 case $p in
20209 -L* | -R*)
20210 # Internal compiler library paths should come after those
20211 # provided the user. The postdeps already come after the
20212 # user supplied libs so there is no need to process them.
20213 if test -z "$compiler_lib_search_path_CXX"; then
20214 compiler_lib_search_path_CXX="${prev}${p}"
20215 else
20216 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20219 # The "-l" case would never come before the object being
20220 # linked, so don't bother handling this case.
20221 esac
20222 else
20223 if test -z "$postdeps_CXX"; then
20224 postdeps_CXX="${prev}${p}"
20225 else
20226 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20231 *.$objext)
20232 # This assumes that the test object file only shows up
20233 # once in the compiler output.
20234 if test "$p" = "conftest.$objext"; then
20235 pre_test_object_deps_done=yes
20236 continue
20239 if test "$pre_test_object_deps_done" = no; then
20240 if test -z "$predep_objects_CXX"; then
20241 predep_objects_CXX="$p"
20242 else
20243 predep_objects_CXX="$predep_objects_CXX $p"
20245 else
20246 if test -z "$postdep_objects_CXX"; then
20247 postdep_objects_CXX="$p"
20248 else
20249 postdep_objects_CXX="$postdep_objects_CXX $p"
20254 *) ;; # Ignore the rest.
20256 esac
20257 done
20259 # Clean up.
20260 rm -f a.out a.exe
20261 else
20262 echo "libtool.m4: error: problem compiling CXX test program"
20265 $RM -f confest.$objext
20267 # PORTME: override above test on systems where it is broken
20268 case $host_os in
20269 interix[3-9]*)
20270 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20271 # hack all around it, let's just trust "g++" to DTRT.
20272 predep_objects_CXX=
20273 postdep_objects_CXX=
20274 postdeps_CXX=
20277 linux*)
20278 case `$CC -V 2>&1 | sed 5q` in
20279 *Sun\ C*)
20280 # Sun C++ 5.9
20282 # The more standards-conforming stlport4 library is
20283 # incompatible with the Cstd library. Avoid specifying
20284 # it if it's in CXXFLAGS. Ignore libCrun as
20285 # -library=stlport4 depends on it.
20286 case " $CXX $CXXFLAGS " in
20287 *" -library=stlport4 "*)
20288 solaris_use_stlport4=yes
20290 esac
20292 if test "$solaris_use_stlport4" != yes; then
20293 postdeps_CXX='-library=Cstd -library=Crun'
20296 esac
20299 solaris*)
20300 case $cc_basename in
20301 CC*)
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 # Adding this requires a known-good setup of shared libraries for
20313 # Sun compiler versions before 5.6, else PIC objects from an old
20314 # archive will be linked into the output, leading to subtle bugs.
20315 if test "$solaris_use_stlport4" != yes; then
20316 postdeps_CXX='-library=Cstd -library=Crun'
20319 esac
20321 esac
20324 case " $postdeps_CXX " in
20325 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20326 esac
20327 compiler_lib_search_dirs_CXX=
20328 if test -n "${compiler_lib_search_path_CXX}"; then
20329 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20362 lt_prog_compiler_wl_CXX=
20363 lt_prog_compiler_pic_CXX=
20364 lt_prog_compiler_static_CXX=
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20367 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20369 # C++ specific cases for pic, static, wl, etc.
20370 if test "$GXX" = yes; then
20371 lt_prog_compiler_wl_CXX='-Wl,'
20372 lt_prog_compiler_static_CXX='-static'
20374 case $host_os in
20375 aix*)
20376 # All AIX code is PIC.
20377 if test "$host_cpu" = ia64; then
20378 # AIX 5 now supports IA64 processor
20379 lt_prog_compiler_static_CXX='-Bstatic'
20381 lt_prog_compiler_pic_CXX='-fPIC'
20384 amigaos*)
20385 case $host_cpu in
20386 powerpc)
20387 # see comment about AmigaOS4 .so support
20388 lt_prog_compiler_pic_CXX='-fPIC'
20390 m68k)
20391 # FIXME: we need at least 68020 code to build shared libraries, but
20392 # adding the `-m68020' flag to GCC prevents building anything better,
20393 # like `-m68040'.
20394 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20396 esac
20399 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20400 # PIC is the default for these OSes.
20402 mingw* | cygwin* | os2* | pw32* | cegcc*)
20403 # This hack is so that the source file can tell whether it is being
20404 # built for inclusion in a dll (and should export symbols for example).
20405 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20406 # (--disable-auto-import) libraries
20407 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20409 darwin* | rhapsody*)
20410 # PIC is the default on this platform
20411 # Common symbols not allowed in MH_DYLIB files
20412 lt_prog_compiler_pic_CXX='-fno-common'
20414 *djgpp*)
20415 # DJGPP does not support shared libraries at all
20416 lt_prog_compiler_pic_CXX=
20418 haiku*)
20419 # PIC is the default for Haiku.
20420 # The "-static" flag exists, but is broken.
20421 lt_prog_compiler_static_CXX=
20423 interix[3-9]*)
20424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20425 # Instead, we relocate shared libraries at runtime.
20427 sysv4*MP*)
20428 if test -d /usr/nec; then
20429 lt_prog_compiler_pic_CXX=-Kconform_pic
20432 hpux*)
20433 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20434 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20435 # sets the default TLS model and affects inlining.
20436 case $host_cpu in
20437 hppa*64*)
20440 lt_prog_compiler_pic_CXX='-fPIC'
20442 esac
20444 *qnx* | *nto*)
20445 # QNX uses GNU C++, but need to define -shared option too, otherwise
20446 # it will coredump.
20447 lt_prog_compiler_pic_CXX='-fPIC -shared'
20450 lt_prog_compiler_pic_CXX='-fPIC'
20452 esac
20453 else
20454 case $host_os in
20455 aix[4-9]*)
20456 # All AIX code is PIC.
20457 if test "$host_cpu" = ia64; then
20458 # AIX 5 now supports IA64 processor
20459 lt_prog_compiler_static_CXX='-Bstatic'
20460 else
20461 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20464 chorus*)
20465 case $cc_basename in
20466 cxch68*)
20467 # Green Hills C++ Compiler
20468 # _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"
20470 esac
20472 dgux*)
20473 case $cc_basename in
20474 ec++*)
20475 lt_prog_compiler_pic_CXX='-KPIC'
20477 ghcx*)
20478 # Green Hills C++ Compiler
20479 lt_prog_compiler_pic_CXX='-pic'
20483 esac
20485 freebsd* | dragonfly*)
20486 # FreeBSD uses GNU C++
20488 hpux9* | hpux10* | hpux11*)
20489 case $cc_basename in
20490 CC*)
20491 lt_prog_compiler_wl_CXX='-Wl,'
20492 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20493 if test "$host_cpu" != ia64; then
20494 lt_prog_compiler_pic_CXX='+Z'
20497 aCC*)
20498 lt_prog_compiler_wl_CXX='-Wl,'
20499 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20500 case $host_cpu in
20501 hppa*64*|ia64*)
20502 # +Z the default
20505 lt_prog_compiler_pic_CXX='+Z'
20507 esac
20511 esac
20513 interix*)
20514 # This is c89, which is MS Visual C++ (no shared libs)
20515 # Anyone wants to do a port?
20517 irix5* | irix6* | nonstopux*)
20518 case $cc_basename in
20519 CC*)
20520 lt_prog_compiler_wl_CXX='-Wl,'
20521 lt_prog_compiler_static_CXX='-non_shared'
20522 # CC pic flag -KPIC is the default.
20526 esac
20528 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20529 case $cc_basename in
20530 KCC*)
20531 # KAI C++ Compiler
20532 lt_prog_compiler_wl_CXX='--backend -Wl,'
20533 lt_prog_compiler_pic_CXX='-fPIC'
20535 ecpc* )
20536 # old Intel C++ for x86_64 which still supported -KPIC.
20537 lt_prog_compiler_wl_CXX='-Wl,'
20538 lt_prog_compiler_pic_CXX='-KPIC'
20539 lt_prog_compiler_static_CXX='-static'
20541 icpc* )
20542 # Intel C++, used to be incompatible with GCC.
20543 # ICC 10 doesn't accept -KPIC any more.
20544 lt_prog_compiler_wl_CXX='-Wl,'
20545 lt_prog_compiler_pic_CXX='-fPIC'
20546 lt_prog_compiler_static_CXX='-static'
20548 pgCC* | pgcpp*)
20549 # Portland Group C++ compiler
20550 lt_prog_compiler_wl_CXX='-Wl,'
20551 lt_prog_compiler_pic_CXX='-fpic'
20552 lt_prog_compiler_static_CXX='-Bstatic'
20554 cxx*)
20555 # Compaq C++
20556 # Make sure the PIC flag is empty. It appears that all Alpha
20557 # Linux and Compaq Tru64 Unix objects are PIC.
20558 lt_prog_compiler_pic_CXX=
20559 lt_prog_compiler_static_CXX='-non_shared'
20561 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20562 # IBM XL 8.0, 9.0 on PPC and BlueGene
20563 lt_prog_compiler_wl_CXX='-Wl,'
20564 lt_prog_compiler_pic_CXX='-qpic'
20565 lt_prog_compiler_static_CXX='-qstaticlink'
20568 case `$CC -V 2>&1 | sed 5q` in
20569 *Sun\ C*)
20570 # Sun C++ 5.9
20571 lt_prog_compiler_pic_CXX='-KPIC'
20572 lt_prog_compiler_static_CXX='-Bstatic'
20573 lt_prog_compiler_wl_CXX='-Qoption ld '
20575 esac
20577 esac
20579 lynxos*)
20581 m88k*)
20583 mvs*)
20584 case $cc_basename in
20585 cxx*)
20586 lt_prog_compiler_pic_CXX='-W c,exportall'
20590 esac
20592 netbsd*)
20594 *qnx* | *nto*)
20595 # QNX uses GNU C++, but need to define -shared option too, otherwise
20596 # it will coredump.
20597 lt_prog_compiler_pic_CXX='-fPIC -shared'
20599 osf3* | osf4* | osf5*)
20600 case $cc_basename in
20601 KCC*)
20602 lt_prog_compiler_wl_CXX='--backend -Wl,'
20604 RCC*)
20605 # Rational C++ 2.4.1
20606 lt_prog_compiler_pic_CXX='-pic'
20608 cxx*)
20609 # Digital/Compaq C++
20610 lt_prog_compiler_wl_CXX='-Wl,'
20611 # Make sure the PIC flag is empty. It appears that all Alpha
20612 # Linux and Compaq Tru64 Unix objects are PIC.
20613 lt_prog_compiler_pic_CXX=
20614 lt_prog_compiler_static_CXX='-non_shared'
20618 esac
20620 psos*)
20622 solaris*)
20623 case $cc_basename in
20624 CC*)
20625 # Sun C++ 4.2, 5.x and Centerline C++
20626 lt_prog_compiler_pic_CXX='-KPIC'
20627 lt_prog_compiler_static_CXX='-Bstatic'
20628 lt_prog_compiler_wl_CXX='-Qoption ld '
20630 gcx*)
20631 # Green Hills C++ Compiler
20632 lt_prog_compiler_pic_CXX='-PIC'
20636 esac
20638 sunos4*)
20639 case $cc_basename in
20640 CC*)
20641 # Sun C++ 4.x
20642 lt_prog_compiler_pic_CXX='-pic'
20643 lt_prog_compiler_static_CXX='-Bstatic'
20645 lcc*)
20646 # Lucid
20647 lt_prog_compiler_pic_CXX='-pic'
20651 esac
20653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20654 case $cc_basename in
20655 CC*)
20656 lt_prog_compiler_wl_CXX='-Wl,'
20657 lt_prog_compiler_pic_CXX='-KPIC'
20658 lt_prog_compiler_static_CXX='-Bstatic'
20660 esac
20662 tandem*)
20663 case $cc_basename in
20664 NCC*)
20665 # NonStop-UX NCC 3.20
20666 lt_prog_compiler_pic_CXX='-KPIC'
20670 esac
20672 vxworks*)
20675 lt_prog_compiler_can_build_shared_CXX=no
20677 esac
20680 case $host_os in
20681 # For platforms which do not support PIC, -DPIC is meaningless:
20682 *djgpp*)
20683 lt_prog_compiler_pic_CXX=
20686 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20688 esac
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20690 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20695 # Check to make sure the PIC flag actually works.
20697 if test -n "$lt_prog_compiler_pic_CXX"; then
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20699 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20700 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20701 $as_echo_n "(cached) " >&6
20702 else
20703 lt_cv_prog_compiler_pic_works_CXX=no
20704 ac_outfile=conftest.$ac_objext
20705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20706 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20707 # Insert the option either (1) after the last *FLAGS variable, or
20708 # (2) before a word containing "conftest.", or (3) at the end.
20709 # Note that $ac_compile itself does not contain backslashes and begins
20710 # with a dollar sign (not a hyphen), so the echo should work correctly.
20711 # The option is referenced via a variable to avoid confusing sed.
20712 lt_compile=`echo "$ac_compile" | $SED \
20713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20715 -e 's:$: $lt_compiler_flag:'`
20716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20717 (eval "$lt_compile" 2>conftest.err)
20718 ac_status=$?
20719 cat conftest.err >&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 if (exit $ac_status) && test -s "$ac_outfile"; then
20722 # The compiler can only warn and ignore the option if not recognized
20723 # So say no if there are warnings other than the usual output.
20724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20726 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20727 lt_cv_prog_compiler_pic_works_CXX=yes
20730 $RM conftest*
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20734 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20736 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20737 case $lt_prog_compiler_pic_CXX in
20738 "" | " "*) ;;
20739 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20740 esac
20741 else
20742 lt_prog_compiler_pic_CXX=
20743 lt_prog_compiler_can_build_shared_CXX=no
20751 # Check to make sure the static flag actually works.
20753 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20755 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20756 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20757 $as_echo_n "(cached) " >&6
20758 else
20759 lt_cv_prog_compiler_static_works_CXX=no
20760 save_LDFLAGS="$LDFLAGS"
20761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20764 # The linker can only warn and ignore the option if not recognized
20765 # So say no if there are warnings
20766 if test -s conftest.err; then
20767 # Append any errors to the config.log.
20768 cat conftest.err 1>&5
20769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20771 if diff conftest.exp conftest.er2 >/dev/null; then
20772 lt_cv_prog_compiler_static_works_CXX=yes
20774 else
20775 lt_cv_prog_compiler_static_works_CXX=yes
20778 $RM -r conftest*
20779 LDFLAGS="$save_LDFLAGS"
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20783 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20785 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20787 else
20788 lt_prog_compiler_static_CXX=
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20796 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20797 $as_echo_n "(cached) " >&6
20798 else
20799 lt_cv_prog_compiler_c_o_CXX=no
20800 $RM -r conftest 2>/dev/null
20801 mkdir conftest
20802 cd conftest
20803 mkdir out
20804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20806 lt_compiler_flag="-o out/conftest2.$ac_objext"
20807 # Insert the option either (1) after the last *FLAGS variable, or
20808 # (2) before a word containing "conftest.", or (3) at the end.
20809 # Note that $ac_compile itself does not contain backslashes and begins
20810 # with a dollar sign (not a hyphen), so the echo should work correctly.
20811 lt_compile=`echo "$ac_compile" | $SED \
20812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20814 -e 's:$: $lt_compiler_flag:'`
20815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20816 (eval "$lt_compile" 2>out/conftest.err)
20817 ac_status=$?
20818 cat out/conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20821 then
20822 # The compiler can only warn and ignore the option if not recognized
20823 # So say no if there are warnings
20824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20827 lt_cv_prog_compiler_c_o_CXX=yes
20830 chmod u+w . 2>&5
20831 $RM conftest*
20832 # SGI C++ compiler will create directory out/ii_files/ for
20833 # template instantiation
20834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20835 $RM out/* && rmdir out
20836 cd ..
20837 $RM -r conftest
20838 $RM conftest*
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20842 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20848 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20849 $as_echo_n "(cached) " >&6
20850 else
20851 lt_cv_prog_compiler_c_o_CXX=no
20852 $RM -r conftest 2>/dev/null
20853 mkdir conftest
20854 cd conftest
20855 mkdir out
20856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20858 lt_compiler_flag="-o out/conftest2.$ac_objext"
20859 # Insert the option either (1) after the last *FLAGS variable, or
20860 # (2) before a word containing "conftest.", or (3) at the end.
20861 # Note that $ac_compile itself does not contain backslashes and begins
20862 # with a dollar sign (not a hyphen), so the echo should work correctly.
20863 lt_compile=`echo "$ac_compile" | $SED \
20864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20866 -e 's:$: $lt_compiler_flag:'`
20867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20868 (eval "$lt_compile" 2>out/conftest.err)
20869 ac_status=$?
20870 cat out/conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20873 then
20874 # The compiler can only warn and ignore the option if not recognized
20875 # So say no if there are warnings
20876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20879 lt_cv_prog_compiler_c_o_CXX=yes
20882 chmod u+w . 2>&5
20883 $RM conftest*
20884 # SGI C++ compiler will create directory out/ii_files/ for
20885 # template instantiation
20886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20887 $RM out/* && rmdir out
20888 cd ..
20889 $RM -r conftest
20890 $RM conftest*
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20894 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20899 hard_links="nottested"
20900 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20901 # do not overwrite the value of need_locks provided by the user
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20903 $as_echo_n "checking if we can lock with hard links... " >&6; }
20904 hard_links=yes
20905 $RM conftest*
20906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20907 touch conftest.a
20908 ln conftest.a conftest.b 2>&5 || hard_links=no
20909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20911 $as_echo "$hard_links" >&6; }
20912 if test "$hard_links" = no; then
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20914 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20915 need_locks=warn
20917 else
20918 need_locks=no
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20924 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20926 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20927 case $host_os in
20928 aix[4-9]*)
20929 # If we're using GNU nm, then we don't want the "-C" option.
20930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20931 # Also, AIX nm treats weak defined symbols like other global defined
20932 # symbols, whereas GNU nm marks them as "W".
20933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20934 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'
20935 else
20936 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'
20939 pw32*)
20940 export_symbols_cmds_CXX="$ltdll_cmds"
20942 cygwin* | mingw* | cegcc*)
20943 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'
20946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20948 esac
20949 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20952 $as_echo "$ld_shlibs_CXX" >&6; }
20953 test "$ld_shlibs_CXX" = no && can_build_shared=no
20955 with_gnu_ld_CXX=$with_gnu_ld
20963 # Do we need to explicitly link libc?
20965 case "x$archive_cmds_need_lc_CXX" in
20966 x|xyes)
20967 # Assume -lc should be added
20968 archive_cmds_need_lc_CXX=yes
20970 if test "$enable_shared" = yes && test "$GCC" = yes; then
20971 case $archive_cmds_CXX in
20972 *'~'*)
20973 # FIXME: we may have to deal with multi-command sequences.
20975 '$CC '*)
20976 # Test whether the compiler implicitly links with -lc since on some
20977 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20978 # to ld, don't add -lc before -lgcc.
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20980 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20981 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20983 else
20984 $RM conftest*
20985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20988 (eval $ac_compile) 2>&5
20989 ac_status=$?
20990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20991 test $ac_status = 0; } 2>conftest.err; then
20992 soname=conftest
20993 lib=conftest
20994 libobjs=conftest.$ac_objext
20995 deplibs=
20996 wl=$lt_prog_compiler_wl_CXX
20997 pic_flag=$lt_prog_compiler_pic_CXX
20998 compiler_flags=-v
20999 linker_flags=-v
21000 verstring=
21001 output_objdir=.
21002 libname=conftest
21003 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21004 allow_undefined_flag_CXX=
21005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21006 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21007 ac_status=$?
21008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21009 test $ac_status = 0; }
21010 then
21011 lt_cv_archive_cmds_need_lc_CXX=no
21012 else
21013 lt_cv_archive_cmds_need_lc_CXX=yes
21015 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21016 else
21017 cat conftest.err 1>&5
21019 $RM conftest*
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21023 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21024 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21026 esac
21029 esac
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21095 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21097 library_names_spec=
21098 libname_spec='lib$name'
21099 soname_spec=
21100 shrext_cmds=".so"
21101 postinstall_cmds=
21102 postuninstall_cmds=
21103 finish_cmds=
21104 finish_eval=
21105 shlibpath_var=
21106 shlibpath_overrides_runpath=unknown
21107 version_type=none
21108 dynamic_linker="$host_os ld.so"
21109 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21110 need_lib_prefix=unknown
21111 hardcode_into_libs=no
21113 # when you set need_version to no, make sure it does not cause -set_version
21114 # flags to be left without arguments
21115 need_version=unknown
21117 case $host_os in
21118 aix3*)
21119 version_type=linux
21120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21121 shlibpath_var=LIBPATH
21123 # AIX 3 has no versioning support, so we append a major version to the name.
21124 soname_spec='${libname}${release}${shared_ext}$major'
21127 aix[4-9]*)
21128 version_type=linux
21129 need_lib_prefix=no
21130 need_version=no
21131 hardcode_into_libs=yes
21132 if test "$host_cpu" = ia64; then
21133 # AIX 5 supports IA64
21134 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21135 shlibpath_var=LD_LIBRARY_PATH
21136 else
21137 # With GCC up to 2.95.x, collect2 would create an import file
21138 # for dependence libraries. The import file would start with
21139 # the line `#! .'. This would cause the generated library to
21140 # depend on `.', always an invalid library. This was fixed in
21141 # development snapshots of GCC prior to 3.0.
21142 case $host_os in
21143 aix4 | aix4.[01] | aix4.[01].*)
21144 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21145 echo ' yes '
21146 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21148 else
21149 can_build_shared=no
21152 esac
21153 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21154 # soname into executable. Probably we can add versioning support to
21155 # collect2, so additional links can be useful in future.
21156 if test "$aix_use_runtimelinking" = yes; then
21157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21158 # instead of lib<name>.a to let people know that these are not
21159 # typical AIX shared libraries.
21160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 else
21162 # We preserve .a as extension for shared libraries through AIX4.2
21163 # and later when we are not doing run time linking.
21164 library_names_spec='${libname}${release}.a $libname.a'
21165 soname_spec='${libname}${release}${shared_ext}$major'
21167 shlibpath_var=LIBPATH
21171 amigaos*)
21172 case $host_cpu in
21173 powerpc)
21174 # Since July 2007 AmigaOS4 officially supports .so libraries.
21175 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21178 m68k)
21179 library_names_spec='$libname.ixlibrary $libname.a'
21180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21181 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'
21183 esac
21186 beos*)
21187 library_names_spec='${libname}${shared_ext}'
21188 dynamic_linker="$host_os ld.so"
21189 shlibpath_var=LIBRARY_PATH
21192 bsdi[45]*)
21193 version_type=linux
21194 need_version=no
21195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21196 soname_spec='${libname}${release}${shared_ext}$major'
21197 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21200 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21201 # the default ld.so.conf also contains /usr/contrib/lib and
21202 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21203 # libtool to hard-code these into programs
21206 cygwin* | mingw* | pw32* | cegcc*)
21207 version_type=windows
21208 shrext_cmds=".dll"
21209 need_version=no
21210 need_lib_prefix=no
21212 case $GCC,$host_os in
21213 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21214 library_names_spec='$libname.dll.a'
21215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21216 postinstall_cmds='base_file=`basename \${file}`~
21217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21218 dldir=$destdir/`dirname \$dlpath`~
21219 test -d \$dldir || mkdir -p \$dldir~
21220 $install_prog $dir/$dlname \$dldir/$dlname~
21221 chmod a+x \$dldir/$dlname~
21222 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21223 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21226 dlpath=$dir/\$dldll~
21227 $RM \$dlpath'
21228 shlibpath_overrides_runpath=yes
21230 case $host_os in
21231 cygwin*)
21232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21236 mingw* | cegcc*)
21237 # MinGW DLLs use traditional 'lib' prefix
21238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21240 pw32*)
21241 # pw32 DLLs use 'pw' prefix rather than 'lib'
21242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21244 esac
21248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21250 esac
21251 dynamic_linker='Win32 ld.exe'
21252 # FIXME: first we should search . and the directory the executable is in
21253 shlibpath_var=PATH
21256 darwin* | rhapsody*)
21257 dynamic_linker="$host_os dyld"
21258 version_type=darwin
21259 need_lib_prefix=no
21260 need_version=no
21261 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21262 soname_spec='${libname}${release}${major}$shared_ext'
21263 shlibpath_overrides_runpath=yes
21264 shlibpath_var=DYLD_LIBRARY_PATH
21265 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21270 dgux*)
21271 version_type=linux
21272 need_lib_prefix=no
21273 need_version=no
21274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21275 soname_spec='${libname}${release}${shared_ext}$major'
21276 shlibpath_var=LD_LIBRARY_PATH
21279 freebsd* | dragonfly*)
21280 # DragonFly does not have aout. When/if they implement a new
21281 # versioning mechanism, adjust this.
21282 if test -x /usr/bin/objformat; then
21283 objformat=`/usr/bin/objformat`
21284 else
21285 case $host_os in
21286 freebsd[23].*) objformat=aout ;;
21287 *) objformat=elf ;;
21288 esac
21290 version_type=freebsd-$objformat
21291 case $version_type in
21292 freebsd-elf*)
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21294 need_version=no
21295 need_lib_prefix=no
21297 freebsd-*)
21298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21299 need_version=yes
21301 esac
21302 shlibpath_var=LD_LIBRARY_PATH
21303 case $host_os in
21304 freebsd2.*)
21305 shlibpath_overrides_runpath=yes
21307 freebsd3.[01]* | freebsdelf3.[01]*)
21308 shlibpath_overrides_runpath=yes
21309 hardcode_into_libs=yes
21311 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21312 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21313 shlibpath_overrides_runpath=no
21314 hardcode_into_libs=yes
21316 *) # from 4.6 on, and DragonFly
21317 shlibpath_overrides_runpath=yes
21318 hardcode_into_libs=yes
21320 esac
21323 gnu*)
21324 version_type=linux
21325 need_lib_prefix=no
21326 need_version=no
21327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21328 soname_spec='${libname}${release}${shared_ext}$major'
21329 shlibpath_var=LD_LIBRARY_PATH
21330 hardcode_into_libs=yes
21333 haiku*)
21334 version_type=linux
21335 need_lib_prefix=no
21336 need_version=no
21337 dynamic_linker="$host_os runtime_loader"
21338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21339 soname_spec='${libname}${release}${shared_ext}$major'
21340 shlibpath_var=LIBRARY_PATH
21341 shlibpath_overrides_runpath=yes
21342 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21343 hardcode_into_libs=yes
21346 hpux9* | hpux10* | hpux11*)
21347 # Give a soname corresponding to the major version so that dld.sl refuses to
21348 # link against other versions.
21349 version_type=sunos
21350 need_lib_prefix=no
21351 need_version=no
21352 case $host_cpu in
21353 ia64*)
21354 shrext_cmds='.so'
21355 hardcode_into_libs=yes
21356 dynamic_linker="$host_os dld.so"
21357 shlibpath_var=LD_LIBRARY_PATH
21358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21360 soname_spec='${libname}${release}${shared_ext}$major'
21361 if test "X$HPUX_IA64_MODE" = X32; then
21362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21363 else
21364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21368 hppa*64*)
21369 shrext_cmds='.sl'
21370 hardcode_into_libs=yes
21371 dynamic_linker="$host_os dld.sl"
21372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21375 soname_spec='${libname}${release}${shared_ext}$major'
21376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21380 shrext_cmds='.sl'
21381 dynamic_linker="$host_os dld.sl"
21382 shlibpath_var=SHLIB_PATH
21383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21385 soname_spec='${libname}${release}${shared_ext}$major'
21387 esac
21388 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21389 postinstall_cmds='chmod 555 $lib'
21390 # or fails outright, so override atomically:
21391 install_override_mode=555
21394 interix[3-9]*)
21395 version_type=linux
21396 need_lib_prefix=no
21397 need_version=no
21398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21399 soname_spec='${libname}${release}${shared_ext}$major'
21400 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21401 shlibpath_var=LD_LIBRARY_PATH
21402 shlibpath_overrides_runpath=no
21403 hardcode_into_libs=yes
21406 irix5* | irix6* | nonstopux*)
21407 case $host_os in
21408 nonstopux*) version_type=nonstopux ;;
21410 if test "$lt_cv_prog_gnu_ld" = yes; then
21411 version_type=linux
21412 else
21413 version_type=irix
21414 fi ;;
21415 esac
21416 need_lib_prefix=no
21417 need_version=no
21418 soname_spec='${libname}${release}${shared_ext}$major'
21419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21420 case $host_os in
21421 irix5* | nonstopux*)
21422 libsuff= shlibsuff=
21425 case $LD in # libtool.m4 will add one of these switches to LD
21426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21427 libsuff= shlibsuff= libmagic=32-bit;;
21428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21429 libsuff=32 shlibsuff=N32 libmagic=N32;;
21430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21432 *) libsuff= shlibsuff= libmagic=never-match;;
21433 esac
21435 esac
21436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21437 shlibpath_overrides_runpath=no
21438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21440 hardcode_into_libs=yes
21443 # No shared lib support for Linux oldld, aout, or coff.
21444 linux*oldld* | linux*aout* | linux*coff*)
21445 dynamic_linker=no
21448 # This must be Linux ELF.
21449 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21450 version_type=linux
21451 need_lib_prefix=no
21452 need_version=no
21453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21454 soname_spec='${libname}${release}${shared_ext}$major'
21455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21456 shlibpath_var=LD_LIBRARY_PATH
21457 shlibpath_overrides_runpath=no
21459 # Some binutils ld are patched to set DT_RUNPATH
21460 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21461 $as_echo_n "(cached) " >&6
21462 else
21463 lt_cv_shlibpath_overrides_runpath=no
21464 save_LDFLAGS=$LDFLAGS
21465 save_libdir=$libdir
21466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21469 /* end confdefs.h. */
21472 main ()
21476 return 0;
21478 _ACEOF
21479 if ac_fn_cxx_try_link "$LINENO"; then :
21480 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21481 lt_cv_shlibpath_overrides_runpath=yes
21484 rm -f core conftest.err conftest.$ac_objext \
21485 conftest$ac_exeext conftest.$ac_ext
21486 LDFLAGS=$save_LDFLAGS
21487 libdir=$save_libdir
21491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21493 # This implies no fast_install, which is unacceptable.
21494 # Some rework will be needed to allow for fast_install
21495 # before this can be enabled.
21496 hardcode_into_libs=yes
21498 # Append ld.so.conf contents to the search path
21499 if test -f /etc/ld.so.conf; then
21500 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' ' '`
21501 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21504 # We used to test for /lib/ld.so.1 and disable shared libraries on
21505 # powerpc, because MkLinux only supported shared libraries with the
21506 # GNU dynamic linker. Since this was broken with cross compilers,
21507 # most powerpc-linux boxes support dynamic linking these days and
21508 # people can always --disable-shared, the test was removed, and we
21509 # assume the GNU/Linux dynamic linker is in use.
21510 dynamic_linker='GNU/Linux ld.so'
21513 netbsd*)
21514 version_type=sunos
21515 need_lib_prefix=no
21516 need_version=no
21517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21520 dynamic_linker='NetBSD (a.out) ld.so'
21521 else
21522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21523 soname_spec='${libname}${release}${shared_ext}$major'
21524 dynamic_linker='NetBSD ld.elf_so'
21526 shlibpath_var=LD_LIBRARY_PATH
21527 shlibpath_overrides_runpath=yes
21528 hardcode_into_libs=yes
21531 newsos6)
21532 version_type=linux
21533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21534 shlibpath_var=LD_LIBRARY_PATH
21535 shlibpath_overrides_runpath=yes
21538 *nto* | *qnx*)
21539 version_type=qnx
21540 need_lib_prefix=no
21541 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
21545 shlibpath_overrides_runpath=no
21546 hardcode_into_libs=yes
21547 dynamic_linker='ldqnx.so'
21550 openbsd*)
21551 version_type=sunos
21552 sys_lib_dlsearch_path_spec="/usr/lib"
21553 need_lib_prefix=no
21554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21555 case $host_os in
21556 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21557 *) need_version=no ;;
21558 esac
21559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21561 shlibpath_var=LD_LIBRARY_PATH
21562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21563 case $host_os in
21564 openbsd2.[89] | openbsd2.[89].*)
21565 shlibpath_overrides_runpath=no
21568 shlibpath_overrides_runpath=yes
21570 esac
21571 else
21572 shlibpath_overrides_runpath=yes
21576 os2*)
21577 libname_spec='$name'
21578 shrext_cmds=".dll"
21579 need_lib_prefix=no
21580 library_names_spec='$libname${shared_ext} $libname.a'
21581 dynamic_linker='OS/2 ld.exe'
21582 shlibpath_var=LIBPATH
21585 osf3* | osf4* | osf5*)
21586 version_type=osf
21587 need_lib_prefix=no
21588 need_version=no
21589 soname_spec='${libname}${release}${shared_ext}$major'
21590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21591 shlibpath_var=LD_LIBRARY_PATH
21592 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21593 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21596 rdos*)
21597 dynamic_linker=no
21600 solaris*)
21601 version_type=linux
21602 need_lib_prefix=no
21603 need_version=no
21604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21605 soname_spec='${libname}${release}${shared_ext}$major'
21606 shlibpath_var=LD_LIBRARY_PATH
21607 shlibpath_overrides_runpath=yes
21608 hardcode_into_libs=yes
21609 # ldd complains unless libraries are executable
21610 postinstall_cmds='chmod +x $lib'
21613 sunos4*)
21614 version_type=sunos
21615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21617 shlibpath_var=LD_LIBRARY_PATH
21618 shlibpath_overrides_runpath=yes
21619 if test "$with_gnu_ld" = yes; then
21620 need_lib_prefix=no
21622 need_version=yes
21625 sysv4 | sysv4.3*)
21626 version_type=linux
21627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21628 soname_spec='${libname}${release}${shared_ext}$major'
21629 shlibpath_var=LD_LIBRARY_PATH
21630 case $host_vendor in
21631 sni)
21632 shlibpath_overrides_runpath=no
21633 need_lib_prefix=no
21634 runpath_var=LD_RUN_PATH
21636 siemens)
21637 need_lib_prefix=no
21639 motorola)
21640 need_lib_prefix=no
21641 need_version=no
21642 shlibpath_overrides_runpath=no
21643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21645 esac
21648 sysv4*MP*)
21649 if test -d /usr/nec ;then
21650 version_type=linux
21651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21652 soname_spec='$libname${shared_ext}.$major'
21653 shlibpath_var=LD_LIBRARY_PATH
21657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21658 version_type=freebsd-elf
21659 need_lib_prefix=no
21660 need_version=no
21661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21662 soname_spec='${libname}${release}${shared_ext}$major'
21663 shlibpath_var=LD_LIBRARY_PATH
21664 shlibpath_overrides_runpath=yes
21665 hardcode_into_libs=yes
21666 if test "$with_gnu_ld" = yes; then
21667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21668 else
21669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21670 case $host_os in
21671 sco3.2v5*)
21672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21674 esac
21676 sys_lib_dlsearch_path_spec='/usr/lib'
21679 tpf*)
21680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21681 version_type=linux
21682 need_lib_prefix=no
21683 need_version=no
21684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21685 shlibpath_var=LD_LIBRARY_PATH
21686 shlibpath_overrides_runpath=no
21687 hardcode_into_libs=yes
21690 uts4*)
21691 version_type=linux
21692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21693 soname_spec='${libname}${release}${shared_ext}$major'
21694 shlibpath_var=LD_LIBRARY_PATH
21698 dynamic_linker=no
21700 esac
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21702 $as_echo "$dynamic_linker" >&6; }
21703 test "$dynamic_linker" = no && can_build_shared=no
21705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21706 if test "$GCC" = yes; then
21707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21710 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21711 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21713 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21714 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21756 hardcode_action_CXX=
21757 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21758 test -n "$runpath_var_CXX" ||
21759 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21761 # We can hardcode non-existent directories.
21762 if test "$hardcode_direct_CXX" != no &&
21763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21764 # have to relink, otherwise we might link with an installed library
21765 # when we should be linking with a yet-to-be-installed one
21766 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21767 test "$hardcode_minus_L_CXX" != no; then
21768 # Linking always hardcodes the temporary library directory.
21769 hardcode_action_CXX=relink
21770 else
21771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21772 hardcode_action_CXX=immediate
21774 else
21775 # We cannot hardcode anything, or else we can only hardcode existing
21776 # directories.
21777 hardcode_action_CXX=unsupported
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21780 $as_echo "$hardcode_action_CXX" >&6; }
21782 if test "$hardcode_action_CXX" = relink ||
21783 test "$inherit_rpath_CXX" = yes; then
21784 # Fast installation is not supported
21785 enable_fast_install=no
21786 elif test "$shlibpath_overrides_runpath" = yes ||
21787 test "$enable_shared" = no; then
21788 # Fast installation is not necessary
21789 enable_fast_install=needless
21798 fi # test -n "$compiler"
21800 CC=$lt_save_CC
21801 LDCXX=$LD
21802 LD=$lt_save_LD
21803 GCC=$lt_save_GCC
21804 with_gnu_ld=$lt_save_with_gnu_ld
21805 lt_cv_path_LDCXX=$lt_cv_path_LD
21806 lt_cv_path_LD=$lt_save_path_LD
21807 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21808 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21809 fi # test "$_lt_caught_CXX_error" != yes
21811 ac_ext=cpp
21812 ac_cpp='$CXXCPP $CPPFLAGS'
21813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21832 # Only expand once:
21838 # Identify the assembler which will work hand-in-glove with the newly
21839 # built GCC, so that we can examine its features. This is the assembler
21840 # which will be driven by the driver program.
21842 # If build != host, and we aren't building gas in-tree, we identify a
21843 # build->target assembler and hope that it will have the same features
21844 # as the host->target assembler we'll be using.
21845 gcc_cv_gas_major_version=
21846 gcc_cv_gas_minor_version=
21847 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21849 if test "${gcc_cv_as+set}" = set; then :
21851 else
21853 if test -x "$DEFAULT_ASSEMBLER"; then
21854 gcc_cv_as="$DEFAULT_ASSEMBLER"
21855 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21856 && test -f ../gas/Makefile \
21857 && test x$build = x$host; then
21858 gcc_cv_as=../gas/as-new$build_exeext
21859 elif test -x as$build_exeext; then
21860 # Build using assembler in the current directory.
21861 gcc_cv_as=./as$build_exeext
21862 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21863 gcc_cv_as="$AS_FOR_TARGET"
21864 else
21865 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21866 set dummy $AS_FOR_TARGET; ac_word=$2
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21868 $as_echo_n "checking for $ac_word... " >&6; }
21869 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21870 $as_echo_n "(cached) " >&6
21871 else
21872 case $gcc_cv_as in
21873 [\\/]* | ?:[\\/]*)
21874 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21878 for as_dir in $PATH
21880 IFS=$as_save_IFS
21881 test -z "$as_dir" && as_dir=.
21882 for ac_exec_ext in '' $ac_executable_extensions; do
21883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21884 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21886 break 2
21888 done
21889 done
21890 IFS=$as_save_IFS
21893 esac
21895 gcc_cv_as=$ac_cv_path_gcc_cv_as
21896 if test -n "$gcc_cv_as"; then
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21898 $as_echo "$gcc_cv_as" >&6; }
21899 else
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21901 $as_echo "no" >&6; }
21908 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21910 case "$ORIGINAL_AS_FOR_TARGET" in
21911 ./as | ./as$build_exeext) ;;
21912 *) ac_config_files="$ac_config_files as:exec-tool.in"
21914 esac
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21917 $as_echo_n "checking what assembler to use... " >&6; }
21918 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21919 # Single tree build which includes gas. We want to prefer it
21920 # over whatever linker top-level may have detected, since
21921 # we'll use what we're building after installation anyway.
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21923 $as_echo "newly built gas" >&6; }
21924 in_tree_gas=yes
21925 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21926 for f in $gcc_cv_as_bfd_srcdir/configure \
21927 $gcc_cv_as_gas_srcdir/configure \
21928 $gcc_cv_as_gas_srcdir/configure.ac \
21929 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21930 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21931 if test x$gcc_cv_gas_version != x; then
21932 break
21934 done
21935 case $gcc_cv_gas_version in
21936 VERSION=[0-9]*) ;;
21937 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21938 esac
21939 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21940 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21941 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21942 case $gcc_cv_gas_patch_version in
21943 "") gcc_cv_gas_patch_version="0" ;;
21944 esac
21945 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21946 + $gcc_cv_gas_minor_version \) \* 1000 \
21947 + $gcc_cv_gas_patch_version`
21949 in_tree_gas_is_elf=no
21950 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21951 || (grep 'obj_format = multi' ../gas/Makefile \
21952 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21953 then
21954 in_tree_gas_is_elf=yes
21956 else
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21958 $as_echo "$gcc_cv_as" >&6; }
21959 in_tree_gas=no
21962 default_ld=
21963 # Check whether --enable-ld was given.
21964 if test "${enable_ld+set}" = set; then :
21965 enableval=$enable_ld; case "${enableval}" in
21967 default_ld=ld.gold
21969 esac
21973 install_gold_as_default=no
21974 # Check whether --enable-gold was given.
21975 if test "${enable_gold+set}" = set; then :
21976 enableval=$enable_gold; case "${enableval}" in
21977 default)
21978 install_gold_as_default=yes
21980 yes)
21981 if test x${default_ld} != x; then
21982 install_gold_as_default=yes
21988 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21990 esac
21994 # Identify the linker which will work hand-in-glove with the newly
21995 # built GCC, so that we can examine its features. This is the linker
21996 # which will be driven by the driver program.
21998 # If build != host, and we aren't building gas in-tree, we identify a
21999 # build->target linker and hope that it will have the same features
22000 # as the host->target linker we'll be using.
22001 gcc_cv_gld_major_version=
22002 gcc_cv_gld_minor_version=
22003 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22004 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22005 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22007 if test "${gcc_cv_ld+set}" = set; then :
22009 else
22011 if test -x "$DEFAULT_LINKER"; then
22012 gcc_cv_ld="$DEFAULT_LINKER"
22013 elif test $install_gold_as_default = yes \
22014 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22015 && test -f ../gold/Makefile \
22016 && test x$build = x$host; then
22017 gcc_cv_ld=../gold/ld-new$build_exeext
22018 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22019 && test -f ../ld/Makefile \
22020 && test x$build = x$host; then
22021 gcc_cv_ld=../ld/ld-new$build_exeext
22022 elif test -x collect-ld$build_exeext; then
22023 # Build using linker in the current directory.
22024 gcc_cv_ld=./collect-ld$build_exeext
22025 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22026 gcc_cv_ld="$LD_FOR_TARGET"
22027 else
22028 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22029 set dummy $LD_FOR_TARGET; ac_word=$2
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22031 $as_echo_n "checking for $ac_word... " >&6; }
22032 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22033 $as_echo_n "(cached) " >&6
22034 else
22035 case $gcc_cv_ld in
22036 [\\/]* | ?:[\\/]*)
22037 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22041 for as_dir in $PATH
22043 IFS=$as_save_IFS
22044 test -z "$as_dir" && as_dir=.
22045 for ac_exec_ext in '' $ac_executable_extensions; do
22046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22047 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22049 break 2
22051 done
22052 done
22053 IFS=$as_save_IFS
22056 esac
22058 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22059 if test -n "$gcc_cv_ld"; then
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22061 $as_echo "$gcc_cv_ld" >&6; }
22062 else
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22064 $as_echo "no" >&6; }
22071 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22072 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22073 # if the PLUGIN_LD is set ld-new, just have it as ld
22074 # as that is the installed named.
22075 if test x$PLUGIN_LD_SUFFIX = xld-new \
22076 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22077 PLUGIN_LD_SUFFIX=ld
22080 # Check whether --with-plugin-ld was given.
22081 if test "${with_plugin_ld+set}" = set; then :
22082 withval=$with_plugin_ld; if test x"$withval" != x; then
22083 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22084 PLUGIN_LD_SUFFIX="$withval"
22090 cat >>confdefs.h <<_ACEOF
22091 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22092 _ACEOF
22095 # Check to see if we are using gold instead of ld
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22097 $as_echo_n "checking whether we are using gold... " >&6; }
22098 ld_is_gold=no
22099 if test x$gcc_cv_ld != x; then
22100 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22101 | grep "GNU gold" > /dev/null; then
22102 ld_is_gold=yes
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22106 $as_echo "$ld_is_gold" >&6; }
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22109 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22110 # Check to see if default ld is not gold, but gold is
22111 # available and has support for split stack. If gcc was configured
22112 # with gold then no checking is done.
22114 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22116 # For platforms other than powerpc64*, enable as appropriate.
22118 gold_non_default=no
22119 ld_gold=`which ${gcc_cv_ld}.gold`
22120 # Make sure this gold has minimal split stack support
22121 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22122 ld_vers=`$ld_gold --version | sed 1q`
22123 gold_vers=`echo $ld_vers | sed -n \
22124 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22125 case $target in
22126 # check that the gold version contains the complete split stack support
22127 # on powerpc64 big and little endian
22128 powerpc64*-*-*)
22129 case "$gold_vers" in
22130 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22132 *) gold_non_default=no
22134 esac
22136 esac
22138 if test $gold_non_default = yes; then
22140 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22145 $as_echo "$gold_non_default" >&6; }
22147 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22149 case "$ORIGINAL_LD_FOR_TARGET" in
22150 ./collect-ld | ./collect-ld$build_exeext) ;;
22151 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22153 esac
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22156 $as_echo_n "checking what linker to use... " >&6; }
22157 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22158 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22159 # Single tree build which includes ld. We want to prefer it
22160 # over whatever linker top-level may have detected, since
22161 # we'll use what we're building after installation anyway.
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22163 $as_echo "newly built ld" >&6; }
22164 in_tree_ld=yes
22165 in_tree_ld_is_elf=no
22166 if (grep 'EMUL = .*elf' ../ld/Makefile \
22167 || grep 'EMUL = .*linux' ../ld/Makefile \
22168 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22169 in_tree_ld_is_elf=yes
22170 elif test "$ld_is_gold" = yes; then
22171 in_tree_ld_is_elf=yes
22173 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
22175 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22176 if test x$gcc_cv_gld_version != x; then
22177 break
22179 done
22180 case $gcc_cv_gld_version in
22181 VERSION=[0-9]*) ;;
22182 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22183 esac
22184 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22185 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22186 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22187 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22188 else
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22190 $as_echo "$gcc_cv_ld" >&6; }
22191 in_tree_ld=no
22192 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22193 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22194 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22200 # Figure out what nm we will be using.
22201 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22202 if test "${gcc_cv_nm+set}" = set; then :
22204 else
22206 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22207 && test -f ../binutils/Makefile \
22208 && test x$build = x$host; then
22209 gcc_cv_nm=../binutils/nm-new$build_exeext
22210 elif test -x nm$build_exeext; then
22211 gcc_cv_nm=./nm$build_exeext
22212 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22213 gcc_cv_nm="$NM_FOR_TARGET"
22214 else
22215 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22216 set dummy $NM_FOR_TARGET; ac_word=$2
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22218 $as_echo_n "checking for $ac_word... " >&6; }
22219 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22220 $as_echo_n "(cached) " >&6
22221 else
22222 case $gcc_cv_nm in
22223 [\\/]* | ?:[\\/]*)
22224 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22228 for as_dir in $PATH
22230 IFS=$as_save_IFS
22231 test -z "$as_dir" && as_dir=.
22232 for ac_exec_ext in '' $ac_executable_extensions; do
22233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22234 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22236 break 2
22238 done
22239 done
22240 IFS=$as_save_IFS
22243 esac
22245 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22246 if test -n "$gcc_cv_nm"; then
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22248 $as_echo "$gcc_cv_nm" >&6; }
22249 else
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22251 $as_echo "no" >&6; }
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22259 $as_echo_n "checking what nm to use... " >&6; }
22260 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22261 # Single tree build which includes binutils.
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22263 $as_echo "newly built nm" >&6; }
22264 in_tree_nm=yes
22265 else
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22267 $as_echo "$gcc_cv_nm" >&6; }
22268 in_tree_nm=no
22271 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22273 case "$ORIGINAL_NM_FOR_TARGET" in
22274 ./nm | ./nm$build_exeext) ;;
22275 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22277 esac
22280 # Figure out what objdump we will be using.
22281 if test "${gcc_cv_objdump+set}" = set; then :
22283 else
22285 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22286 && test -f ../binutils/Makefile \
22287 && test x$build = x$host; then
22288 # Single tree build which includes binutils.
22289 gcc_cv_objdump=../binutils/objdump$build_exeext
22290 elif test -x objdump$build_exeext; then
22291 gcc_cv_objdump=./objdump$build_exeext
22292 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22293 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22294 else
22295 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22296 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22298 $as_echo_n "checking for $ac_word... " >&6; }
22299 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22302 case $gcc_cv_objdump in
22303 [\\/]* | ?:[\\/]*)
22304 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22308 for as_dir in $PATH
22310 IFS=$as_save_IFS
22311 test -z "$as_dir" && as_dir=.
22312 for ac_exec_ext in '' $ac_executable_extensions; do
22313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22314 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22316 break 2
22318 done
22319 done
22320 IFS=$as_save_IFS
22323 esac
22325 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22326 if test -n "$gcc_cv_objdump"; then
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22328 $as_echo "$gcc_cv_objdump" >&6; }
22329 else
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22331 $as_echo "no" >&6; }
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22339 $as_echo_n "checking what objdump to use... " >&6; }
22340 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22341 # Single tree build which includes binutils.
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22343 $as_echo "newly built objdump" >&6; }
22344 elif test x$gcc_cv_objdump = x; then
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22346 $as_echo "not found" >&6; }
22347 else
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22349 $as_echo "$gcc_cv_objdump" >&6; }
22352 # Figure out what readelf we will be using.
22353 if test "${gcc_cv_readelf+set}" = set; then :
22355 else
22357 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22358 && test -f ../binutils/Makefile \
22359 && test x$build = x$host; then
22360 # Single tree build which includes binutils.
22361 gcc_cv_readelf=../binutils/readelf$build_exeext
22362 elif test -x readelf$build_exeext; then
22363 gcc_cv_readelf=./readelf$build_exeext
22364 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22365 gcc_cv_readelf="$READELF_FOR_TARGET"
22366 else
22367 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22368 set dummy $READELF_FOR_TARGET; ac_word=$2
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22370 $as_echo_n "checking for $ac_word... " >&6; }
22371 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22372 $as_echo_n "(cached) " >&6
22373 else
22374 case $gcc_cv_readelf in
22375 [\\/]* | ?:[\\/]*)
22376 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22380 for as_dir in $PATH
22382 IFS=$as_save_IFS
22383 test -z "$as_dir" && as_dir=.
22384 for ac_exec_ext in '' $ac_executable_extensions; do
22385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22386 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22388 break 2
22390 done
22391 done
22392 IFS=$as_save_IFS
22395 esac
22397 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22398 if test -n "$gcc_cv_readelf"; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22400 $as_echo "$gcc_cv_readelf" >&6; }
22401 else
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22411 $as_echo_n "checking what readelf to use... " >&6; }
22412 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22413 # Single tree build which includes binutils.
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22415 $as_echo "newly built readelf" >&6; }
22416 elif test x$gcc_cv_readelf = x; then
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22418 $as_echo "not found" >&6; }
22419 else
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22421 $as_echo "$gcc_cv_readelf" >&6; }
22424 # Figure out what assembler alignment features are present.
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22426 $as_echo_n "checking assembler flags... " >&6; }
22427 if test "${gcc_cv_as_flags+set}" = set; then :
22428 $as_echo_n "(cached) " >&6
22429 else
22430 case "$target" in
22431 i[34567]86-*-linux*)
22432 gcc_cv_as_flags=--32
22434 x86_64-*-linux-gnux32)
22435 gcc_cv_as_flags=--x32
22437 x86_64-*-linux*)
22438 gcc_cv_as_flags=--64
22440 powerpc*-*-darwin*)
22441 gcc_cv_as_flags="-arch ppc"
22444 gcc_cv_as_flags=" "
22446 esac
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22449 $as_echo "$gcc_cv_as_flags" >&6; }
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22452 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22453 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22454 $as_echo_n "(cached) " >&6
22455 else
22456 gcc_cv_as_balign_and_p2align=no
22457 if test $in_tree_gas = yes; then
22458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22459 then gcc_cv_as_balign_and_p2align=yes
22461 elif test x$gcc_cv_as != x; then
22462 $as_echo '.balign 4
22463 .p2align 2' > conftest.s
22464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22469 test $ac_status = 0; }; }
22470 then
22471 gcc_cv_as_balign_and_p2align=yes
22472 else
22473 echo "configure: failed program was" >&5
22474 cat conftest.s >&5
22476 rm -f conftest.o conftest.s
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22480 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22481 if test $gcc_cv_as_balign_and_p2align = yes; then
22483 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22488 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22489 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22491 else
22492 gcc_cv_as_max_skip_p2align=no
22493 if test $in_tree_gas = yes; then
22494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22495 then gcc_cv_as_max_skip_p2align=yes
22497 elif test x$gcc_cv_as != x; then
22498 $as_echo '.p2align 4,,7' > conftest.s
22499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22504 test $ac_status = 0; }; }
22505 then
22506 gcc_cv_as_max_skip_p2align=yes
22507 else
22508 echo "configure: failed program was" >&5
22509 cat conftest.s >&5
22511 rm -f conftest.o conftest.s
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22515 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22516 if test $gcc_cv_as_max_skip_p2align = yes; then
22518 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22523 $as_echo_n "checking assembler for .literal16... " >&6; }
22524 if test "${gcc_cv_as_literal16+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 gcc_cv_as_literal16=no
22528 if test $in_tree_gas = yes; then
22529 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22530 then gcc_cv_as_literal16=yes
22532 elif test x$gcc_cv_as != x; then
22533 $as_echo '.literal16' > conftest.s
22534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22536 (eval $ac_try) 2>&5
22537 ac_status=$?
22538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22539 test $ac_status = 0; }; }
22540 then
22541 gcc_cv_as_literal16=yes
22542 else
22543 echo "configure: failed program was" >&5
22544 cat conftest.s >&5
22546 rm -f conftest.o conftest.s
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22550 $as_echo "$gcc_cv_as_literal16" >&6; }
22551 if test $gcc_cv_as_literal16 = yes; then
22553 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22558 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22559 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22560 $as_echo_n "(cached) " >&6
22561 else
22562 gcc_cv_as_subsection_m1=no
22563 if test $in_tree_gas = yes; then
22564 if test $in_tree_gas_is_elf = yes \
22565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22566 then gcc_cv_as_subsection_m1=yes
22568 elif test x$gcc_cv_as != x; then
22569 $as_echo 'conftest_label1: .word 0
22570 .subsection -1
22571 conftest_label2: .word 0
22572 .previous' > conftest.s
22573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22575 (eval $ac_try) 2>&5
22576 ac_status=$?
22577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22578 test $ac_status = 0; }; }
22579 then
22580 if test x$gcc_cv_nm != x; then
22581 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22582 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22583 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22584 then :
22585 else gcc_cv_as_subsection_m1=yes
22587 rm -f conftest.nm1 conftest.nm2
22589 else
22590 echo "configure: failed program was" >&5
22591 cat conftest.s >&5
22593 rm -f conftest.o conftest.s
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22597 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22598 if test $gcc_cv_as_subsection_m1 = yes; then
22600 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22605 $as_echo_n "checking assembler for .weak... " >&6; }
22606 if test "${gcc_cv_as_weak+set}" = set; then :
22607 $as_echo_n "(cached) " >&6
22608 else
22609 gcc_cv_as_weak=no
22610 if test $in_tree_gas = yes; then
22611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22612 then gcc_cv_as_weak=yes
22614 elif test x$gcc_cv_as != x; then
22615 $as_echo ' .weak foobar' > conftest.s
22616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621 test $ac_status = 0; }; }
22622 then
22623 gcc_cv_as_weak=yes
22624 else
22625 echo "configure: failed program was" >&5
22626 cat conftest.s >&5
22628 rm -f conftest.o conftest.s
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22632 $as_echo "$gcc_cv_as_weak" >&6; }
22633 if test $gcc_cv_as_weak = yes; then
22635 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22640 $as_echo_n "checking assembler for .weakref... " >&6; }
22641 if test "${gcc_cv_as_weakref+set}" = set; then :
22642 $as_echo_n "(cached) " >&6
22643 else
22644 gcc_cv_as_weakref=no
22645 if test $in_tree_gas = yes; then
22646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22647 then gcc_cv_as_weakref=yes
22649 elif test x$gcc_cv_as != x; then
22650 $as_echo ' .weakref foobar, barfnot' > conftest.s
22651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22653 (eval $ac_try) 2>&5
22654 ac_status=$?
22655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656 test $ac_status = 0; }; }
22657 then
22658 gcc_cv_as_weakref=yes
22659 else
22660 echo "configure: failed program was" >&5
22661 cat conftest.s >&5
22663 rm -f conftest.o conftest.s
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22667 $as_echo "$gcc_cv_as_weakref" >&6; }
22668 if test $gcc_cv_as_weakref = yes; then
22670 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22675 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22676 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
22678 else
22679 gcc_cv_as_nsubspa_comdat=no
22680 if test $in_tree_gas = yes; then
22681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22682 then gcc_cv_as_nsubspa_comdat=yes
22684 elif test x$gcc_cv_as != x; then
22685 $as_echo ' .SPACE $TEXT$
22686 .NSUBSPA $CODE$,COMDAT' > conftest.s
22687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692 test $ac_status = 0; }; }
22693 then
22694 gcc_cv_as_nsubspa_comdat=yes
22695 else
22696 echo "configure: failed program was" >&5
22697 cat conftest.s >&5
22699 rm -f conftest.o conftest.s
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22703 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22704 if test $gcc_cv_as_nsubspa_comdat = yes; then
22706 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22710 # .hidden needs to be supported in both the assembler and the linker,
22711 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22712 # This is irritatingly difficult to feature test for; we have to check the
22713 # date string after the version number. If we've got an in-tree
22714 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22715 # to be safe.
22716 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22718 $as_echo_n "checking assembler for .hidden... " >&6; }
22719 if test "${gcc_cv_as_hidden+set}" = set; then :
22720 $as_echo_n "(cached) " >&6
22721 else
22722 gcc_cv_as_hidden=no
22723 if test $in_tree_gas = yes; then
22724 if test $in_tree_gas_is_elf = yes \
22725 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22726 then gcc_cv_as_hidden=yes
22728 elif test x$gcc_cv_as != x; then
22729 $as_echo ' .hidden foobar
22730 foobar:' > conftest.s
22731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22736 test $ac_status = 0; }; }
22737 then
22738 gcc_cv_as_hidden=yes
22739 else
22740 echo "configure: failed program was" >&5
22741 cat conftest.s >&5
22743 rm -f conftest.o conftest.s
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22747 $as_echo "$gcc_cv_as_hidden" >&6; }
22749 case "${target}" in
22750 *-*-darwin*)
22751 # Darwin as has some visibility support, though with a different syntax.
22752 gcc_cv_as_hidden=yes
22754 esac
22756 # gnu_indirect_function type is an extension proposed at
22757 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22758 # selection of function implementation
22759 # Check whether --enable-gnu-indirect-function was given.
22760 if test "${enable_gnu_indirect_function+set}" = set; then :
22761 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22762 yes | no) ;;
22763 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22764 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22765 esac
22766 else
22767 enable_gnu_indirect_function="$default_gnu_indirect_function"
22771 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22773 cat >>confdefs.h <<_ACEOF
22774 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22775 _ACEOF
22779 if test $in_tree_ld != yes ; then
22780 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22781 if echo "$ld_ver" | grep GNU > /dev/null; then
22782 if test x"$ld_is_gold" = xyes; then
22783 # GNU gold --version looks like this:
22785 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22787 # We extract the binutils version which is more familiar and specific
22788 # than the gold version.
22789 ld_vers=`echo $ld_ver | sed -n \
22790 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22791 else
22792 # GNU ld --version looks like this:
22794 # GNU ld (GNU Binutils) 2.21.51.20110225
22795 ld_vers=`echo $ld_ver | sed -n \
22796 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22798 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'`
22799 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22800 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22801 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22802 else
22803 case "${target}" in
22804 *-*-solaris2*)
22805 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22806 # format.
22808 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22809 # /usr/ccs/bin/ld has been configured.
22810 ld_ver=`$gcc_cv_ld -V 2>&1`
22811 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22812 ld_vers=`echo $ld_ver | sed -n \
22813 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22814 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22815 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22818 esac
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22823 $as_echo_n "checking linker for .hidden support... " >&6; }
22824 if test "${gcc_cv_ld_hidden+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22826 else
22827 if test $in_tree_ld = yes ; then
22828 gcc_cv_ld_hidden=no
22829 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 \
22830 && test $in_tree_ld_is_elf = yes; then
22831 gcc_cv_ld_hidden=yes
22833 else
22834 gcc_cv_ld_hidden=yes
22835 if test x"$ld_is_gold" = xyes; then
22837 elif echo "$ld_ver" | grep GNU > /dev/null; then
22838 case "${target}" in
22839 mmix-knuth-mmixware)
22840 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22841 gcc_cv_ld_hidden=no
22843 esac
22844 if test 0"$ld_date" -lt 20020404; then
22845 if test -n "$ld_date"; then
22846 # If there was date string, but was earlier than 2002-04-04, fail
22847 gcc_cv_ld_hidden=no
22848 elif test -z "$ld_vers"; then
22849 # If there was no date string nor ld version number, something is wrong
22850 gcc_cv_ld_hidden=no
22851 else
22852 test -z "$ld_vers_patch" && ld_vers_patch=0
22853 if test "$ld_vers_major" -lt 2; then
22854 gcc_cv_ld_hidden=no
22855 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22856 gcc_cv_ld_hidden="no"
22857 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22858 gcc_cv_ld_hidden=no
22862 else
22863 case "${target}" in
22864 *-*-darwin*)
22865 # Darwin ld has some visibility support.
22866 gcc_cv_ld_hidden=yes
22868 hppa64*-*-hpux* | ia64*-*-hpux*)
22869 gcc_cv_ld_hidden=yes
22871 *-*-solaris2.1[0-9]*)
22872 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22873 # .symbolic was only added in Solaris 9 12/02.
22874 gcc_cv_ld_hidden=yes
22877 gcc_cv_ld_hidden=no
22879 esac
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22884 $as_echo "$gcc_cv_ld_hidden" >&6; }
22885 libgcc_visibility=no
22888 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22889 libgcc_visibility=yes
22891 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22896 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22897 gcc_cv_ld_ro_rw_mix=unknown
22898 if test $in_tree_ld = yes ; then
22899 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
22900 && test $in_tree_ld_is_elf = yes; then
22901 gcc_cv_ld_ro_rw_mix=read-write
22903 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22904 echo '.section myfoosect, "a"' > conftest1.s
22905 echo '.section myfoosect, "aw"' > conftest2.s
22906 echo '.byte 1' >> conftest2.s
22907 echo '.section myfoosect, "a"' > conftest3.s
22908 echo '.byte 0' >> conftest3.s
22909 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22910 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22911 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22912 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22913 conftest2.o conftest3.o > /dev/null 2>&1; then
22914 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22915 | sed -e '/myfoosect/!d' -e N`
22916 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22917 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22918 gcc_cv_ld_ro_rw_mix=read-only
22919 else
22920 gcc_cv_ld_ro_rw_mix=read-write
22924 rm -f conftest.* conftest[123].*
22926 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22928 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22932 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22934 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22935 case "${target}" in
22936 *-*-solaris2*)
22938 # Solaris 2 ld -V output looks like this for a regular version:
22940 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22942 # but test versions add stuff at the end:
22944 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22946 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22947 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22948 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22949 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22950 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22951 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22954 esac
22957 # Check whether --enable-initfini-array was given.
22958 if test "${enable_initfini_array+set}" = set; then :
22959 enableval=$enable_initfini_array;
22960 else
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22963 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22964 if test "${gcc_cv_initfini_array+set}" = set; then :
22965 $as_echo_n "(cached) " >&6
22966 else
22967 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22968 case "${target}" in
22969 ia64-*)
22970 if test "$cross_compiling" = yes; then :
22971 gcc_cv_initfini_array=no
22972 else
22973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22974 /* end confdefs.h. */
22976 #ifndef __ELF__
22977 #error Not an ELF OS
22978 #endif
22979 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22980 if it can be used. */
22981 static int x = -1;
22982 int main (void) { return x; }
22983 int foo (void) { x = 0; }
22984 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22986 _ACEOF
22987 if ac_fn_cxx_try_run "$LINENO"; then :
22988 gcc_cv_initfini_array=yes
22989 else
22990 gcc_cv_initfini_array=no
22992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22993 conftest.$ac_objext conftest.beam conftest.$ac_ext
22997 gcc_cv_initfini_array=no
22998 if test $in_tree_ld = yes ; then
22999 if test "$gcc_cv_gld_major_version" -eq 2 \
23000 -a "$gcc_cv_gld_minor_version" -ge 22 \
23001 -o "$gcc_cv_gld_major_version" -gt 2 \
23002 && test $in_tree_ld_is_elf = yes; then
23003 gcc_cv_initfini_array=yes
23005 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23006 case $target:$gas in
23007 *:yes)
23008 sh_flags='"a"'
23009 sh_type='%progbits'
23011 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23012 sh_flags='"a"'
23013 sh_type='@progbits'
23015 sparc*-*-solaris2*:no)
23016 sh_flags='#alloc'
23017 sh_type='#progbits'
23018 sh_quote='"'
23020 esac
23021 case "$target:$gnu_ld" in
23022 *:yes)
23023 cat > conftest.s <<EOF
23024 .section .dtors,$sh_flags,$sh_type
23025 .balign 4
23026 .byte 'A', 'A', 'A', 'A'
23027 .section .ctors,$sh_flags,$sh_type
23028 .balign 4
23029 .byte 'B', 'B', 'B', 'B'
23030 .section .fini_array.65530,$sh_flags,$sh_type
23031 .balign 4
23032 .byte 'C', 'C', 'C', 'C'
23033 .section .init_array.65530,$sh_flags,$sh_type
23034 .balign 4
23035 .byte 'D', 'D', 'D', 'D'
23036 .section .dtors.64528,$sh_flags,$sh_type
23037 .balign 4
23038 .byte 'E', 'E', 'E', 'E'
23039 .section .ctors.64528,$sh_flags,$sh_type
23040 .balign 4
23041 .byte 'F', 'F', 'F', 'F'
23042 .section .fini_array.01005,$sh_flags,$sh_type
23043 .balign 4
23044 .byte 'G', 'G', 'G', 'G'
23045 .section .init_array.01005,$sh_flags,$sh_type
23046 .balign 4
23047 .byte 'H', 'H', 'H', 'H'
23048 .text
23049 .globl _start
23050 _start:
23052 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23053 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23054 && $gcc_cv_objdump -s -j .init_array conftest \
23055 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23056 && $gcc_cv_objdump -s -j .fini_array conftest \
23057 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23058 gcc_cv_initfini_array=yes
23061 *-*-solaris2*:no)
23062 # When Solaris ld added constructor priority support, it was
23063 # decided to only handle .init_array.N/.fini_array.N since
23064 # there was no need for backwards compatibility with
23065 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23066 # sections with correct execution order resp. to
23067 # .init_array/.fini_array, while gld merges them into
23068 # .init_array/.fini_array.
23069 cat > conftest.s <<EOF
23070 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23071 .align 4
23072 .byte 'C', 'C', 'C', 'C'
23073 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23074 .align 4
23075 .byte 'D', 'D', 'D', 'D'
23076 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23077 .align 4
23078 .byte 'G', 'G', 'G', 'G'
23079 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23080 .align 4
23081 .byte 'H', 'H', 'H', 'H'
23082 .text
23083 .globl _start
23084 _start:
23086 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23087 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23088 && $gcc_cv_objdump -s -j .init_array conftest \
23089 | grep HHHHDDDD > /dev/null 2>&1 \
23090 && $gcc_cv_objdump -s -j .fini_array conftest \
23091 | grep GGGGCCCC > /dev/null 2>&1; then
23092 gcc_cv_initfini_array=yes
23095 esac
23096 rm -f conftest conftest.*
23098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23099 /* end confdefs.h. */
23101 #ifndef __ELF__
23102 # error Not an ELF OS
23103 #endif
23104 #include <stdlib.h>
23105 #if defined __GLIBC_PREREQ
23106 # if __GLIBC_PREREQ (2, 4)
23107 # else
23108 # error GLIBC 2.4 required
23109 # endif
23110 #else
23111 # if defined __sun__ && defined __svr4__
23112 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23113 # else
23114 # error The C library not known to support .init_array/.fini_array
23115 # endif
23116 #endif
23118 _ACEOF
23119 if ac_fn_cxx_try_cpp "$LINENO"; then :
23121 else
23122 gcc_cv_initfini_array=no
23124 rm -f conftest.err conftest.$ac_ext;;
23125 esac
23126 else
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23128 $as_echo_n "checking cross compile... guessing... " >&6; }
23129 gcc_cv_initfini_array=no
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23133 $as_echo "$gcc_cv_initfini_array" >&6; }
23134 enable_initfini_array=$gcc_cv_initfini_array
23139 cat >>confdefs.h <<_ACEOF
23140 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23141 _ACEOF
23145 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23147 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23148 if test "${gcc_cv_as_leb128+set}" = set; then :
23149 $as_echo_n "(cached) " >&6
23150 else
23151 gcc_cv_as_leb128=no
23152 if test $in_tree_gas = yes; then
23153 if test $in_tree_gas_is_elf = yes \
23154 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23155 then gcc_cv_as_leb128=yes
23157 elif test x$gcc_cv_as != x; then
23158 $as_echo ' .data
23159 .uleb128 L2 - L1
23161 .uleb128 1280
23162 .sleb128 -1010
23163 L2:' > conftest.s
23164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169 test $ac_status = 0; }; }
23170 then
23171 # GAS versions before 2.11 do not support uleb128,
23172 # despite appearing to.
23173 # ??? There exists an elf-specific test that will crash
23174 # the assembler. Perhaps it's better to figure out whether
23175 # arbitrary sections are supported and try the test.
23176 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23177 if echo "$as_ver" | grep GNU > /dev/null; then
23178 as_vers=`echo $as_ver | sed -n \
23179 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23180 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23181 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23182 if test $as_major -eq 2 && test $as_minor -lt 11
23183 then :
23184 else gcc_cv_as_leb128=yes
23187 else
23188 echo "configure: failed program was" >&5
23189 cat conftest.s >&5
23191 rm -f conftest.o conftest.s
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23195 $as_echo "$gcc_cv_as_leb128" >&6; }
23196 if test $gcc_cv_as_leb128 = yes; then
23198 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23202 # Check if we have assembler support for unwind directives.
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23204 $as_echo_n "checking assembler for cfi directives... " >&6; }
23205 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23206 $as_echo_n "(cached) " >&6
23207 else
23208 gcc_cv_as_cfi_directive=no
23209 if test x$gcc_cv_as != x; then
23210 $as_echo ' .text
23211 .cfi_startproc
23212 .cfi_offset 0, 0
23213 .cfi_same_value 1
23214 .cfi_def_cfa 1, 2
23215 .cfi_escape 1, 2, 3, 4, 5
23216 .cfi_endproc' > conftest.s
23217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; }
23223 then
23224 case "$target" in
23225 *-*-solaris*)
23226 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23227 # read-only and read-write sections, we need to make sure that the
23228 # assembler used emits read-write .eh_frame sections.
23229 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23230 if test "x$gcc_cv_objdump" != x; then
23231 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23232 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23233 gcc_cv_as_cfi_directive=no
23234 else
23235 case "$target" in
23236 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23237 # On Solaris/x86, make sure that GCC and assembler agree on using
23238 # read-only .eh_frame sections for 64-bit.
23239 if test x$gas = xyes; then
23240 as_ix86_64_opt="--64"
23241 else
23242 as_ix86_64_opt="-xarch=amd64"
23244 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23245 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23246 sed -e /.eh_frame/!d -e N | \
23247 grep READONLY > /dev/null; then
23248 gcc_cv_as_cfi_directive=yes
23249 else
23250 gcc_cv_as_cfi_directive=no
23254 gcc_cv_as_cfi_directive=yes
23256 esac
23258 else
23259 # no objdump, err on the side of caution
23260 gcc_cv_as_cfi_directive=no
23262 else
23263 gcc_cv_as_cfi_directive=yes
23266 *-*-*)
23267 gcc_cv_as_cfi_directive=yes
23269 esac
23270 else
23271 echo "configure: failed program was" >&5
23272 cat conftest.s >&5
23274 rm -f conftest.o conftest.s
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23278 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23280 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23282 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23283 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23284 $as_echo_n "(cached) " >&6
23285 else
23286 gcc_cv_as_cfi_advance_working=no
23287 if test x$gcc_cv_as != x; then
23288 $as_echo ' .text
23289 .cfi_startproc
23290 .cfi_adjust_cfa_offset 64
23291 .skip 75040, 0
23292 .cfi_adjust_cfa_offset 128
23293 .cfi_endproc' > conftest.s
23294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23299 test $ac_status = 0; }; }
23300 then
23302 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23303 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23304 gcc_cv_as_cfi_advance_working=yes
23307 else
23308 echo "configure: failed program was" >&5
23309 cat conftest.s >&5
23311 rm -f conftest.o conftest.s
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23315 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23317 else
23318 # no objdump, err on the side of caution
23319 gcc_cv_as_cfi_advance_working=no
23323 cat >>confdefs.h <<_ACEOF
23324 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23325 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23326 _ACEOF
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23331 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23332 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23333 $as_echo_n "(cached) " >&6
23334 else
23335 gcc_cv_as_cfi_personality_directive=no
23336 if test x$gcc_cv_as != x; then
23337 $as_echo ' .text
23338 .cfi_startproc
23339 .cfi_personality 0, symbol
23340 .cfi_endproc' > conftest.s
23341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23346 test $ac_status = 0; }; }
23347 then
23348 gcc_cv_as_cfi_personality_directive=yes
23349 else
23350 echo "configure: failed program was" >&5
23351 cat conftest.s >&5
23353 rm -f conftest.o conftest.s
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23357 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23360 cat >>confdefs.h <<_ACEOF
23361 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23362 then echo 1; else echo 0; fi`
23363 _ACEOF
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23367 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23368 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23369 $as_echo_n "(cached) " >&6
23370 else
23371 gcc_cv_as_cfi_sections_directive=no
23372 if test x$gcc_cv_as != x; then
23373 $as_echo ' .text
23374 .cfi_sections .debug_frame, .eh_frame
23375 .cfi_startproc
23376 .cfi_endproc' > conftest.s
23377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23379 (eval $ac_try) 2>&5
23380 ac_status=$?
23381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23382 test $ac_status = 0; }; }
23383 then
23384 case $target_os in
23385 win32 | pe | cygwin* | mingw32*)
23386 # Need to check that we generated the correct relocation for the
23387 # .debug_frame section. This was fixed for binutils 2.21.
23388 gcc_cv_as_cfi_sections_directive=no
23389 if test "x$gcc_cv_objdump" != x; then
23390 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23391 grep secrel > /dev/null; then
23392 gcc_cv_as_cfi_sections_directive=yes
23397 gcc_cv_as_cfi_sections_directive=yes
23399 esac
23400 else
23401 echo "configure: failed program was" >&5
23402 cat conftest.s >&5
23404 rm -f conftest.o conftest.s
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23408 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23412 cat >>confdefs.h <<_ACEOF
23413 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23414 then echo 1; else echo 0; fi`
23415 _ACEOF
23418 # GAS versions up to and including 2.11.0 may mis-optimize
23419 # .eh_frame data.
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23421 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23422 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23423 $as_echo_n "(cached) " >&6
23424 else
23425 gcc_cv_as_eh_frame=no
23426 if test $in_tree_gas = yes; then
23427 if test $in_tree_gas_is_elf = yes \
23428 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23429 then gcc_cv_as_eh_frame=yes
23431 elif test x$gcc_cv_as != x; then
23432 $as_echo ' .text
23433 .LFB1:
23434 .4byte 0
23435 .L1:
23436 .4byte 0
23437 .LFE1:
23438 .section .eh_frame,"aw",@progbits
23439 __FRAME_BEGIN__:
23440 .4byte .LECIE1-.LSCIE1
23441 .LSCIE1:
23442 .4byte 0x0
23443 .byte 0x1
23444 .ascii "z\0"
23445 .byte 0x1
23446 .byte 0x78
23447 .byte 0x1a
23448 .byte 0x0
23449 .byte 0x4
23450 .4byte 1
23451 .p2align 1
23452 .LECIE1:
23453 .LSFDE1:
23454 .4byte .LEFDE1-.LASFDE1
23455 .LASFDE1:
23456 .4byte .LASFDE1-__FRAME_BEGIN__
23457 .4byte .LFB1
23458 .4byte .LFE1-.LFB1
23459 .byte 0x4
23460 .4byte .LFE1-.LFB1
23461 .byte 0x4
23462 .4byte .L1-.LFB1
23463 .LEFDE1:' > conftest.s
23464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23466 (eval $ac_try) 2>&5
23467 ac_status=$?
23468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23469 test $ac_status = 0; }; }
23470 then
23471 cat > conftest.lit <<EOF
23472 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23473 0010 01000000 12000000 18000000 00000000 ................
23474 0020 08000000 04080000 0044 .........D
23476 cat > conftest.big <<EOF
23477 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23478 0010 00000001 00000012 00000018 00000000 ................
23479 0020 00000008 04000000 0844 .........D
23481 # If the assembler didn't choke, and we can objdump,
23482 # and we got the correct data, then succeed.
23483 # The text in the here-document typically retains its unix-style line
23484 # endings, while the output of objdump will use host line endings.
23485 # Therefore, use diff -b for the comparisons.
23486 if test x$gcc_cv_objdump != x \
23487 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23488 | tail -3 > conftest.got \
23489 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23490 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23491 then
23492 gcc_cv_as_eh_frame=yes
23493 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23498 test $ac_status = 0; }; }; then
23499 gcc_cv_as_eh_frame=buggy
23500 else
23501 # Uh oh, what do we do now?
23502 gcc_cv_as_eh_frame=no
23504 else
23505 echo "configure: failed program was" >&5
23506 cat conftest.s >&5
23508 rm -f conftest.o conftest.s
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23512 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23515 if test $gcc_cv_as_eh_frame = buggy; then
23517 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23522 $as_echo_n "checking assembler for section merging support... " >&6; }
23523 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23524 $as_echo_n "(cached) " >&6
23525 else
23526 gcc_cv_as_shf_merge=no
23527 if test $in_tree_gas = yes; then
23528 if test $in_tree_gas_is_elf = yes \
23529 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23530 then gcc_cv_as_shf_merge=yes
23532 elif test x$gcc_cv_as != x; then
23533 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23539 test $ac_status = 0; }; }
23540 then
23541 gcc_cv_as_shf_merge=yes
23542 else
23543 echo "configure: failed program was" >&5
23544 cat conftest.s >&5
23546 rm -f conftest.o conftest.s
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23550 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23552 if test $gcc_cv_as_shf_merge = no; then
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23554 $as_echo_n "checking assembler for section merging support... " >&6; }
23555 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23556 $as_echo_n "(cached) " >&6
23557 else
23558 gcc_cv_as_shf_merge=no
23559 if test $in_tree_gas = yes; then
23560 if test $in_tree_gas_is_elf = yes \
23561 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23562 then gcc_cv_as_shf_merge=yes
23564 elif test x$gcc_cv_as != x; then
23565 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23571 test $ac_status = 0; }; }
23572 then
23573 gcc_cv_as_shf_merge=yes
23574 else
23575 echo "configure: failed program was" >&5
23576 cat conftest.s >&5
23578 rm -f conftest.o conftest.s
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23582 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23586 cat >>confdefs.h <<_ACEOF
23587 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23588 _ACEOF
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23592 $as_echo_n "checking assembler for stabs directive... " >&6; }
23593 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23594 $as_echo_n "(cached) " >&6
23595 else
23596 gcc_cv_as_stabs_directive=no
23597 if test x$gcc_cv_as != x; then
23598 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23604 test $ac_status = 0; }; }
23605 then
23606 gcc_cv_as_stabs_directive=yes
23607 else
23608 echo "configure: failed program was" >&5
23609 cat conftest.s >&5
23611 rm -f conftest.o conftest.s
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23615 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23616 if test $gcc_cv_as_stabs_directive = yes; then
23618 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23623 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23624 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23625 $as_echo_n "(cached) " >&6
23626 else
23627 gcc_cv_as_comdat_group=no
23628 if test $in_tree_gas = yes; then
23629 if test $in_tree_gas_is_elf = yes \
23630 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23631 then gcc_cv_as_comdat_group=yes
23633 elif test x$gcc_cv_as != x; then
23634 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23640 test $ac_status = 0; }; }
23641 then
23642 gcc_cv_as_comdat_group=yes
23643 else
23644 echo "configure: failed program was" >&5
23645 cat conftest.s >&5
23647 rm -f conftest.o conftest.s
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23651 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23653 if test $gcc_cv_as_comdat_group = yes; then
23654 gcc_cv_as_comdat_group_percent=no
23655 gcc_cv_as_comdat_group_group=no
23656 else
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23658 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23659 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23660 $as_echo_n "(cached) " >&6
23661 else
23662 gcc_cv_as_comdat_group_percent=no
23663 if test $in_tree_gas = yes; then
23664 if test $in_tree_gas_is_elf = yes \
23665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23666 then gcc_cv_as_comdat_group_percent=yes
23668 elif test x$gcc_cv_as != x; then
23669 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23675 test $ac_status = 0; }; }
23676 then
23677 gcc_cv_as_comdat_group_percent=yes
23678 else
23679 echo "configure: failed program was" >&5
23680 cat conftest.s >&5
23682 rm -f conftest.o conftest.s
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23686 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23688 if test $gcc_cv_as_comdat_group_percent = yes; then
23689 gcc_cv_as_comdat_group_group=no
23690 else
23691 case "${target}" in
23692 # Sun as uses a completely different syntax.
23693 *-*-solaris2*)
23694 case "${target}" in
23695 sparc*-*-solaris2*)
23696 conftest_s='
23697 .group foo,".text%foo",#comdat
23698 .section ".text%foo", #alloc,#execinstr,#progbits
23699 .globl foo
23700 foo:
23703 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23704 conftest_s='
23705 .group foo,.text%foo,#comdat
23706 .section .text%foo, "ax", @progbits
23707 .globl foo
23708 foo:
23711 esac
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23713 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23714 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23715 $as_echo_n "(cached) " >&6
23716 else
23717 gcc_cv_as_comdat_group_group=no
23718 if test x$gcc_cv_as != x; then
23719 $as_echo "$conftest_s" > conftest.s
23720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23725 test $ac_status = 0; }; }
23726 then
23727 gcc_cv_as_comdat_group_group=yes
23728 else
23729 echo "configure: failed program was" >&5
23730 cat conftest.s >&5
23732 rm -f conftest.o conftest.s
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23736 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23739 esac
23740 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23741 gcc_cv_as_comdat_group_group=no
23745 if test x"$ld_is_gold" = xyes; then
23746 comdat_group=yes
23747 elif test $in_tree_ld = yes ; then
23748 comdat_group=no
23749 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 \
23750 && test $in_tree_ld_is_elf = yes; then
23751 comdat_group=yes
23753 elif echo "$ld_ver" | grep GNU > /dev/null; then
23754 comdat_group=yes
23755 if test 0"$ld_date" -lt 20050308; then
23756 if test -n "$ld_date"; then
23757 # If there was date string, but was earlier than 2005-03-08, fail
23758 comdat_group=no
23759 elif test "$ld_vers_major" -lt 2; then
23760 comdat_group=no
23761 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23762 comdat_group=no
23765 else
23766 case "${target}" in
23767 *-*-solaris2.1[1-9]*)
23768 comdat_group=no
23769 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23770 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23771 # version 1.688.
23773 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23774 # least ld version 1.2267.
23775 if test "$ld_vers_major" -gt 1; then
23776 comdat_group=yes
23777 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23778 comdat_group=yes
23779 elif test "$ld_vers_minor" -ge 2267; then
23780 comdat_group=yes
23784 # Assume linkers other than GNU ld don't support COMDAT group.
23785 comdat_group=no
23787 esac
23789 # Allow overriding the automatic COMDAT group tests above.
23790 # Check whether --enable-comdat was given.
23791 if test "${enable_comdat+set}" = set; then :
23792 enableval=$enable_comdat; comdat_group="$enable_comdat"
23795 if test $comdat_group = no; then
23796 gcc_cv_as_comdat_group=no
23797 gcc_cv_as_comdat_group_percent=no
23798 gcc_cv_as_comdat_group_group=no
23801 cat >>confdefs.h <<_ACEOF
23802 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23803 || test $gcc_cv_as_comdat_group_percent = yes \
23804 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23805 _ACEOF
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23809 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23810 if test "${gcc_cv_as_discriminator+set}" = set; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 gcc_cv_as_discriminator=no
23814 if test $in_tree_gas = yes; then
23815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23816 then gcc_cv_as_discriminator=yes
23818 elif test x$gcc_cv_as != x; then
23819 $as_echo ' .text
23820 .file 1 "conf.c"
23821 .loc 1 1 0 discriminator 1' > conftest.s
23822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23824 (eval $ac_try) 2>&5
23825 ac_status=$?
23826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23827 test $ac_status = 0; }; }
23828 then
23829 gcc_cv_as_discriminator=yes
23830 else
23831 echo "configure: failed program was" >&5
23832 cat conftest.s >&5
23834 rm -f conftest.o conftest.s
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23838 $as_echo "$gcc_cv_as_discriminator" >&6; }
23839 if test $gcc_cv_as_discriminator = yes; then
23841 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23845 # Thread-local storage - the check is heavily parameterized.
23846 conftest_s=
23847 tls_first_major=
23848 tls_first_minor=
23849 tls_as_opt=
23850 case "$target" in
23851 alpha*-*-*)
23852 conftest_s='
23853 .section ".tdata","awT",@progbits
23854 foo: .long 25
23855 .text
23856 ldq $27,__tls_get_addr($29) !literal!1
23857 lda $16,foo($29) !tlsgd!1
23858 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23859 ldq $27,__tls_get_addr($29) !literal!2
23860 lda $16,foo($29) !tlsldm!2
23861 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23862 ldq $1,foo($29) !gotdtprel
23863 ldah $2,foo($29) !dtprelhi
23864 lda $3,foo($2) !dtprello
23865 lda $4,foo($29) !dtprel
23866 ldq $1,foo($29) !gottprel
23867 ldah $2,foo($29) !tprelhi
23868 lda $3,foo($2) !tprello
23869 lda $4,foo($29) !tprel'
23870 tls_first_major=2
23871 tls_first_minor=13
23872 tls_as_opt=--fatal-warnings
23874 arc*-*-*)
23875 conftest_s='
23876 add_s r0,r0, @foo@tpoff'
23877 tls_first_major=2
23878 tls_first_minor=23
23880 cris-*-*|crisv32-*-*)
23881 conftest_s='
23882 .section ".tdata","awT",@progbits
23883 x: .long 25
23884 .text
23885 move.d x:IE,$r10
23886 nop'
23887 tls_first_major=2
23888 tls_first_minor=20
23889 tls_as_opt=--fatal-warnings
23891 frv*-*-*)
23892 conftest_s='
23893 .section ".tdata","awT",@progbits
23894 x: .long 25
23895 .text
23896 call #gettlsoff(x)'
23897 tls_first_major=2
23898 tls_first_minor=14
23900 hppa*-*-linux*)
23901 conftest_s='
23902 t1: .reg %r20
23903 t2: .reg %r21
23904 gp: .reg %r19
23905 .section ".tdata","awT",@progbits
23906 foo: .long 25
23907 .text
23908 .align 4
23909 addil LT%foo-$tls_gdidx$,gp
23910 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23911 b __tls_get_addr
23913 addil LT%foo-$tls_ldidx$,gp
23914 b __tls_get_addr
23915 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23916 addil LR%foo-$tls_dtpoff$,%ret0
23917 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23918 mfctl %cr27,%t1
23919 addil LT%foo-$tls_ieoff$,gp
23920 ldw RT%foo-$tls_ieoff$(%r1),%t2
23921 add %t1,%t2,%t3
23922 mfctl %cr27,%t1
23923 addil LR%foo-$tls_leoff$,%t1
23924 ldo RR%foo-$tls_leoff$(%r1),%t2'
23925 tls_first_major=2
23926 tls_first_minor=15
23927 tls_as_opt=--fatal-warnings
23929 arm*-*-*)
23930 conftest_s='
23931 .section ".tdata","awT",%progbits
23932 foo: .long 25
23933 .text
23934 .word foo(gottpoff)
23935 .word foo(tpoff)
23936 .word foo(tlsgd)
23937 .word foo(tlsldm)
23938 .word foo(tlsldo)'
23939 tls_first_major=2
23940 tls_first_minor=17
23942 i[34567]86-*-* | x86_64-*-*)
23943 case "$target" in
23944 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23945 on_solaris=yes
23948 on_solaris=no
23950 esac
23951 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23952 conftest_s='
23953 .section .tdata,"awt",@progbits'
23954 tls_first_major=0
23955 tls_first_minor=0
23956 tls_section_flag=t
23958 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23960 else
23961 conftest_s='
23962 .section ".tdata","awT",@progbits'
23963 tls_first_major=2
23964 tls_first_minor=14
23965 tls_section_flag=T
23966 tls_as_opt="--fatal-warnings"
23968 case "$target" in
23969 i[34567]86-*-*)
23970 conftest_s="$conftest_s
23971 foo: .long 25
23972 .text
23973 movl %gs:0, %eax
23974 leal foo@tlsgd(,%ebx,1), %eax
23975 leal foo@tlsldm(%ebx), %eax
23976 leal foo@dtpoff(%eax), %edx
23977 movl foo@gottpoff(%ebx), %eax
23978 subl foo@gottpoff(%ebx), %eax
23979 addl foo@gotntpoff(%ebx), %eax
23980 movl foo@indntpoff, %eax
23981 movl \$foo@tpoff, %eax
23982 subl \$foo@tpoff, %eax
23983 leal foo@ntpoff(%ecx), %eax"
23985 x86_64-*-*)
23986 if test x$on_solaris = xyes; then
23987 case $gas_flag in
23988 yes) tls_as_opt="$tls_as_opt --64" ;;
23989 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23990 esac
23992 conftest_s="$conftest_s
23993 foo: .long 25
23994 .text
23995 movq %fs:0, %rax
23996 leaq foo@tlsgd(%rip), %rdi
23997 leaq foo@tlsld(%rip), %rdi
23998 leaq foo@dtpoff(%rax), %rdx
23999 movq foo@gottpoff(%rip), %rax
24000 movq \$foo@tpoff, %rax"
24002 esac
24004 ia64-*-*)
24005 conftest_s='
24006 .section ".tdata","awT",@progbits
24007 foo: data8 25
24008 .text
24009 addl r16 = @ltoff(@dtpmod(foo#)), gp
24010 addl r17 = @ltoff(@dtprel(foo#)), gp
24011 addl r18 = @ltoff(@tprel(foo#)), gp
24012 addl r19 = @dtprel(foo#), gp
24013 adds r21 = @dtprel(foo#), r13
24014 movl r23 = @dtprel(foo#)
24015 addl r20 = @tprel(foo#), gp
24016 adds r22 = @tprel(foo#), r13
24017 movl r24 = @tprel(foo#)'
24018 tls_first_major=2
24019 tls_first_minor=13
24020 tls_as_opt=--fatal-warnings
24022 microblaze*-*-*)
24023 conftest_s='
24024 .section .tdata,"awT",@progbits
24026 .word 2
24027 .text
24028 addik r5,r20,x@TLSGD
24029 addik r5,r20,x@TLSLDM'
24030 tls_first_major=2
24031 tls_first_minor=20
24032 tls_as_opt='--fatal-warnings'
24034 mips*-*-*)
24035 conftest_s='
24036 .section .tdata,"awT",@progbits
24038 .word 2
24039 .text
24040 addiu $4, $28, %tlsgd(x)
24041 addiu $4, $28, %tlsldm(x)
24042 lui $4, %dtprel_hi(x)
24043 addiu $4, $4, %dtprel_lo(x)
24044 lw $4, %gottprel(x)($28)
24045 lui $4, %tprel_hi(x)
24046 addiu $4, $4, %tprel_lo(x)'
24047 tls_first_major=2
24048 tls_first_minor=16
24049 tls_as_opt='-32 --fatal-warnings'
24051 m68k-*-*)
24052 conftest_s='
24053 .section .tdata,"awT",@progbits
24055 .word 2
24056 .text
24057 foo:
24058 move.l x@TLSGD(%a5),%a0
24059 move.l x@TLSLDM(%a5),%a0
24060 move.l x@TLSLDO(%a5),%a0
24061 move.l x@TLSIE(%a5),%a0
24062 move.l x@TLSLE(%a5),%a0'
24063 tls_first_major=2
24064 tls_first_minor=19
24065 tls_as_opt='--fatal-warnings'
24067 nios2-*-*)
24068 conftest_s='
24069 .section ".tdata","awT",@progbits'
24070 tls_first_major=2
24071 tls_first_minor=23
24072 tls_as_opt="--fatal-warnings"
24074 aarch64*-*-*)
24075 conftest_s='
24076 .section ".tdata","awT",%progbits
24077 foo: .long 25
24078 .text
24079 adrp x0, :tlsgd:x
24080 add x0, x0, #:tlsgd_lo12:x
24081 bl __tls_get_addr
24082 nop'
24083 tls_first_major=2
24084 tls_first_minor=20
24085 tls_as_opt='--fatal-warnings'
24087 powerpc-ibm-aix*)
24088 conftest_s='
24089 .extern __get_tpointer
24090 .toc
24091 LC..1:
24092 .tc a[TC],a[TL]@le
24093 .csect .text[PR]
24094 .tlstest:
24095 lwz 9,LC..1(2)
24096 bla __get_tpointer
24097 lwzx 3,9,3
24098 .globl a
24099 .csect a[TL],4
24101 .space 4'
24102 tls_first_major=0
24103 tls_first_minor=0
24105 powerpc64*-*-*)
24106 conftest_s='
24107 .section ".tdata","awT",@progbits
24108 .align 3
24109 ld0: .space 8
24110 ld1: .space 8
24111 x1: .space 8
24112 x2: .space 8
24113 x3: .space 8
24114 .text
24115 addi 3,2,ld0@got@tlsgd
24116 bl .__tls_get_addr
24118 addi 3,2,ld1@toc
24119 bl .__tls_get_addr
24121 addi 3,2,x1@got@tlsld
24122 bl .__tls_get_addr
24124 addi 9,3,x1@dtprel
24125 bl .__tls_get_addr
24127 addis 9,3,x2@dtprel@ha
24128 addi 9,9,x2@dtprel@l
24129 bl .__tls_get_addr
24131 ld 9,x3@got@dtprel(2)
24132 add 9,9,3
24133 bl .__tls_get_addr
24134 nop'
24135 tls_first_major=2
24136 tls_first_minor=14
24137 tls_as_opt="-a64 --fatal-warnings"
24139 powerpc*-*-*)
24140 conftest_s='
24141 .section ".tdata","awT",@progbits
24142 .align 2
24143 ld0: .space 4
24144 ld1: .space 4
24145 x1: .space 4
24146 x2: .space 4
24147 x3: .space 4
24148 .text
24149 addi 3,31,ld0@got@tlsgd
24150 bl __tls_get_addr
24151 addi 3,31,x1@got@tlsld
24152 bl __tls_get_addr
24153 addi 9,3,x1@dtprel
24154 addis 9,3,x2@dtprel@ha
24155 addi 9,9,x2@dtprel@l
24156 lwz 9,x3@got@tprel(31)
24157 add 9,9,x@tls
24158 addi 9,2,x1@tprel
24159 addis 9,2,x2@tprel@ha
24160 addi 9,9,x2@tprel@l'
24161 tls_first_major=2
24162 tls_first_minor=14
24163 tls_as_opt="-a32 --fatal-warnings"
24165 s390-*-*)
24166 conftest_s='
24167 .section ".tdata","awT",@progbits
24168 foo: .long 25
24169 .text
24170 .long foo@TLSGD
24171 .long foo@TLSLDM
24172 .long foo@DTPOFF
24173 .long foo@NTPOFF
24174 .long foo@GOTNTPOFF
24175 .long foo@INDNTPOFF
24176 l %r1,foo@GOTNTPOFF(%r12)
24177 l %r1,0(%r1):tls_load:foo
24178 bas %r14,0(%r1,%r13):tls_gdcall:foo
24179 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24180 tls_first_major=2
24181 tls_first_minor=14
24182 tls_as_opt="-m31 --fatal-warnings"
24184 s390x-*-*)
24185 conftest_s='
24186 .section ".tdata","awT",@progbits
24187 foo: .long 25
24188 .text
24189 .quad foo@TLSGD
24190 .quad foo@TLSLDM
24191 .quad foo@DTPOFF
24192 .quad foo@NTPOFF
24193 .quad foo@GOTNTPOFF
24194 lg %r1,foo@GOTNTPOFF(%r12)
24195 larl %r1,foo@INDNTPOFF
24196 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24197 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24198 tls_first_major=2
24199 tls_first_minor=14
24200 tls_as_opt="-m64 -Aesame --fatal-warnings"
24202 sh-*-* | sh[123456789lbe]*-*-*)
24203 conftest_s='
24204 .section ".tdata","awT",@progbits
24205 foo: .long 25
24206 .text
24207 .long foo@TLSGD
24208 .long foo@TLSLDM
24209 .long foo@DTPOFF
24210 .long foo@GOTTPOFF
24211 .long foo@TPOFF'
24212 tls_first_major=2
24213 tls_first_minor=13
24214 tls_as_opt=--fatal-warnings
24216 sparc*-*-*)
24217 case "$target" in
24218 sparc*-sun-solaris2.*)
24219 on_solaris=yes
24222 on_solaris=no
24224 esac
24225 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24226 conftest_s='
24227 .section ".tdata",#alloc,#write,#tls'
24228 tls_first_major=0
24229 tls_first_minor=0
24230 else
24231 conftest_s='
24232 .section ".tdata","awT",@progbits'
24233 tls_first_major=2
24234 tls_first_minor=14
24235 tls_as_opt="-32 --fatal-warnings"
24237 conftest_s="$conftest_s
24238 foo: .long 25
24239 .text
24240 sethi %tgd_hi22(foo), %o0
24241 add %o0, %tgd_lo10(foo), %o1
24242 add %l7, %o1, %o0, %tgd_add(foo)
24243 call __tls_get_addr, %tgd_call(foo)
24244 sethi %tldm_hi22(foo), %l1
24245 add %l1, %tldm_lo10(foo), %l2
24246 add %l7, %l2, %o0, %tldm_add(foo)
24247 call __tls_get_addr, %tldm_call(foo)
24248 sethi %tldo_hix22(foo), %l3
24249 xor %l3, %tldo_lox10(foo), %l4
24250 add %o0, %l4, %l5, %tldo_add(foo)
24251 sethi %tie_hi22(foo), %o3
24252 add %o3, %tie_lo10(foo), %o3
24253 ld [%l7 + %o3], %o2, %tie_ld(foo)
24254 add %g7, %o2, %o4, %tie_add(foo)
24255 sethi %tle_hix22(foo), %l1
24256 xor %l1, %tle_lox10(foo), %o5
24257 ld [%g7 + %o5], %o1"
24259 tilepro*-*-*)
24260 conftest_s='
24261 .section ".tdata","awT",@progbits
24262 foo: .long 25
24263 .text
24264 addli r0, zero, tls_gd(foo)
24265 auli r0, zero, tls_gd_ha16(foo)
24266 addli r0, r0, tls_gd_lo16(foo)
24267 jal __tls_get_addr
24268 addli r0, zero, tls_ie(foo)
24269 auli r0, r0, tls_ie_ha16(foo)
24270 addli r0, r0, tls_ie_lo16(foo)'
24271 tls_first_major=2
24272 tls_first_minor=22
24273 tls_as_opt="--fatal-warnings"
24275 tilegx*-*-*)
24276 conftest_s='
24277 .section ".tdata","awT",@progbits
24278 foo: .long 25
24279 .text
24280 shl16insli r0, zero, hw0_last_tls_gd(foo)
24281 shl16insli r0, zero, hw1_last_tls_gd(foo)
24282 shl16insli r0, r0, hw0_tls_gd(foo)
24283 jal __tls_get_addr
24284 shl16insli r0, zero, hw1_last_tls_ie(foo)
24285 shl16insli r0, r0, hw0_tls_ie(foo)'
24286 tls_first_major=2
24287 tls_first_minor=22
24288 tls_as_opt="--fatal-warnings"
24290 xtensa*-*-*)
24291 conftest_s='
24292 .section ".tdata","awT",@progbits
24293 foo: .long 25
24294 .text
24295 movi a8, foo@TLSFUNC
24296 movi a10, foo@TLSARG
24297 callx8.tls a8, foo@TLSCALL'
24298 tls_first_major=2
24299 tls_first_minor=19
24301 esac
24302 set_have_as_tls=no
24303 if test "x$enable_tls" = xno ; then
24304 : # TLS explicitly disabled.
24305 elif test "x$enable_tls" = xyes ; then
24306 set_have_as_tls=yes # TLS explicitly enabled.
24307 elif test -z "$tls_first_major"; then
24308 : # If we don't have a check, assume no support.
24309 else
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24311 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24312 if test "${gcc_cv_as_tls+set}" = set; then :
24313 $as_echo_n "(cached) " >&6
24314 else
24315 gcc_cv_as_tls=no
24316 if test $in_tree_gas = yes; then
24317 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24318 then gcc_cv_as_tls=yes
24320 elif test x$gcc_cv_as != x; then
24321 $as_echo "$conftest_s" > conftest.s
24322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; }
24328 then
24329 gcc_cv_as_tls=yes
24330 else
24331 echo "configure: failed program was" >&5
24332 cat conftest.s >&5
24334 rm -f conftest.o conftest.s
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24338 $as_echo "$gcc_cv_as_tls" >&6; }
24339 if test $gcc_cv_as_tls = yes; then
24340 set_have_as_tls=yes
24343 if test $set_have_as_tls = yes ; then
24345 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24349 # Target-specific assembler checks.
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24352 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24353 gcc_cv_ld_static_dynamic=no
24354 gcc_cv_ld_static_option='-Bstatic'
24355 gcc_cv_ld_dynamic_option='-Bdynamic'
24356 if test $in_tree_ld = yes ; then
24357 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
24358 gcc_cv_ld_static_dynamic=yes
24360 elif test x$gcc_cv_ld != x; then
24361 # Check if linker supports -Bstatic/-Bdynamic option
24362 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24363 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24364 gcc_cv_ld_static_dynamic=yes
24365 else
24366 case "$target" in
24367 # AIX ld uses -b flags
24368 *-*-aix4.[23]* | *-*-aix[5-9]*)
24369 gcc_cv_ld_static_dynamic=yes
24370 gcc_cv_ld_static_option="-bstatic"
24371 gcc_cv_ld_dynamic_option="-bdynamic"
24373 # HP-UX ld uses -a flags to select between shared and archive.
24374 *-*-hpux*)
24375 if test x"$gnu_ld" = xno; then
24376 gcc_cv_ld_static_dynamic=yes
24377 gcc_cv_ld_static_option="-aarchive_shared"
24378 gcc_cv_ld_dynamic_option="-adefault"
24381 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24382 *-*-solaris2*)
24383 gcc_cv_ld_static_dynamic=yes
24385 esac
24388 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24390 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24393 cat >>confdefs.h <<_ACEOF
24394 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24395 _ACEOF
24398 cat >>confdefs.h <<_ACEOF
24399 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24400 _ACEOF
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24404 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24406 if test x"$demangler_in_ld" = xyes; then
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24408 $as_echo_n "checking linker --demangle support... " >&6; }
24409 gcc_cv_ld_demangle=no
24410 if test $in_tree_ld = yes; then
24411 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 \
24412 gcc_cv_ld_demangle=yes
24414 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24415 # Check if the GNU linker supports --demangle option
24416 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24417 gcc_cv_ld_demangle=yes
24420 if test x"$gcc_cv_ld_demangle" = xyes; then
24422 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24426 $as_echo "$gcc_cv_ld_demangle" >&6; }
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24430 $as_echo_n "checking linker plugin support... " >&6; }
24431 gcc_cv_lto_plugin=0
24432 if test -f liblto_plugin.la; then
24433 save_ld_ver="$ld_ver"
24434 save_ld_vers_major="$ld_vers_major"
24435 save_ld_vers_minor="$ld_vers_minor"
24436 save_ld_is_gold="$ld_is_gold"
24438 ld_is_gold=no
24440 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24441 ld_ver="GNU ld"
24442 # FIXME: ld_is_gold?
24443 ld_vers_major="$gcc_cv_gld_major_version"
24444 ld_vers_minor="$gcc_cv_gld_minor_version"
24445 else
24446 # Determine plugin linker version.
24447 # FIXME: Partial duplicate from above, generalize.
24448 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24449 if echo "$ld_ver" | grep GNU > /dev/null; then
24450 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24451 ld_is_gold=yes
24452 ld_vers=`echo $ld_ver | sed -n \
24453 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24454 else
24455 ld_vers=`echo $ld_ver | sed -n \
24456 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24458 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24459 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24463 # Determine plugin support.
24464 if echo "$ld_ver" | grep GNU > /dev/null; then
24465 # Require GNU ld or gold 2.21+ for plugin support by default.
24466 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24467 gcc_cv_lto_plugin=2
24468 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24469 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24470 gcc_cv_lto_plugin=1
24474 ld_ver="$save_ld_ver"
24475 ld_vers_major="$save_ld_vers_major"
24476 ld_vers_minor="$save_ld_vers_minor"
24477 ld_is_gold="$save_ld_is_gold"
24480 cat >>confdefs.h <<_ACEOF
24481 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24482 _ACEOF
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24485 $as_echo "$gcc_cv_lto_plugin" >&6; }
24487 case "$target" in
24488 aarch64*-*-*)
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24490 $as_echo_n "checking assembler for -mabi option... " >&6; }
24491 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24493 else
24494 gcc_cv_as_aarch64_mabi=no
24495 if test x$gcc_cv_as != x; then
24496 $as_echo '.text' > conftest.s
24497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24499 (eval $ac_try) 2>&5
24500 ac_status=$?
24501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24502 test $ac_status = 0; }; }
24503 then
24504 gcc_cv_as_aarch64_mabi=yes
24505 else
24506 echo "configure: failed program was" >&5
24507 cat conftest.s >&5
24509 rm -f conftest.o conftest.s
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24513 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24515 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24517 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24519 else
24520 if test x$with_abi = xilp32; then
24521 as_fn_error "Assembler does not support -mabi=ilp32.\
24522 Upgrade the Assembler." "$LINENO" 5
24524 if test x"$with_multilib_list" = xdefault; then
24525 TM_MULTILIB_CONFIG=lp64
24526 else
24527 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24528 for aarch64_multilib in ${aarch64_multilibs}; do
24529 case ${aarch64_multilib} in
24530 ilp32)
24531 as_fn_error "Assembler does not support -mabi=ilp32.\
24532 Upgrade the Assembler." "$LINENO" 5
24536 esac
24537 done
24540 # Check if we have binutils support for relocations types needed by -fpic
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24542 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24543 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24546 gcc_cv_as_aarch64_picreloc=no
24547 if test x$gcc_cv_as != x; then
24548 $as_echo '
24549 .text
24550 ldr x0, [x2, #:gotpage_lo15:globalsym]
24551 ' > conftest.s
24552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24554 (eval $ac_try) 2>&5
24555 ac_status=$?
24556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24557 test $ac_status = 0; }; }
24558 then
24559 gcc_cv_as_aarch64_picreloc=yes
24560 else
24561 echo "configure: failed program was" >&5
24562 cat conftest.s >&5
24564 rm -f conftest.o conftest.s
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24568 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24569 if test $gcc_cv_as_aarch64_picreloc = yes; then
24571 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24574 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24575 # Check whether --enable-fix-cortex-a53-835769 was given.
24576 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24577 enableval=$enable_fix_cortex_a53_835769;
24578 case $enableval in
24579 yes)
24580 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24585 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24586 Valid choices are 'yes' and 'no'." "$LINENO" 5
24589 esac
24593 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24594 # Check whether --enable-fix-cortex-a53-843419 was given.
24595 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24596 enableval=$enable_fix_cortex_a53_843419;
24597 case $enableval in
24598 yes)
24599 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24604 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24605 Valid choices are 'yes' and 'no'." "$LINENO" 5
24608 esac
24614 # All TARGET_ABI_OSF targets.
24615 alpha*-*-linux* | alpha*-*-*bsd*)
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24617 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24618 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24619 $as_echo_n "(cached) " >&6
24620 else
24621 gcc_cv_as_alpha_explicit_relocs=no
24622 if test $in_tree_gas = yes; then
24623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24624 then gcc_cv_as_alpha_explicit_relocs=yes
24626 elif test x$gcc_cv_as != x; then
24627 $as_echo ' .set nomacro
24628 .text
24629 extbl $3, $2, $3 !lituse_bytoff!1
24630 ldq $2, a($29) !literal!1
24631 ldq $4, b($29) !literal!2
24632 ldq_u $3, 0($2) !lituse_base!1
24633 ldq $27, f($29) !literal!5
24634 jsr $26, ($27), f !lituse_jsr!5
24635 ldah $29, 0($26) !gpdisp!3
24636 lda $0, c($29) !gprel
24637 ldah $1, d($29) !gprelhigh
24638 lda $1, d($1) !gprellow
24639 lda $29, 0($29) !gpdisp!3' > conftest.s
24640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24645 test $ac_status = 0; }; }
24646 then
24647 gcc_cv_as_alpha_explicit_relocs=yes
24648 else
24649 echo "configure: failed program was" >&5
24650 cat conftest.s >&5
24652 rm -f conftest.o conftest.s
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24656 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24657 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24659 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24663 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24664 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24666 else
24667 gcc_cv_as_alpha_jsrdirect_relocs=no
24668 if test $in_tree_gas = yes; then
24669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24670 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24672 elif test x$gcc_cv_as != x; then
24673 $as_echo ' .set nomacro
24674 .text
24675 ldq $27, a($29) !literal!1
24676 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24677 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24682 test $ac_status = 0; }; }
24683 then
24684 gcc_cv_as_alpha_jsrdirect_relocs=yes
24685 else
24686 echo "configure: failed program was" >&5
24687 cat conftest.s >&5
24689 rm -f conftest.o conftest.s
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24693 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24694 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24696 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24701 avr-*-*)
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24703 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24704 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24705 $as_echo_n "(cached) " >&6
24706 else
24707 gcc_cv_as_avr_mlink_relax=no
24708 if test x$gcc_cv_as != x; then
24709 $as_echo '.text' > conftest.s
24710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24712 (eval $ac_try) 2>&5
24713 ac_status=$?
24714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24715 test $ac_status = 0; }; }
24716 then
24717 gcc_cv_as_avr_mlink_relax=yes
24718 else
24719 echo "configure: failed program was" >&5
24720 cat conftest.s >&5
24722 rm -f conftest.o conftest.s
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24726 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24727 if test $gcc_cv_as_avr_mlink_relax = yes; then
24729 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24734 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24735 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24736 $as_echo_n "(cached) " >&6
24737 else
24738 gcc_cv_as_avr_mrmw=no
24739 if test x$gcc_cv_as != x; then
24740 $as_echo '.text' > conftest.s
24741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; }
24747 then
24748 gcc_cv_as_avr_mrmw=yes
24749 else
24750 echo "configure: failed program was" >&5
24751 cat conftest.s >&5
24753 rm -f conftest.o conftest.s
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24757 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24758 if test $gcc_cv_as_avr_mrmw = yes; then
24760 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24765 cris-*-*)
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24767 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24768 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24769 $as_echo_n "(cached) " >&6
24770 else
24771 gcc_cv_as_cris_no_mul_bug=no
24772 if test $in_tree_gas = yes; then
24773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24774 then gcc_cv_as_cris_no_mul_bug=yes
24776 elif test x$gcc_cv_as != x; then
24777 $as_echo '.text' > conftest.s
24778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780 (eval $ac_try) 2>&5
24781 ac_status=$?
24782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783 test $ac_status = 0; }; }
24784 then
24785 gcc_cv_as_cris_no_mul_bug=yes
24786 else
24787 echo "configure: failed program was" >&5
24788 cat conftest.s >&5
24790 rm -f conftest.o conftest.s
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24794 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24795 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24797 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24802 sparc*-*-*)
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24804 $as_echo_n "checking assembler for .register... " >&6; }
24805 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24806 $as_echo_n "(cached) " >&6
24807 else
24808 gcc_cv_as_sparc_register_op=no
24809 if test x$gcc_cv_as != x; then
24810 $as_echo '.register %g2, #scratch' > conftest.s
24811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24813 (eval $ac_try) 2>&5
24814 ac_status=$?
24815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24816 test $ac_status = 0; }; }
24817 then
24818 gcc_cv_as_sparc_register_op=yes
24819 else
24820 echo "configure: failed program was" >&5
24821 cat conftest.s >&5
24823 rm -f conftest.o conftest.s
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24827 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24828 if test $gcc_cv_as_sparc_register_op = yes; then
24830 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24835 $as_echo_n "checking assembler for -relax option... " >&6; }
24836 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24837 $as_echo_n "(cached) " >&6
24838 else
24839 gcc_cv_as_sparc_relax=no
24840 if test x$gcc_cv_as != x; then
24841 $as_echo '.text' > conftest.s
24842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
24846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24847 test $ac_status = 0; }; }
24848 then
24849 gcc_cv_as_sparc_relax=yes
24850 else
24851 echo "configure: failed program was" >&5
24852 cat conftest.s >&5
24854 rm -f conftest.o conftest.s
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24858 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24859 if test $gcc_cv_as_sparc_relax = yes; then
24861 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24866 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24867 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24868 $as_echo_n "(cached) " >&6
24869 else
24870 gcc_cv_as_sparc_gotdata_op=no
24871 if test x$gcc_cv_as != x; then
24872 $as_echo '.text
24873 .align 4
24874 foo:
24876 bar:
24877 sethi %gdop_hix22(foo), %g1
24878 xor %g1, %gdop_lox10(foo), %g1
24879 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24885 test $ac_status = 0; }; }
24886 then
24887 if test x$gcc_cv_ld != x \
24888 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24889 if test x$gcc_cv_objdump != x; then
24890 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24891 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24892 gcc_cv_as_sparc_gotdata_op=no
24893 else
24894 gcc_cv_as_sparc_gotdata_op=yes
24898 rm -f conftest
24899 else
24900 echo "configure: failed program was" >&5
24901 cat conftest.s >&5
24903 rm -f conftest.o conftest.s
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24907 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24908 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24910 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24915 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24916 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24917 $as_echo_n "(cached) " >&6
24918 else
24919 gcc_cv_as_sparc_ua_pcrel=no
24920 if test x$gcc_cv_as != x; then
24921 $as_echo '.text
24922 foo:
24924 .data
24925 .align 4
24926 .byte 0
24927 .uaword %r_disp32(foo)' > conftest.s
24928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24933 test $ac_status = 0; }; }
24934 then
24935 if test x$gcc_cv_ld != x \
24936 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24937 gcc_cv_as_sparc_ua_pcrel=yes
24939 rm -f conftest
24940 else
24941 echo "configure: failed program was" >&5
24942 cat conftest.s >&5
24944 rm -f conftest.o conftest.s
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24948 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24949 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24951 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24955 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24956 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24957 $as_echo_n "(cached) " >&6
24958 else
24959 gcc_cv_as_sparc_ua_pcrel_hidden=no
24960 if test x$gcc_cv_as != x; then
24961 $as_echo '.data
24962 .align 4
24963 .byte 0x31
24964 .uaword %r_disp32(foo)
24965 .byte 0x32, 0x33, 0x34
24966 .global foo
24967 .hidden foo
24968 foo:
24969 .skip 4' > conftest.s
24970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24973 ac_status=$?
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24976 then
24977 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24978 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24979 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24980 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24981 if $gcc_cv_objdump -R conftest 2> /dev/null \
24982 | grep 'DISP32' > /dev/null 2>&1; then
24984 else
24985 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24988 rm -f conftest
24989 else
24990 echo "configure: failed program was" >&5
24991 cat conftest.s >&5
24993 rm -f conftest.o conftest.s
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24997 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24998 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25000 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25004 fi # unaligned pcrel relocs
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25007 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25008 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25009 $as_echo_n "(cached) " >&6
25010 else
25011 gcc_cv_as_sparc_offsetable_lo10=no
25012 if test x$gcc_cv_as != x; then
25013 $as_echo '.text
25014 or %g1, %lo(ab) + 12, %g1
25015 or %g1, %lo(ab + 12), %g1' > conftest.s
25016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25019 ac_status=$?
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; }
25022 then
25023 if test x$gcc_cv_objdump != x \
25024 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25025 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25026 gcc_cv_as_sparc_offsetable_lo10=yes
25028 else
25029 echo "configure: failed program was" >&5
25030 cat conftest.s >&5
25032 rm -f conftest.o conftest.s
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25036 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25037 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25039 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25044 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25045 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25046 $as_echo_n "(cached) " >&6
25047 else
25048 gcc_cv_as_sparc_fmaf=no
25049 if test x$gcc_cv_as != x; then
25050 $as_echo '.text
25051 .register %g2, #scratch
25052 .register %g3, #scratch
25053 .align 4
25054 fmaddd %f0, %f2, %f4, %f6
25055 addxccc %g1, %g2, %g3
25056 fsrl32 %f2, %f4, %f8
25057 fnaddd %f10, %f12, %f14' > conftest.s
25058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25060 (eval $ac_try) 2>&5
25061 ac_status=$?
25062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25063 test $ac_status = 0; }; }
25064 then
25065 gcc_cv_as_sparc_fmaf=yes
25066 else
25067 echo "configure: failed program was" >&5
25068 cat conftest.s >&5
25070 rm -f conftest.o conftest.s
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25074 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25075 if test $gcc_cv_as_sparc_fmaf = yes; then
25077 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25082 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25083 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086 gcc_cv_as_sparc_sparc4=no
25087 if test x$gcc_cv_as != x; then
25088 $as_echo '.text
25089 .register %g2, #scratch
25090 .register %g3, #scratch
25091 .align 4
25092 cxbe %g2, %g3, 1f
25093 1: cwbneg %g2, %g3, 1f
25094 1: sha1
25096 aes_kexpand0 %f4, %f6, %f8
25097 des_round %f38, %f40, %f42, %f44
25098 camellia_f %f54, %f56, %f58, %f60
25099 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }; }
25106 then
25107 gcc_cv_as_sparc_sparc4=yes
25108 else
25109 echo "configure: failed program was" >&5
25110 cat conftest.s >&5
25112 rm -f conftest.o conftest.s
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25116 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25117 if test $gcc_cv_as_sparc_sparc4 = yes; then
25119 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25124 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25125 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25126 $as_echo_n "(cached) " >&6
25127 else
25128 gcc_cv_as_sparc_sparc5=no
25129 if test x$gcc_cv_as != x; then
25130 $as_echo '.text
25131 .register %g2, #scratch
25132 .register %g3, #scratch
25133 .align 4
25134 subxc %g1, %g2, %g3
25135 fpadd8 %f0, %f2, %f4' > conftest.s
25136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25138 (eval $ac_try) 2>&5
25139 ac_status=$?
25140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25141 test $ac_status = 0; }; }
25142 then
25143 gcc_cv_as_sparc_sparc5=yes
25144 else
25145 echo "configure: failed program was" >&5
25146 cat conftest.s >&5
25148 rm -f conftest.o conftest.s
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25152 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25153 if test $gcc_cv_as_sparc_sparc5 = yes; then
25155 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25160 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25161 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25162 $as_echo_n "(cached) " >&6
25163 else
25164 gcc_cv_as_sparc_leon=no
25165 if test x$gcc_cv_as != x; then
25166 $as_echo '.text
25167 .register %g2, #scratch
25168 .register %g3, #scratch
25169 .align 4
25170 smac %g2, %g3, %g1
25171 umac %g2, %g3, %g1
25172 casa [%g2] 0xb, %g3, %g1' > conftest.s
25173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25178 test $ac_status = 0; }; }
25179 then
25180 gcc_cv_as_sparc_leon=yes
25181 else
25182 echo "configure: failed program was" >&5
25183 cat conftest.s >&5
25185 rm -f conftest.o conftest.s
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25189 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25190 if test $gcc_cv_as_sparc_leon = yes; then
25192 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25197 i[34567]86-*-* | x86_64-*-*)
25198 case $target_os in
25199 cygwin*)
25200 # Full C++ conformance when using a shared libstdc++-v3 requires some
25201 # support from the Cygwin DLL, which in more recent versions exports
25202 # wrappers to aid in interposing and redirecting operators new, delete,
25203 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25204 # are configuring for a version of Cygwin that exports the wrappers.
25205 if test x$host = x$target && test x$host_cpu = xi686; then
25206 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25207 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25208 gcc_ac_cygwin_dll_wrappers=yes
25209 else
25210 gcc_ac_cygwin_dll_wrappers=no
25213 else
25214 # Can't check presence of libc functions during cross-compile, so
25215 # we just have to assume we're building for an up-to-date target.
25216 gcc_ac_cygwin_dll_wrappers=yes
25219 cat >>confdefs.h <<_ACEOF
25220 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25221 _ACEOF
25223 esac
25224 case $target_os in
25225 cygwin* | pe | mingw32*)
25226 # Recent binutils allows the three-operand form of ".comm" on PE. This
25227 # definition is used unconditionally to initialise the default state of
25228 # the target option variable that governs usage of the feature.
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25230 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25231 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25232 $as_echo_n "(cached) " >&6
25233 else
25234 gcc_cv_as_comm_has_align=no
25235 if test $in_tree_gas = yes; then
25236 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25237 then gcc_cv_as_comm_has_align=yes
25239 elif test x$gcc_cv_as != x; then
25240 $as_echo '.comm foo,1,32' > conftest.s
25241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25246 test $ac_status = 0; }; }
25247 then
25248 gcc_cv_as_comm_has_align=yes
25249 else
25250 echo "configure: failed program was" >&5
25251 cat conftest.s >&5
25253 rm -f conftest.o conftest.s
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25257 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25260 cat >>confdefs.h <<_ACEOF
25261 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25262 _ACEOF
25264 # Used for DWARF 2 in PE
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25266 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25267 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25268 $as_echo_n "(cached) " >&6
25269 else
25270 gcc_cv_as_ix86_pe_secrel32=no
25271 if test $in_tree_gas = yes; then
25272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25273 then gcc_cv_as_ix86_pe_secrel32=yes
25275 elif test x$gcc_cv_as != x; then
25276 $as_echo '.text
25277 foo: nop
25278 .data
25279 .secrel32 foo' > conftest.s
25280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285 test $ac_status = 0; }; }
25286 then
25287 if test x$gcc_cv_ld != x \
25288 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25289 gcc_cv_as_ix86_pe_secrel32=yes
25291 rm -f conftest
25292 else
25293 echo "configure: failed program was" >&5
25294 cat conftest.s >&5
25296 rm -f conftest.o conftest.s
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25300 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25301 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25303 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25306 # Test if the assembler supports the extended form of the .section
25307 # directive that specifies section alignment. LTO support uses this,
25308 # but normally only after installation, so we warn but don't fail the
25309 # configure if LTO is enabled but the assembler does not support it.
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25311 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25312 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25314 else
25315 gcc_cv_as_section_has_align=no
25316 if test $in_tree_gas = yes; then
25317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25318 then gcc_cv_as_section_has_align=yes
25320 elif test x$gcc_cv_as != x; then
25321 $as_echo '.section lto_test,"dr0"' > conftest.s
25322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25328 then
25329 gcc_cv_as_section_has_align=yes
25330 else
25331 echo "configure: failed program was" >&5
25332 cat conftest.s >&5
25334 rm -f conftest.o conftest.s
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25338 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25340 if test x$gcc_cv_as_section_has_align != xyes; then
25341 case ",$enable_languages," in
25342 *,lto,*)
25343 { $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
25344 $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;}
25346 esac
25349 esac
25351 # Test if the assembler supports the section flag 'e' for specifying
25352 # an excluded section.
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25354 $as_echo_n "checking assembler for .section with e... " >&6; }
25355 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25358 gcc_cv_as_section_has_e=no
25359 if test $in_tree_gas = yes; then
25360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25361 then gcc_cv_as_section_has_e=yes
25363 elif test x$gcc_cv_as != x; then
25364 $as_echo '.section foo1,"e"
25365 .byte 0,0,0,0' > conftest.s
25366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
25370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }; }
25372 then
25373 gcc_cv_as_section_has_e=yes
25374 else
25375 echo "configure: failed program was" >&5
25376 cat conftest.s >&5
25378 rm -f conftest.o conftest.s
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25382 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25385 cat >>confdefs.h <<_ACEOF
25386 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25387 _ACEOF
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25391 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25392 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25393 $as_echo_n "(cached) " >&6
25394 else
25395 gcc_cv_as_ix86_filds=no
25396 if test x$gcc_cv_as != x; then
25397 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25403 test $ac_status = 0; }; }
25404 then
25405 gcc_cv_as_ix86_filds=yes
25406 else
25407 echo "configure: failed program was" >&5
25408 cat conftest.s >&5
25410 rm -f conftest.o conftest.s
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25414 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25415 if test $gcc_cv_as_ix86_filds = yes; then
25417 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25422 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25423 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 gcc_cv_as_ix86_fildq=no
25427 if test x$gcc_cv_as != x; then
25428 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25435 then
25436 gcc_cv_as_ix86_fildq=yes
25437 else
25438 echo "configure: failed program was" >&5
25439 cat conftest.s >&5
25441 rm -f conftest.o conftest.s
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25445 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25446 if test $gcc_cv_as_ix86_fildq = yes; then
25448 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25453 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25454 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 gcc_cv_as_ix86_cmov_sun_syntax=no
25458 if test x$gcc_cv_as != x; then
25459 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25462 (eval $ac_try) 2>&5
25463 ac_status=$?
25464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25465 test $ac_status = 0; }; }
25466 then
25467 gcc_cv_as_ix86_cmov_sun_syntax=yes
25468 else
25469 echo "configure: failed program was" >&5
25470 cat conftest.s >&5
25472 rm -f conftest.o conftest.s
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25476 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25477 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25479 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25484 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25485 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25486 $as_echo_n "(cached) " >&6
25487 else
25488 gcc_cv_as_ix86_ffreep=no
25489 if test x$gcc_cv_as != x; then
25490 $as_echo 'ffreep %st(1)' > conftest.s
25491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; }
25497 then
25498 gcc_cv_as_ix86_ffreep=yes
25499 else
25500 echo "configure: failed program was" >&5
25501 cat conftest.s >&5
25503 rm -f conftest.o conftest.s
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25507 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25508 if test $gcc_cv_as_ix86_ffreep = yes; then
25510 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25515 $as_echo_n "checking assembler for .quad directive... " >&6; }
25516 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25518 else
25519 gcc_cv_as_ix86_quad=no
25520 if test x$gcc_cv_as != x; then
25521 $as_echo '.quad 0' > conftest.s
25522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25527 test $ac_status = 0; }; }
25528 then
25529 gcc_cv_as_ix86_quad=yes
25530 else
25531 echo "configure: failed program was" >&5
25532 cat conftest.s >&5
25534 rm -f conftest.o conftest.s
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25538 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25539 if test $gcc_cv_as_ix86_quad = yes; then
25541 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25546 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25547 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25548 $as_echo_n "(cached) " >&6
25549 else
25550 gcc_cv_as_ix86_sahf=no
25551 if test x$gcc_cv_as != x; then
25552 $as_echo '.code64
25553 sahf' > conftest.s
25554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25556 (eval $ac_try) 2>&5
25557 ac_status=$?
25558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25559 test $ac_status = 0; }; }
25560 then
25561 gcc_cv_as_ix86_sahf=yes
25562 else
25563 echo "configure: failed program was" >&5
25564 cat conftest.s >&5
25566 rm -f conftest.o conftest.s
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25570 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25571 if test $gcc_cv_as_ix86_sahf = yes; then
25573 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25578 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25579 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25580 $as_echo_n "(cached) " >&6
25581 else
25582 gcc_cv_as_ix86_interunit_movq=no
25583 if test x$gcc_cv_as != x; then
25584 $as_echo '.code64
25585 movq %mm0, %rax
25586 movq %rax, %xmm0' > conftest.s
25587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25593 then
25594 gcc_cv_as_ix86_interunit_movq=yes
25595 else
25596 echo "configure: failed program was" >&5
25597 cat conftest.s >&5
25599 rm -f conftest.o conftest.s
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25603 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25606 cat >>confdefs.h <<_ACEOF
25607 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25608 _ACEOF
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25612 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25613 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25614 $as_echo_n "(cached) " >&6
25615 else
25616 gcc_cv_as_ix86_hle=no
25617 if test x$gcc_cv_as != x; then
25618 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25621 (eval $ac_try) 2>&5
25622 ac_status=$?
25623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25624 test $ac_status = 0; }; }
25625 then
25626 gcc_cv_as_ix86_hle=yes
25627 else
25628 echo "configure: failed program was" >&5
25629 cat conftest.s >&5
25631 rm -f conftest.o conftest.s
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25635 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25636 if test $gcc_cv_as_ix86_hle = yes; then
25638 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25643 $as_echo_n "checking assembler for swap suffix... " >&6; }
25644 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25645 $as_echo_n "(cached) " >&6
25646 else
25647 gcc_cv_as_ix86_swap=no
25648 if test x$gcc_cv_as != x; then
25649 $as_echo 'movl.s %esp, %ebp' > conftest.s
25650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25652 (eval $ac_try) 2>&5
25653 ac_status=$?
25654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25655 test $ac_status = 0; }; }
25656 then
25657 gcc_cv_as_ix86_swap=yes
25658 else
25659 echo "configure: failed program was" >&5
25660 cat conftest.s >&5
25662 rm -f conftest.o conftest.s
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25666 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25667 if test $gcc_cv_as_ix86_swap = yes; then
25669 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25674 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25675 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25676 $as_echo_n "(cached) " >&6
25677 else
25678 gcc_cv_as_ix86_diff_sect_delta=no
25679 if test x$gcc_cv_as != x; then
25680 $as_echo '.section .rodata
25681 .L1:
25682 .long .L2-.L1
25683 .long .L3-.L1
25684 .text
25685 .L3: nop
25686 .L2: nop' > conftest.s
25687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25689 (eval $ac_try) 2>&5
25690 ac_status=$?
25691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25692 test $ac_status = 0; }; }
25693 then
25694 gcc_cv_as_ix86_diff_sect_delta=yes
25695 else
25696 echo "configure: failed program was" >&5
25697 cat conftest.s >&5
25699 rm -f conftest.o conftest.s
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25703 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25704 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25706 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25711 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25712 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25713 $as_echo_n "(cached) " >&6
25714 else
25715 gcc_cv_as_ix86_rep_lock_prefix=no
25716 if test x$gcc_cv_as != x; then
25717 $as_echo 'rep movsl
25718 rep ret
25719 rep nop
25720 rep bsf %ecx, %eax
25721 rep bsr %ecx, %eax
25722 lock addl %edi, (%eax,%esi)
25723 lock orl $0, (%esp)' > conftest.s
25724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25729 test $ac_status = 0; }; }
25730 then
25731 gcc_cv_as_ix86_rep_lock_prefix=yes
25732 else
25733 echo "configure: failed program was" >&5
25734 cat conftest.s >&5
25736 rm -f conftest.o conftest.s
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25740 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25741 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25743 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25748 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25749 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25750 $as_echo_n "(cached) " >&6
25751 else
25752 gcc_cv_as_ix86_ud2=no
25753 if test x$gcc_cv_as != x; then
25754 $as_echo 'ud2' > conftest.s
25755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; }
25761 then
25762 gcc_cv_as_ix86_ud2=yes
25763 else
25764 echo "configure: failed program was" >&5
25765 cat conftest.s >&5
25767 rm -f conftest.o conftest.s
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25771 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25772 if test $gcc_cv_as_ix86_ud2 = yes; then
25774 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25778 # Enforce 32-bit output with gas and gld.
25779 if test x$gas = xyes; then
25780 as_ix86_gas_32_opt="--32"
25782 if echo "$ld_ver" | grep GNU > /dev/null; then
25783 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25784 ld_ix86_gld_32_opt="-melf_i386_sol2"
25785 else
25786 ld_ix86_gld_32_opt="-melf_i386"
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25791 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25792 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_ix86_tlsgdplt=no
25796 if test x$gcc_cv_as != x; then
25797 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; }
25804 then
25805 if test x$gcc_cv_ld != x \
25806 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25807 gcc_cv_as_ix86_tlsgdplt=yes
25809 rm -f conftest
25810 else
25811 echo "configure: failed program was" >&5
25812 cat conftest.s >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25818 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25819 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25821 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25825 conftest_s='
25826 .section .tdata,"aw'$tls_section_flag'",@progbits
25827 tls_ld:
25828 .section .text,"ax",@progbits
25829 call tls_ld@tlsldmplt'
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25832 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25833 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 gcc_cv_as_ix86_tlsldmplt=no
25837 if test x$gcc_cv_as != x; then
25838 $as_echo "$conftest_s" > conftest.s
25839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25842 ac_status=$?
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25845 then
25846 if test x$gcc_cv_ld != x \
25847 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25848 gcc_cv_as_ix86_tlsldmplt=yes
25850 rm -f conftest
25851 else
25852 echo "configure: failed program was" >&5
25853 cat conftest.s >&5
25855 rm -f conftest.o conftest.s
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25859 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25862 cat >>confdefs.h <<_ACEOF
25863 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25864 _ACEOF
25867 conftest_s='
25868 .section .text,"ax",@progbits
25869 .globl _start
25870 .type _start, @function
25871 _start:
25872 leal value@tlsldm(%ebx), %eax
25873 call ___tls_get_addr@plt
25875 .section .tdata,"aw'$tls_section_flag'",@progbits
25876 .type value, @object
25877 value:'
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25879 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25880 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25881 $as_echo_n "(cached) " >&6
25882 else
25883 gcc_cv_as_ix86_tlsldm=no
25884 if test x$gcc_cv_as != x; then
25885 $as_echo "$conftest_s" > conftest.s
25886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25888 (eval $ac_try) 2>&5
25889 ac_status=$?
25890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25891 test $ac_status = 0; }; }
25892 then
25893 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25894 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25895 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25896 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25897 gcc_cv_as_ix86_tlsldm=yes
25900 rm -f conftest
25901 else
25902 echo "configure: failed program was" >&5
25903 cat conftest.s >&5
25905 rm -f conftest.o conftest.s
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25909 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25912 cat >>confdefs.h <<_ACEOF
25913 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25914 _ACEOF
25917 conftest_s='
25918 .data
25919 bar:
25920 .byte 1
25921 .text
25922 .global _start
25923 _start:
25924 cmpl $0, bar@GOT
25925 jmp *_start@GOT'
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25927 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25928 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25929 $as_echo_n "(cached) " >&6
25930 else
25931 gcc_cv_as_ix86_got32x=no
25932 if test x$gcc_cv_as != x; then
25933 $as_echo "$conftest_s" > conftest.s
25934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25940 then
25941 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25942 && test x$gcc_cv_readelf != x \
25943 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
25944 | grep R_386_GOT32X > /dev/null 2>&1 \
25945 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25946 if $gcc_cv_objdump -dw conftest 2>&1 \
25947 | grep 0xffffff > /dev/null 2>&1; then
25948 gcc_cv_as_ix86_got32x=no
25949 else
25950 gcc_cv_as_ix86_got32x=yes
25953 rm -f conftest
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_got32x" >&5
25962 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
25965 cat >>confdefs.h <<_ACEOF
25966 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
25967 _ACEOF
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25971 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25972 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25974 else
25975 gcc_cv_as_ix86_gotoff_in_data=no
25976 if test $in_tree_gas = yes; then
25977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25978 then gcc_cv_as_ix86_gotoff_in_data=yes
25980 elif test x$gcc_cv_as != x; then
25981 $as_echo ' .text
25982 .L0:
25984 .data
25985 .long .L0@GOTOFF' > conftest.s
25986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25988 (eval $ac_try) 2>&5
25989 ac_status=$?
25990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25991 test $ac_status = 0; }; }
25992 then
25993 gcc_cv_as_ix86_gotoff_in_data=yes
25994 else
25995 echo "configure: failed program was" >&5
25996 cat conftest.s >&5
25998 rm -f conftest.o conftest.s
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26002 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26005 cat >>confdefs.h <<_ACEOF
26006 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26007 _ACEOF
26010 conftest_s='
26011 .section .text,"ax",@progbits
26012 .globl _start
26013 .type _start, @function
26014 _start:
26015 leal ld@tlsldm(%ecx), %eax
26016 call *___tls_get_addr@GOT(%ecx)
26017 leal gd@tlsgd(%ecx), %eax
26018 call *___tls_get_addr@GOT(%ecx)
26020 .section .tdata,"aw'$tls_section_flag'",@progbits
26021 .type ld, @object
26023 .byte 0
26024 .globl gd
26025 .type gd, @object
26027 .byte 0'
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26029 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26030 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26031 $as_echo_n "(cached) " >&6
26032 else
26033 gcc_cv_as_ix86_tls_get_addr_via_got=no
26034 if test x$gcc_cv_as != x; then
26035 $as_echo "$conftest_s" > conftest.s
26036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26038 (eval $ac_try) 2>&5
26039 ac_status=$?
26040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26041 test $ac_status = 0; }; }
26042 then
26043 if test x$gcc_cv_ld != x \
26044 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26045 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26047 rm -f conftest
26048 else
26049 echo "configure: failed program was" >&5
26050 cat conftest.s >&5
26052 rm -f conftest.o conftest.s
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26056 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26059 cat >>confdefs.h <<_ACEOF
26060 #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`
26061 _ACEOF
26065 ia64*-*-*)
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26067 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26068 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26069 $as_echo_n "(cached) " >&6
26070 else
26071 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26072 if test $in_tree_gas = yes; then
26073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26074 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26076 elif test x$gcc_cv_as != x; then
26077 $as_echo ' .text
26078 addl r15 = @ltoffx(x#), gp
26080 ld8.mov r16 = [r15], x#' > conftest.s
26081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26083 (eval $ac_try) 2>&5
26084 ac_status=$?
26085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26086 test $ac_status = 0; }; }
26087 then
26088 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26089 else
26090 echo "configure: failed program was" >&5
26091 cat conftest.s >&5
26093 rm -f conftest.o conftest.s
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26097 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26098 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26100 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26106 powerpc*-*-*)
26108 case $target in
26109 *-*-darwin*)
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26111 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26112 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26113 $as_echo_n "(cached) " >&6
26114 else
26115 gcc_cv_as_machine_directive=no
26116 if test x$gcc_cv_as != x; then
26117 $as_echo ' .machine ppc7400' > conftest.s
26118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26120 (eval $ac_try) 2>&5
26121 ac_status=$?
26122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26123 test $ac_status = 0; }; }
26124 then
26125 gcc_cv_as_machine_directive=yes
26126 else
26127 echo "configure: failed program was" >&5
26128 cat conftest.s >&5
26130 rm -f conftest.o conftest.s
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26134 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26136 if test x$gcc_cv_as_machine_directive != xyes; then
26137 echo "*** This target requires an assembler supporting \".machine\"" >&2
26138 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26139 test x$build = x$target && exit 1
26142 esac
26144 case $target in
26145 *-*-aix*) conftest_s=' .machine "pwr5"
26146 .csect .text[PR]
26147 mfcr 3,128';;
26148 *-*-darwin*) conftest_s=' .text
26149 mfcr r3,128';;
26150 *) conftest_s=' .machine power4
26151 .text
26152 mfcr 3,128';;
26153 esac
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26156 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26157 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26158 $as_echo_n "(cached) " >&6
26159 else
26160 gcc_cv_as_powerpc_mfcrf=no
26161 if test $in_tree_gas = yes; then
26162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26163 then gcc_cv_as_powerpc_mfcrf=yes
26165 elif test x$gcc_cv_as != x; then
26166 $as_echo "$conftest_s" > conftest.s
26167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26169 (eval $ac_try) 2>&5
26170 ac_status=$?
26171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26172 test $ac_status = 0; }; }
26173 then
26174 gcc_cv_as_powerpc_mfcrf=yes
26175 else
26176 echo "configure: failed program was" >&5
26177 cat conftest.s >&5
26179 rm -f conftest.o conftest.s
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26183 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26184 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26186 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26190 case $target in
26191 *-*-aix*) conftest_s=' .machine "pwr5"
26192 .csect .text[PR]
26193 popcntb 3,3';;
26194 *) conftest_s=' .machine power5
26195 .text
26196 popcntb 3,3';;
26197 esac
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26200 $as_echo_n "checking assembler for popcntb support... " >&6; }
26201 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26202 $as_echo_n "(cached) " >&6
26203 else
26204 gcc_cv_as_powerpc_popcntb=no
26205 if test $in_tree_gas = yes; then
26206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26207 then gcc_cv_as_powerpc_popcntb=yes
26209 elif test x$gcc_cv_as != x; then
26210 $as_echo "$conftest_s" > conftest.s
26211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26213 (eval $ac_try) 2>&5
26214 ac_status=$?
26215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26216 test $ac_status = 0; }; }
26217 then
26218 gcc_cv_as_powerpc_popcntb=yes
26219 else
26220 echo "configure: failed program was" >&5
26221 cat conftest.s >&5
26223 rm -f conftest.o conftest.s
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26227 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26228 if test $gcc_cv_as_powerpc_popcntb = yes; then
26230 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26234 case $target in
26235 *-*-aix*) conftest_s=' .machine "pwr5x"
26236 .csect .text[PR]
26237 frin 1,1';;
26238 *) conftest_s=' .machine power5
26239 .text
26240 frin 1,1';;
26241 esac
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26244 $as_echo_n "checking assembler for fp round support... " >&6; }
26245 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26246 $as_echo_n "(cached) " >&6
26247 else
26248 gcc_cv_as_powerpc_fprnd=no
26249 if test $in_tree_gas = yes; then
26250 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26251 then gcc_cv_as_powerpc_fprnd=yes
26253 elif test x$gcc_cv_as != x; then
26254 $as_echo "$conftest_s" > conftest.s
26255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26260 test $ac_status = 0; }; }
26261 then
26262 gcc_cv_as_powerpc_fprnd=yes
26263 else
26264 echo "configure: failed program was" >&5
26265 cat conftest.s >&5
26267 rm -f conftest.o conftest.s
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26271 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26272 if test $gcc_cv_as_powerpc_fprnd = yes; then
26274 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26278 case $target in
26279 *-*-aix*) conftest_s=' .machine "pwr6"
26280 .csect .text[PR]
26281 mffgpr 1,3';;
26282 *) conftest_s=' .machine power6
26283 .text
26284 mffgpr 1,3';;
26285 esac
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26288 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26289 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26290 $as_echo_n "(cached) " >&6
26291 else
26292 gcc_cv_as_powerpc_mfpgpr=no
26293 if test $in_tree_gas = yes; then
26294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26295 then gcc_cv_as_powerpc_mfpgpr=yes
26297 elif test x$gcc_cv_as != x; then
26298 $as_echo "$conftest_s" > conftest.s
26299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26301 (eval $ac_try) 2>&5
26302 ac_status=$?
26303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26304 test $ac_status = 0; }; }
26305 then
26306 gcc_cv_as_powerpc_mfpgpr=yes
26307 else
26308 echo "configure: failed program was" >&5
26309 cat conftest.s >&5
26311 rm -f conftest.o conftest.s
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26315 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26316 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26318 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26322 case $target in
26323 *-*-aix*) conftest_s=' .csect .text[PR]
26324 LCF..0:
26325 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26326 *-*-darwin*)
26327 conftest_s=' .text
26328 LCF0:
26329 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26330 *) conftest_s=' .text
26331 .LCF0:
26332 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26333 esac
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26336 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26337 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26338 $as_echo_n "(cached) " >&6
26339 else
26340 gcc_cv_as_powerpc_rel16=no
26341 if test $in_tree_gas = yes; then
26342 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26343 then gcc_cv_as_powerpc_rel16=yes
26345 elif test x$gcc_cv_as != x; then
26346 $as_echo "$conftest_s" > conftest.s
26347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26349 (eval $ac_try) 2>&5
26350 ac_status=$?
26351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26352 test $ac_status = 0; }; }
26353 then
26354 gcc_cv_as_powerpc_rel16=yes
26355 else
26356 echo "configure: failed program was" >&5
26357 cat conftest.s >&5
26359 rm -f conftest.o conftest.s
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26363 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26364 if test $gcc_cv_as_powerpc_rel16 = yes; then
26366 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26370 case $target in
26371 *-*-aix*) conftest_s=' .machine "pwr6"
26372 .csect .text[PR]
26373 cmpb 3,4,5';;
26374 *) conftest_s=' .machine power6
26375 .text
26376 cmpb 3,4,5';;
26377 esac
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26380 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26381 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26382 $as_echo_n "(cached) " >&6
26383 else
26384 gcc_cv_as_powerpc_cmpb=no
26385 if test $in_tree_gas = yes; then
26386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26387 then gcc_cv_as_powerpc_cmpb=yes
26389 elif test x$gcc_cv_as != x; then
26390 $as_echo "$conftest_s" > conftest.s
26391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26396 test $ac_status = 0; }; }
26397 then
26398 gcc_cv_as_powerpc_cmpb=yes
26399 else
26400 echo "configure: failed program was" >&5
26401 cat conftest.s >&5
26403 rm -f conftest.o conftest.s
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26407 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26408 if test $gcc_cv_as_powerpc_cmpb = yes; then
26410 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26414 case $target in
26415 *-*-aix*) conftest_s=' .machine "pwr6"
26416 .csect .text[PR]
26417 dadd 1,2,3';;
26418 *) conftest_s=' .machine power6
26419 .text
26420 dadd 1,2,3';;
26421 esac
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26424 $as_echo_n "checking assembler for decimal float support... " >&6; }
26425 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26427 else
26428 gcc_cv_as_powerpc_dfp=no
26429 if test $in_tree_gas = yes; then
26430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26431 then gcc_cv_as_powerpc_dfp=yes
26433 elif test x$gcc_cv_as != x; then
26434 $as_echo "$conftest_s" > conftest.s
26435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26438 ac_status=$?
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26441 then
26442 gcc_cv_as_powerpc_dfp=yes
26443 else
26444 echo "configure: failed program was" >&5
26445 cat conftest.s >&5
26447 rm -f conftest.o conftest.s
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26451 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26452 if test $gcc_cv_as_powerpc_dfp = yes; then
26454 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26458 case $target in
26459 *-*-aix*) conftest_s=' .machine "pwr7"
26460 .csect .text[PR]
26461 lxvd2x 1,2,3';;
26462 *) conftest_s=' .machine power7
26463 .text
26464 lxvd2x 1,2,3';;
26465 esac
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26468 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26469 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26470 $as_echo_n "(cached) " >&6
26471 else
26472 gcc_cv_as_powerpc_vsx=no
26473 if test $in_tree_gas = yes; then
26474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26475 then gcc_cv_as_powerpc_vsx=yes
26477 elif test x$gcc_cv_as != x; then
26478 $as_echo "$conftest_s" > conftest.s
26479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26484 test $ac_status = 0; }; }
26485 then
26486 gcc_cv_as_powerpc_vsx=yes
26487 else
26488 echo "configure: failed program was" >&5
26489 cat conftest.s >&5
26491 rm -f conftest.o conftest.s
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26495 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26496 if test $gcc_cv_as_powerpc_vsx = yes; then
26498 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26502 case $target in
26503 *-*-aix*) conftest_s=' .machine "pwr7"
26504 .csect .text[PR]
26505 popcntd 3,3';;
26506 *) conftest_s=' .machine power7
26507 .text
26508 popcntd 3,3';;
26509 esac
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26512 $as_echo_n "checking assembler for popcntd support... " >&6; }
26513 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26514 $as_echo_n "(cached) " >&6
26515 else
26516 gcc_cv_as_powerpc_popcntd=no
26517 if test $in_tree_gas = yes; then
26518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26519 then gcc_cv_as_powerpc_popcntd=yes
26521 elif test x$gcc_cv_as != x; then
26522 $as_echo "$conftest_s" > conftest.s
26523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26526 ac_status=$?
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }
26529 then
26530 gcc_cv_as_powerpc_popcntd=yes
26531 else
26532 echo "configure: failed program was" >&5
26533 cat conftest.s >&5
26535 rm -f conftest.o conftest.s
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26539 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26540 if test $gcc_cv_as_powerpc_popcntd = yes; then
26542 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26546 case $target in
26547 *-*-aix*) conftest_s=' .machine "pwr8"
26548 .csect .text[PR]';;
26549 *) conftest_s=' .machine power8
26550 .text';;
26551 esac
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26554 $as_echo_n "checking assembler for power8 support... " >&6; }
26555 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26556 $as_echo_n "(cached) " >&6
26557 else
26558 gcc_cv_as_powerpc_power8=no
26559 if test $in_tree_gas = yes; then
26560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26561 then gcc_cv_as_powerpc_power8=yes
26563 elif test x$gcc_cv_as != x; then
26564 $as_echo "$conftest_s" > conftest.s
26565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26567 (eval $ac_try) 2>&5
26568 ac_status=$?
26569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26570 test $ac_status = 0; }; }
26571 then
26572 gcc_cv_as_powerpc_power8=yes
26573 else
26574 echo "configure: failed program was" >&5
26575 cat conftest.s >&5
26577 rm -f conftest.o conftest.s
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26581 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26582 if test $gcc_cv_as_powerpc_power8 = yes; then
26584 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26588 case $target in
26589 *-*-aix*) conftest_s=' .machine "pwr9"
26590 .csect .text[PR]';;
26591 *) conftest_s=' .machine power9
26592 .text';;
26593 esac
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26596 $as_echo_n "checking assembler for power9 support... " >&6; }
26597 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_as_powerpc_power9=no
26601 if test $in_tree_gas = yes; then
26602 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26603 then gcc_cv_as_powerpc_power9=yes
26605 elif test x$gcc_cv_as != x; then
26606 $as_echo "$conftest_s" > conftest.s
26607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26613 then
26614 gcc_cv_as_powerpc_power9=yes
26615 else
26616 echo "configure: failed program was" >&5
26617 cat conftest.s >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26623 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26624 if test $gcc_cv_as_powerpc_power9 = yes; then
26626 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26630 case $target in
26631 *-*-aix*) conftest_s=' .csect .text[PR]
26632 lwsync';;
26633 *) conftest_s=' .text
26634 lwsync';;
26635 esac
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26638 $as_echo_n "checking assembler for lwsync support... " >&6; }
26639 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26640 $as_echo_n "(cached) " >&6
26641 else
26642 gcc_cv_as_powerpc_lwsync=no
26643 if test $in_tree_gas = yes; then
26644 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26645 then gcc_cv_as_powerpc_lwsync=yes
26647 elif test x$gcc_cv_as != x; then
26648 $as_echo "$conftest_s" > conftest.s
26649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26651 (eval $ac_try) 2>&5
26652 ac_status=$?
26653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26654 test $ac_status = 0; }; }
26655 then
26656 gcc_cv_as_powerpc_lwsync=yes
26657 else
26658 echo "configure: failed program was" >&5
26659 cat conftest.s >&5
26661 rm -f conftest.o conftest.s
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26665 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26666 if test $gcc_cv_as_powerpc_lwsync = yes; then
26668 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26672 case $target in
26673 *-*-aix*) conftest_s=' .machine "476"
26674 .csect .text[PR]
26675 dci 0';;
26676 *) conftest_s=' .machine "476"
26677 .text
26678 dci 0';;
26679 esac
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26682 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26683 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26684 $as_echo_n "(cached) " >&6
26685 else
26686 gcc_cv_as_powerpc_dci=no
26687 if test $in_tree_gas = yes; then
26688 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26689 then gcc_cv_as_powerpc_dci=yes
26691 elif test x$gcc_cv_as != x; then
26692 $as_echo "$conftest_s" > conftest.s
26693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26695 (eval $ac_try) 2>&5
26696 ac_status=$?
26697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26698 test $ac_status = 0; }; }
26699 then
26700 gcc_cv_as_powerpc_dci=yes
26701 else
26702 echo "configure: failed program was" >&5
26703 cat conftest.s >&5
26705 rm -f conftest.o conftest.s
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26709 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26710 if test $gcc_cv_as_powerpc_dci = yes; then
26712 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26717 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26718 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26719 $as_echo_n "(cached) " >&6
26720 else
26721 gcc_cv_as_powerpc_gnu_attribute=no
26722 if test $in_tree_gas = yes; then
26723 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26724 then gcc_cv_as_powerpc_gnu_attribute=yes
26726 elif test x$gcc_cv_as != x; then
26727 $as_echo '.gnu_attribute 4,1' > conftest.s
26728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26730 (eval $ac_try) 2>&5
26731 ac_status=$?
26732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26733 test $ac_status = 0; }; }
26734 then
26735 gcc_cv_as_powerpc_gnu_attribute=yes
26736 else
26737 echo "configure: failed program was" >&5
26738 cat conftest.s >&5
26740 rm -f conftest.o conftest.s
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26744 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26745 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26747 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26752 $as_echo_n "checking assembler for tls marker support... " >&6; }
26753 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26754 $as_echo_n "(cached) " >&6
26755 else
26756 gcc_cv_as_powerpc_tls_markers=no
26757 if test $in_tree_gas = yes; then
26758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26759 then gcc_cv_as_powerpc_tls_markers=yes
26761 elif test x$gcc_cv_as != x; then
26762 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768 test $ac_status = 0; }; }
26769 then
26770 gcc_cv_as_powerpc_tls_markers=yes
26771 else
26772 echo "configure: failed program was" >&5
26773 cat conftest.s >&5
26775 rm -f conftest.o conftest.s
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26779 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26780 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26782 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26787 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26788 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26789 $as_echo_n "(cached) " >&6
26790 else
26791 gcc_cv_as_powerpc_entry_markers=no
26792 if test $in_tree_gas = yes; then
26793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26794 then gcc_cv_as_powerpc_entry_markers=yes
26796 elif test x$gcc_cv_as != x; then
26797 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26800 (eval $ac_try) 2>&5
26801 ac_status=$?
26802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26803 test $ac_status = 0; }; }
26804 then
26805 gcc_cv_as_powerpc_entry_markers=yes
26806 else
26807 echo "configure: failed program was" >&5
26808 cat conftest.s >&5
26810 rm -f conftest.o conftest.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26814 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26815 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26817 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26821 case $target in
26822 *-*-aix*)
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26824 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26825 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26826 $as_echo_n "(cached) " >&6
26827 else
26828 gcc_cv_as_aix_ref=no
26829 if test $in_tree_gas = yes; then
26830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26831 then gcc_cv_as_aix_ref=yes
26833 elif test x$gcc_cv_as != x; then
26834 $as_echo ' .csect stuff[rw]
26835 stuff:
26836 .long 1
26837 .extern sym
26838 .ref sym
26839 ' > conftest.s
26840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; }
26846 then
26847 gcc_cv_as_aix_ref=yes
26848 else
26849 echo "configure: failed program was" >&5
26850 cat conftest.s >&5
26852 rm -f conftest.o conftest.s
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26856 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26857 if test $gcc_cv_as_aix_ref = yes; then
26859 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26864 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26865 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26866 $as_echo_n "(cached) " >&6
26867 else
26868 gcc_cv_as_aix_dwloc=no
26869 if test $in_tree_gas = yes; then
26870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26871 then gcc_cv_as_aix_dwloc=yes
26873 elif test x$gcc_cv_as != x; then
26874 $as_echo ' .dwsect 0xA0000
26875 Lframe..0:
26876 .vbyte 4,Lframe..0:
26877 ' > conftest.s
26878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26883 test $ac_status = 0; }; }
26884 then
26885 gcc_cv_as_aix_dwloc=yes
26886 else
26887 echo "configure: failed program was" >&5
26888 cat conftest.s >&5
26890 rm -f conftest.o conftest.s
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26894 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26895 if test $gcc_cv_as_aix_dwloc = yes; then
26897 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26901 esac
26904 mips*-*-*)
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26906 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26907 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26908 $as_echo_n "(cached) " >&6
26909 else
26910 gcc_cv_as_mips_explicit_relocs=no
26911 if test $in_tree_gas = yes; then
26912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26913 then gcc_cv_as_mips_explicit_relocs=yes
26915 elif test x$gcc_cv_as != x; then
26916 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26919 (eval $ac_try) 2>&5
26920 ac_status=$?
26921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26922 test $ac_status = 0; }; }
26923 then
26924 gcc_cv_as_mips_explicit_relocs=yes
26925 else
26926 echo "configure: failed program was" >&5
26927 cat conftest.s >&5
26929 rm -f conftest.o conftest.s
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26933 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26934 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26935 if test x$target_cpu_default = x
26936 then target_cpu_default=MASK_EXPLICIT_RELOCS
26937 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26942 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26943 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26944 $as_echo_n "(cached) " >&6
26945 else
26946 gcc_cv_as_mips_no_shared=no
26947 if test $in_tree_gas = yes; then
26948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26949 then gcc_cv_as_mips_no_shared=yes
26951 elif test x$gcc_cv_as != x; then
26952 $as_echo 'nop' > conftest.s
26953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26955 (eval $ac_try) 2>&5
26956 ac_status=$?
26957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26958 test $ac_status = 0; }; }
26959 then
26960 gcc_cv_as_mips_no_shared=yes
26961 else
26962 echo "configure: failed program was" >&5
26963 cat conftest.s >&5
26965 rm -f conftest.o conftest.s
26968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26969 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26970 if test $gcc_cv_as_mips_no_shared = yes; then
26972 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26977 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26978 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26979 $as_echo_n "(cached) " >&6
26980 else
26981 gcc_cv_as_mips_gnu_attribute=no
26982 if test $in_tree_gas = yes; then
26983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26984 then gcc_cv_as_mips_gnu_attribute=yes
26986 elif test x$gcc_cv_as != x; then
26987 $as_echo '.gnu_attribute 4,1' > conftest.s
26988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26990 (eval $ac_try) 2>&5
26991 ac_status=$?
26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26993 test $ac_status = 0; }; }
26994 then
26995 gcc_cv_as_mips_gnu_attribute=yes
26996 else
26997 echo "configure: failed program was" >&5
26998 cat conftest.s >&5
27000 rm -f conftest.o conftest.s
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27004 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27005 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27007 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27012 $as_echo_n "checking assembler for .module support... " >&6; }
27013 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27014 $as_echo_n "(cached) " >&6
27015 else
27016 gcc_cv_as_mips_dot_module=no
27017 if test x$gcc_cv_as != x; then
27018 $as_echo '.module mips2
27019 .module fp=xx' > conftest.s
27020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27022 (eval $ac_try) 2>&5
27023 ac_status=$?
27024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27025 test $ac_status = 0; }; }
27026 then
27027 gcc_cv_as_mips_dot_module=yes
27028 else
27029 echo "configure: failed program was" >&5
27030 cat conftest.s >&5
27032 rm -f conftest.o conftest.s
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27036 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27037 if test $gcc_cv_as_mips_dot_module = yes; then
27039 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27042 if test x$gcc_cv_as_mips_dot_module = xno \
27043 && test x$with_fp_32 != x; then
27044 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27048 $as_echo_n "checking assembler for .micromips support... " >&6; }
27049 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27050 $as_echo_n "(cached) " >&6
27051 else
27052 gcc_cv_as_micromips_support=no
27053 if test x$gcc_cv_as != x; then
27054 $as_echo '.set micromips' > conftest.s
27055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27057 (eval $ac_try) 2>&5
27058 ac_status=$?
27059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27060 test $ac_status = 0; }; }
27061 then
27062 gcc_cv_as_micromips_support=yes
27063 else
27064 echo "configure: failed program was" >&5
27065 cat conftest.s >&5
27067 rm -f conftest.o conftest.s
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27071 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27072 if test $gcc_cv_as_micromips_support = yes; then
27074 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27079 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27080 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27081 $as_echo_n "(cached) " >&6
27082 else
27083 gcc_cv_as_mips_dtprelword=no
27084 if test $in_tree_gas = yes; then
27085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27086 then gcc_cv_as_mips_dtprelword=yes
27088 elif test x$gcc_cv_as != x; then
27089 $as_echo '.section .tdata,"awT",@progbits
27091 .word 2
27092 .text
27093 .dtprelword x+0x8000' > conftest.s
27094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27096 (eval $ac_try) 2>&5
27097 ac_status=$?
27098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27099 test $ac_status = 0; }; }
27100 then
27101 gcc_cv_as_mips_dtprelword=yes
27102 else
27103 echo "configure: failed program was" >&5
27104 cat conftest.s >&5
27106 rm -f conftest.o conftest.s
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27110 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27111 if test $gcc_cv_as_mips_dtprelword = yes; then
27113 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27118 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27119 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27120 $as_echo_n "(cached) " >&6
27121 else
27122 gcc_cv_as_mips_dspr1_mult=no
27123 if test x$gcc_cv_as != x; then
27124 $as_echo ' .set mips32r2
27125 .set nodspr2
27126 .set dsp
27127 madd $ac3,$4,$5
27128 maddu $ac3,$4,$5
27129 msub $ac3,$4,$5
27130 msubu $ac3,$4,$5
27131 mult $ac3,$4,$5
27132 multu $ac3,$4,$5' > conftest.s
27133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27135 (eval $ac_try) 2>&5
27136 ac_status=$?
27137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27138 test $ac_status = 0; }; }
27139 then
27140 gcc_cv_as_mips_dspr1_mult=yes
27141 else
27142 echo "configure: failed program was" >&5
27143 cat conftest.s >&5
27145 rm -f conftest.o conftest.s
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27149 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27150 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27152 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27157 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27158 gcc_cv_as_ld_jalr_reloc=no
27159 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27160 if test $in_tree_ld = yes ; then
27161 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 \
27162 && test $in_tree_ld_is_elf = yes; then
27163 gcc_cv_as_ld_jalr_reloc=yes
27165 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27166 echo ' .ent x' > conftest.s
27167 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27168 echo ' lw $25,%call16(y)($28)' >> conftest.s
27169 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27170 echo '1: jalr $25' >> conftest.s
27171 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27172 echo '1: jalr $25' >> conftest.s
27173 echo ' .end x' >> conftest.s
27174 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27175 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27176 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27177 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27178 gcc_cv_as_ld_jalr_reloc=yes
27181 rm -f conftest.*
27184 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27185 if test x$target_cpu_default = x; then
27186 target_cpu_default=MASK_RELAX_PIC_CALLS
27187 else
27188 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27192 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27195 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27196 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27197 $as_echo_n "(cached) " >&6
27198 else
27199 gcc_cv_ld_mips_personality_relaxation=no
27200 if test $in_tree_ld = yes ; then
27201 if test "$gcc_cv_gld_major_version" -eq 2 \
27202 -a "$gcc_cv_gld_minor_version" -ge 21 \
27203 -o "$gcc_cv_gld_major_version" -gt 2; then
27204 gcc_cv_ld_mips_personality_relaxation=yes
27206 elif test x$gcc_cv_as != x \
27207 -a x$gcc_cv_ld != x \
27208 -a x$gcc_cv_readelf != x ; then
27209 cat > conftest.s <<EOF
27210 .cfi_startproc
27211 .cfi_personality 0x80,indirect_ptr
27212 .ent test
27213 test:
27215 .end test
27216 .cfi_endproc
27218 .section .data,"aw",@progbits
27219 indirect_ptr:
27220 .dc.a personality
27222 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27223 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27224 if $gcc_cv_readelf -d conftest 2>&1 \
27225 | grep TEXTREL > /dev/null 2>&1; then
27227 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27228 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27230 else
27231 gcc_cv_ld_mips_personality_relaxation=yes
27235 rm -f conftest.s conftest.o conftest
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27238 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27239 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27241 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27246 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27247 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27248 $as_echo_n "(cached) " >&6
27249 else
27250 gcc_cv_as_mips_nan=no
27251 if test x$gcc_cv_as != x; then
27252 $as_echo '' > conftest.s
27253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; }
27259 then
27260 gcc_cv_as_mips_nan=yes
27261 else
27262 echo "configure: failed program was" >&5
27263 cat conftest.s >&5
27265 rm -f conftest.o conftest.s
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27269 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27270 if test $gcc_cv_as_mips_nan = yes; then
27272 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27275 if test x$gcc_cv_as_mips_nan = xno \
27276 && test x$with_nan != x; then
27277 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27280 s390*-*-*)
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27282 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27283 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27284 $as_echo_n "(cached) " >&6
27285 else
27286 gcc_cv_as_s390_gnu_attribute=no
27287 if test $in_tree_gas = yes; then
27288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27289 then gcc_cv_as_s390_gnu_attribute=yes
27291 elif test x$gcc_cv_as != x; then
27292 $as_echo '.gnu_attribute 8,1' > conftest.s
27293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27295 (eval $ac_try) 2>&5
27296 ac_status=$?
27297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27298 test $ac_status = 0; }; }
27299 then
27300 gcc_cv_as_s390_gnu_attribute=yes
27301 else
27302 echo "configure: failed program was" >&5
27303 cat conftest.s >&5
27305 rm -f conftest.o conftest.s
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27309 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27310 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27312 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27316 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27317 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27318 $as_echo_n "(cached) " >&6
27319 else
27320 gcc_cv_as_s390_machine_machinemode=no
27321 if test $in_tree_gas = yes; then
27322 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27323 then gcc_cv_as_s390_machine_machinemode=yes
27325 elif test x$gcc_cv_as != x; then
27326 $as_echo ' .machinemode push
27327 .machinemode pop
27328 .machine push
27329 .machine pop' > conftest.s
27330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27332 (eval $ac_try) 2>&5
27333 ac_status=$?
27334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27335 test $ac_status = 0; }; }
27336 then
27337 gcc_cv_as_s390_machine_machinemode=yes
27338 else
27339 echo "configure: failed program was" >&5
27340 cat conftest.s >&5
27342 rm -f conftest.o conftest.s
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27346 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27347 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27349 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27353 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27354 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27355 $as_echo_n "(cached) " >&6
27356 else
27357 gcc_cv_as_s390_architecture_modifiers=no
27358 if test $in_tree_gas = yes; then
27359 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27360 then gcc_cv_as_s390_architecture_modifiers=yes
27362 elif test x$gcc_cv_as != x; then
27363 $as_echo ' .machine z13+vx ' > conftest.s
27364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27366 (eval $ac_try) 2>&5
27367 ac_status=$?
27368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27369 test $ac_status = 0; }; }
27370 then
27371 gcc_cv_as_s390_architecture_modifiers=yes
27372 else
27373 echo "configure: failed program was" >&5
27374 cat conftest.s >&5
27376 rm -f conftest.o conftest.s
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27380 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27381 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27383 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27387 esac
27389 # Mips and HP-UX need the GNU assembler.
27390 # Linux on IA64 might be able to use the Intel assembler.
27392 case "$target" in
27393 mips*-*-* | *-*-hpux* )
27394 if test x$gas_flag = xyes \
27395 || test x"$host" != x"$build" \
27396 || test ! -x "$gcc_cv_as" \
27397 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27399 else
27400 echo "*** This configuration requires the GNU assembler" >&2
27401 exit 1
27404 esac
27406 # ??? Not all targets support dwarf2 debug_line, even within a version
27407 # of gas. Moreover, we need to emit a valid instruction to trigger any
27408 # info to the output file. So, as supported targets are added to gas 2.11,
27409 # add some instruction here to (also) show we expect this might work.
27410 # ??? Once 2.11 is released, probably need to add first known working
27411 # version to the per-target configury.
27412 case "$cpu_type" in
27413 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27414 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27415 | visium | xstormy16 | xtensa)
27416 insn="nop"
27418 ia64 | s390)
27419 insn="nop 0"
27421 mmix)
27422 insn="swym 0"
27424 esac
27425 if test x"$insn" != x; then
27426 conftest_s="\
27427 .file 1 \"conftest.s\"
27428 .loc 1 3 0
27429 $insn"
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27431 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27432 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27433 $as_echo_n "(cached) " >&6
27434 else
27435 gcc_cv_as_dwarf2_debug_line=no
27436 if test $in_tree_gas = yes; then
27437 if test $in_tree_gas_is_elf = yes \
27438 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27439 then gcc_cv_as_dwarf2_debug_line=yes
27441 elif test x$gcc_cv_as != x; then
27442 $as_echo "$conftest_s" > conftest.s
27443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27445 (eval $ac_try) 2>&5
27446 ac_status=$?
27447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27448 test $ac_status = 0; }; }
27449 then
27450 if test x$gcc_cv_objdump != x \
27451 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27452 | grep debug_line > /dev/null 2>&1; then
27453 gcc_cv_as_dwarf2_debug_line=yes
27455 else
27456 echo "configure: failed program was" >&5
27457 cat conftest.s >&5
27459 rm -f conftest.o conftest.s
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27463 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27466 # The .debug_line file table must be in the exact order that
27467 # we specified the files, since these indices are also used
27468 # by DW_AT_decl_file. Approximate this test by testing if
27469 # the assembler bitches if the same index is assigned twice.
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27471 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27472 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27473 $as_echo_n "(cached) " >&6
27474 else
27475 gcc_cv_as_dwarf2_file_buggy=no
27476 if test x$gcc_cv_as != x; then
27477 $as_echo ' .file 1 "foo.s"
27478 .file 1 "bar.s"' > conftest.s
27479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27484 test $ac_status = 0; }; }
27485 then
27486 gcc_cv_as_dwarf2_file_buggy=yes
27487 else
27488 echo "configure: failed program was" >&5
27489 cat conftest.s >&5
27491 rm -f conftest.o conftest.s
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27495 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27498 if test $gcc_cv_as_dwarf2_debug_line = yes \
27499 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27501 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27506 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27507 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27508 $as_echo_n "(cached) " >&6
27509 else
27510 gcc_cv_as_gdwarf2_flag=no
27511 if test $in_tree_gas = yes; then
27512 if test $in_tree_gas_is_elf = yes \
27513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27514 then gcc_cv_as_gdwarf2_flag=yes
27516 elif test x$gcc_cv_as != x; then
27517 $as_echo "$insn" > conftest.s
27518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27523 test $ac_status = 0; }; }
27524 then
27525 gcc_cv_as_gdwarf2_flag=yes
27526 else
27527 echo "configure: failed program was" >&5
27528 cat conftest.s >&5
27530 rm -f conftest.o conftest.s
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27534 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27535 if test $gcc_cv_as_gdwarf2_flag = yes; then
27537 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27542 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27543 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27544 $as_echo_n "(cached) " >&6
27545 else
27546 gcc_cv_as_gstabs_flag=no
27547 if test $in_tree_gas = yes; then
27548 if test $in_tree_gas_is_elf = yes \
27549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27550 then gcc_cv_as_gstabs_flag=yes
27552 elif test x$gcc_cv_as != x; then
27553 $as_echo "$insn" > conftest.s
27554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27556 (eval $ac_try) 2>&5
27557 ac_status=$?
27558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27559 test $ac_status = 0; }; }
27560 then
27561 gcc_cv_as_gstabs_flag=yes
27562 else
27563 echo "configure: failed program was" >&5
27564 cat conftest.s >&5
27566 rm -f conftest.o conftest.s
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27570 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27571 if test $gcc_cv_as_gstabs_flag = yes; then
27573 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27578 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27579 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27580 $as_echo_n "(cached) " >&6
27581 else
27582 gcc_cv_as_debug_prefix_map_flag=no
27583 if test $in_tree_gas = yes; then
27584 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27585 then gcc_cv_as_debug_prefix_map_flag=yes
27587 elif test x$gcc_cv_as != x; then
27588 $as_echo "$insn" > conftest.s
27589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27591 (eval $ac_try) 2>&5
27592 ac_status=$?
27593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27594 test $ac_status = 0; }; }
27595 then
27596 gcc_cv_as_debug_prefix_map_flag=yes
27597 else
27598 echo "configure: failed program was" >&5
27599 cat conftest.s >&5
27601 rm -f conftest.o conftest.s
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27605 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27606 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27608 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27614 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27615 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27616 $as_echo_n "(cached) " >&6
27617 else
27618 gcc_cv_as_compress_debug=no
27619 if test x$gcc_cv_as != x; then
27620 $as_echo '' > conftest.s
27621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27623 (eval $ac_try) 2>&5
27624 ac_status=$?
27625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27626 test $ac_status = 0; }; }
27627 then
27628 # gas compiled without zlib cannot compress debug sections and warns
27629 # about it, but still exits successfully. So check for this, too.
27630 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27631 then
27632 gcc_cv_as_compress_debug=0
27633 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27634 # defaulting to the ELF gABI format.
27635 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27636 then
27637 gcc_cv_as_compress_debug=2
27638 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27639 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27640 # Before binutils 2.26, gas only supported --compress-debug-options and
27641 # emitted the traditional GNU format.
27642 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27643 then
27644 gcc_cv_as_compress_debug=1
27645 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27646 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27647 else
27648 gcc_cv_as_compress_debug=0
27650 else
27651 echo "configure: failed program was" >&5
27652 cat conftest.s >&5
27654 rm -f conftest.o conftest.s
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27658 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27661 cat >>confdefs.h <<_ACEOF
27662 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27663 _ACEOF
27666 cat >>confdefs.h <<_ACEOF
27667 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27668 _ACEOF
27671 cat >>confdefs.h <<_ACEOF
27672 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27673 _ACEOF
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27677 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27678 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27679 $as_echo_n "(cached) " >&6
27680 else
27681 gcc_cv_as_lcomm_with_alignment=no
27682 if test x$gcc_cv_as != x; then
27683 $as_echo '.lcomm bar,4,16' > conftest.s
27684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27686 (eval $ac_try) 2>&5
27687 ac_status=$?
27688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27689 test $ac_status = 0; }; }
27690 then
27691 gcc_cv_as_lcomm_with_alignment=yes
27692 else
27693 echo "configure: failed program was" >&5
27694 cat conftest.s >&5
27696 rm -f conftest.o conftest.s
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27700 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27701 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27703 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27707 if test x$with_sysroot = x && test x$host = x$target \
27708 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27709 && test "$prefix" != "NONE"; then
27711 cat >>confdefs.h <<_ACEOF
27712 #define PREFIX_INCLUDE_DIR "$prefix/include"
27713 _ACEOF
27717 # Determine the version of glibc, if any, used on the target.
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27719 $as_echo_n "checking for target glibc version... " >&6; }
27721 # Check whether --with-glibc-version was given.
27722 if test "${with_glibc_version+set}" = set; then :
27723 withval=$with_glibc_version;
27724 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27725 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27726 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27727 else
27728 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27730 else
27732 glibc_version_major=0
27733 glibc_version_minor=0
27734 if test -f $target_header_dir/features.h \
27735 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27736 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27737 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27738 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27743 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27745 cat >>confdefs.h <<_ACEOF
27746 #define TARGET_GLIBC_MAJOR $glibc_version_major
27747 _ACEOF
27750 cat >>confdefs.h <<_ACEOF
27751 #define TARGET_GLIBC_MINOR $glibc_version_minor
27752 _ACEOF
27755 # Check whether --enable-gnu-unique-object was given.
27756 if test "${enable_gnu_unique_object+set}" = set; then :
27757 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27758 yes | no) ;;
27759 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27760 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27761 esac
27762 else
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27764 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27765 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27766 $as_echo_n "(cached) " >&6
27767 else
27768 gcc_cv_as_gnu_unique_object=no
27769 if test $in_tree_gas = yes; then
27770 if test $in_tree_gas_is_elf = yes \
27771 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27772 then gcc_cv_as_gnu_unique_object=yes
27774 elif test x$gcc_cv_as != x; then
27775 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27781 test $ac_status = 0; }; }
27782 then
27783 gcc_cv_as_gnu_unique_object=yes
27784 else
27785 echo "configure: failed program was" >&5
27786 cat conftest.s >&5
27788 rm -f conftest.o conftest.s
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27792 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27793 if test $gcc_cv_as_gnu_unique_object = yes; then
27794 # We need to unquote above to to use the definition from config.gcc.
27795 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27797 if test $glibc_version_major -gt 2 \
27798 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27799 enable_gnu_unique_object=yes
27805 if test x$enable_gnu_unique_object = xyes; then
27807 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27812 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27813 if test "${gcc_cv_as_line_zero+set}" = set; then :
27814 $as_echo_n "(cached) " >&6
27815 else
27816 gcc_cv_as_line_zero=no
27817 if test $in_tree_gas = yes; then
27818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27819 then gcc_cv_as_line_zero=yes
27821 elif test "x$gcc_cv_as" != x; then
27822 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27823 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27825 (eval $ac_try) 2>&5
27826 ac_status=$?
27827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27828 test $ac_status = 0; }; } &&
27829 test "x`cat conftest.out`" = x
27830 then
27831 gcc_cv_as_line_zero=yes
27832 else
27833 echo "configure: failed program was" >&5
27834 cat conftest.s >&5
27835 echo "configure: error output was" >&5
27836 cat conftest.out >&5
27838 rm -f conftest.o conftest.s conftest.out
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27842 $as_echo "$gcc_cv_as_line_zero" >&6; }
27843 if test "x$gcc_cv_as_line_zero" = xyes; then
27845 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27850 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27851 gcc_cv_ld_eh_frame_hdr=no
27852 if test $in_tree_ld = yes ; then
27853 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 \
27854 && test $in_tree_ld_is_elf = yes; then
27855 gcc_cv_ld_eh_frame_hdr=yes
27857 elif test x$gcc_cv_ld != x; then
27858 if echo "$ld_ver" | grep GNU > /dev/null; then
27859 # Check if linker supports --eh-frame-hdr option
27860 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27861 gcc_cv_ld_eh_frame_hdr=yes
27863 else
27864 case "$target" in
27865 *-*-solaris2*)
27866 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27867 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27868 gcc_cv_ld_eh_frame_hdr=yes
27871 esac
27875 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27877 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27881 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27884 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27885 gcc_cv_ld_eh_frame_ciev3=no
27886 if test $in_tree_ld = yes ; then
27887 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 \
27888 && test $in_tree_ld_is_elf = yes; then
27889 gcc_cv_ld_eh_frame_ciev3=yes
27891 elif test x$gcc_cv_ld != x; then
27892 if echo "$ld_ver" | grep GNU > /dev/null; then
27893 gcc_cv_ld_eh_frame_ciev3=yes
27894 if test 0"$ld_date" -lt 20040513; then
27895 if test -n "$ld_date"; then
27896 # If there was date string, but was earlier than 2004-05-13, fail
27897 gcc_cv_ld_eh_frame_ciev3=no
27898 elif test "$ld_vers_major" -lt 2; then
27899 gcc_cv_ld_eh_frame_ciev3=no
27900 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27901 gcc_cv_ld_eh_frame_ciev3=no
27904 else
27905 case "$target" in
27906 *-*-solaris2*)
27907 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27908 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27909 gcc_cv_ld_eh_frame_ciev3=yes
27912 esac
27916 cat >>confdefs.h <<_ACEOF
27917 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27918 _ACEOF
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27921 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27924 $as_echo_n "checking linker position independent executable support... " >&6; }
27925 gcc_cv_ld_pie=no
27926 if test $in_tree_ld = yes ; then
27927 case "$target" in
27928 # Full PIE support on Solaris was only introduced in gld 2.26.
27929 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27930 *) gcc_gld_pie_min_version=15 ;;
27931 esac
27932 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 \
27933 && test $in_tree_ld_is_elf = yes; then
27934 gcc_cv_ld_pie=yes
27936 elif test x$gcc_cv_ld != x; then
27937 # Check if linker supports -pie option
27938 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27939 gcc_cv_ld_pie=yes
27940 case "$target" in
27941 *-*-solaris2*)
27942 if echo "$ld_ver" | grep GNU > /dev/null \
27943 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27944 gcc_cv_ld_pie=no
27947 esac
27948 else
27949 case "$target" in
27950 *-*-solaris2.1[1-9]*)
27951 # Solaris 11.x and Solaris 12 added PIE support.
27952 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27953 gcc_cv_ld_pie=yes
27956 esac
27959 if test x"$gcc_cv_ld_pie" = xyes; then
27961 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27965 $as_echo "$gcc_cv_ld_pie" >&6; }
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27968 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27969 gcc_cv_ld_pie_copyreloc=no
27970 if test $gcc_cv_ld_pie = yes ; then
27971 if test $in_tree_ld = yes ; then
27972 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
27973 gcc_cv_ld_pie_copyreloc=yes
27975 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27976 # Check if linker supports -pie option with copy reloc
27977 case "$target" in
27978 i?86-*-linux* | x86_64-*-linux*)
27979 cat > conftest1.s <<EOF
27980 .globl a_glob
27981 .data
27982 .type a_glob, @object
27983 .size a_glob, 4
27984 a_glob:
27985 .long 2
27987 cat > conftest2.s <<EOF
27988 .text
27989 .globl main
27990 .type main, @function
27991 main:
27992 movl %eax, a_glob(%rip)
27993 .size main, .-main
27994 .globl ptr
27995 .section .data.rel,"aw",@progbits
27996 .type ptr, @object
27997 ptr:
27998 .quad a_glob
28000 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28001 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28002 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28003 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28004 gcc_cv_ld_pie_copyreloc=yes
28006 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28008 esac
28012 cat >>confdefs.h <<_ACEOF
28013 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28014 _ACEOF
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28017 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28020 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28021 gcc_cv_ld_eh_gc_sections=no
28022 if test $in_tree_ld = yes ; then
28023 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 \
28024 && test $in_tree_ld_is_elf = yes; then
28025 gcc_cv_ld_eh_gc_sections=yes
28027 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28028 cat > conftest.s <<EOF
28029 .section .text
28030 .globl _start
28031 .type _start, @function
28032 _start:
28033 .long foo
28034 .size _start, .-_start
28035 .section .text.foo,"ax",@progbits
28036 .type foo, @function
28037 foo:
28038 .long 0
28039 .size foo, .-foo
28040 .section .gcc_except_table.foo,"a",@progbits
28041 .L0:
28042 .long 0
28043 .section .eh_frame,"a",@progbits
28044 .long .L0
28046 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28047 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28048 | grep "gc-sections option ignored" > /dev/null; then
28049 gcc_cv_ld_eh_gc_sections=no
28050 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28051 | grep gcc_except_table > /dev/null; then
28052 gcc_cv_ld_eh_gc_sections=yes
28053 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28054 if test x$gcc_cv_as_comdat_group != xyes; then
28055 gcc_cv_ld_eh_gc_sections=no
28056 cat > conftest.s <<EOF
28057 .section .text
28058 .globl _start
28059 .type _start, @function
28060 _start:
28061 .long foo
28062 .size _start, .-_start
28063 .section .gnu.linkonce.t.foo,"ax",@progbits
28064 .type foo, @function
28065 foo:
28066 .long 0
28067 .size foo, .-foo
28068 .section .gcc_except_table.foo,"a",@progbits
28069 .L0:
28070 .long 0
28071 .section .eh_frame,"a",@progbits
28072 .long .L0
28074 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28075 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28076 | grep "gc-sections option ignored" > /dev/null; then
28077 gcc_cv_ld_eh_gc_sections=no
28078 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28079 | grep gcc_except_table > /dev/null; then
28080 gcc_cv_ld_eh_gc_sections=yes
28086 rm -f conftest.s conftest.o conftest
28088 case "$target" in
28089 hppa*-*-linux*)
28090 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28091 gcc_cv_ld_eh_gc_sections=no
28093 esac
28094 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28096 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28100 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28103 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28104 gcc_cv_ld_eh_gc_sections_bug=no
28105 if test $in_tree_ld = yes ; then
28106 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 \
28107 && test $in_tree_ld_is_elf = yes; then
28108 gcc_cv_ld_eh_gc_sections_bug=yes
28110 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
28111 gcc_cv_ld_eh_gc_sections_bug=yes
28112 cat > conftest.s <<EOF
28113 .section .text
28114 .globl _start
28115 .type _start, @function
28116 _start:
28117 .long foo
28118 .size _start, .-_start
28119 .section .text.startup.foo,"ax",@progbits
28120 .type foo, @function
28121 foo:
28122 .long 0
28123 .size foo, .-foo
28124 .section .gcc_except_table.foo,"a",@progbits
28125 .L0:
28126 .long 0
28127 .section .eh_frame,"a",@progbits
28128 .long .L0
28130 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28131 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28132 | grep "gc-sections option ignored" > /dev/null; then
28134 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28135 | grep gcc_except_table > /dev/null; then
28136 gcc_cv_ld_eh_gc_sections_bug=no
28139 rm -f conftest.s conftest.o conftest
28141 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28143 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28147 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28150 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28151 # gold/gld support compressed debug sections since binutils 2.19/2.21
28152 # In binutils 2.26, gld gained support for the ELF gABI format.
28153 if test $in_tree_ld = yes ; then
28154 gcc_cv_ld_compress_debug=0
28155 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 \
28156 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28157 gcc_cv_ld_compress_debug=2
28158 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28159 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 \
28160 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28161 gcc_cv_ld_compress_debug=3
28162 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28163 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 \
28164 && test $in_tree_ld_is_elf = yes; then
28165 gcc_cv_ld_compress_debug=1
28167 elif echo "$ld_ver" | grep GNU > /dev/null; then
28168 if test "$ld_vers_major" -lt 2 \
28169 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28170 gcc_cv_ld_compress_debug=0
28171 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28172 gcc_cv_ld_compress_debug=1
28173 else
28174 gcc_cv_ld_compress_debug=3
28175 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28177 if test $ld_is_gold = yes; then
28178 gcc_cv_ld_compress_debug=2
28179 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28181 else
28182 case "${target}" in
28183 *-*-solaris2*)
28184 # Introduced in Solaris 11.2.
28185 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28186 gcc_cv_ld_compress_debug=3
28187 gcc_cv_ld_compress_debug_option="-z compress-sections"
28188 else
28189 gcc_cv_ld_compress_debug=0
28193 # Assume linkers other than GNU ld don't support compessed debug
28194 # sections.
28195 gcc_cv_ld_compress_debug=0
28197 esac
28200 cat >>confdefs.h <<_ACEOF
28201 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28202 _ACEOF
28205 cat >>confdefs.h <<_ACEOF
28206 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28207 _ACEOF
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28210 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28212 # --------
28213 # UNSORTED
28214 # --------
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28217 $as_echo_n "checking linker --as-needed support... " >&6; }
28218 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28219 $as_echo_n "(cached) " >&6
28220 else
28221 gcc_cv_ld_as_needed=no
28222 gcc_cv_ld_as_needed_option='--as-needed'
28223 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28224 if test $in_tree_ld = yes ; then
28225 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 \
28226 && test $in_tree_ld_is_elf = yes; then
28227 gcc_cv_ld_as_needed=yes
28229 elif test x$gcc_cv_ld != x; then
28230 # Check if linker supports --as-needed and --no-as-needed options
28231 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28232 gcc_cv_ld_as_needed=yes
28233 else
28234 case "$target" in
28235 # Solaris 2 ld always supports -z ignore/-z record.
28236 *-*-solaris2*)
28237 gcc_cv_ld_as_needed=yes
28238 gcc_cv_ld_as_needed_option="-z ignore"
28239 gcc_cv_ld_no_as_needed_option="-z record"
28241 esac
28244 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28245 # dl_iterate_phdr, i.e. since Solaris 11.
28246 case "$target" in
28247 *-*-solaris2.1[1-9]*)
28248 case "$target" in
28249 i?86-*-* | x86_64-*-*)
28250 if echo "$ld_ver" | grep GNU > /dev/null; then
28251 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28252 gcc_cv_ld_as_needed=no
28255 esac
28257 *-*-solaris2*)
28258 gcc_cv_ld_as_needed=no
28260 esac
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28264 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28265 if test x"$gcc_cv_ld_as_needed" = xyes; then
28267 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28270 cat >>confdefs.h <<_ACEOF
28271 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28272 _ACEOF
28275 cat >>confdefs.h <<_ACEOF
28276 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28277 _ACEOF
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28282 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28283 saved_LDFLAGS="$LDFLAGS"
28284 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28285 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28287 /* end confdefs.h. */
28288 int main(void) {return 0;}
28289 _ACEOF
28290 if ac_fn_cxx_try_link "$LINENO"; then :
28291 gcc_cv_ld_clearcap=yes; break
28292 else
28293 gcc_cv_ld_clearcap=no
28295 rm -f core conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
28297 done
28298 LDFLAGS="$saved_LDFLAGS"
28299 if test "x$gcc_cv_ld_clearcap" = xyes; then
28301 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28303 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28307 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28309 case "$target:$tm_file" in
28310 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28311 case "$target" in
28312 *le-*-linux*)
28313 emul_name="-melf64lppc"
28315 *-*-linux*)
28316 emul_name="-melf64ppc"
28318 *-*-freebsd*)
28319 emul_name="-melf64ppc_fbsd"
28321 esac
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28323 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28324 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28325 $as_echo_n "(cached) " >&6
28326 else
28327 gcc_cv_ld_no_dot_syms=no
28328 if test x"$ld_is_gold" = xyes; then
28329 gcc_cv_ld_no_dot_syms=yes
28330 elif test $in_tree_ld = yes ; then
28331 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
28332 gcc_cv_ld_no_dot_syms=yes
28334 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28335 cat > conftest1.s <<EOF
28336 .text
28337 bl .foo
28339 cat > conftest2.s <<EOF
28340 .section ".opd","aw"
28341 .align 3
28342 .globl foo
28343 .type foo,@function
28344 foo:
28345 .quad .LEfoo,.TOC.@tocbase,0
28346 .text
28347 .LEfoo:
28349 .size foo,.-.LEfoo
28351 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28352 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28353 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28354 gcc_cv_ld_no_dot_syms=yes
28356 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28361 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28362 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28364 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28369 $as_echo_n "checking linker large toc support... " >&6; }
28370 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28371 $as_echo_n "(cached) " >&6
28372 else
28373 gcc_cv_ld_large_toc=no
28374 if test x"$ld_is_gold" = xyes; then
28375 gcc_cv_ld_large_toc=yes
28376 elif test $in_tree_ld = yes ; then
28377 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
28378 gcc_cv_ld_large_toc=yes
28380 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28381 cat > conftest.s <<EOF
28382 .section ".tbss","awT",@nobits
28383 .align 3
28384 ie0: .space 8
28385 .global _start
28386 .text
28387 _start:
28388 addis 9,13,ie0@got@tprel@ha
28389 ld 9,ie0@got@tprel@l(9)
28391 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28392 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28393 gcc_cv_ld_large_toc=yes
28395 rm -f conftest conftest.o conftest.s
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28400 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28401 if test x"$gcc_cv_ld_large_toc" = xyes; then
28403 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28408 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28409 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28410 $as_echo_n "(cached) " >&6
28411 else
28412 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28413 cat > conftest.s <<EOF
28414 .global _start
28415 .text
28416 _start:
28417 addis 9,2,x@got@ha
28418 .section .data.rel.ro,"aw",@progbits
28419 .p2align 16
28420 .space 32768
28421 x: .quad .TOC.
28423 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28424 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28425 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)) }'`
28427 rm -f conftest conftest.o conftest.s
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28432 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28433 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28435 cat >>confdefs.h <<_ACEOF
28436 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28437 _ACEOF
28441 esac
28443 case "$target" in
28444 *-*-aix*)
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28446 $as_echo_n "checking linker large toc support... " >&6; }
28447 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28448 $as_echo_n "(cached) " >&6
28449 else
28450 gcc_cv_ld_large_toc=no
28451 if test x$gcc_cv_as != x ; then
28452 cat > conftest.s <<EOF
28453 .toc
28454 LC..1:
28455 .tc a[TC],a[RW]
28456 .extern a[RW]
28457 .csect .text[PR]
28458 .largetoctest:
28459 addis 9,LC..1@u(2)
28460 ld 3,LC..1@l(9)
28462 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28463 gcc_cv_ld_large_toc=yes
28465 rm -f conftest conftest.o conftest.s
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28470 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28471 if test x"$gcc_cv_ld_large_toc" = xyes; then
28473 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28477 esac
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28480 $as_echo_n "checking linker --build-id support... " >&6; }
28481 if test "${gcc_cv_ld_buildid+set}" = set; then :
28482 $as_echo_n "(cached) " >&6
28483 else
28484 gcc_cv_ld_buildid=no
28485 if test $in_tree_ld = yes ; then
28486 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28487 "$gcc_cv_gld_minor_version" -ge 18 -o \
28488 "$gcc_cv_gld_major_version" -gt 2 \
28489 && test $in_tree_ld_is_elf = yes; then
28490 gcc_cv_ld_buildid=yes
28492 elif test x$gcc_cv_ld != x; then
28493 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28494 gcc_cv_ld_buildid=yes
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28499 $as_echo "$gcc_cv_ld_buildid" >&6; }
28500 if test x"$gcc_cv_ld_buildid" = xyes; then
28502 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28506 # Check whether --enable-linker-build-id was given.
28507 if test "${enable_linker_build_id+set}" = set; then :
28508 enableval=$enable_linker_build_id;
28509 else
28510 enable_linker_build_id=no
28514 if test x"$enable_linker_build_id" = xyes; then
28515 if test x"$gcc_cv_ld_buildid" = xyes; then
28517 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28519 else
28520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28521 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28525 # In binutils 2.21, GNU ld gained support for new emulations fully
28526 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28528 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28529 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28530 $as_echo_n "(cached) " >&6
28531 else
28532 gcc_cv_ld_sol2_emulation=no
28533 if test $in_tree_ld = yes ; then
28534 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28535 "$gcc_cv_gld_minor_version" -ge 21 -o \
28536 "$gcc_cv_gld_major_version" -gt 2 \
28537 && test $in_tree_ld_is_elf = yes; then
28538 gcc_cv_ld_sol2_emulation=yes
28540 elif test x$gcc_cv_ld != x; then
28541 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28542 grep _sol2 > /dev/null; then
28543 gcc_cv_ld_sol2_emulation=yes
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28548 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28549 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28551 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28556 $as_echo_n "checking linker --sysroot support... " >&6; }
28557 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28558 $as_echo_n "(cached) " >&6
28559 else
28560 gcc_cv_ld_sysroot=no
28561 if test $in_tree_ld = yes ; then
28562 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
28563 gcc_cv_ld_sysroot=yes
28565 elif test x$gcc_cv_ld != x; then
28566 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28567 gcc_cv_ld_sysroot=yes
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28572 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28573 if test x"$gcc_cv_ld_sysroot" = xyes; then
28575 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28579 case $target in
28580 *-*-solaris2*)
28581 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28583 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28584 if test "${gcc_cv_solaris_crts+set}" = set; then :
28585 $as_echo_n "(cached) " >&6
28586 else
28587 gcc_cv_solaris_crts=no
28588 if test x$host != x$target; then
28589 if test "x$with_sysroot" = xyes; then
28590 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28591 else
28592 target_sysroot="${with_sysroot}"
28595 target_libdir="$target_sysroot/usr/lib"
28596 # At the time they were added, gcrt1.o became a symlink for backwards
28597 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28598 case $target in
28599 i?86-*-solaris2* | x86_64-*-solaris2*)
28600 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28602 sparc*-*-solaris2*)
28603 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28605 esac
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28608 $as_echo "$gcc_cv_solaris_crts" >&6; }
28610 esac
28611 if test x$gcc_cv_solaris_crts = xyes; then
28613 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28617 # Test for stack protector support in target C library.
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28619 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28620 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28621 $as_echo_n "(cached) " >&6
28622 else
28623 gcc_cv_libc_provides_ssp=no
28624 case "$target" in
28625 *-*-musl*)
28626 # All versions of musl provide stack protector
28627 gcc_cv_libc_provides_ssp=yes;;
28628 *-*-linux* | *-*-kfreebsd*-gnu)
28629 # glibc 2.4 and later provides __stack_chk_fail and
28630 # either __stack_chk_guard, or TLS access to stack guard canary.
28632 if test $glibc_version_major -gt 2 \
28633 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28634 gcc_cv_libc_provides_ssp=yes
28635 else
28637 if test -f $target_header_dir/features.h \
28638 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28639 $target_header_dir/features.h > /dev/null; then
28640 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28641 $target_header_dir/features.h > /dev/null && \
28642 test -f $target_header_dir/bits/uClibc_config.h && \
28643 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28644 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28645 gcc_cv_libc_provides_ssp=yes
28647 # all versions of Bionic support stack protector
28648 elif test -f $target_header_dir/sys/cdefs.h \
28649 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28650 $target_header_dir/sys/cdefs.h > /dev/null; then
28651 gcc_cv_libc_provides_ssp=yes
28655 *-*-gnu*)
28656 # Avoid complicated tests (see
28657 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28658 # simply assert that glibc does provide this, which is true for all
28659 # realistically usable GNU/Hurd configurations.
28660 # All supported versions of musl provide it as well
28661 gcc_cv_libc_provides_ssp=yes;;
28662 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28663 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28664 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28665 gcc_cv_libc_provides_ssp=yes
28666 else
28667 echo "no __stack_chk_fail on this target"
28671 *) gcc_cv_libc_provides_ssp=no ;;
28672 esac
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28675 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28677 if test x$gcc_cv_libc_provides_ssp = xyes; then
28679 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28683 # Check whether --enable-default-ssp was given.
28684 # Check whether --enable-default-ssp was given.
28685 if test "${enable_default_ssp+set}" = set; then :
28686 enableval=$enable_default_ssp;
28687 if test x$gcc_cv_libc_provides_ssp = xyes; then
28688 case "$target" in
28689 ia64*-*-*) enable_default_ssp=no ;;
28690 *) enable_default_ssp=$enableval ;;
28691 esac
28692 else
28693 enable_default_ssp=no
28695 else
28696 enable_default_ssp=no
28699 if test x$enable_default_ssp = xyes ; then
28701 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28706 # Test for <sys/sdt.h> on the target.
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28709 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28710 have_sys_sdt_h=no
28711 if test -f $target_header_dir/sys/sdt.h; then
28712 have_sys_sdt_h=yes
28714 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28718 $as_echo "$have_sys_sdt_h" >&6; }
28720 # Check if TFmode long double should be used by default or not.
28721 # Some glibc targets used DFmode long double, but with glibc 2.4
28722 # and later they can use TFmode.
28723 case "$target" in
28724 powerpc*-*-linux* | \
28725 sparc*-*-linux* | \
28726 s390*-*-linux* | \
28727 alpha*-*-linux*)
28729 # Check whether --with-long-double-128 was given.
28730 if test "${with_long_double_128+set}" = set; then :
28731 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28732 else
28734 if test $glibc_version_major -gt 2 \
28735 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28736 gcc_cv_target_ldbl128=yes
28737 else
28739 gcc_cv_target_ldbl128=no
28740 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28741 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28742 && gcc_cv_target_ldbl128=yes
28748 esac
28749 if test x$gcc_cv_target_ldbl128 = xyes; then
28751 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28755 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28756 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28757 gcc_cv_libc_provides_hwcap_in_tcb=no
28758 case "$target" in
28759 powerpc*-*-linux*)
28761 if test $glibc_version_major -gt 2 \
28762 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28763 gcc_cv_libc_provides_hwcap_in_tcb=yes
28766 esac
28767 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28769 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28774 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28775 gcc_cv_target_dl_iterate_phdr=unknown
28776 case "$target" in
28777 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28778 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28779 # libdl there, both complicating its use and breaking compatibility
28780 # between Solaris 10 updates.
28781 *-*-solaris2.1[1-9]*)
28782 # <link.h> needs both a dl_iterate_phdr declaration and support for
28783 # compilation with largefile support.
28784 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28785 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28786 gcc_cv_target_dl_iterate_phdr=yes
28787 else
28788 gcc_cv_target_dl_iterate_phdr=no
28791 *-*-dragonfly* | *-*-freebsd*)
28792 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28793 gcc_cv_target_dl_iterate_phdr=yes
28794 else
28795 gcc_cv_target_dl_iterate_phdr=no
28798 *-linux-musl*)
28799 gcc_cv_target_dl_iterate_phdr=yes
28801 esac
28803 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28805 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28809 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28811 # We no longer support different GC mechanisms. Emit an error if
28812 # the user configures with --with-gc.
28814 # Check whether --with-gc was given.
28815 if test "${with_gc+set}" = set; then :
28816 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28820 # Libraries to use on the host. This will normally be set by the top
28821 # level Makefile. Here we simply capture the value for our Makefile.
28822 if test -z "${HOST_LIBS+set}"; then
28823 HOST_LIBS=
28827 # Use the system's zlib library.
28829 # Use the system's zlib library.
28830 zlibdir="-L\$(top_builddir)/../zlib"
28831 zlibinc="-I\$(top_srcdir)/../zlib"
28833 # Check whether --with-system-zlib was given.
28834 if test "${with_system_zlib+set}" = set; then :
28835 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28836 zlibdir=
28837 zlibinc=
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28848 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28849 # Check whether --enable-maintainer-mode was given.
28850 if test "${enable_maintainer_mode+set}" = set; then :
28851 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28852 else
28853 maintainer_mode=no
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28858 $as_echo "$maintainer_mode" >&6; }
28860 if test "$maintainer_mode" = "yes"; then
28861 MAINT=''
28862 else
28863 MAINT='#'
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28868 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28869 # Check whether --enable-link-mutex was given.
28870 if test "${enable_link_mutex+set}" = set; then :
28871 enableval=$enable_link_mutex; do_link_mutex=$enableval
28872 else
28873 do_link_mutex=no
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28877 $as_echo "$do_link_mutex" >&6; }
28879 if test "$do_link_mutex" = "yes"; then
28880 DO_LINK_MUTEX=true
28881 else
28882 DO_LINK_MUTEX=false
28886 # --------------
28887 # Language hooks
28888 # --------------
28890 # Make empty files to contain the specs and options for each language.
28891 # Then add #include lines to for a compiler that has specs and/or options.
28893 subdirs=
28894 lang_opt_files=
28895 lang_specs_files=
28896 lang_tree_files=
28897 # These (without "all_") are set in each config-lang.in.
28898 # `language' must be a single word so is spelled singularly.
28899 all_languages=
28900 all_compilers=
28901 all_outputs='Makefile'
28902 # List of language makefile fragments.
28903 all_lang_makefrags=
28904 # Additional files for gengtype
28905 all_gtfiles="$target_gtfiles"
28907 # These are the languages that are set in --enable-languages,
28908 # and are available in the GCC tree.
28909 all_selected_languages=
28911 # Add the language fragments.
28912 # Languages are added via two mechanisms. Some information must be
28913 # recorded in makefile variables, these are defined in config-lang.in.
28914 # We accumulate them and plug them into the main Makefile.
28915 # The other mechanism is a set of hooks for each of the main targets
28916 # like `clean', `install', etc.
28918 language_hooks="Make-hooks"
28920 for lang in ${srcdir}/*/config-lang.in
28922 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28924 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28925 if test "x$lang_alias" = x
28926 then
28927 echo "$lang doesn't set \$language." 1>&2
28928 exit 1
28930 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28931 subdirs="$subdirs $subdir"
28933 # $gcc_subdir is where the gcc integration files are to be found
28934 # for a language, both for internal compiler purposes (compiler
28935 # sources implementing front-end to GCC tree converters), and for
28936 # build infrastructure purposes (Make-lang.in, etc.)
28938 # This will be <subdir> (relative to $srcdir) if a line like
28939 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28940 # is found in <langdir>/config-lang.in, and will remain <langdir>
28941 # otherwise.
28943 # Except for the language alias (fetched above), the regular
28944 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28945 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28946 # only this and the language alias.
28948 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28949 if [ "$gcc_subdir" = "" ]; then
28950 gcc_subdir="$subdir"
28953 case ",$enable_languages," in
28954 *,$lang_alias,*)
28955 all_selected_languages="$all_selected_languages $lang_alias"
28956 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28957 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28960 esac
28962 language=
28963 boot_language=
28964 compilers=
28965 outputs=
28966 gtfiles=
28967 subdir_requires=
28968 . ${srcdir}/$gcc_subdir/config-lang.in
28969 if test "x$language" = x
28970 then
28971 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28972 exit 1
28975 ok=:
28976 case ",$enable_languages," in
28977 *,$lang_alias,*) ;;
28979 for i in $subdir_requires; do
28980 test -f "${srcdir}/$i/config-lang.in" && continue
28981 ok=false
28982 break
28983 done
28985 esac
28986 $ok || continue
28988 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28989 if test -f $srcdir/$gcc_subdir/lang.opt; then
28990 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28991 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28993 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28994 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28996 all_languages="$all_languages $language"
28997 all_compilers="$all_compilers $compilers"
28998 all_outputs="$all_outputs $outputs"
28999 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29000 case ",$enable_languages," in
29001 *,lto,*)
29003 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29005 enable_lto=yes
29008 *) ;;
29009 esac
29010 done
29012 check_languages=
29013 for language in $all_selected_languages
29015 check_languages="$check_languages check-$language"
29016 done
29018 # We link each language in with a set of hooks, reached indirectly via
29019 # lang.${target}. Only do so for selected languages.
29021 rm -f Make-hooks
29022 touch Make-hooks
29023 target_list="all.cross start.encap rest.encap tags \
29024 install-common install-man install-info install-pdf install-html dvi \
29025 pdf html uninstall info man srcextra srcman srcinfo \
29026 mostlyclean clean distclean maintainer-clean install-plugin"
29028 for t in $target_list
29031 for lang in $all_selected_languages
29033 x="$x $lang.$t"
29034 done
29035 echo "lang.$t: $x" >> Make-hooks
29036 done
29038 # --------
29039 # Option include files
29040 # --------
29042 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29043 option_includes="option-includes.mk"
29046 # --------
29047 # UNSORTED
29048 # --------
29050 # Create .gdbinit.
29052 echo "dir ." > .gdbinit
29053 echo "dir ${srcdir}" >> .gdbinit
29054 if test x$gdb_needs_out_file_path = xyes
29055 then
29056 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29058 if test "x$subdirs" != x; then
29059 for s in $subdirs
29061 echo "dir ${srcdir}/$s" >> .gdbinit
29062 done
29064 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29065 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29067 # Put a breakpoint on __asan_report_error to help with debugging buffer
29068 # overflow.
29069 case "$CFLAGS" in
29070 *-fsanitize=address*)
29071 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29073 esac
29075 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29079 # Find a directory in which to install a shared libgcc.
29081 # Check whether --enable-version-specific-runtime-libs was given.
29082 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29083 enableval=$enable_version_specific_runtime_libs;
29087 # Substitute configuration variables
29150 # Echo link setup.
29151 if test x${build} = x${host} ; then
29152 if test x${host} = x${target} ; then
29153 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29154 else
29155 echo "Links are now set up to build a cross-compiler" 1>&2
29156 echo " from ${host} to ${target}." 1>&2
29158 else
29159 if test x${host} = x${target} ; then
29160 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29161 echo " for ${target}." 1>&2
29162 else
29163 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29164 echo " from ${host} to ${target}." 1>&2
29173 if test "x${ISLLIBS}" != "x" ; then
29175 $as_echo "#define HAVE_isl 1" >>confdefs.h
29179 # Check whether isl_options_set_schedule_serialize_sccs is available;
29180 # it's new in isl 0.15.
29181 if test "x${ISLLIBS}" != "x" ; then
29182 saved_CXXFLAGS="$CXXFLAGS"
29183 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29184 saved_LIBS="$LIBS"
29185 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29188 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29190 /* end confdefs.h. */
29191 #include <isl/schedule.h>
29193 main ()
29195 isl_options_set_schedule_serialize_sccs (NULL, 0);
29197 return 0;
29199 _ACEOF
29200 if ac_fn_cxx_try_link "$LINENO"; then :
29201 ac_has_isl_options_set_schedule_serialize_sccs=yes
29202 else
29203 ac_has_isl_options_set_schedule_serialize_sccs=no
29205 rm -f core conftest.err conftest.$ac_objext \
29206 conftest$ac_exeext conftest.$ac_ext
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29208 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29210 LIBS="$saved_LIBS"
29211 CXXFLAGS="$saved_CXXFLAGS"
29213 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29215 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29220 # Check for plugin support
29221 # Check whether --enable-plugin was given.
29222 if test "${enable_plugin+set}" = set; then :
29223 enableval=$enable_plugin; enable_plugin=$enableval
29224 else
29225 enable_plugin=yes; default_plugin=yes
29229 pluginlibs=
29231 case "${host}" in
29232 *-*-darwin*)
29233 if test x$build = x$host; then
29234 export_sym_check="nm${exeext} -g"
29235 elif test x$host = x$target; then
29236 export_sym_check="$gcc_cv_nm -g"
29237 else
29238 export_sym_check=
29242 if test x$build = x$host; then
29243 export_sym_check="objdump${exeext} -T"
29244 elif test x$host = x$target; then
29245 export_sym_check="$gcc_cv_objdump -T"
29246 else
29247 export_sym_check=
29250 esac
29252 if test x"$enable_plugin" = x"yes"; then
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29255 $as_echo_n "checking for exported symbols... " >&6; }
29256 if test "x$export_sym_check" != x; then
29257 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29258 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29259 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29260 : # No need to use a flag
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29262 $as_echo "yes" >&6; }
29263 else
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29265 $as_echo "yes" >&6; }
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29267 $as_echo_n "checking for -rdynamic... " >&6; }
29268 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29269 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29270 plugin_rdynamic=yes
29271 pluginlibs="-rdynamic"
29272 else
29273 plugin_rdynamic=no
29274 enable_plugin=no
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29277 $as_echo "$plugin_rdynamic" >&6; }
29279 else
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29281 $as_echo "unable to check" >&6; }
29284 # Check -ldl
29285 saved_LIBS="$LIBS"
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29287 $as_echo_n "checking for library containing dlopen... " >&6; }
29288 if test "${ac_cv_search_dlopen+set}" = set; then :
29289 $as_echo_n "(cached) " >&6
29290 else
29291 ac_func_search_save_LIBS=$LIBS
29292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29293 /* end confdefs.h. */
29295 /* Override any GCC internal prototype to avoid an error.
29296 Use char because int might match the return type of a GCC
29297 builtin and then its argument prototype would still apply. */
29298 #ifdef __cplusplus
29299 extern "C"
29300 #endif
29301 char dlopen ();
29303 main ()
29305 return dlopen ();
29307 return 0;
29309 _ACEOF
29310 for ac_lib in '' dl; do
29311 if test -z "$ac_lib"; then
29312 ac_res="none required"
29313 else
29314 ac_res=-l$ac_lib
29315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29317 if ac_fn_cxx_try_link "$LINENO"; then :
29318 ac_cv_search_dlopen=$ac_res
29320 rm -f core conftest.err conftest.$ac_objext \
29321 conftest$ac_exeext
29322 if test "${ac_cv_search_dlopen+set}" = set; then :
29323 break
29325 done
29326 if test "${ac_cv_search_dlopen+set}" = set; then :
29328 else
29329 ac_cv_search_dlopen=no
29331 rm conftest.$ac_ext
29332 LIBS=$ac_func_search_save_LIBS
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29335 $as_echo "$ac_cv_search_dlopen" >&6; }
29336 ac_res=$ac_cv_search_dlopen
29337 if test "$ac_res" != no; then :
29338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29342 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29343 pluginlibs="$pluginlibs -ldl"
29345 LIBS="$saved_LIBS"
29347 # Check that we can build shared objects with -fPIC -shared
29348 saved_LDFLAGS="$LDFLAGS"
29349 saved_CFLAGS="$CFLAGS"
29350 case "${host}" in
29351 *-*-darwin*)
29352 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29353 CFLAGS="$CFLAGS -fPIC"
29354 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29357 CFLAGS="$CFLAGS -fPIC"
29358 LDFLAGS="$LDFLAGS -fPIC -shared"
29360 esac
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29362 $as_echo_n "checking for -fPIC -shared... " >&6; }
29363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29364 /* end confdefs.h. */
29365 extern int X;
29367 main ()
29369 return X == 0;
29371 return 0;
29373 _ACEOF
29374 if ac_fn_cxx_try_link "$LINENO"; then :
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29376 $as_echo "yes" >&6; }; have_pic_shared=yes
29377 else
29378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29379 $as_echo "no" >&6; }; have_pic_shared=no
29381 rm -f core conftest.err conftest.$ac_objext \
29382 conftest$ac_exeext conftest.$ac_ext
29383 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29384 pluginlibs=
29385 enable_plugin=no
29387 LDFLAGS="$saved_LDFLAGS"
29388 CFLAGS="$saved_CFLAGS"
29390 # If plugin support had been requested but not available, fail.
29391 if test x"$enable_plugin" = x"no" ; then
29392 if test x"$default_plugin" != x"yes"; then
29393 as_fn_error "
29394 Building GCC with plugin support requires a host that supports
29395 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29402 if test x"$enable_plugin" = x"yes"; then
29404 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29409 # Enable --enable-host-shared
29410 # Check whether --enable-host-shared was given.
29411 if test "${enable_host_shared+set}" = set; then :
29412 enableval=$enable_host_shared; PICFLAG=-fPIC
29413 else
29414 PICFLAG=
29421 # Check whether --enable-libquadmath-support was given.
29422 if test "${enable_libquadmath_support+set}" = set; then :
29423 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29424 else
29425 ENABLE_LIBQUADMATH_SUPPORT=yes
29428 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29430 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29435 # Specify what hash style to use by default.
29437 # Check whether --with-linker-hash-style was given.
29438 if test "${with_linker_hash_style+set}" = set; then :
29439 withval=$with_linker_hash_style; case x"$withval" in
29440 xsysv)
29441 LINKER_HASH_STYLE=sysv
29443 xgnu)
29444 LINKER_HASH_STYLE=gnu
29446 xboth)
29447 LINKER_HASH_STYLE=both
29450 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29452 esac
29453 else
29454 LINKER_HASH_STYLE=''
29457 if test x"${LINKER_HASH_STYLE}" != x; then
29459 cat >>confdefs.h <<_ACEOF
29460 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29461 _ACEOF
29465 # Specify what should be the default of -fdiagnostics-color option.
29467 # Check whether --with-diagnostics-color was given.
29468 if test "${with_diagnostics_color+set}" = set; then :
29469 withval=$with_diagnostics_color; case x"$withval" in
29470 xnever)
29471 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29473 xauto)
29474 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29476 xauto-if-env)
29477 DIAGNOSTICS_COLOR_DEFAULT=-1
29479 xalways)
29480 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29483 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29485 esac
29486 else
29487 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29491 cat >>confdefs.h <<_ACEOF
29492 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29493 _ACEOF
29496 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29497 # of jit/jit-playback.c.
29498 cat > gcc-driver-name.h <<EOF
29499 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29502 # Check whether --enable-default-pie was given.
29503 # Check whether --enable-default-pie was given.
29504 if test "${enable_default_pie+set}" = set; then :
29505 enableval=$enable_default_pie; enable_default_pie=$enableval
29506 else
29507 enable_default_pie=no
29510 if test x$enable_default_pie = xyes ; then
29512 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29517 # Check if -fno-PIE works.
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29519 $as_echo_n "checking for -fno-PIE option... " >&6; }
29520 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29521 $as_echo_n "(cached) " >&6
29522 else
29523 saved_CXXFLAGS="$CXXFLAGS"
29524 CXXFLAGS="$CXXFLAGS -fno-PIE"
29525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29526 /* end confdefs.h. */
29527 int main(void) {return 0;}
29528 _ACEOF
29529 if ac_fn_cxx_try_compile "$LINENO"; then :
29530 gcc_cv_c_no_fpie=yes
29531 else
29532 gcc_cv_c_no_fpie=no
29534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29535 CXXFLAGS="$saved_CXXFLAGS"
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29538 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29539 if test "$gcc_cv_c_no_fpie" = "yes"; then
29540 NO_PIE_CFLAGS="-fno-PIE"
29544 # Check if -no-pie works.
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29546 $as_echo_n "checking for -no-pie option... " >&6; }
29547 if test "${gcc_cv_no_pie+set}" = set; then :
29548 $as_echo_n "(cached) " >&6
29549 else
29550 saved_LDFLAGS="$LDFLAGS"
29551 LDFLAGS="$LDFLAGS -no-pie"
29552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29553 /* end confdefs.h. */
29554 int main(void) {return 0;}
29555 _ACEOF
29556 if ac_fn_cxx_try_link "$LINENO"; then :
29557 gcc_cv_no_pie=yes
29558 else
29559 gcc_cv_no_pie=no
29561 rm -f core conftest.err conftest.$ac_objext \
29562 conftest$ac_exeext conftest.$ac_ext
29563 LDFLAGS="$saved_LDFLAGS"
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29566 $as_echo "$gcc_cv_no_pie" >&6; }
29567 if test "$gcc_cv_no_pie" = "yes"; then
29568 NO_PIE_FLAG="-no-pie"
29572 # Check linker supports '-z bndplt'
29573 ld_bndplt_support=no
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29575 $as_echo_n "checking linker -z bndplt option... " >&6; }
29576 if test x"$ld_is_gold" = xno; then
29577 if test $in_tree_ld = yes ; then
29578 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
29579 ld_bndplt_support=yes
29581 elif test x$gcc_cv_ld != x; then
29582 # Check if linker supports -a bndplt option
29583 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29584 ld_bndplt_support=yes
29588 if test x"$ld_bndplt_support" = xyes; then
29590 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29594 $as_echo "$ld_bndplt_support" >&6; }
29596 # Configure the subdirectories
29597 # AC_CONFIG_SUBDIRS($subdirs)
29599 # Create the Makefile
29600 # and configure language subdirectories
29601 ac_config_files="$ac_config_files $all_outputs"
29604 ac_config_commands="$ac_config_commands default"
29606 cat >confcache <<\_ACEOF
29607 # This file is a shell script that caches the results of configure
29608 # tests run on this system so they can be shared between configure
29609 # scripts and configure runs, see configure's option --config-cache.
29610 # It is not useful on other systems. If it contains results you don't
29611 # want to keep, you may remove or edit it.
29613 # config.status only pays attention to the cache file if you give it
29614 # the --recheck option to rerun configure.
29616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29618 # following values.
29620 _ACEOF
29622 # The following way of writing the cache mishandles newlines in values,
29623 # but we know of no workaround that is simple, portable, and efficient.
29624 # So, we kill variables containing newlines.
29625 # Ultrix sh set writes to stderr and can't be redirected directly,
29626 # and sets the high bit in the cache file unless we assign to the vars.
29628 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29629 eval ac_val=\$$ac_var
29630 case $ac_val in #(
29631 *${as_nl}*)
29632 case $ac_var in #(
29633 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29634 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29635 esac
29636 case $ac_var in #(
29637 _ | IFS | as_nl) ;; #(
29638 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29639 *) { eval $ac_var=; unset $ac_var;} ;;
29640 esac ;;
29641 esac
29642 done
29644 (set) 2>&1 |
29645 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29646 *${as_nl}ac_space=\ *)
29647 # `set' does not quote correctly, so add quotes: double-quote
29648 # substitution turns \\\\ into \\, and sed turns \\ into \.
29649 sed -n \
29650 "s/'/'\\\\''/g;
29651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29652 ;; #(
29654 # `set' quotes correctly as required by POSIX, so do not add quotes.
29655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29657 esac |
29658 sort
29660 sed '
29661 /^ac_cv_env_/b end
29662 t clear
29663 :clear
29664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29665 t end
29666 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29667 :end' >>confcache
29668 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29669 if test -w "$cache_file"; then
29670 test "x$cache_file" != "x/dev/null" &&
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29672 $as_echo "$as_me: updating cache $cache_file" >&6;}
29673 cat confcache >$cache_file
29674 else
29675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29676 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29679 rm -f confcache
29681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29682 # Let make expand exec_prefix.
29683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29685 DEFS=-DHAVE_CONFIG_H
29687 ac_libobjs=
29688 ac_ltlibobjs=
29689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29690 # 1. Remove the extension, and $U if already installed.
29691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29692 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29694 # will be set to the directory where LIBOBJS objects are built.
29695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29697 done
29698 LIBOBJS=$ac_libobjs
29700 LTLIBOBJS=$ac_ltlibobjs
29705 : ${CONFIG_STATUS=./config.status}
29706 ac_write_fail=0
29707 ac_clean_files_save=$ac_clean_files
29708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29710 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29711 as_write_fail=0
29712 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29713 #! $SHELL
29714 # Generated by $as_me.
29715 # Run this file to recreate the current configuration.
29716 # Compiler output produced by configure, useful for debugging
29717 # configure, is in config.log if it exists.
29719 debug=false
29720 ac_cs_recheck=false
29721 ac_cs_silent=false
29723 SHELL=\${CONFIG_SHELL-$SHELL}
29724 export SHELL
29725 _ASEOF
29726 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29727 ## -------------------- ##
29728 ## M4sh Initialization. ##
29729 ## -------------------- ##
29731 # Be more Bourne compatible
29732 DUALCASE=1; export DUALCASE # for MKS sh
29733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29734 emulate sh
29735 NULLCMD=:
29736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29737 # is contrary to our usage. Disable this feature.
29738 alias -g '${1+"$@"}'='"$@"'
29739 setopt NO_GLOB_SUBST
29740 else
29741 case `(set -o) 2>/dev/null` in #(
29742 *posix*) :
29743 set -o posix ;; #(
29744 *) :
29746 esac
29750 as_nl='
29752 export as_nl
29753 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29754 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29755 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29757 # Prefer a ksh shell builtin over an external printf program on Solaris,
29758 # but without wasting forks for bash or zsh.
29759 if test -z "$BASH_VERSION$ZSH_VERSION" \
29760 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29761 as_echo='print -r --'
29762 as_echo_n='print -rn --'
29763 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29764 as_echo='printf %s\n'
29765 as_echo_n='printf %s'
29766 else
29767 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29768 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29769 as_echo_n='/usr/ucb/echo -n'
29770 else
29771 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29772 as_echo_n_body='eval
29773 arg=$1;
29774 case $arg in #(
29775 *"$as_nl"*)
29776 expr "X$arg" : "X\\(.*\\)$as_nl";
29777 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29778 esac;
29779 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29781 export as_echo_n_body
29782 as_echo_n='sh -c $as_echo_n_body as_echo'
29784 export as_echo_body
29785 as_echo='sh -c $as_echo_body as_echo'
29788 # The user is always right.
29789 if test "${PATH_SEPARATOR+set}" != set; then
29790 PATH_SEPARATOR=:
29791 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29792 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29793 PATH_SEPARATOR=';'
29798 # IFS
29799 # We need space, tab and new line, in precisely that order. Quoting is
29800 # there to prevent editors from complaining about space-tab.
29801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29802 # splitting by setting IFS to empty value.)
29803 IFS=" "" $as_nl"
29805 # Find who we are. Look in the path if we contain no directory separator.
29806 case $0 in #((
29807 *[\\/]* ) as_myself=$0 ;;
29808 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29809 for as_dir in $PATH
29811 IFS=$as_save_IFS
29812 test -z "$as_dir" && as_dir=.
29813 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29814 done
29815 IFS=$as_save_IFS
29818 esac
29819 # We did not find ourselves, most probably we were run as `sh COMMAND'
29820 # in which case we are not to be found in the path.
29821 if test "x$as_myself" = x; then
29822 as_myself=$0
29824 if test ! -f "$as_myself"; then
29825 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29826 exit 1
29829 # Unset variables that we do not need and which cause bugs (e.g. in
29830 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29831 # suppresses any "Segmentation fault" message there. '((' could
29832 # trigger a bug in pdksh 5.2.14.
29833 for as_var in BASH_ENV ENV MAIL MAILPATH
29834 do eval test x\${$as_var+set} = xset \
29835 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29836 done
29837 PS1='$ '
29838 PS2='> '
29839 PS4='+ '
29841 # NLS nuisances.
29842 LC_ALL=C
29843 export LC_ALL
29844 LANGUAGE=C
29845 export LANGUAGE
29847 # CDPATH.
29848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29851 # as_fn_error ERROR [LINENO LOG_FD]
29852 # ---------------------------------
29853 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29854 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29855 # script with status $?, using 1 if that was 0.
29856 as_fn_error ()
29858 as_status=$?; test $as_status -eq 0 && as_status=1
29859 if test "$3"; then
29860 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29861 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29863 $as_echo "$as_me: error: $1" >&2
29864 as_fn_exit $as_status
29865 } # as_fn_error
29868 # as_fn_set_status STATUS
29869 # -----------------------
29870 # Set $? to STATUS, without forking.
29871 as_fn_set_status ()
29873 return $1
29874 } # as_fn_set_status
29876 # as_fn_exit STATUS
29877 # -----------------
29878 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29879 as_fn_exit ()
29881 set +e
29882 as_fn_set_status $1
29883 exit $1
29884 } # as_fn_exit
29886 # as_fn_unset VAR
29887 # ---------------
29888 # Portably unset VAR.
29889 as_fn_unset ()
29891 { eval $1=; unset $1;}
29893 as_unset=as_fn_unset
29894 # as_fn_append VAR VALUE
29895 # ----------------------
29896 # Append the text in VALUE to the end of the definition contained in VAR. Take
29897 # advantage of any shell optimizations that allow amortized linear growth over
29898 # repeated appends, instead of the typical quadratic growth present in naive
29899 # implementations.
29900 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29901 eval 'as_fn_append ()
29903 eval $1+=\$2
29905 else
29906 as_fn_append ()
29908 eval $1=\$$1\$2
29910 fi # as_fn_append
29912 # as_fn_arith ARG...
29913 # ------------------
29914 # Perform arithmetic evaluation on the ARGs, and store the result in the
29915 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29916 # must be portable across $(()) and expr.
29917 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29918 eval 'as_fn_arith ()
29920 as_val=$(( $* ))
29922 else
29923 as_fn_arith ()
29925 as_val=`expr "$@" || test $? -eq 1`
29927 fi # as_fn_arith
29930 if expr a : '\(a\)' >/dev/null 2>&1 &&
29931 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29932 as_expr=expr
29933 else
29934 as_expr=false
29937 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29938 as_basename=basename
29939 else
29940 as_basename=false
29943 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29944 as_dirname=dirname
29945 else
29946 as_dirname=false
29949 as_me=`$as_basename -- "$0" ||
29950 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29951 X"$0" : 'X\(//\)$' \| \
29952 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29953 $as_echo X/"$0" |
29954 sed '/^.*\/\([^/][^/]*\)\/*$/{
29955 s//\1/
29958 /^X\/\(\/\/\)$/{
29959 s//\1/
29962 /^X\/\(\/\).*/{
29963 s//\1/
29966 s/.*/./; q'`
29968 # Avoid depending upon Character Ranges.
29969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29972 as_cr_digits='0123456789'
29973 as_cr_alnum=$as_cr_Letters$as_cr_digits
29975 ECHO_C= ECHO_N= ECHO_T=
29976 case `echo -n x` in #(((((
29977 -n*)
29978 case `echo 'xy\c'` in
29979 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29980 xy) ECHO_C='\c';;
29981 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29982 ECHO_T=' ';;
29983 esac;;
29985 ECHO_N='-n';;
29986 esac
29988 rm -f conf$$ conf$$.exe conf$$.file
29989 if test -d conf$$.dir; then
29990 rm -f conf$$.dir/conf$$.file
29991 else
29992 rm -f conf$$.dir
29993 mkdir conf$$.dir 2>/dev/null
29995 if (echo >conf$$.file) 2>/dev/null; then
29996 if ln -s conf$$.file conf$$ 2>/dev/null; then
29997 as_ln_s='ln -s'
29998 # ... but there are two gotchas:
29999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30001 # In both cases, we have to default to `cp -p'.
30002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30003 as_ln_s='cp -p'
30004 elif ln conf$$.file conf$$ 2>/dev/null; then
30005 as_ln_s=ln
30006 else
30007 as_ln_s='cp -p'
30009 else
30010 as_ln_s='cp -p'
30012 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30013 rmdir conf$$.dir 2>/dev/null
30016 # as_fn_mkdir_p
30017 # -------------
30018 # Create "$as_dir" as a directory, including parents if necessary.
30019 as_fn_mkdir_p ()
30022 case $as_dir in #(
30023 -*) as_dir=./$as_dir;;
30024 esac
30025 test -d "$as_dir" || eval $as_mkdir_p || {
30026 as_dirs=
30027 while :; do
30028 case $as_dir in #(
30029 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30030 *) as_qdir=$as_dir;;
30031 esac
30032 as_dirs="'$as_qdir' $as_dirs"
30033 as_dir=`$as_dirname -- "$as_dir" ||
30034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30035 X"$as_dir" : 'X\(//\)[^/]' \| \
30036 X"$as_dir" : 'X\(//\)$' \| \
30037 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30038 $as_echo X"$as_dir" |
30039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30040 s//\1/
30043 /^X\(\/\/\)[^/].*/{
30044 s//\1/
30047 /^X\(\/\/\)$/{
30048 s//\1/
30051 /^X\(\/\).*/{
30052 s//\1/
30055 s/.*/./; q'`
30056 test -d "$as_dir" && break
30057 done
30058 test -z "$as_dirs" || eval "mkdir $as_dirs"
30059 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30062 } # as_fn_mkdir_p
30063 if mkdir -p . 2>/dev/null; then
30064 as_mkdir_p='mkdir -p "$as_dir"'
30065 else
30066 test -d ./-p && rmdir ./-p
30067 as_mkdir_p=false
30070 if test -x / >/dev/null 2>&1; then
30071 as_test_x='test -x'
30072 else
30073 if ls -dL / >/dev/null 2>&1; then
30074 as_ls_L_option=L
30075 else
30076 as_ls_L_option=
30078 as_test_x='
30079 eval sh -c '\''
30080 if test -d "$1"; then
30081 test -d "$1/.";
30082 else
30083 case $1 in #(
30084 -*)set "./$1";;
30085 esac;
30086 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30087 ???[sx]*):;;*)false;;esac;fi
30088 '\'' sh
30091 as_executable_p=$as_test_x
30093 # Sed expression to map a string onto a valid CPP name.
30094 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30096 # Sed expression to map a string onto a valid variable name.
30097 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30100 exec 6>&1
30101 ## ----------------------------------- ##
30102 ## Main body of $CONFIG_STATUS script. ##
30103 ## ----------------------------------- ##
30104 _ASEOF
30105 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30108 # Save the log message, to keep $0 and so on meaningful, and to
30109 # report actual input values of CONFIG_FILES etc. instead of their
30110 # values after options handling.
30111 ac_log="
30112 This file was extended by $as_me, which was
30113 generated by GNU Autoconf 2.64. Invocation command line was
30115 CONFIG_FILES = $CONFIG_FILES
30116 CONFIG_HEADERS = $CONFIG_HEADERS
30117 CONFIG_LINKS = $CONFIG_LINKS
30118 CONFIG_COMMANDS = $CONFIG_COMMANDS
30119 $ $0 $@
30121 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30124 _ACEOF
30126 case $ac_config_files in *"
30127 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30128 esac
30130 case $ac_config_headers in *"
30131 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30132 esac
30135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30136 # Files that config.status was made for.
30137 config_files="$ac_config_files"
30138 config_headers="$ac_config_headers"
30139 config_links="$ac_config_links"
30140 config_commands="$ac_config_commands"
30142 _ACEOF
30144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30145 ac_cs_usage="\
30146 \`$as_me' instantiates files and other configuration actions
30147 from templates according to the current configuration. Unless the files
30148 and actions are specified as TAGs, all are instantiated by default.
30150 Usage: $0 [OPTION]... [TAG]...
30152 -h, --help print this help, then exit
30153 -V, --version print version number and configuration settings, then exit
30154 -q, --quiet, --silent
30155 do not print progress messages
30156 -d, --debug don't remove temporary files
30157 --recheck update $as_me by reconfiguring in the same conditions
30158 --file=FILE[:TEMPLATE]
30159 instantiate the configuration file FILE
30160 --header=FILE[:TEMPLATE]
30161 instantiate the configuration header FILE
30163 Configuration files:
30164 $config_files
30166 Configuration headers:
30167 $config_headers
30169 Configuration links:
30170 $config_links
30172 Configuration commands:
30173 $config_commands
30175 Report bugs to the package provider."
30177 _ACEOF
30178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30179 ac_cs_version="\\
30180 config.status
30181 configured by $0, generated by GNU Autoconf 2.64,
30182 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30184 Copyright (C) 2009 Free Software Foundation, Inc.
30185 This config.status script is free software; the Free Software Foundation
30186 gives unlimited permission to copy, distribute and modify it."
30188 ac_pwd='$ac_pwd'
30189 srcdir='$srcdir'
30190 AWK='$AWK'
30191 test -n "\$AWK" || AWK=awk
30192 _ACEOF
30194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30195 # The default lists apply if the user does not specify any file.
30196 ac_need_defaults=:
30197 while test $# != 0
30199 case $1 in
30200 --*=*)
30201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30202 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30203 ac_shift=:
30206 ac_option=$1
30207 ac_optarg=$2
30208 ac_shift=shift
30210 esac
30212 case $ac_option in
30213 # Handling of the options.
30214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30215 ac_cs_recheck=: ;;
30216 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30217 $as_echo "$ac_cs_version"; exit ;;
30218 --debug | --debu | --deb | --de | --d | -d )
30219 debug=: ;;
30220 --file | --fil | --fi | --f )
30221 $ac_shift
30222 case $ac_optarg in
30223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30224 esac
30225 as_fn_append CONFIG_FILES " '$ac_optarg'"
30226 ac_need_defaults=false;;
30227 --header | --heade | --head | --hea )
30228 $ac_shift
30229 case $ac_optarg in
30230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30231 esac
30232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30233 ac_need_defaults=false;;
30234 --he | --h)
30235 # Conflict between --help and --header
30236 as_fn_error "ambiguous option: \`$1'
30237 Try \`$0 --help' for more information.";;
30238 --help | --hel | -h )
30239 $as_echo "$ac_cs_usage"; exit ;;
30240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30242 ac_cs_silent=: ;;
30244 # This is an error.
30245 -*) as_fn_error "unrecognized option: \`$1'
30246 Try \`$0 --help' for more information." ;;
30248 *) as_fn_append ac_config_targets " $1"
30249 ac_need_defaults=false ;;
30251 esac
30252 shift
30253 done
30255 ac_configure_extra_args=
30257 if $ac_cs_silent; then
30258 exec 6>/dev/null
30259 ac_configure_extra_args="$ac_configure_extra_args --silent"
30262 _ACEOF
30263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30264 if \$ac_cs_recheck; then
30265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30266 shift
30267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30268 CONFIG_SHELL='$SHELL'
30269 export CONFIG_SHELL
30270 exec "\$@"
30273 _ACEOF
30274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30275 exec 5>>config.log
30277 echo
30278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30279 ## Running $as_me. ##
30280 _ASBOX
30281 $as_echo "$ac_log"
30282 } >&5
30284 _ACEOF
30285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30287 # INIT-COMMANDS
30289 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30290 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30291 subdirs='$subdirs'
30293 _ACEOF
30295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30297 # Handling of arguments.
30298 for ac_config_target in $ac_config_targets
30300 case $ac_config_target in
30301 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30302 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30303 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30304 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30305 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30306 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30307 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30308 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30309 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30311 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30312 esac
30313 done
30316 # If the user did not use the arguments to specify the items to instantiate,
30317 # then the envvar interface is used. Set only those that are not.
30318 # We use the long form for the default assignment because of an extremely
30319 # bizarre bug on SunOS 4.1.3.
30320 if $ac_need_defaults; then
30321 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30322 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30323 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30324 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30327 # Have a temporary directory for convenience. Make it in the build tree
30328 # simply because there is no reason against having it here, and in addition,
30329 # creating and moving files from /tmp can sometimes cause problems.
30330 # Hook for its removal unless debugging.
30331 # Note that there is a small window in which the directory will not be cleaned:
30332 # after its creation but before its name has been assigned to `$tmp'.
30333 $debug ||
30335 tmp=
30336 trap 'exit_status=$?
30337 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30339 trap 'as_fn_exit 1' 1 2 13 15
30341 # Create a (secure) tmp directory for tmp files.
30344 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30345 test -n "$tmp" && test -d "$tmp"
30346 } ||
30348 tmp=./conf$$-$RANDOM
30349 (umask 077 && mkdir "$tmp")
30350 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30352 # Set up the scripts for CONFIG_FILES section.
30353 # No need to generate them if there are no CONFIG_FILES.
30354 # This happens for instance with `./config.status config.h'.
30355 if test -n "$CONFIG_FILES"; then
30357 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30358 ac_cs_awk_getline=:
30359 ac_cs_awk_pipe_init=
30360 ac_cs_awk_read_file='
30361 while ((getline aline < (F[key])) > 0)
30362 print(aline)
30363 close(F[key])'
30364 ac_cs_awk_pipe_fini=
30365 else
30366 ac_cs_awk_getline=false
30367 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30368 ac_cs_awk_read_file='
30369 print "|#_!!_#|"
30370 print "cat " F[key] " &&"
30371 '$ac_cs_awk_pipe_init
30372 # The final `:' finishes the AND list.
30373 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30375 ac_cr=`echo X | tr X '\015'`
30376 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30377 # But we know of no other shell where ac_cr would be empty at this
30378 # point, so we can use a bashism as a fallback.
30379 if test "x$ac_cr" = x; then
30380 eval ac_cr=\$\'\\r\'
30382 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30383 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30384 ac_cs_awk_cr='\r'
30385 else
30386 ac_cs_awk_cr=$ac_cr
30389 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30390 _ACEOF
30392 # Create commands to substitute file output variables.
30394 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30395 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30396 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30397 echo "_ACAWK" &&
30398 echo "_ACEOF"
30399 } >conf$$files.sh &&
30400 . ./conf$$files.sh ||
30401 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30402 rm -f conf$$files.sh
30405 echo "cat >conf$$subs.awk <<_ACEOF" &&
30406 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30407 echo "_ACEOF"
30408 } >conf$$subs.sh ||
30409 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30410 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30411 ac_delim='%!_!# '
30412 for ac_last_try in false false false false false :; do
30413 . ./conf$$subs.sh ||
30414 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30416 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30417 if test $ac_delim_n = $ac_delim_num; then
30418 break
30419 elif $ac_last_try; then
30420 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30421 else
30422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30424 done
30425 rm -f conf$$subs.sh
30427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30428 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30429 _ACEOF
30430 sed -n '
30432 s/^/S["/; s/!.*/"]=/
30435 s/^[^!]*!//
30436 :repl
30437 t repl
30438 s/'"$ac_delim"'$//
30439 t delim
30442 s/\(.\{148\}\).*/\1/
30443 t more1
30444 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30447 b repl
30448 :more1
30449 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30452 s/.\{148\}//
30453 t nl
30454 :delim
30456 s/\(.\{148\}\).*/\1/
30457 t more2
30458 s/["\\]/\\&/g; s/^/"/; s/$/"/
30461 :more2
30462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30465 s/.\{148\}//
30466 t delim
30467 ' <conf$$subs.awk | sed '
30468 /^[^""]/{
30470 s/\n//
30472 ' >>$CONFIG_STATUS || ac_write_fail=1
30473 rm -f conf$$subs.awk
30474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30475 _ACAWK
30476 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30477 for (key in S) S_is_set[key] = 1
30478 FS = "\a"
30479 \$ac_cs_awk_pipe_init
30482 line = $ 0
30483 nfields = split(line, field, "@")
30484 substed = 0
30485 len = length(field[1])
30486 for (i = 2; i < nfields; i++) {
30487 key = field[i]
30488 keylen = length(key)
30489 if (S_is_set[key]) {
30490 value = S[key]
30491 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30492 len += length(value) + length(field[++i])
30493 substed = 1
30494 } else
30495 len += 1 + keylen
30497 if (nfields == 3 && !substed) {
30498 key = field[2]
30499 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30500 \$ac_cs_awk_read_file
30501 next
30504 print line
30506 \$ac_cs_awk_pipe_fini
30507 _ACAWK
30508 _ACEOF
30509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30510 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30511 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30512 else
30514 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30515 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30516 _ACEOF
30518 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30519 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30520 # trailing colons and then remove the whole line if VPATH becomes empty
30521 # (actually we leave an empty line to preserve line numbers).
30522 if test "x$srcdir" = x.; then
30523 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30524 s/:*\$(srcdir):*/:/
30525 s/:*\${srcdir}:*/:/
30526 s/:*@srcdir@:*/:/
30527 s/^\([^=]*=[ ]*\):*/\1/
30528 s/:*$//
30529 s/^[^=]*=[ ]*$//
30533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30534 fi # test -n "$CONFIG_FILES"
30536 # Set up the scripts for CONFIG_HEADERS section.
30537 # No need to generate them if there are no CONFIG_HEADERS.
30538 # This happens for instance with `./config.status Makefile'.
30539 if test -n "$CONFIG_HEADERS"; then
30540 cat >"$tmp/defines.awk" <<\_ACAWK ||
30541 BEGIN {
30542 _ACEOF
30544 # Transform confdefs.h into an awk script `defines.awk', embedded as
30545 # here-document in config.status, that substitutes the proper values into
30546 # config.h.in to produce config.h.
30548 # Create a delimiter string that does not exist in confdefs.h, to ease
30549 # handling of long lines.
30550 ac_delim='%!_!# '
30551 for ac_last_try in false false :; do
30552 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30553 if test -z "$ac_t"; then
30554 break
30555 elif $ac_last_try; then
30556 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30557 else
30558 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30560 done
30562 # For the awk script, D is an array of macro values keyed by name,
30563 # likewise P contains macro parameters if any. Preserve backslash
30564 # newline sequences.
30566 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30567 sed -n '
30568 s/.\{148\}/&'"$ac_delim"'/g
30569 t rset
30570 :rset
30571 s/^[ ]*#[ ]*define[ ][ ]*/ /
30572 t def
30574 :def
30575 s/\\$//
30576 t bsnl
30577 s/["\\]/\\&/g
30578 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30579 D["\1"]=" \3"/p
30580 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30582 :bsnl
30583 s/["\\]/\\&/g
30584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30585 D["\1"]=" \3\\\\\\n"\\/p
30586 t cont
30587 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30588 t cont
30590 :cont
30592 s/.\{148\}/&'"$ac_delim"'/g
30593 t clear
30594 :clear
30595 s/\\$//
30596 t bsnlc
30597 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30599 :bsnlc
30600 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30601 b cont
30602 ' <confdefs.h | sed '
30603 s/'"$ac_delim"'/"\\\
30604 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30607 for (key in D) D_is_set[key] = 1
30608 FS = "\a"
30610 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30611 line = \$ 0
30612 split(line, arg, " ")
30613 if (arg[1] == "#") {
30614 defundef = arg[2]
30615 mac1 = arg[3]
30616 } else {
30617 defundef = substr(arg[1], 2)
30618 mac1 = arg[2]
30620 split(mac1, mac2, "(") #)
30621 macro = mac2[1]
30622 prefix = substr(line, 1, index(line, defundef) - 1)
30623 if (D_is_set[macro]) {
30624 # Preserve the white space surrounding the "#".
30625 print prefix "define", macro P[macro] D[macro]
30626 next
30627 } else {
30628 # Replace #undef with comments. This is necessary, for example,
30629 # in the case of _POSIX_SOURCE, which is predefined and required
30630 # on some systems where configure will not decide to define it.
30631 if (defundef == "undef") {
30632 print "/*", prefix defundef, macro, "*/"
30633 next
30637 { print }
30638 _ACAWK
30639 _ACEOF
30640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30641 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30642 fi # test -n "$CONFIG_HEADERS"
30645 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30646 shift
30647 for ac_tag
30649 case $ac_tag in
30650 :[FHLC]) ac_mode=$ac_tag; continue;;
30651 esac
30652 case $ac_mode$ac_tag in
30653 :[FHL]*:*);;
30654 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30655 :[FH]-) ac_tag=-:-;;
30656 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30657 esac
30658 ac_save_IFS=$IFS
30659 IFS=:
30660 set x $ac_tag
30661 IFS=$ac_save_IFS
30662 shift
30663 ac_file=$1
30664 shift
30666 case $ac_mode in
30667 :L) ac_source=$1;;
30668 :[FH])
30669 ac_file_inputs=
30670 for ac_f
30672 case $ac_f in
30673 -) ac_f="$tmp/stdin";;
30674 *) # Look for the file first in the build tree, then in the source tree
30675 # (if the path is not absolute). The absolute path cannot be DOS-style,
30676 # because $ac_f cannot contain `:'.
30677 test -f "$ac_f" ||
30678 case $ac_f in
30679 [\\/$]*) false;;
30680 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30681 esac ||
30682 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30683 esac
30684 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30685 as_fn_append ac_file_inputs " '$ac_f'"
30686 done
30688 # Let's still pretend it is `configure' which instantiates (i.e., don't
30689 # use $as_me), people would be surprised to read:
30690 # /* config.h. Generated by config.status. */
30691 configure_input='Generated from '`
30692 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30693 `' by configure.'
30694 if test x"$ac_file" != x-; then
30695 configure_input="$ac_file. $configure_input"
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30697 $as_echo "$as_me: creating $ac_file" >&6;}
30699 # Neutralize special characters interpreted by sed in replacement strings.
30700 case $configure_input in #(
30701 *\&* | *\|* | *\\* )
30702 ac_sed_conf_input=`$as_echo "$configure_input" |
30703 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30704 *) ac_sed_conf_input=$configure_input;;
30705 esac
30707 case $ac_tag in
30708 *:-:* | *:-) cat >"$tmp/stdin" \
30709 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30710 esac
30712 esac
30714 ac_dir=`$as_dirname -- "$ac_file" ||
30715 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30716 X"$ac_file" : 'X\(//\)[^/]' \| \
30717 X"$ac_file" : 'X\(//\)$' \| \
30718 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30719 $as_echo X"$ac_file" |
30720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30721 s//\1/
30724 /^X\(\/\/\)[^/].*/{
30725 s//\1/
30728 /^X\(\/\/\)$/{
30729 s//\1/
30732 /^X\(\/\).*/{
30733 s//\1/
30736 s/.*/./; q'`
30737 as_dir="$ac_dir"; as_fn_mkdir_p
30738 ac_builddir=.
30740 case "$ac_dir" in
30741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30744 # A ".." for each directory in $ac_dir_suffix.
30745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30746 case $ac_top_builddir_sub in
30747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30749 esac ;;
30750 esac
30751 ac_abs_top_builddir=$ac_pwd
30752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30753 # for backward compatibility:
30754 ac_top_builddir=$ac_top_build_prefix
30756 case $srcdir in
30757 .) # We are building in place.
30758 ac_srcdir=.
30759 ac_top_srcdir=$ac_top_builddir_sub
30760 ac_abs_top_srcdir=$ac_pwd ;;
30761 [\\/]* | ?:[\\/]* ) # Absolute name.
30762 ac_srcdir=$srcdir$ac_dir_suffix;
30763 ac_top_srcdir=$srcdir
30764 ac_abs_top_srcdir=$srcdir ;;
30765 *) # Relative name.
30766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30767 ac_top_srcdir=$ac_top_build_prefix$srcdir
30768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30769 esac
30770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30773 case $ac_mode in
30776 # CONFIG_FILE
30779 _ACEOF
30781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30782 # If the template does not know about datarootdir, expand it.
30783 # FIXME: This hack should be removed a few years after 2.60.
30784 ac_datarootdir_hack=; ac_datarootdir_seen=
30785 ac_sed_dataroot='
30786 /datarootdir/ {
30790 /@datadir@/p
30791 /@docdir@/p
30792 /@infodir@/p
30793 /@localedir@/p
30794 /@mandir@/p'
30795 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30796 *datarootdir*) ac_datarootdir_seen=yes;;
30797 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30799 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30800 _ACEOF
30801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30802 ac_datarootdir_hack='
30803 s&@datadir@&$datadir&g
30804 s&@docdir@&$docdir&g
30805 s&@infodir@&$infodir&g
30806 s&@localedir@&$localedir&g
30807 s&@mandir@&$mandir&g
30808 s&\\\${datarootdir}&$datarootdir&g' ;;
30809 esac
30810 _ACEOF
30812 # Neutralize VPATH when `$srcdir' = `.'.
30813 # Shell code in configure.ac might set extrasub.
30814 # FIXME: do we really want to maintain this feature?
30815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30816 ac_sed_extra="$ac_vpsub
30817 $extrasub
30818 _ACEOF
30819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30822 s|@configure_input@|$ac_sed_conf_input|;t t
30823 s&@top_builddir@&$ac_top_builddir_sub&;t t
30824 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30825 s&@srcdir@&$ac_srcdir&;t t
30826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30827 s&@top_srcdir@&$ac_top_srcdir&;t t
30828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30829 s&@builddir@&$ac_builddir&;t t
30830 s&@abs_builddir@&$ac_abs_builddir&;t t
30831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30832 $ac_datarootdir_hack
30834 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30835 if $ac_cs_awk_getline; then
30836 $AWK -f "$tmp/subs.awk"
30837 else
30838 $AWK -f "$tmp/subs.awk" | $SHELL
30839 fi >$tmp/out \
30840 || as_fn_error "could not create $ac_file" "$LINENO" 5
30842 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30843 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30846 which seems to be undefined. Please make sure it is defined." >&5
30847 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30848 which seems to be undefined. Please make sure it is defined." >&2;}
30850 rm -f "$tmp/stdin"
30851 case $ac_file in
30852 -) cat "$tmp/out" && rm -f "$tmp/out";;
30853 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30854 esac \
30855 || as_fn_error "could not create $ac_file" "$LINENO" 5
30859 # CONFIG_HEADER
30861 if test x"$ac_file" != x-; then
30863 $as_echo "/* $configure_input */" \
30864 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30865 } >"$tmp/config.h" \
30866 || as_fn_error "could not create $ac_file" "$LINENO" 5
30867 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30869 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30870 else
30871 rm -f "$ac_file"
30872 mv "$tmp/config.h" "$ac_file" \
30873 || as_fn_error "could not create $ac_file" "$LINENO" 5
30875 else
30876 $as_echo "/* $configure_input */" \
30877 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30878 || as_fn_error "could not create -" "$LINENO" 5
30883 # CONFIG_LINK
30886 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30888 else
30889 # Prefer the file from the source tree if names are identical.
30890 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30891 ac_source=$srcdir/$ac_source
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30895 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30897 if test ! -r "$ac_source"; then
30898 as_fn_error "$ac_source: file not found" "$LINENO" 5
30900 rm -f "$ac_file"
30902 # Try a relative symlink, then a hard link, then a copy.
30903 case $srcdir in
30904 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30905 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30906 esac
30907 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30908 ln "$ac_source" "$ac_file" 2>/dev/null ||
30909 cp -p "$ac_source" "$ac_file" ||
30910 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30913 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30914 $as_echo "$as_me: executing $ac_file commands" >&6;}
30916 esac
30919 case $ac_file$ac_mode in
30920 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30921 "gccdepdir":C)
30922 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30923 for lang in $subdirs c-family common
30925 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30926 done ;;
30927 "as":F) chmod +x as ;;
30928 "collect-ld":F) chmod +x collect-ld ;;
30929 "nm":F) chmod +x nm ;;
30930 "default":C)
30931 case ${CONFIG_HEADERS} in
30932 *auto-host.h:config.in*)
30933 echo > cstamp-h ;;
30934 esac
30935 # Make sure all the subdirs exist.
30936 for d in $subdirs doc build common c-family
30938 test -d $d || mkdir $d
30939 done
30942 esac
30943 done # for ac_tag
30946 as_fn_exit 0
30947 _ACEOF
30948 ac_clean_files=$ac_clean_files_save
30950 test $ac_write_fail = 0 ||
30951 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30954 # configure is writing to config.log, and then calls config.status.
30955 # config.status does its own redirection, appending to config.log.
30956 # Unfortunately, on DOS this fails, as config.log is still kept open
30957 # by configure, so config.status won't be able to write to it; its
30958 # output is simply discarded. So we exec the FD to /dev/null,
30959 # effectively closing config.log, so it can be properly (re)opened and
30960 # appended to by config.status. When coming back to configure, we
30961 # need to make the FD available again.
30962 if test "$no_create" != yes; then
30963 ac_cs_success=:
30964 ac_config_status_args=
30965 test "$silent" = yes &&
30966 ac_config_status_args="$ac_config_status_args --quiet"
30967 exec 5>/dev/null
30968 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30969 exec 5>>config.log
30970 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30971 # would make configure fail if this is the last instruction.
30972 $ac_cs_success || as_fn_exit $?
30974 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30976 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}