Fix compilation failure with C++98 compilers
[official-gcc.git] / gcc / configure
blob563860181a1c1ae7e469e89a1716e0dd8fceb124
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 ld_soname_option
684 ld_version_script_option
685 libgcc_visibility
686 gcc_cv_readelf
687 gcc_cv_objdump
688 ORIGINAL_NM_FOR_TARGET
689 gcc_cv_nm
690 ORIGINAL_LD_GOLD_FOR_TARGET
691 ORIGINAL_LD_BFD_FOR_TARGET
692 ORIGINAL_LD_FOR_TARGET
693 ORIGINAL_PLUGIN_LD_FOR_TARGET
694 gcc_cv_ld
695 ORIGINAL_AS_FOR_TARGET
696 gcc_cv_as
697 enable_fast_install
698 objdir
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 STRIP
705 OBJDUMP
706 ac_ct_DUMPBIN
707 DUMPBIN
709 FGREP
711 LIBTOOL
712 collect2
713 NO_PIE_FLAG_FOR_BUILD
714 NO_PIE_CFLAGS_FOR_BUILD
715 BUILD_NO_PIE_FLAG
716 BUILD_NO_PIE_CFLAGS
717 STMP_FIXINC
718 BUILD_LDFLAGS
719 BUILD_CXXFLAGS
720 BUILD_CFLAGS
721 CXX_FOR_BUILD
722 CC_FOR_BUILD
723 inhibit_libc
724 BUILD_SYSTEM_HEADER_DIR
725 SYSTEM_HEADER_DIR
727 CROSS
728 CATOBJEXT
729 GENCAT
730 INSTOBJEXT
731 DATADIRNAME
732 CATALOGS
733 POSUB
734 GMSGFMT
735 XGETTEXT
736 INCINTL
737 LIBINTL_DEP
738 LIBINTL
739 USE_NLS
740 get_gcc_base_ver
741 extra_opt_files
742 extra_modes_file
743 NATIVE_SYSTEM_HEADER_DIR
744 objext
745 manext
746 LIBICONV_DEP
747 LTLIBICONV
748 LIBICONV
749 LDEXP_LIB
750 EXTRA_GCC_LIBS
751 GNAT_LIBEXC
752 COLLECT2_LIBS
753 CXXDEPMODE
754 DEPDIR
755 am__leading_dot
756 doc_build_sys
759 BISON
760 FLEX
761 GENERATED_MANPAGES
762 BUILD_INFO
763 MAKEINFO
764 have_mktemp_command
765 make_compare_target
766 INSTALL_DATA
767 INSTALL_PROGRAM
768 INSTALL
769 ranlib_flags
770 RANLIB
772 LN_S
774 SET_MAKE
775 accel_dir_suffix
776 real_target_noncanonical
777 enable_as_accelerator
778 REPORT_BUGS_TEXI
779 REPORT_BUGS_TO
780 PKGVERSION
781 CONFIGURE_SPECS
782 enable_gcov
783 enable_shared
784 enable_fixed_point
785 enable_decimal_float
786 with_float
787 with_cpu
788 enable_multiarch
789 enable_multilib
790 coverage_flags
791 valgrind_command
792 valgrind_path_defines
793 valgrind_path
794 TREECHECKING
795 nocommon_flag
796 noexception_flags
797 warn_cxxflags
798 warn_cflags
799 c_strict_warn
800 strict_warn
801 c_loose_warn
802 loose_warn
803 aliasing_flags
805 EGREP
806 GREP
807 CXXCPP
808 PICFLAG_FOR_TARGET
809 GNATMAKE
810 GNATBIND
811 ac_ct_CXX
812 CXXFLAGS
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
821 GENINSRC
822 CROSS_SYSTEM_HEADER_DIR
823 TARGET_SYSTEM_ROOT_DEFINE
824 TARGET_SYSTEM_ROOT
825 SYSROOT_CFLAGS_FOR_TARGET
826 target_subdir
827 host_subdir
828 build_subdir
829 build_libsubdir
830 target_noncanonical
831 host_noncanonical
832 target_os
833 target_vendor
834 target_cpu
835 target
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL'
882 ac_subst_files='option_includes
883 language_hooks'
884 ac_user_opts='
885 enable_option_checking
886 with_build_libsubdir
887 with_local_prefix
888 with_native_system_header_dir
889 with_build_sysroot
890 with_sysroot
891 with_gxx_include_dir
892 with_cpp_install_dir
893 enable_generated_files_in_srcdir
894 with_gnu_ld
895 with_ld
896 with_demangler_in_ld
897 with_gnu_as
898 with_as
899 enable_largefile
900 enable_build_format_warnings
901 enable_werror_always
902 enable_checking
903 enable_coverage
904 enable_gather_detailed_mem_stats
905 enable_valgrind_annotations
906 with_stabs
907 enable_multilib
908 enable_multiarch
909 with_stack_clash_protection_guard_size
910 enable___cxa_atexit
911 enable_decimal_float
912 enable_fixed_point
913 enable_threads
914 enable_tls
915 enable_vtable_verify
916 enable_objc_gc
917 with_dwarf2
918 enable_shared
919 enable_gcov
920 with_specs
921 with_pkgversion
922 with_bugurl
923 enable_languages
924 with_multilib_list
925 enable_rpath
926 with_libiconv_prefix
927 enable_sjlj_exceptions
928 with_gcc_major_version_only
929 enable_secureplt
930 enable_mingw_wildcard
931 enable_large_address_aware
932 enable_leading_mingw64_underscores
933 enable_cld
934 enable_frame_pointer
935 enable_win32_registry
936 enable_static
937 with_pic
938 enable_fast_install
939 enable_libtool_lock
940 enable_ld
941 enable_gold
942 with_plugin_ld
943 enable_gnu_indirect_function
944 enable_initfini_array
945 enable_comdat
946 enable_fix_cortex_a53_835769
947 enable_fix_cortex_a53_843419
948 with_glibc_version
949 enable_gnu_unique_object
950 enable_linker_build_id
951 enable_libssp
952 enable_default_ssp
953 with_long_double_128
954 with_long_double_format
955 with_gc
956 with_system_zlib
957 enable_maintainer_mode
958 enable_link_mutex
959 enable_version_specific_runtime_libs
960 enable_plugin
961 enable_host_shared
962 enable_libquadmath_support
963 with_linker_hash_style
964 with_diagnostics_color
965 enable_default_pie
967 ac_precious_vars='build_alias
968 host_alias
969 target_alias
971 CFLAGS
972 LDFLAGS
973 LIBS
974 CPPFLAGS
976 CXXFLAGS
978 CXXCPP
980 GMPLIBS
981 GMPINC
982 ISLLIBS
983 ISLINC'
986 # Initialize some variables set by options.
987 ac_init_help=
988 ac_init_version=false
989 ac_unrecognized_opts=
990 ac_unrecognized_sep=
991 # The variables have the same names as the options, with
992 # dashes changed to underlines.
993 cache_file=/dev/null
994 exec_prefix=NONE
995 no_create=
996 no_recursion=
997 prefix=NONE
998 program_prefix=NONE
999 program_suffix=NONE
1000 program_transform_name=s,x,x,
1001 silent=
1002 site=
1003 srcdir=
1004 verbose=
1005 x_includes=NONE
1006 x_libraries=NONE
1008 # Installation directory options.
1009 # These are left unexpanded so users can "make install exec_prefix=/foo"
1010 # and all the variables that are supposed to be based on exec_prefix
1011 # by default will actually change.
1012 # Use braces instead of parens because sh, perl, etc. also accept them.
1013 # (The list follows the same order as the GNU Coding Standards.)
1014 bindir='${exec_prefix}/bin'
1015 sbindir='${exec_prefix}/sbin'
1016 libexecdir='${exec_prefix}/libexec'
1017 datarootdir='${prefix}/share'
1018 datadir='${datarootdir}'
1019 sysconfdir='${prefix}/etc'
1020 sharedstatedir='${prefix}/com'
1021 localstatedir='${prefix}/var'
1022 includedir='${prefix}/include'
1023 oldincludedir='/usr/include'
1024 docdir='${datarootdir}/doc/${PACKAGE}'
1025 infodir='${datarootdir}/info'
1026 htmldir='${docdir}'
1027 dvidir='${docdir}'
1028 pdfdir='${docdir}'
1029 psdir='${docdir}'
1030 libdir='${exec_prefix}/lib'
1031 localedir='${datarootdir}/locale'
1032 mandir='${datarootdir}/man'
1034 ac_prev=
1035 ac_dashdash=
1036 for ac_option
1038 # If the previous option needs an argument, assign it.
1039 if test -n "$ac_prev"; then
1040 eval $ac_prev=\$ac_option
1041 ac_prev=
1042 continue
1045 case $ac_option in
1046 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1047 *) ac_optarg=yes ;;
1048 esac
1050 # Accept the important Cygnus configure options, so we can diagnose typos.
1052 case $ac_dashdash$ac_option in
1054 ac_dashdash=yes ;;
1056 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057 ac_prev=bindir ;;
1058 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059 bindir=$ac_optarg ;;
1061 -build | --build | --buil | --bui | --bu)
1062 ac_prev=build_alias ;;
1063 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064 build_alias=$ac_optarg ;;
1066 -cache-file | --cache-file | --cache-fil | --cache-fi \
1067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068 ac_prev=cache_file ;;
1069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071 cache_file=$ac_optarg ;;
1073 --config-cache | -C)
1074 cache_file=config.cache ;;
1076 -datadir | --datadir | --datadi | --datad)
1077 ac_prev=datadir ;;
1078 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079 datadir=$ac_optarg ;;
1081 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082 | --dataroo | --dataro | --datar)
1083 ac_prev=datarootdir ;;
1084 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086 datarootdir=$ac_optarg ;;
1088 -disable-* | --disable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=no ;;
1104 -docdir | --docdir | --docdi | --doc | --do)
1105 ac_prev=docdir ;;
1106 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107 docdir=$ac_optarg ;;
1109 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1110 ac_prev=dvidir ;;
1111 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112 dvidir=$ac_optarg ;;
1114 -enable-* | --enable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval enable_$ac_useropt=\$ac_optarg ;;
1130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132 | --exec | --exe | --ex)
1133 ac_prev=exec_prefix ;;
1134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136 | --exec=* | --exe=* | --ex=*)
1137 exec_prefix=$ac_optarg ;;
1139 -gas | --gas | --ga | --g)
1140 # Obsolete; use --with-gas.
1141 with_gas=yes ;;
1143 -help | --help | --hel | --he | -h)
1144 ac_init_help=long ;;
1145 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146 ac_init_help=recursive ;;
1147 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148 ac_init_help=short ;;
1150 -host | --host | --hos | --ho)
1151 ac_prev=host_alias ;;
1152 -host=* | --host=* | --hos=* | --ho=*)
1153 host_alias=$ac_optarg ;;
1155 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156 ac_prev=htmldir ;;
1157 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158 | --ht=*)
1159 htmldir=$ac_optarg ;;
1161 -includedir | --includedir | --includedi | --included | --include \
1162 | --includ | --inclu | --incl | --inc)
1163 ac_prev=includedir ;;
1164 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165 | --includ=* | --inclu=* | --incl=* | --inc=*)
1166 includedir=$ac_optarg ;;
1168 -infodir | --infodir | --infodi | --infod | --info | --inf)
1169 ac_prev=infodir ;;
1170 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171 infodir=$ac_optarg ;;
1173 -libdir | --libdir | --libdi | --libd)
1174 ac_prev=libdir ;;
1175 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176 libdir=$ac_optarg ;;
1178 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179 | --libexe | --libex | --libe)
1180 ac_prev=libexecdir ;;
1181 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182 | --libexe=* | --libex=* | --libe=*)
1183 libexecdir=$ac_optarg ;;
1185 -localedir | --localedir | --localedi | --localed | --locale)
1186 ac_prev=localedir ;;
1187 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188 localedir=$ac_optarg ;;
1190 -localstatedir | --localstatedir | --localstatedi | --localstated \
1191 | --localstate | --localstat | --localsta | --localst | --locals)
1192 ac_prev=localstatedir ;;
1193 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195 localstatedir=$ac_optarg ;;
1197 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198 ac_prev=mandir ;;
1199 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200 mandir=$ac_optarg ;;
1202 -nfp | --nfp | --nf)
1203 # Obsolete; use --without-fp.
1204 with_fp=no ;;
1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207 | --no-cr | --no-c | -n)
1208 no_create=yes ;;
1210 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212 no_recursion=yes ;;
1214 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216 | --oldin | --oldi | --old | --ol | --o)
1217 ac_prev=oldincludedir ;;
1218 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221 oldincludedir=$ac_optarg ;;
1223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224 ac_prev=prefix ;;
1225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226 prefix=$ac_optarg ;;
1228 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229 | --program-pre | --program-pr | --program-p)
1230 ac_prev=program_prefix ;;
1231 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233 program_prefix=$ac_optarg ;;
1235 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236 | --program-suf | --program-su | --program-s)
1237 ac_prev=program_suffix ;;
1238 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240 program_suffix=$ac_optarg ;;
1242 -program-transform-name | --program-transform-name \
1243 | --program-transform-nam | --program-transform-na \
1244 | --program-transform-n | --program-transform- \
1245 | --program-transform | --program-transfor \
1246 | --program-transfo | --program-transf \
1247 | --program-trans | --program-tran \
1248 | --progr-tra | --program-tr | --program-t)
1249 ac_prev=program_transform_name ;;
1250 -program-transform-name=* | --program-transform-name=* \
1251 | --program-transform-nam=* | --program-transform-na=* \
1252 | --program-transform-n=* | --program-transform-=* \
1253 | --program-transform=* | --program-transfor=* \
1254 | --program-transfo=* | --program-transf=* \
1255 | --program-trans=* | --program-tran=* \
1256 | --progr-tra=* | --program-tr=* | --program-t=*)
1257 program_transform_name=$ac_optarg ;;
1259 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260 ac_prev=pdfdir ;;
1261 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262 pdfdir=$ac_optarg ;;
1264 -psdir | --psdir | --psdi | --psd | --ps)
1265 ac_prev=psdir ;;
1266 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267 psdir=$ac_optarg ;;
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 silent=yes ;;
1273 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274 ac_prev=sbindir ;;
1275 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276 | --sbi=* | --sb=*)
1277 sbindir=$ac_optarg ;;
1279 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281 | --sharedst | --shareds | --shared | --share | --shar \
1282 | --sha | --sh)
1283 ac_prev=sharedstatedir ;;
1284 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287 | --sha=* | --sh=*)
1288 sharedstatedir=$ac_optarg ;;
1290 -site | --site | --sit)
1291 ac_prev=site ;;
1292 -site=* | --site=* | --sit=*)
1293 site=$ac_optarg ;;
1295 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296 ac_prev=srcdir ;;
1297 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298 srcdir=$ac_optarg ;;
1300 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301 | --syscon | --sysco | --sysc | --sys | --sy)
1302 ac_prev=sysconfdir ;;
1303 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305 sysconfdir=$ac_optarg ;;
1307 -target | --target | --targe | --targ | --tar | --ta | --t)
1308 ac_prev=target_alias ;;
1309 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310 target_alias=$ac_optarg ;;
1312 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313 verbose=yes ;;
1315 -version | --version | --versio | --versi | --vers | -V)
1316 ac_init_version=: ;;
1318 -with-* | --with-*)
1319 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322 as_fn_error "invalid package name: $ac_useropt"
1323 ac_useropt_orig=$ac_useropt
1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1327 "with_$ac_useropt"
1328 "*) ;;
1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330 ac_unrecognized_sep=', ';;
1331 esac
1332 eval with_$ac_useropt=\$ac_optarg ;;
1334 -without-* | --without-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 as_fn_error "invalid package name: $ac_useropt"
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1343 "with_$ac_useropt"
1344 "*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval with_$ac_useropt=no ;;
1350 --x)
1351 # Obsolete; use --with-x.
1352 with_x=yes ;;
1354 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355 | --x-incl | --x-inc | --x-in | --x-i)
1356 ac_prev=x_includes ;;
1357 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359 x_includes=$ac_optarg ;;
1361 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363 ac_prev=x_libraries ;;
1364 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366 x_libraries=$ac_optarg ;;
1368 -*) as_fn_error "unrecognized option: \`$ac_option'
1369 Try \`$0 --help' for more information."
1372 *=*)
1373 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374 # Reject names that are not valid shell variable names.
1375 case $ac_envvar in #(
1376 '' | [0-9]* | *[!_$as_cr_alnum]* )
1377 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1378 esac
1379 eval $ac_envvar=\$ac_optarg
1380 export $ac_envvar ;;
1383 # FIXME: should be removed in autoconf 3.0.
1384 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390 esac
1391 done
1393 if test -n "$ac_prev"; then
1394 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395 as_fn_error "missing argument to $ac_option"
1398 if test -n "$ac_unrecognized_opts"; then
1399 case $enable_option_checking in
1400 no) ;;
1401 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1403 esac
1406 # Check all directory arguments for consistency.
1407 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408 datadir sysconfdir sharedstatedir localstatedir includedir \
1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410 libdir localedir mandir
1412 eval ac_val=\$$ac_var
1413 # Remove trailing slashes.
1414 case $ac_val in
1415 */ )
1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417 eval $ac_var=\$ac_val;;
1418 esac
1419 # Be sure to have absolute directory names.
1420 case $ac_val in
1421 [\\/$]* | ?:[\\/]* ) continue;;
1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423 esac
1424 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1425 done
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1430 build=$build_alias
1431 host=$host_alias
1432 target=$target_alias
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
1438 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1439 If a cross compiler is detected then cross compile mode will be used." >&2
1440 elif test "x$build_alias" != "x$host_alias"; then
1441 cross_compiling=yes
1445 ac_tool_prefix=
1446 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1448 test "$silent" = yes && exec 6>/dev/null
1451 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452 ac_ls_di=`ls -di .` &&
1453 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454 as_fn_error "working directory cannot be determined"
1455 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1456 as_fn_error "pwd does not report name of working directory"
1459 # Find the source files, if location was not specified.
1460 if test -z "$srcdir"; then
1461 ac_srcdir_defaulted=yes
1462 # Try the directory containing this script, then the parent directory.
1463 ac_confdir=`$as_dirname -- "$as_myself" ||
1464 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1465 X"$as_myself" : 'X\(//\)[^/]' \| \
1466 X"$as_myself" : 'X\(//\)$' \| \
1467 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1468 $as_echo X"$as_myself" |
1469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1470 s//\1/
1473 /^X\(\/\/\)[^/].*/{
1474 s//\1/
1477 /^X\(\/\/\)$/{
1478 s//\1/
1481 /^X\(\/\).*/{
1482 s//\1/
1485 s/.*/./; q'`
1486 srcdir=$ac_confdir
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488 srcdir=..
1490 else
1491 ac_srcdir_defaulted=no
1493 if test ! -r "$srcdir/$ac_unique_file"; then
1494 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1495 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1497 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1498 ac_abs_confdir=`(
1499 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1500 pwd)`
1501 # When building in place, set srcdir=.
1502 if test "$ac_abs_confdir" = "$ac_pwd"; then
1503 srcdir=.
1505 # Remove unnecessary trailing slashes from srcdir.
1506 # Double slashes in file names in object file debugging info
1507 # mess up M-x gdb in Emacs.
1508 case $srcdir in
1509 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1510 esac
1511 for ac_var in $ac_precious_vars; do
1512 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_env_${ac_var}_value=\$${ac_var}
1514 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1515 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1516 done
1519 # Report the --help message.
1521 if test "$ac_init_help" = "long"; then
1522 # Omit some internal or obsolete options to make the list less imposing.
1523 # This message is too long to be a string in the A/UX 3.1 sh.
1524 cat <<_ACEOF
1525 \`configure' configures this package to adapt to many kinds of systems.
1527 Usage: $0 [OPTION]... [VAR=VALUE]...
1529 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1530 VAR=VALUE. See below for descriptions of some of the useful variables.
1532 Defaults for the options are specified in brackets.
1534 Configuration:
1535 -h, --help display this help and exit
1536 --help=short display options specific to this package
1537 --help=recursive display the short help of all the included packages
1538 -V, --version display version information and exit
1539 -q, --quiet, --silent do not print \`checking...' messages
1540 --cache-file=FILE cache test results in FILE [disabled]
1541 -C, --config-cache alias for \`--cache-file=config.cache'
1542 -n, --no-create do not create output files
1543 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1545 Installation directories:
1546 --prefix=PREFIX install architecture-independent files in PREFIX
1547 [$ac_default_prefix]
1548 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1549 [PREFIX]
1551 By default, \`make install' will install all the files in
1552 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1553 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1554 for instance \`--prefix=\$HOME'.
1556 For better control, use the options below.
1558 Fine tuning of the installation directories:
1559 --bindir=DIR user executables [EPREFIX/bin]
1560 --sbindir=DIR system admin executables [EPREFIX/sbin]
1561 --libexecdir=DIR program executables [EPREFIX/libexec]
1562 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1563 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1564 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1565 --libdir=DIR object code libraries [EPREFIX/lib]
1566 --includedir=DIR C header files [PREFIX/include]
1567 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1568 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1569 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1570 --infodir=DIR info documentation [DATAROOTDIR/info]
1571 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1572 --mandir=DIR man documentation [DATAROOTDIR/man]
1573 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1574 --htmldir=DIR html documentation [DOCDIR]
1575 --dvidir=DIR dvi documentation [DOCDIR]
1576 --pdfdir=DIR pdf documentation [DOCDIR]
1577 --psdir=DIR ps documentation [DOCDIR]
1578 _ACEOF
1580 cat <<\_ACEOF
1582 Program names:
1583 --program-prefix=PREFIX prepend PREFIX to installed program names
1584 --program-suffix=SUFFIX append SUFFIX to installed program names
1585 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1587 System types:
1588 --build=BUILD configure for building on BUILD [guessed]
1589 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1590 --target=TARGET configure for building compilers for TARGET [HOST]
1591 _ACEOF
1594 if test -n "$ac_init_help"; then
1596 cat <<\_ACEOF
1598 Optional Features:
1599 --disable-option-checking ignore unrecognized --enable/--with options
1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1602 --enable-generated-files-in-srcdir
1603 put copies of generated files in source dir intended
1604 for creating source tarballs for users without
1605 texinfo bison or flex
1606 --disable-largefile omit support for large files
1607 --disable-build-format-warnings
1608 don't use -Wformat while building GCC
1609 --enable-werror-always enable -Werror despite compiler version
1610 --enable-checking[=LIST]
1611 enable expensive run-time checks. With LIST, enable
1612 only specific categories of checks. Categories are:
1613 yes,no,all,none,release. Flags are:
1614 assert,df,extra,fold,gc,gcac,gimple,misc,
1615 rtlflag,rtl,runtime,tree,valgrind,types
1616 --enable-coverage[=LEVEL]
1617 enable compiler's code coverage collection. Use to
1618 measure compiler performance and locate unused parts
1619 of the compiler. With LEVEL, specify optimization.
1620 Values are opt, noopt, default is noopt
1621 --enable-gather-detailed-mem-stats
1622 enable detailed memory allocation stats gathering
1623 --enable-valgrind-annotations
1624 enable valgrind runtime interaction
1625 --enable-multilib enable library support for multiple ABIs
1626 --enable-multiarch enable support for multiarch paths
1627 --enable-__cxa_atexit enable __cxa_atexit for C++
1628 --enable-decimal-float={no,yes,bid,dpd}
1629 enable decimal float extension to C. Selecting 'bid'
1630 or 'dpd' choses which decimal floating point format
1631 to use
1632 --enable-fixed-point enable fixed-point arithmetic extension to C
1633 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1634 package
1635 --enable-tls enable or disable generation of tls code overriding
1636 the assembler check for tls support
1637 --enable-vtable-verify enable vtable verification feature
1638 --enable-objc-gc enable the use of Boehm's garbage collector with the
1639 GNU Objective-C runtime
1640 --disable-shared don't provide a shared libgcc
1641 --disable-gcov don't provide libgcov and related host tools
1642 --enable-languages=LIST specify which front-ends to build
1643 --disable-rpath do not hardcode runtime library paths
1644 --enable-sjlj-exceptions
1645 arrange to use setjmp/longjmp exception handling
1646 --enable-secureplt enable -msecure-plt by default for PowerPC
1647 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1648 Default to platform configuration
1649 --enable-large-address-aware
1650 Link mingw executables with --large-address-aware
1651 --enable-leading-mingw64-underscores
1652 enable leading underscores on 64 bit mingw targets
1653 --enable-cld enable -mcld by default for 32bit x86
1654 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1656 --disable-win32-registry
1657 disable lookup of installation paths in the Registry
1658 on Windows hosts
1659 --enable-win32-registry enable registry lookup (default)
1660 --enable-win32-registry=KEY
1661 use KEY instead of GCC version as the last portion
1662 of the registry key
1663 --enable-shared[=PKGS] build shared libraries [default=yes]
1664 --enable-static[=PKGS] build static libraries [default=yes]
1665 --enable-fast-install[=PKGS]
1666 optimize for fast installation [default=yes]
1667 --disable-libtool-lock avoid locking (might break parallel builds)
1668 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1669 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1670 --enable-gnu-indirect-function
1671 enable the use of the @gnu_indirect_function to
1672 glibc systems
1673 --enable-initfini-array use .init_array/.fini_array sections
1674 --enable-comdat enable COMDAT group support
1676 --enable-fix-cortex-a53-835769
1677 enable workaround for AArch64 Cortex-A53 erratum
1678 835769 by default
1679 --disable-fix-cortex-a53-835769
1680 disable workaround for AArch64 Cortex-A53 erratum
1681 835769 by default
1684 --enable-fix-cortex-a53-843419
1685 enable workaround for AArch64 Cortex-A53 erratum
1686 843419 by default
1687 --disable-fix-cortex-a53-843419
1688 disable workaround for AArch64 Cortex-A53 erratum
1689 843419 by default
1691 --enable-gnu-unique-object
1692 enable the use of the @gnu_unique_object ELF
1693 extension on glibc systems
1694 --enable-linker-build-id
1695 compiler will always pass --build-id to linker
1696 --enable-libssp enable linking against libssp
1697 --enable-default-ssp enable Stack Smashing Protection as default
1698 --enable-maintainer-mode
1699 enable make rules and dependencies not useful (and
1700 sometimes confusing) to the casual installer
1701 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1702 thrashing on the build machine
1703 --enable-version-specific-runtime-libs
1704 specify that runtime libraries should be installed
1705 in a compiler-specific directory
1706 --enable-plugin enable plugin support
1707 --enable-host-shared build host code as shared libraries
1708 --disable-libquadmath-support
1709 disable libquadmath support for Fortran
1710 --enable-default-pie enable Position Independent Executable as default
1712 Optional Packages:
1713 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1714 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1715 --with-build-libsubdir=DIR Directory where to find libraries for build system
1716 --with-local-prefix=DIR specifies directory to put local include
1717 --with-native-system-header-dir=dir
1718 use dir as the directory to look for standard
1719 system header files in. Defaults to /usr/include.
1720 --with-build-sysroot=sysroot
1721 use sysroot as the system root during the build
1722 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1723 --with-gxx-include-dir=DIR
1724 specifies directory to put g++ header files
1725 --with-cpp-install-dir=DIR
1726 install the user visible C preprocessor in DIR
1727 (relative to PREFIX) as well as PREFIX/bin
1728 --with-gnu-ld arrange to work with GNU ld
1729 --with-ld arrange to use the specified ld (full pathname)
1730 --with-demangler-in-ld try to use demangler in GNU ld
1731 --with-gnu-as arrange to work with GNU as
1732 --with-as arrange to use the specified as (full pathname)
1733 --with-stabs arrange to use stabs instead of host debug format
1734 --with-stack-clash-protection-guard-size=size
1735 Set the default stack clash protection guard size
1736 for specific targets as a power of two in bytes.
1737 --with-dwarf2 force the default debug format to be DWARF 2
1738 --with-specs=SPECS add SPECS to driver command-line processing
1739 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1740 --with-bugurl=URL Direct users to URL to report a bug
1741 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1742 --with-gnu-ld assume the C compiler uses GNU ld default=no
1743 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1744 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1745 --with-gcc-major-version-only
1746 use only GCC major number in filesystem paths
1747 --with-pic try to use only PIC/non-PIC objects [default=use
1748 both]
1749 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1750 --with-plugin-ld=[ARG] specify the plugin linker
1751 --with-glibc-version=M.N
1752 assume GCC used with glibc version M.N or later
1753 --with-long-double-128 use 128-bit long double by default
1754 --with-long-double-format={ieee,ibm}
1755 Specify whether PowerPC long double uses IEEE or IBM format
1757 --with-gc={page,zone} this option is not supported anymore. It used to
1758 choose the garbage collection mechanism to use with
1759 the compiler
1760 --with-system-zlib use installed libz
1761 --with-linker-hash-style={sysv,gnu,both}
1762 specify the linker hash style
1763 --with-diagnostics-color={never,auto,auto-if-env,always}
1764 specify the default of -fdiagnostics-color option
1765 auto-if-env stands for -fdiagnostics-color=auto if
1766 GCC_COLOR environment variable is present and
1767 -fdiagnostics-color=never otherwise
1769 Some influential environment variables:
1770 CC C compiler command
1771 CFLAGS C compiler flags
1772 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1773 nonstandard directory <lib dir>
1774 LIBS libraries to pass to the linker, e.g. -l<library>
1775 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1776 you have headers in a nonstandard directory <include dir>
1777 CXX C++ compiler command
1778 CXXFLAGS C++ compiler flags
1779 CXXCPP C++ preprocessor
1780 CPP C preprocessor
1781 GMPLIBS How to link GMP
1782 GMPINC How to find GMP include files
1783 ISLLIBS How to link isl
1784 ISLINC How to find isl include files
1786 Use these variables to override the choices made by `configure' or to help
1787 it to find libraries and programs with nonstandard names/locations.
1789 Report bugs to the package provider.
1790 _ACEOF
1791 ac_status=$?
1794 if test "$ac_init_help" = "recursive"; then
1795 # If there are subdirs, report their specific --help.
1796 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1797 test -d "$ac_dir" ||
1798 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1799 continue
1800 ac_builddir=.
1802 case "$ac_dir" in
1803 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1805 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1806 # A ".." for each directory in $ac_dir_suffix.
1807 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1808 case $ac_top_builddir_sub in
1809 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1810 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1811 esac ;;
1812 esac
1813 ac_abs_top_builddir=$ac_pwd
1814 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1815 # for backward compatibility:
1816 ac_top_builddir=$ac_top_build_prefix
1818 case $srcdir in
1819 .) # We are building in place.
1820 ac_srcdir=.
1821 ac_top_srcdir=$ac_top_builddir_sub
1822 ac_abs_top_srcdir=$ac_pwd ;;
1823 [\\/]* | ?:[\\/]* ) # Absolute name.
1824 ac_srcdir=$srcdir$ac_dir_suffix;
1825 ac_top_srcdir=$srcdir
1826 ac_abs_top_srcdir=$srcdir ;;
1827 *) # Relative name.
1828 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1829 ac_top_srcdir=$ac_top_build_prefix$srcdir
1830 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1831 esac
1832 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1834 cd "$ac_dir" || { ac_status=$?; continue; }
1835 # Check for guested configure.
1836 if test -f "$ac_srcdir/configure.gnu"; then
1837 echo &&
1838 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1839 elif test -f "$ac_srcdir/configure"; then
1840 echo &&
1841 $SHELL "$ac_srcdir/configure" --help=recursive
1842 else
1843 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1844 fi || ac_status=$?
1845 cd "$ac_pwd" || { ac_status=$?; break; }
1846 done
1849 test -n "$ac_init_help" && exit $ac_status
1850 if $ac_init_version; then
1851 cat <<\_ACEOF
1852 configure
1853 generated by GNU Autoconf 2.64
1855 Copyright (C) 2009 Free Software Foundation, Inc.
1856 This configure script is free software; the Free Software Foundation
1857 gives unlimited permission to copy, distribute and modify it.
1858 _ACEOF
1859 exit
1862 ## ------------------------ ##
1863 ## Autoconf initialization. ##
1864 ## ------------------------ ##
1866 # ac_fn_c_try_compile LINENO
1867 # --------------------------
1868 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_compile ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 rm -f conftest.$ac_objext
1873 if { { ac_try="$ac_compile"
1874 case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_compile") 2>conftest.err
1881 ac_status=$?
1882 if test -s conftest.err; then
1883 grep -v '^ *+' conftest.err >conftest.er1
1884 cat conftest.er1 >&5
1885 mv -f conftest.er1 conftest.err
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && {
1889 test -z "$ac_c_werror_flag" ||
1890 test ! -s conftest.err
1891 } && test -s conftest.$ac_objext; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_retval=1
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 return $ac_retval
1902 } # ac_fn_c_try_compile
1904 # ac_fn_cxx_try_compile LINENO
1905 # ----------------------------
1906 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1907 ac_fn_cxx_try_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 rm -f conftest.$ac_objext
1911 if { { ac_try="$ac_compile"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_compile") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } && {
1927 test -z "$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1929 } && test -s conftest.$ac_objext; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=1
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 return $ac_retval
1940 } # ac_fn_cxx_try_compile
1942 # ac_fn_cxx_try_cpp LINENO
1943 # ------------------------
1944 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_cxx_try_cpp ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_cpp conftest.$ac_ext"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } >/dev/null && {
1964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1965 test ! -s conftest.err
1966 }; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=1
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 return $ac_retval
1977 } # ac_fn_cxx_try_cpp
1979 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # ---------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1983 # accordingly.
1984 ac_fn_cxx_check_header_mongrel ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991 $as_echo_n "(cached) " >&6
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 else
1997 # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_cxx_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2007 else
2008 ac_header_compiler=no
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_cxx_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2023 else
2024 ac_header_preproc=no
2026 rm -f conftest.err conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2030 # So? What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2032 yes:no: )
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 no:yes:* )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 esac
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 eval "$3=\$ac_header_compiler"
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_cxx_check_header_mongrel
2066 # ac_fn_cxx_try_run LINENO
2067 # ------------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2069 # that executables *can* be run.
2070 ac_fn_cxx_try_run ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 if { { ac_try="$ac_link"
2074 case "(($ac_try" in
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2077 esac
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_link") 2>&5
2081 ac_status=$?
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2084 { { case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_try") 2>&5
2091 ac_status=$?
2092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2093 test $ac_status = 0; }; }; then :
2094 ac_retval=0
2095 else
2096 $as_echo "$as_me: program exited with status $ac_status" >&5
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2100 ac_retval=$ac_status
2102 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 return $ac_retval
2106 } # ac_fn_cxx_try_run
2108 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2109 # ---------------------------------------------------------
2110 # Tests whether HEADER exists and can be compiled using the include files in
2111 # INCLUDES, setting the cache variable VAR accordingly.
2112 ac_fn_cxx_check_header_compile ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2123 #include <$2>
2124 _ACEOF
2125 if ac_fn_cxx_try_compile "$LINENO"; then :
2126 eval "$3=yes"
2127 else
2128 eval "$3=no"
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137 } # ac_fn_cxx_check_header_compile
2139 # ac_fn_c_try_cpp LINENO
2140 # ----------------------
2141 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2142 ac_fn_c_try_cpp ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if { { ac_try="$ac_cpp conftest.$ac_ext"
2146 case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149 esac
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2153 ac_status=$?
2154 if test -s conftest.err; then
2155 grep -v '^ *+' conftest.err >conftest.er1
2156 cat conftest.er1 >&5
2157 mv -f conftest.er1 conftest.err
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } >/dev/null && {
2161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2162 test ! -s conftest.err
2163 }; then :
2164 ac_retval=0
2165 else
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2169 ac_retval=1
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172 return $ac_retval
2174 } # ac_fn_c_try_cpp
2176 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2177 # ----------------------------------------------
2178 # Tries to find the compile-time value of EXPR in a program that includes
2179 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2180 # computed
2181 ac_fn_cxx_compute_int ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if test "$cross_compiling" = yes; then
2185 # Depending upon the size, compute the lo and hi bounds.
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2190 main ()
2192 static int test_array [1 - 2 * !(($2) >= 0)];
2193 test_array [0] = 0
2196 return 0;
2198 _ACEOF
2199 if ac_fn_cxx_try_compile "$LINENO"; then :
2200 ac_lo=0 ac_mid=0
2201 while :; do
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2209 test_array [0] = 0
2212 return 0;
2214 _ACEOF
2215 if ac_fn_cxx_try_compile "$LINENO"; then :
2216 ac_hi=$ac_mid; break
2217 else
2218 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2219 if test $ac_lo -le $ac_mid; then
2220 ac_lo= ac_hi=
2221 break
2223 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 done
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2232 main ()
2234 static int test_array [1 - 2 * !(($2) < 0)];
2235 test_array [0] = 0
2238 return 0;
2240 _ACEOF
2241 if ac_fn_cxx_try_compile "$LINENO"; then :
2242 ac_hi=-1 ac_mid=-1
2243 while :; do
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2248 main ()
2250 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2251 test_array [0] = 0
2254 return 0;
2256 _ACEOF
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 ac_lo=$ac_mid; break
2259 else
2260 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2261 if test $ac_mid -le $ac_hi; then
2262 ac_lo= ac_hi=
2263 break
2265 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 done
2269 else
2270 ac_lo= ac_hi=
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 # Binary search between lo and hi bounds.
2276 while test "x$ac_lo" != "x$ac_hi"; do
2277 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2282 main ()
2284 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 test_array [0] = 0
2288 return 0;
2290 _ACEOF
2291 if ac_fn_cxx_try_compile "$LINENO"; then :
2292 ac_hi=$ac_mid
2293 else
2294 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 done
2298 case $ac_lo in #((
2299 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2300 '') ac_retval=1 ;;
2301 esac
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2306 static long int longval () { return $2; }
2307 static unsigned long int ulongval () { return $2; }
2308 #include <stdio.h>
2309 #include <stdlib.h>
2311 main ()
2314 FILE *f = fopen ("conftest.val", "w");
2315 if (! f)
2316 return 1;
2317 if (($2) < 0)
2319 long int i = longval ();
2320 if (i != ($2))
2321 return 1;
2322 fprintf (f, "%ld", i);
2324 else
2326 unsigned long int i = ulongval ();
2327 if (i != ($2))
2328 return 1;
2329 fprintf (f, "%lu", i);
2331 /* Do not output a trailing newline, as this causes \r\n confusion
2332 on some platforms. */
2333 return ferror (f) || fclose (f) != 0;
2336 return 0;
2338 _ACEOF
2339 if ac_fn_cxx_try_run "$LINENO"; then :
2340 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2341 else
2342 ac_retval=1
2344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2345 conftest.$ac_objext conftest.beam conftest.$ac_ext
2346 rm -f conftest.val
2349 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2350 return $ac_retval
2352 } # ac_fn_cxx_compute_int
2354 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2355 # ---------------------------------------------
2356 # Tests whether TYPE exists after having included INCLUDES, setting cache
2357 # variable VAR accordingly.
2358 ac_fn_cxx_check_type ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 eval "$3=no"
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2371 main ()
2373 if (sizeof ($2))
2374 return 0;
2376 return 0;
2378 _ACEOF
2379 if ac_fn_cxx_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2384 main ()
2386 if (sizeof (($2)))
2387 return 0;
2389 return 0;
2391 _ACEOF
2392 if ac_fn_cxx_try_compile "$LINENO"; then :
2394 else
2395 eval "$3=yes"
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406 } # ac_fn_cxx_check_type
2408 # ac_fn_c_find_intX_t LINENO BITS VAR
2409 # -----------------------------------
2410 # Finds a signed integer type with width BITS, setting cache variable VAR
2411 # accordingly.
2412 ac_fn_c_find_intX_t ()
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2416 $as_echo_n "checking for int$2_t... " >&6; }
2417 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 eval "$3=no"
2421 for ac_type in int$2_t 'int' 'long int' \
2422 'long long int' 'short int' 'signed char'; do
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2425 $ac_includes_default
2427 main ()
2429 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2430 test_array [0] = 0
2433 return 0;
2435 _ACEOF
2436 if ac_fn_cxx_try_compile "$LINENO"; then :
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2439 $ac_includes_default
2441 main ()
2443 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2444 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2445 test_array [0] = 0
2448 return 0;
2450 _ACEOF
2451 if ac_fn_cxx_try_compile "$LINENO"; then :
2453 else
2454 case $ac_type in #(
2455 int$2_t) :
2456 eval "$3=yes" ;; #(
2457 *) :
2458 eval "$3=\$ac_type" ;;
2459 esac
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 eval as_val=\$$3
2465 if test "x$as_val" = x""no; then :
2467 else
2468 break
2470 done
2472 eval ac_res=\$$3
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477 } # ac_fn_c_find_intX_t
2479 # ac_fn_cxx_try_link LINENO
2480 # -------------------------
2481 # Try to link conftest.$ac_ext, and return whether this succeeded.
2482 ac_fn_cxx_try_link ()
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 rm -f conftest.$ac_objext conftest$ac_exeext
2486 if { { ac_try="$ac_link"
2487 case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490 esac
2491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2492 $as_echo "$ac_try_echo"; } >&5
2493 (eval "$ac_link") 2>conftest.err
2494 ac_status=$?
2495 if test -s conftest.err; then
2496 grep -v '^ *+' conftest.err >conftest.er1
2497 cat conftest.er1 >&5
2498 mv -f conftest.er1 conftest.err
2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2501 test $ac_status = 0; } && {
2502 test -z "$ac_cxx_werror_flag" ||
2503 test ! -s conftest.err
2504 } && test -s conftest$ac_exeext && {
2505 test "$cross_compiling" = yes ||
2506 $as_test_x conftest$ac_exeext
2507 }; then :
2508 ac_retval=0
2509 else
2510 $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2513 ac_retval=1
2515 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2516 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2517 # interfere with the next link command; also delete a directory that is
2518 # left behind by Apple's compiler. We do this before executing the actions.
2519 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2520 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2521 return $ac_retval
2523 } # ac_fn_cxx_try_link
2525 # ac_fn_c_find_uintX_t LINENO BITS VAR
2526 # ------------------------------------
2527 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2528 # accordingly.
2529 ac_fn_c_find_uintX_t ()
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2533 $as_echo_n "checking for uint$2_t... " >&6; }
2534 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 eval "$3=no"
2538 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2539 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2542 $ac_includes_default
2544 main ()
2546 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2547 test_array [0] = 0
2550 return 0;
2552 _ACEOF
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 case $ac_type in #(
2555 uint$2_t) :
2556 eval "$3=yes" ;; #(
2557 *) :
2558 eval "$3=\$ac_type" ;;
2559 esac
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 eval as_val=\$$3
2563 if test "x$as_val" = x""no; then :
2565 else
2566 break
2568 done
2570 eval ac_res=\$$3
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572 $as_echo "$ac_res" >&6; }
2573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2575 } # ac_fn_c_find_uintX_t
2577 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2578 # ------------------------------------------------
2579 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2580 ac_fn_cxx_check_header_preproc ()
2582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2584 $as_echo_n "checking for $2... " >&6; }
2585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2590 #include <$2>
2591 _ACEOF
2592 if ac_fn_cxx_try_cpp "$LINENO"; then :
2593 eval "$3=yes"
2594 else
2595 eval "$3=no"
2597 rm -f conftest.err conftest.$ac_ext
2599 eval ac_res=\$$3
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2604 } # ac_fn_cxx_check_header_preproc
2606 # ac_fn_cxx_check_func LINENO FUNC VAR
2607 # ------------------------------------
2608 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2609 ac_fn_cxx_check_func ()
2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613 $as_echo_n "checking for $2... " >&6; }
2614 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2619 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2621 #define $2 innocuous_$2
2623 /* System header to define __stub macros and hopefully few prototypes,
2624 which can conflict with char $2 (); below.
2625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2626 <limits.h> exists even on freestanding compilers. */
2628 #ifdef __STDC__
2629 # include <limits.h>
2630 #else
2631 # include <assert.h>
2632 #endif
2634 #undef $2
2636 /* Override any GCC internal prototype to avoid an error.
2637 Use char because int might match the return type of a GCC
2638 builtin and then its argument prototype would still apply. */
2639 #ifdef __cplusplus
2640 extern "C"
2641 #endif
2642 char $2 ();
2643 /* The GNU C library defines this for functions which it implements
2644 to always fail with ENOSYS. Some functions are actually named
2645 something starting with __ and the normal name is an alias. */
2646 #if defined __stub_$2 || defined __stub___$2
2647 choke me
2648 #endif
2651 main ()
2653 return $2 ();
2655 return 0;
2657 _ACEOF
2658 if ac_fn_cxx_try_link "$LINENO"; then :
2659 eval "$3=yes"
2660 else
2661 eval "$3=no"
2663 rm -f core conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2666 eval ac_res=\$$3
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2671 } # ac_fn_cxx_check_func
2673 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2674 # --------------------------------------
2675 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2676 ac_fn_cxx_check_decl ()
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 as_decl_name=`echo $2|sed 's/ *(.*//'`
2680 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2682 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2690 main ()
2692 #ifndef $as_decl_name
2693 #ifdef __cplusplus
2694 (void) $as_decl_use;
2695 #else
2696 (void) $as_decl_name;
2697 #endif
2698 #endif
2701 return 0;
2703 _ACEOF
2704 if ac_fn_cxx_try_compile "$LINENO"; then :
2705 eval "$3=yes"
2706 else
2707 eval "$3=no"
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 eval ac_res=\$$3
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2713 $as_echo "$ac_res" >&6; }
2714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2716 } # ac_fn_cxx_check_decl
2718 # ac_fn_c_try_link LINENO
2719 # -----------------------
2720 # Try to link conftest.$ac_ext, and return whether this succeeded.
2721 ac_fn_c_try_link ()
2723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2724 rm -f conftest.$ac_objext conftest$ac_exeext
2725 if { { ac_try="$ac_link"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731 $as_echo "$ac_try_echo"; } >&5
2732 (eval "$ac_link") 2>conftest.err
2733 ac_status=$?
2734 if test -s conftest.err; then
2735 grep -v '^ *+' conftest.err >conftest.er1
2736 cat conftest.er1 >&5
2737 mv -f conftest.er1 conftest.err
2739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2740 test $ac_status = 0; } && {
2741 test -z "$ac_c_werror_flag" ||
2742 test ! -s conftest.err
2743 } && test -s conftest$ac_exeext && {
2744 test "$cross_compiling" = yes ||
2745 $as_test_x conftest$ac_exeext
2746 }; then :
2747 ac_retval=0
2748 else
2749 $as_echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 ac_retval=1
2754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2756 # interfere with the next link command; also delete a directory that is
2757 # left behind by Apple's compiler. We do this before executing the actions.
2758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2760 return $ac_retval
2762 } # ac_fn_c_try_link
2764 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2765 # ----------------------------------------------
2766 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2767 ac_fn_c_check_header_preproc ()
2769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2771 $as_echo_n "checking for $2... " >&6; }
2772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2777 #include <$2>
2778 _ACEOF
2779 if ac_fn_c_try_cpp "$LINENO"; then :
2780 eval "$3=yes"
2781 else
2782 eval "$3=no"
2784 rm -f conftest.err conftest.$ac_ext
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2791 } # ac_fn_c_check_header_preproc
2793 # ac_fn_c_check_func LINENO FUNC VAR
2794 # ----------------------------------
2795 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2796 ac_fn_c_check_func ()
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2800 $as_echo_n "checking for $2... " >&6; }
2801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2808 #define $2 innocuous_$2
2810 /* System header to define __stub macros and hopefully few prototypes,
2811 which can conflict with char $2 (); below.
2812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2813 <limits.h> exists even on freestanding compilers. */
2815 #ifdef __STDC__
2816 # include <limits.h>
2817 #else
2818 # include <assert.h>
2819 #endif
2821 #undef $2
2823 /* Override any GCC internal prototype to avoid an error.
2824 Use char because int might match the return type of a GCC
2825 builtin and then its argument prototype would still apply. */
2826 #ifdef __cplusplus
2827 extern "C"
2828 #endif
2829 char $2 ();
2830 /* The GNU C library defines this for functions which it implements
2831 to always fail with ENOSYS. Some functions are actually named
2832 something starting with __ and the normal name is an alias. */
2833 #if defined __stub_$2 || defined __stub___$2
2834 choke me
2835 #endif
2838 main ()
2840 return $2 ();
2842 return 0;
2844 _ACEOF
2845 if ac_fn_c_try_link "$LINENO"; then :
2846 eval "$3=yes"
2847 else
2848 eval "$3=no"
2850 rm -f core conftest.err conftest.$ac_objext \
2851 conftest$ac_exeext conftest.$ac_ext
2853 eval ac_res=\$$3
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2858 } # ac_fn_c_check_func
2859 cat >config.log <<_ACEOF
2860 This file contains any messages produced by compilers while
2861 running configure, to aid debugging if configure makes a mistake.
2863 It was created by $as_me, which was
2864 generated by GNU Autoconf 2.64. Invocation command line was
2866 $ $0 $@
2868 _ACEOF
2869 exec 5>>config.log
2871 cat <<_ASUNAME
2872 ## --------- ##
2873 ## Platform. ##
2874 ## --------- ##
2876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2893 _ASUNAME
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 $as_echo "PATH: $as_dir"
2901 done
2902 IFS=$as_save_IFS
2904 } >&5
2906 cat >&5 <<_ACEOF
2909 ## ----------- ##
2910 ## Core tests. ##
2911 ## ----------- ##
2913 _ACEOF
2916 # Keep a trace of the command line.
2917 # Strip out --no-create and --no-recursion so they do not pile up.
2918 # Strip out --silent because we don't want to record it for future runs.
2919 # Also quote any args containing shell meta-characters.
2920 # Make two passes to allow for proper duplicate-argument suppression.
2921 ac_configure_args=
2922 ac_configure_args0=
2923 ac_configure_args1=
2924 ac_must_keep_next=false
2925 for ac_pass in 1 2
2927 for ac_arg
2929 case $ac_arg in
2930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2932 | -silent | --silent | --silen | --sile | --sil)
2933 continue ;;
2934 *\'*)
2935 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2936 esac
2937 case $ac_pass in
2938 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2940 as_fn_append ac_configure_args1 " '$ac_arg'"
2941 if test $ac_must_keep_next = true; then
2942 ac_must_keep_next=false # Got value, back to normal.
2943 else
2944 case $ac_arg in
2945 *=* | --config-cache | -C | -disable-* | --disable-* \
2946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2948 | -with-* | --with-* | -without-* | --without-* | --x)
2949 case "$ac_configure_args0 " in
2950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2951 esac
2953 -* ) ac_must_keep_next=true ;;
2954 esac
2956 as_fn_append ac_configure_args " '$ac_arg'"
2958 esac
2959 done
2960 done
2961 { ac_configure_args0=; unset ac_configure_args0;}
2962 { ac_configure_args1=; unset ac_configure_args1;}
2964 # When interrupted or exit'd, cleanup temporary files, and complete
2965 # config.log. We remove comments because anyway the quotes in there
2966 # would cause problems or look ugly.
2967 # WARNING: Use '\'' to represent an apostrophe within the trap.
2968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2969 trap 'exit_status=$?
2970 # Save into config.log some information that might help in debugging.
2972 echo
2974 cat <<\_ASBOX
2975 ## ---------------- ##
2976 ## Cache variables. ##
2977 ## ---------------- ##
2978 _ASBOX
2979 echo
2980 # The following way of writing the cache mishandles newlines in values,
2982 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2983 eval ac_val=\$$ac_var
2984 case $ac_val in #(
2985 *${as_nl}*)
2986 case $ac_var in #(
2987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2989 esac
2990 case $ac_var in #(
2991 _ | IFS | as_nl) ;; #(
2992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2993 *) { eval $ac_var=; unset $ac_var;} ;;
2994 esac ;;
2995 esac
2996 done
2997 (set) 2>&1 |
2998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2999 *${as_nl}ac_space=\ *)
3000 sed -n \
3001 "s/'\''/'\''\\\\'\'''\''/g;
3002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3003 ;; #(
3005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3007 esac |
3008 sort
3010 echo
3012 cat <<\_ASBOX
3013 ## ----------------- ##
3014 ## Output variables. ##
3015 ## ----------------- ##
3016 _ASBOX
3017 echo
3018 for ac_var in $ac_subst_vars
3020 eval ac_val=\$$ac_var
3021 case $ac_val in
3022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3023 esac
3024 $as_echo "$ac_var='\''$ac_val'\''"
3025 done | sort
3026 echo
3028 if test -n "$ac_subst_files"; then
3029 cat <<\_ASBOX
3030 ## ------------------- ##
3031 ## File substitutions. ##
3032 ## ------------------- ##
3033 _ASBOX
3034 echo
3035 for ac_var in $ac_subst_files
3037 eval ac_val=\$$ac_var
3038 case $ac_val in
3039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3040 esac
3041 $as_echo "$ac_var='\''$ac_val'\''"
3042 done | sort
3043 echo
3046 if test -s confdefs.h; then
3047 cat <<\_ASBOX
3048 ## ----------- ##
3049 ## confdefs.h. ##
3050 ## ----------- ##
3051 _ASBOX
3052 echo
3053 cat confdefs.h
3054 echo
3056 test "$ac_signal" != 0 &&
3057 $as_echo "$as_me: caught signal $ac_signal"
3058 $as_echo "$as_me: exit $exit_status"
3059 } >&5
3060 rm -f core *.core core.conftest.* &&
3061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3062 exit $exit_status
3064 for ac_signal in 1 2 13 15; do
3065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3066 done
3067 ac_signal=0
3069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3070 rm -f -r conftest* confdefs.h
3072 $as_echo "/* confdefs.h */" > confdefs.h
3074 # Predefined preprocessor variables.
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_NAME "$PACKAGE_NAME"
3078 _ACEOF
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3082 _ACEOF
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3086 _ACEOF
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_STRING "$PACKAGE_STRING"
3090 _ACEOF
3092 cat >>confdefs.h <<_ACEOF
3093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3094 _ACEOF
3096 cat >>confdefs.h <<_ACEOF
3097 #define PACKAGE_URL "$PACKAGE_URL"
3098 _ACEOF
3101 # Let the site file select an alternate cache file if it wants to.
3102 # Prefer an explicitly selected file to automatically selected ones.
3103 ac_site_file1=NONE
3104 ac_site_file2=NONE
3105 if test -n "$CONFIG_SITE"; then
3106 ac_site_file1=$CONFIG_SITE
3107 elif test "x$prefix" != xNONE; then
3108 ac_site_file1=$prefix/share/config.site
3109 ac_site_file2=$prefix/etc/config.site
3110 else
3111 ac_site_file1=$ac_default_prefix/share/config.site
3112 ac_site_file2=$ac_default_prefix/etc/config.site
3114 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3116 test "x$ac_site_file" = xNONE && continue
3117 if test -r "$ac_site_file"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3119 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3120 sed 's/^/| /' "$ac_site_file" >&5
3121 . "$ac_site_file"
3123 done
3125 if test -r "$cache_file"; then
3126 # Some versions of bash will fail to source /dev/null (special
3127 # files actually), so we avoid doing that.
3128 if test -f "$cache_file"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3130 $as_echo "$as_me: loading cache $cache_file" >&6;}
3131 case $cache_file in
3132 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3133 *) . "./$cache_file";;
3134 esac
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3138 $as_echo "$as_me: creating cache $cache_file" >&6;}
3139 >$cache_file
3142 # Check that the precious variables saved in the cache have kept the same
3143 # value.
3144 ac_cache_corrupted=false
3145 for ac_var in $ac_precious_vars; do
3146 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3147 eval ac_new_set=\$ac_env_${ac_var}_set
3148 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3149 eval ac_new_val=\$ac_env_${ac_var}_value
3150 case $ac_old_set,$ac_new_set in
3151 set,)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3153 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3154 ac_cache_corrupted=: ;;
3155 ,set)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3157 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3158 ac_cache_corrupted=: ;;
3159 ,);;
3161 if test "x$ac_old_val" != "x$ac_new_val"; then
3162 # differences in whitespace do not lead to failure.
3163 ac_old_val_w=`echo x $ac_old_val`
3164 ac_new_val_w=`echo x $ac_new_val`
3165 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3167 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3168 ac_cache_corrupted=:
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3171 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3172 eval $ac_var=\$ac_old_val
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3175 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3177 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3178 fi;;
3179 esac
3180 # Pass precious variables to config.status.
3181 if test "$ac_new_set" = set; then
3182 case $ac_new_val in
3183 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3184 *) ac_arg=$ac_var=$ac_new_val ;;
3185 esac
3186 case " $ac_configure_args " in
3187 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3188 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3189 esac
3191 done
3192 if $ac_cache_corrupted; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3196 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3197 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3199 ## -------------------- ##
3200 ## Main body of script. ##
3201 ## -------------------- ##
3203 ac_ext=c
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3217 gcc_version=`cat $srcdir/BASE-VER`
3219 # Determine the host, build, and target systems
3220 ac_aux_dir=
3221 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3222 for ac_t in install-sh install.sh shtool; do
3223 if test -f "$ac_dir/$ac_t"; then
3224 ac_aux_dir=$ac_dir
3225 ac_install_sh="$ac_aux_dir/$ac_t -c"
3226 break 2
3228 done
3229 done
3230 if test -z "$ac_aux_dir"; then
3231 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3234 # These three variables are undocumented and unsupported,
3235 # and are intended to be withdrawn in a future Autoconf release.
3236 # They can cause serious problems if a builder's source tree is in a directory
3237 # whose full name contains unusual characters.
3238 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3239 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3240 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3243 # Make sure we can run config.sub.
3244 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3245 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3248 $as_echo_n "checking build system type... " >&6; }
3249 if test "${ac_cv_build+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 ac_build_alias=$build_alias
3253 test "x$ac_build_alias" = x &&
3254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3255 test "x$ac_build_alias" = x &&
3256 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3257 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3258 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3262 $as_echo "$ac_cv_build" >&6; }
3263 case $ac_cv_build in
3264 *-*-*) ;;
3265 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3266 esac
3267 build=$ac_cv_build
3268 ac_save_IFS=$IFS; IFS='-'
3269 set x $ac_cv_build
3270 shift
3271 build_cpu=$1
3272 build_vendor=$2
3273 shift; shift
3274 # Remember, the first character of IFS is used to create $*,
3275 # except with old shells:
3276 build_os=$*
3277 IFS=$ac_save_IFS
3278 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3282 $as_echo_n "checking host system type... " >&6; }
3283 if test "${ac_cv_host+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test "x$host_alias" = x; then
3287 ac_cv_host=$ac_cv_build
3288 else
3289 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3290 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3295 $as_echo "$ac_cv_host" >&6; }
3296 case $ac_cv_host in
3297 *-*-*) ;;
3298 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3299 esac
3300 host=$ac_cv_host
3301 ac_save_IFS=$IFS; IFS='-'
3302 set x $ac_cv_host
3303 shift
3304 host_cpu=$1
3305 host_vendor=$2
3306 shift; shift
3307 # Remember, the first character of IFS is used to create $*,
3308 # except with old shells:
3309 host_os=$*
3310 IFS=$ac_save_IFS
3311 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3315 $as_echo_n "checking target system type... " >&6; }
3316 if test "${ac_cv_target+set}" = set; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test "x$target_alias" = x; then
3320 ac_cv_target=$ac_cv_host
3321 else
3322 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3323 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3328 $as_echo "$ac_cv_target" >&6; }
3329 case $ac_cv_target in
3330 *-*-*) ;;
3331 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3332 esac
3333 target=$ac_cv_target
3334 ac_save_IFS=$IFS; IFS='-'
3335 set x $ac_cv_target
3336 shift
3337 target_cpu=$1
3338 target_vendor=$2
3339 shift; shift
3340 # Remember, the first character of IFS is used to create $*,
3341 # except with old shells:
3342 target_os=$*
3343 IFS=$ac_save_IFS
3344 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3347 # The aliases save the names the user supplied, while $host etc.
3348 # will get canonicalized.
3349 test -n "$target_alias" &&
3350 test "$program_prefix$program_suffix$program_transform_name" = \
3351 NONENONEs,x,x, &&
3352 program_prefix=${target_alias}-
3354 # Determine the noncanonical host name, for Ada.
3355 case ${build_alias} in
3356 "") build_noncanonical=${build} ;;
3357 *) build_noncanonical=${build_alias} ;;
3358 esac
3360 case ${host_alias} in
3361 "") host_noncanonical=${build_noncanonical} ;;
3362 *) host_noncanonical=${host_alias} ;;
3363 esac
3368 # Determine the noncanonical target name, for directory use.
3369 case ${target_alias} in
3370 "") target_noncanonical=${host_noncanonical} ;;
3371 *) target_noncanonical=${target_alias} ;;
3372 esac
3377 # Used for constructing correct paths for offload compilers.
3378 real_target_noncanonical=${target_noncanonical}
3379 accel_dir_suffix=
3381 # Determine the target- and build-specific subdirectories
3383 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3384 # have matching libraries, they should use host libraries: Makefile.tpl
3385 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3386 # However, they still use the build modules, because the corresponding
3387 # host modules (e.g. bison) are only built for the host when bootstrap
3388 # finishes. So:
3389 # - build_subdir is where we find build modules, and never changes.
3390 # - build_libsubdir is where we find build libraries, and can be overridden.
3392 # Prefix 'build-' so this never conflicts with target_subdir.
3393 build_subdir="build-${build_noncanonical}"
3395 # Check whether --with-build-libsubdir was given.
3396 if test "${with_build_libsubdir+set}" = set; then :
3397 withval=$with_build_libsubdir; build_libsubdir="$withval"
3398 else
3399 build_libsubdir="$build_subdir"
3402 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3403 if ( test $srcdir = . && test -d gcc ) \
3404 || test -d $srcdir/../host-${host_noncanonical}; then
3405 host_subdir="host-${host_noncanonical}"
3406 else
3407 host_subdir=.
3409 # No prefix.
3410 target_subdir=${target_noncanonical}
3413 # Set program_transform_name
3414 test "$program_prefix" != NONE &&
3415 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3416 # Use a double $ so make ignores it.
3417 test "$program_suffix" != NONE &&
3418 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3419 # Double any \ or $.
3420 # By default was `s,x,x', remove it if useless.
3421 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3422 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3425 # Check for bogus environment variables.
3426 # Test if LIBRARY_PATH contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # LIBRARY_PATH contains the current directory if one of the following
3429 # is true:
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3434 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3435 case ${LIBRARY_PATH} in
3436 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3437 library_path_setting="contains current directory"
3440 library_path_setting="ok"
3442 esac
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3444 $as_echo "$library_path_setting" >&6; }
3445 if test "$library_path_setting" != "ok"; then
3446 as_fn_error "
3447 *** LIBRARY_PATH shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3452 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3453 # since this would lead to problems installing/building glibc.
3454 # GCC_EXEC_PREFIX contains the current directory if one of the following
3455 # is true:
3456 # - one of the terminals (":" and ";") is the first or last sign
3457 # - two terminals occur directly after each other
3458 # - the path contains an element with a dot in it
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3460 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3461 case ${GCC_EXEC_PREFIX} in
3462 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3463 gcc_exec_prefix_setting="contains current directory"
3466 gcc_exec_prefix_setting="ok"
3468 esac
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3470 $as_echo "$gcc_exec_prefix_setting" >&6; }
3471 if test "$gcc_exec_prefix_setting" != "ok"; then
3472 as_fn_error "
3473 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3474 *** building gcc. Please change the environment variable
3475 *** and run configure again." "$LINENO" 5
3478 # -----------
3479 # Directories
3480 # -----------
3482 # Specify the local prefix
3483 local_prefix=
3485 # Check whether --with-local-prefix was given.
3486 if test "${with_local_prefix+set}" = set; then :
3487 withval=$with_local_prefix; case "${withval}" in
3488 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3489 no) ;;
3490 *) local_prefix=$with_local_prefix ;;
3491 esac
3495 # Default local prefix if it is empty
3496 if test x$local_prefix = x; then
3497 local_prefix=/usr/local
3501 # Check whether --with-native-system-header-dir was given.
3502 if test "${with_native_system_header_dir+set}" = set; then :
3503 withval=$with_native_system_header_dir;
3504 case ${with_native_system_header_dir} in
3505 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3506 /* | [A-Za-z]:[\\/]*) ;;
3507 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3508 esac
3509 configured_native_system_header_dir="${withval}"
3511 else
3512 configured_native_system_header_dir=
3517 # Check whether --with-build-sysroot was given.
3518 if test "${with_build_sysroot+set}" = set; then :
3519 withval=$with_build_sysroot; if test x"$withval" != x ; then
3520 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3522 else
3523 SYSROOT_CFLAGS_FOR_TARGET=
3528 if test "x$prefix" = xNONE; then
3529 test_prefix=/usr/local
3530 else
3531 test_prefix=$prefix
3533 if test "x$exec_prefix" = xNONE; then
3534 test_exec_prefix=$test_prefix
3535 else
3536 test_exec_prefix=$exec_prefix
3540 # Check whether --with-sysroot was given.
3541 if test "${with_sysroot+set}" = set; then :
3542 withval=$with_sysroot;
3543 case ${with_sysroot} in
3544 /) ;;
3545 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3546 esac
3547 case ${with_sysroot} in
3548 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3549 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3550 esac
3552 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3553 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3555 case ${TARGET_SYSTEM_ROOT} in
3556 "${test_prefix}"|"${test_prefix}/"*|\
3557 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3558 '${prefix}'|'${prefix}/'*|\
3559 '${exec_prefix}'|'${exec_prefix}/'*)
3560 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3561 TARGET_SYSTEM_ROOT_DEFINE="$t"
3563 esac
3565 else
3567 TARGET_SYSTEM_ROOT=
3568 TARGET_SYSTEM_ROOT_DEFINE=
3569 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3577 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3578 # passed in by the toplevel make and thus we'd get different behavior
3579 # depending on where we built the sources.
3580 gcc_gxx_include_dir=
3581 # Specify the g++ header file directory
3583 # Check whether --with-gxx-include-dir was given.
3584 if test "${with_gxx_include_dir+set}" = set; then :
3585 withval=$with_gxx_include_dir; case "${withval}" in
3586 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3587 no) ;;
3588 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3589 esac
3593 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3594 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3595 # relative to the sysroot.
3596 gcc_gxx_include_dir_add_sysroot=0
3598 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3599 if test x${gcc_gxx_include_dir} = x; then
3600 if test x${enable_version_specific_runtime_libs} = xyes; then
3601 gcc_gxx_include_dir='${libsubdir}/include/c++'
3602 else
3603 libstdcxx_incdir='include/c++/$(version)'
3604 if test x$host != x$target; then
3605 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3607 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3609 elif test "${with_sysroot+set}" = set; then
3610 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3611 if test "${gcc_gxx_without_sysroot}"; then
3612 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3613 gcc_gxx_include_dir_add_sysroot=1
3618 # Check whether --with-cpp_install_dir was given.
3619 if test "${with_cpp_install_dir+set}" = set; then :
3620 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3621 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3622 elif test x$withval != xno; then
3623 cpp_install_dir=$withval
3628 # We would like to our source tree to be readonly. However when releases or
3629 # pre-releases are generated, the flex/bison generated files as well as the
3630 # various formats of manuals need to be included along with the rest of the
3631 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3632 # just that.
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3635 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3636 # Check whether --enable-generated-files-in-srcdir was given.
3637 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3638 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3639 else
3640 generated_files_in_srcdir=no
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3645 $as_echo "$generated_files_in_srcdir" >&6; }
3647 if test "$generated_files_in_srcdir" = "yes"; then
3648 GENINSRC=''
3649 else
3650 GENINSRC='#'
3654 # -------------------
3655 # Find default linker
3656 # -------------------
3658 # With GNU ld
3660 # Check whether --with-gnu-ld was given.
3661 if test "${with_gnu_ld+set}" = set; then :
3662 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3663 else
3664 gnu_ld_flag=no
3668 case $target in
3669 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3670 *) ld64_flag=no;;
3671 esac
3673 # With pre-defined ld
3675 # Check whether --with-ld was given.
3676 if test "${with_ld+set}" = set; then :
3677 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3680 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3681 if test ! -x "$DEFAULT_LINKER"; then
3682 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3683 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3684 gnu_ld_flag=yes
3685 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3686 ld64_flag=yes
3689 cat >>confdefs.h <<_ACEOF
3690 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3691 _ACEOF
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3696 $as_echo_n "checking whether a default linker was specified... " >&6; }
3697 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3698 if test x"$gnu_ld_flag" = x"no"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3700 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3703 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3710 # With demangler in GNU ld
3712 # Check whether --with-demangler-in-ld was given.
3713 if test "${with_demangler_in_ld+set}" = set; then :
3714 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3715 else
3716 demangler_in_ld=yes
3720 # ----------------------
3721 # Find default assembler
3722 # ----------------------
3724 # With GNU as
3726 # Check whether --with-gnu-as was given.
3727 if test "${with_gnu_as+set}" = set; then :
3728 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3729 else
3730 gas_flag=no
3735 # Check whether --with-as was given.
3736 if test "${with_as+set}" = set; then :
3737 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3740 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3741 if test ! -x "$DEFAULT_ASSEMBLER"; then
3742 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3743 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3744 gas_flag=yes
3747 cat >>confdefs.h <<_ACEOF
3748 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3749 _ACEOF
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3754 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3755 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3756 if test x"$gas_flag" = x"no"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3758 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3761 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3768 # ---------------
3769 # Find C compiler
3770 # ---------------
3772 # If a non-executable a.out is present (e.g. created by GNU as above even if
3773 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3774 # file, even when creating an executable, so an execution test fails.
3775 # Remove possible default executable files to avoid this.
3777 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3778 # Autoconf includes it.
3779 rm -f a.out a.exe b.out
3781 # Find the native compiler
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_CC+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3809 done
3810 done
3811 IFS=$as_save_IFS
3815 CC=$ac_cv_prog_CC
3816 if test -n "$CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818 $as_echo "$CC" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3826 if test -z "$ac_cv_prog_CC"; then
3827 ac_ct_CC=$CC
3828 # Extract the first word of "gcc", so it can be a program name with args.
3829 set dummy gcc; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test -n "$ac_ct_CC"; then
3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_ac_ct_CC="gcc"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3849 done
3850 done
3851 IFS=$as_save_IFS
3855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3856 if test -n "$ac_ct_CC"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3858 $as_echo "$ac_ct_CC" >&6; }
3859 else
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3864 if test "x$ac_ct_CC" = x; then
3865 CC=""
3866 else
3867 case $cross_compiling:$ac_tool_warned in
3868 yes:)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3871 ac_tool_warned=yes ;;
3872 esac
3873 CC=$ac_ct_CC
3875 else
3876 CC="$ac_cv_prog_CC"
3879 if test -z "$CC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}cc; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_CC+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_CC="${ac_tool_prefix}cc"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3904 IFS=$as_save_IFS
3908 CC=$ac_cv_prog_CC
3909 if test -n "$CC"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911 $as_echo "$CC" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3920 if test -z "$CC"; then
3921 # Extract the first word of "cc", so it can be a program name with args.
3922 set dummy cc; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if test "${ac_cv_prog_CC+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -n "$CC"; then
3929 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 else
3931 ac_prog_rejected=no
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3940 ac_prog_rejected=yes
3941 continue
3943 ac_cv_prog_CC="cc"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3947 done
3948 done
3949 IFS=$as_save_IFS
3951 if test $ac_prog_rejected = yes; then
3952 # We found a bogon in the path, so make sure we never use it.
3953 set dummy $ac_cv_prog_CC
3954 shift
3955 if test $# != 0; then
3956 # We chose a different compiler from the bogus one.
3957 # However, it has the same basename, so the bogon will be chosen
3958 # first if we set CC to just the basename; use the full file name.
3959 shift
3960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3965 CC=$ac_cv_prog_CC
3966 if test -n "$CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 $as_echo "$CC" >&6; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3976 if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
3978 for ac_prog in cl.exe
3980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_prog_CC+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010 $as_echo "$CC" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4017 test -n "$CC" && break
4018 done
4020 if test -z "$CC"; then
4021 ac_ct_CC=$CC
4022 for ac_prog in cl.exe
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$ac_ct_CC"; then
4032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4041 ac_cv_prog_ac_ct_CC="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4047 IFS=$as_save_IFS
4051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4052 if test -n "$ac_ct_CC"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4054 $as_echo "$ac_ct_CC" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4061 test -n "$ac_ct_CC" && break
4062 done
4064 if test "x$ac_ct_CC" = x; then
4065 CC=""
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 CC=$ac_ct_CC
4080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error "no acceptable C compiler found in \$PATH
4083 See \`config.log' for more details." "$LINENO" 5; }
4085 # Provide some information about the compiler.
4086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4087 set X $ac_compile
4088 ac_compiler=$2
4089 for ac_option in --version -v -V -qversion; do
4090 { { ac_try="$ac_compiler $ac_option >&5"
4091 case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 $as_echo "$ac_try_echo"; } >&5
4097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4098 ac_status=$?
4099 if test -s conftest.err; then
4100 sed '10a\
4101 ... rest of stderr output deleted ...
4102 10q' conftest.err >conftest.er1
4103 cat conftest.er1 >&5
4104 rm -f conftest.er1 conftest.err
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108 done
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4114 main ()
4118 return 0;
4120 _ACEOF
4121 ac_clean_files_save=$ac_clean_files
4122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4123 # Try to create an executable without -o first, disregard a.out.
4124 # It will help us diagnose broken compilers, and finding out an intuition
4125 # of exeext.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4127 $as_echo_n "checking for C compiler default output file name... " >&6; }
4128 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4130 # The possible output files:
4131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4133 ac_rmfiles=
4134 for ac_file in $ac_files
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4139 esac
4140 done
4141 rm -f $ac_rmfiles
4143 if { { ac_try="$ac_link_default"
4144 case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_link_default") 2>&5
4151 ac_status=$?
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; then :
4154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4157 # so that the user can short-circuit this test for compilers unknown to
4158 # Autoconf.
4159 for ac_file in $ac_files ''
4161 test -f "$ac_file" || continue
4162 case $ac_file in
4163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4165 [ab].out )
4166 # We found the default executable, but exeext='' is most
4167 # certainly right.
4168 break;;
4169 *.* )
4170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4171 then :; else
4172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4174 # We set ac_cv_exeext here because the later test for it is not
4175 # safe: cross compilers may not add the suffix if given an `-o'
4176 # argument, so we may need to know it at that point already.
4177 # Even if this section looks crufty: it has the advantage of
4178 # actually working.
4179 break;;
4181 break;;
4182 esac
4183 done
4184 test "$ac_cv_exeext" = no && ac_cv_exeext=
4186 else
4187 ac_file=''
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4190 $as_echo "$ac_file" >&6; }
4191 if test -z "$ac_file"; then :
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 { as_fn_set_status 77
4198 as_fn_error "C compiler cannot create executables
4199 See \`config.log' for more details." "$LINENO" 5; }; }
4201 ac_exeext=$ac_cv_exeext
4203 # Check that the compiler produces executables we can run. If not, either
4204 # the compiler is broken, or we cross compile.
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4206 $as_echo_n "checking whether the C compiler works... " >&6; }
4207 # If not cross compiling, check that we can run a simple program.
4208 if test "$cross_compiling" != yes; then
4209 if { ac_try='./$ac_file'
4210 { { case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216 (eval "$ac_try") 2>&5
4217 ac_status=$?
4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }; }; then
4220 cross_compiling=no
4221 else
4222 if test "$cross_compiling" = maybe; then
4223 cross_compiling=yes
4224 else
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error "cannot run C compiled programs.
4228 If you meant to cross compile, use \`--host'.
4229 See \`config.log' for more details." "$LINENO" 5; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4234 $as_echo "yes" >&6; }
4236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4237 ac_clean_files=$ac_clean_files_save
4238 # Check that the compiler produces executables we can run. If not, either
4239 # the compiler is broken, or we cross compile.
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4241 $as_echo_n "checking whether we are cross compiling... " >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4243 $as_echo "$cross_compiling" >&6; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4246 $as_echo_n "checking for suffix of executables... " >&6; }
4247 if { { ac_try="$ac_link"
4248 case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_link") 2>&5
4255 ac_status=$?
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; then :
4258 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4259 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4260 # work properly (i.e., refer to `conftest.exe'), while it won't with
4261 # `rm'.
4262 for ac_file in conftest.exe conftest conftest.*; do
4263 test -f "$ac_file" || continue
4264 case $ac_file in
4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4267 break;;
4268 * ) break;;
4269 esac
4270 done
4271 else
4272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274 as_fn_error "cannot compute suffix of executables: cannot compile and link
4275 See \`config.log' for more details." "$LINENO" 5; }
4277 rm -f conftest$ac_cv_exeext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4279 $as_echo "$ac_cv_exeext" >&6; }
4281 rm -f conftest.$ac_ext
4282 EXEEXT=$ac_cv_exeext
4283 ac_exeext=$EXEEXT
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4285 $as_echo_n "checking for suffix of object files... " >&6; }
4286 if test "${ac_cv_objext+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4293 main ()
4297 return 0;
4299 _ACEOF
4300 rm -f conftest.o conftest.obj
4301 if { { ac_try="$ac_compile"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compile") 2>&5
4309 ac_status=$?
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; then :
4312 for ac_file in conftest.o conftest.obj conftest.*; do
4313 test -f "$ac_file" || continue;
4314 case $ac_file in
4315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4317 break;;
4318 esac
4319 done
4320 else
4321 $as_echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error "cannot compute suffix of object files: cannot compile
4327 See \`config.log' for more details." "$LINENO" 5; }
4329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4332 $as_echo "$ac_cv_objext" >&6; }
4333 OBJEXT=$ac_cv_objext
4334 ac_objext=$OBJEXT
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4337 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4344 main ()
4346 #ifndef __GNUC__
4347 choke me
4348 #endif
4351 return 0;
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_compiler_gnu=yes
4356 else
4357 ac_compiler_gnu=no
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4365 if test $ac_compiler_gnu = yes; then
4366 GCC=yes
4367 else
4368 GCC=
4370 ac_test_CFLAGS=${CFLAGS+set}
4371 ac_save_CFLAGS=$CFLAGS
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4374 if test "${ac_cv_prog_cc_g+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 ac_cv_prog_cc_g=no
4380 CFLAGS="-g"
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4385 main ()
4389 return 0;
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_g=yes
4394 else
4395 CFLAGS=""
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4409 else
4410 ac_c_werror_flag=$ac_save_c_werror_flag
4411 CFLAGS="-g"
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4416 main ()
4420 return 0;
4422 _ACEOF
4423 if ac_fn_c_try_compile "$LINENO"; then :
4424 ac_cv_prog_cc_g=yes
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 ac_c_werror_flag=$ac_save_c_werror_flag
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4434 $as_echo "$ac_cv_prog_cc_g" >&6; }
4435 if test "$ac_test_CFLAGS" = set; then
4436 CFLAGS=$ac_save_CFLAGS
4437 elif test $ac_cv_prog_cc_g = yes; then
4438 if test "$GCC" = yes; then
4439 CFLAGS="-g -O2"
4440 else
4441 CFLAGS="-g"
4443 else
4444 if test "$GCC" = yes; then
4445 CFLAGS="-O2"
4446 else
4447 CFLAGS=
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4452 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_cv_prog_cc_c89=no
4456 ac_save_CC=$CC
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <stdarg.h>
4460 #include <stdio.h>
4461 #include <sys/types.h>
4462 #include <sys/stat.h>
4463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4464 struct buf { int x; };
4465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4466 static char *e (p, i)
4467 char **p;
4468 int i;
4470 return p[i];
4472 static char *f (char * (*g) (char **, int), char **p, ...)
4474 char *s;
4475 va_list v;
4476 va_start (v,p);
4477 s = g (p, va_arg (v,int));
4478 va_end (v);
4479 return s;
4482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4483 function prototypes and stuff, but not '\xHH' hex character constants.
4484 These don't provoke an error unfortunately, instead are silently treated
4485 as 'x'. The following induces an error, until -std is added to get
4486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4487 array size at least. It's necessary to write '\x00'==0 to get something
4488 that's true only with -std. */
4489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4492 inside strings and character constants. */
4493 #define FOO(x) 'x'
4494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4496 int test (int i, double x);
4497 struct s1 {int (*f) (int a);};
4498 struct s2 {int (*f) (double a);};
4499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4500 int argc;
4501 char **argv;
4503 main ()
4505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4507 return 0;
4509 _ACEOF
4510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4513 CC="$ac_save_CC $ac_arg"
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_cv_prog_cc_c89=$ac_arg
4517 rm -f core conftest.err conftest.$ac_objext
4518 test "x$ac_cv_prog_cc_c89" != "xno" && break
4519 done
4520 rm -f conftest.$ac_ext
4521 CC=$ac_save_CC
4524 # AC_CACHE_VAL
4525 case "x$ac_cv_prog_cc_c89" in
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4528 $as_echo "none needed" >&6; } ;;
4529 xno)
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4531 $as_echo "unsupported" >&6; } ;;
4533 CC="$CC $ac_cv_prog_cc_c89"
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4536 esac
4537 if test "x$ac_cv_prog_cc_c89" != xno; then :
4541 ac_ext=c
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547 ac_ext=cpp
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552 if test -z "$CXX"; then
4553 if test -n "$CCC"; then
4554 CXX=$CCC
4555 else
4556 if test -n "$ac_tool_prefix"; then
4557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CXX+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -n "$CXX"; then
4567 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4580 done
4581 done
4582 IFS=$as_save_IFS
4586 CXX=$ac_cv_prog_CXX
4587 if test -n "$CXX"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4589 $as_echo "$CXX" >&6; }
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4596 test -n "$CXX" && break
4597 done
4599 if test -z "$CXX"; then
4600 ac_ct_CXX=$CXX
4601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4603 # Extract the first word of "$ac_prog", so it can be a program name with args.
4604 set dummy $ac_prog; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$ac_ct_CXX"; then
4611 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_ac_ct_CXX="$ac_prog"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4624 done
4625 done
4626 IFS=$as_save_IFS
4630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4631 if test -n "$ac_ct_CXX"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4633 $as_echo "$ac_ct_CXX" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4640 test -n "$ac_ct_CXX" && break
4641 done
4643 if test "x$ac_ct_CXX" = x; then
4644 CXX="g++"
4645 else
4646 case $cross_compiling:$ac_tool_warned in
4647 yes:)
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4650 ac_tool_warned=yes ;;
4651 esac
4652 CXX=$ac_ct_CXX
4658 # Provide some information about the compiler.
4659 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4660 set X $ac_compile
4661 ac_compiler=$2
4662 for ac_option in --version -v -V -qversion; do
4663 { { ac_try="$ac_compiler $ac_option >&5"
4664 case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667 esac
4668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669 $as_echo "$ac_try_echo"; } >&5
4670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4671 ac_status=$?
4672 if test -s conftest.err; then
4673 sed '10a\
4674 ... rest of stderr output deleted ...
4675 10q' conftest.err >conftest.er1
4676 cat conftest.er1 >&5
4677 rm -f conftest.er1 conftest.err
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }
4681 done
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4684 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4685 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4692 main ()
4694 #ifndef __GNUC__
4695 choke me
4696 #endif
4699 return 0;
4701 _ACEOF
4702 if ac_fn_cxx_try_compile "$LINENO"; then :
4703 ac_compiler_gnu=yes
4704 else
4705 ac_compiler_gnu=no
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4712 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4713 if test $ac_compiler_gnu = yes; then
4714 GXX=yes
4715 else
4716 GXX=
4718 ac_test_CXXFLAGS=${CXXFLAGS+set}
4719 ac_save_CXXFLAGS=$CXXFLAGS
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4721 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4722 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4726 ac_cxx_werror_flag=yes
4727 ac_cv_prog_cxx_g=no
4728 CXXFLAGS="-g"
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4733 main ()
4737 return 0;
4739 _ACEOF
4740 if ac_fn_cxx_try_compile "$LINENO"; then :
4741 ac_cv_prog_cxx_g=yes
4742 else
4743 CXXFLAGS=""
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 main ()
4752 return 0;
4754 _ACEOF
4755 if ac_fn_cxx_try_compile "$LINENO"; then :
4757 else
4758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4759 CXXFLAGS="-g"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4764 main ()
4768 return 0;
4770 _ACEOF
4771 if ac_fn_cxx_try_compile "$LINENO"; then :
4772 ac_cv_prog_cxx_g=yes
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4782 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4783 if test "$ac_test_CXXFLAGS" = set; then
4784 CXXFLAGS=$ac_save_CXXFLAGS
4785 elif test $ac_cv_prog_cxx_g = yes; then
4786 if test "$GXX" = yes; then
4787 CXXFLAGS="-g -O2"
4788 else
4789 CXXFLAGS="-g"
4791 else
4792 if test "$GXX" = yes; then
4793 CXXFLAGS="-O2"
4794 else
4795 CXXFLAGS=
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807 if test -n "$ac_tool_prefix"; then
4808 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4809 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$GNATBIND"; then
4816 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 GNATBIND=$ac_cv_prog_GNATBIND
4836 if test -n "$GNATBIND"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4838 $as_echo "$GNATBIND" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4846 if test -z "$ac_cv_prog_GNATBIND"; then
4847 ac_ct_GNATBIND=$GNATBIND
4848 # Extract the first word of "gnatbind", so it can be a program name with args.
4849 set dummy gnatbind; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$ac_ct_GNATBIND"; then
4856 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4869 done
4870 done
4871 IFS=$as_save_IFS
4875 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4876 if test -n "$ac_ct_GNATBIND"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4878 $as_echo "$ac_ct_GNATBIND" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4884 if test "x$ac_ct_GNATBIND" = x; then
4885 GNATBIND="no"
4886 else
4887 case $cross_compiling:$ac_tool_warned in
4888 yes:)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891 ac_tool_warned=yes ;;
4892 esac
4893 GNATBIND=$ac_ct_GNATBIND
4895 else
4896 GNATBIND="$ac_cv_prog_GNATBIND"
4899 if test -n "$ac_tool_prefix"; then
4900 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4901 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -n "$GNATMAKE"; then
4908 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4921 done
4922 done
4923 IFS=$as_save_IFS
4927 GNATMAKE=$ac_cv_prog_GNATMAKE
4928 if test -n "$GNATMAKE"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4930 $as_echo "$GNATMAKE" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4938 if test -z "$ac_cv_prog_GNATMAKE"; then
4939 ac_ct_GNATMAKE=$GNATMAKE
4940 # Extract the first word of "gnatmake", so it can be a program name with args.
4941 set dummy gnatmake; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$ac_ct_GNATMAKE"; then
4948 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4967 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4968 if test -n "$ac_ct_GNATMAKE"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4970 $as_echo "$ac_ct_GNATMAKE" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4976 if test "x$ac_ct_GNATMAKE" = x; then
4977 GNATMAKE="no"
4978 else
4979 case $cross_compiling:$ac_tool_warned in
4980 yes:)
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4983 ac_tool_warned=yes ;;
4984 esac
4985 GNATMAKE=$ac_ct_GNATMAKE
4987 else
4988 GNATMAKE="$ac_cv_prog_GNATMAKE"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4992 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4993 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 cat >conftest.adb <<EOF
4997 procedure conftest is begin null; end conftest;
4999 acx_cv_cc_gcc_supports_ada=no
5000 # There is a bug in old released versions of GCC which causes the
5001 # driver to exit successfully when the appropriate language module
5002 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5003 # Therefore we must check for the error message as well as an
5004 # unsuccessful exit.
5005 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5006 # given a .adb file, but produce no object file. So we must check
5007 # if an object file was really produced to guard against this.
5008 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5009 if test x"$errors" = x && test -f conftest.$ac_objext; then
5010 acx_cv_cc_gcc_supports_ada=yes
5012 rm -f conftest.*
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5015 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5017 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5018 have_gnat=yes
5019 else
5020 have_gnat=no
5024 # Do configure tests with the C++ compiler, since that's what we build with.
5025 ac_ext=cpp
5026 ac_cpp='$CXXCPP $CPPFLAGS'
5027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5032 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5033 # optimizations to be activated explicitly by the toplevel.
5034 case "$CC" in
5035 */prev-gcc/xgcc*) ;;
5036 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5037 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5038 esac
5042 # Determine PICFLAG for target gnatlib.
5047 case "${target}" in
5048 # PIC is the default on some targets or must not be used.
5049 *-*-darwin*)
5050 # For darwin, common symbols are not allowed in MH_DYLIB files
5051 case "${CFLAGS}" in
5052 # If we are using a compiler supporting mdynamic-no-pic
5053 # and the option has been tested as safe to add, then cancel
5054 # it here, since the code generated is incompatible with shared
5055 # libs.
5056 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5057 *) PICFLAG_FOR_TARGET=-fno-common ;;
5058 esac
5060 alpha*-dec-osf5*)
5061 # PIC is the default.
5063 hppa*64*-*-hpux*)
5064 # PIC is the default for 64-bit PA HP-UX.
5066 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5068 i[34567]86-*-mingw* | x86_64-*-mingw*)
5070 i[34567]86-*-interix[3-9]*)
5071 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5072 # Instead, we relocate shared libraries at runtime.
5074 i[34567]86-*-nto-qnx*)
5075 # QNX uses GNU C++, but need to define -shared option too, otherwise
5076 # it will coredump.
5077 PICFLAG_FOR_TARGET='-fPIC -shared'
5079 i[34567]86-pc-msdosdjgpp*)
5080 # DJGPP does not support shared libraries at all.
5082 ia64*-*-hpux*)
5083 # On IA64 HP-UX, PIC is the default but the pic flag
5084 # sets the default TLS model and affects inlining.
5085 PICFLAG_FOR_TARGET=-fPIC
5087 mips-sgi-irix6*)
5088 # PIC is the default.
5090 rs6000-ibm-aix* | powerpc-ibm-aix*)
5091 # All AIX code is PIC.
5094 # Some targets support both -fPIC and -fpic, but prefer the latter.
5095 # FIXME: Why?
5096 i[34567]86-*-* | x86_64-*-*)
5097 PICFLAG_FOR_TARGET=-fpic
5099 # FIXME: Override -fPIC default in libgcc only?
5100 sh-*-linux* | sh[2346lbe]*-*-linux*)
5101 PICFLAG_FOR_TARGET=-fpic
5103 # FIXME: Simplify to sh*-*-netbsd*?
5104 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5105 sh64-*-netbsd* | sh64l*-*-netbsd*)
5106 PICFLAG_FOR_TARGET=-fpic
5108 # Default to -fPIC unless specified otherwise.
5110 PICFLAG_FOR_TARGET=-fPIC
5112 esac
5114 # If the user explicitly uses -fpic/-fPIC, keep that.
5115 case "${CFLAGS_FOR_TARGET}" in
5116 *-fpic*)
5117 PICFLAG_FOR_TARGET=-fpic
5119 *-fPIC*)
5120 PICFLAG_FOR_TARGET=-fPIC
5122 esac
5126 # -------------------------
5127 # Check C compiler features
5128 # -------------------------
5131 ac_ext=cpp
5132 ac_cpp='$CXXCPP $CPPFLAGS'
5133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5137 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5138 if test -z "$CXXCPP"; then
5139 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 # Double quotes because CXXCPP needs to be expanded
5143 for CXXCPP in "$CXX -E" "/lib/cpp"
5145 ac_preproc_ok=false
5146 for ac_cxx_preproc_warn_flag in '' yes
5148 # Use a header file that comes with gcc, so configuring glibc
5149 # with a fresh cross-compiler works.
5150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151 # <limits.h> exists even on freestanding compilers.
5152 # On the NeXT, cc -E runs the code through the compiler's parser,
5153 # not just through cpp. "Syntax error" is here to catch this case.
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 #ifdef __STDC__
5157 # include <limits.h>
5158 #else
5159 # include <assert.h>
5160 #endif
5161 Syntax error
5162 _ACEOF
5163 if ac_fn_cxx_try_cpp "$LINENO"; then :
5165 else
5166 # Broken: fails on valid input.
5167 continue
5169 rm -f conftest.err conftest.$ac_ext
5171 # OK, works on sane cases. Now check whether nonexistent headers
5172 # can be detected and how.
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 #include <ac_nonexistent.h>
5176 _ACEOF
5177 if ac_fn_cxx_try_cpp "$LINENO"; then :
5178 # Broken: success on invalid input.
5179 continue
5180 else
5181 # Passes both tests.
5182 ac_preproc_ok=:
5183 break
5185 rm -f conftest.err conftest.$ac_ext
5187 done
5188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5189 rm -f conftest.err conftest.$ac_ext
5190 if $ac_preproc_ok; then :
5191 break
5194 done
5195 ac_cv_prog_CXXCPP=$CXXCPP
5198 CXXCPP=$ac_cv_prog_CXXCPP
5199 else
5200 ac_cv_prog_CXXCPP=$CXXCPP
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5203 $as_echo "$CXXCPP" >&6; }
5204 ac_preproc_ok=false
5205 for ac_cxx_preproc_warn_flag in '' yes
5207 # Use a header file that comes with gcc, so configuring glibc
5208 # with a fresh cross-compiler works.
5209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 # <limits.h> exists even on freestanding compilers.
5211 # On the NeXT, cc -E runs the code through the compiler's parser,
5212 # not just through cpp. "Syntax error" is here to catch this case.
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #ifdef __STDC__
5216 # include <limits.h>
5217 #else
5218 # include <assert.h>
5219 #endif
5220 Syntax error
5221 _ACEOF
5222 if ac_fn_cxx_try_cpp "$LINENO"; then :
5224 else
5225 # Broken: fails on valid input.
5226 continue
5228 rm -f conftest.err conftest.$ac_ext
5230 # OK, works on sane cases. Now check whether nonexistent headers
5231 # can be detected and how.
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 #include <ac_nonexistent.h>
5235 _ACEOF
5236 if ac_fn_cxx_try_cpp "$LINENO"; then :
5237 # Broken: success on invalid input.
5238 continue
5239 else
5240 # Passes both tests.
5241 ac_preproc_ok=:
5242 break
5244 rm -f conftest.err conftest.$ac_ext
5246 done
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then :
5251 else
5252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5254 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5255 See \`config.log' for more details." "$LINENO" 5; }
5258 ac_ext=cpp
5259 ac_cpp='$CXXCPP $CPPFLAGS'
5260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5266 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5267 if test "${ac_cv_path_GREP+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -z "$GREP"; then
5271 ac_path_GREP_found=false
5272 # Loop through the user's path and test for each of PROGNAME-LIST
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_prog in grep ggrep; do
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5281 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5282 # Check for GNU ac_path_GREP and select it if it is found.
5283 # Check for GNU $ac_path_GREP
5284 case `"$ac_path_GREP" --version 2>&1` in
5285 *GNU*)
5286 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5288 ac_count=0
5289 $as_echo_n 0123456789 >"conftest.in"
5290 while :
5292 cat "conftest.in" "conftest.in" >"conftest.tmp"
5293 mv "conftest.tmp" "conftest.in"
5294 cp "conftest.in" "conftest.nl"
5295 $as_echo 'GREP' >> "conftest.nl"
5296 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5298 as_fn_arith $ac_count + 1 && ac_count=$as_val
5299 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5300 # Best one so far, save it but keep looking for a better one
5301 ac_cv_path_GREP="$ac_path_GREP"
5302 ac_path_GREP_max=$ac_count
5304 # 10*(2^10) chars as input seems more than enough
5305 test $ac_count -gt 10 && break
5306 done
5307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5308 esac
5310 $ac_path_GREP_found && break 3
5311 done
5312 done
5313 done
5314 IFS=$as_save_IFS
5315 if test -z "$ac_cv_path_GREP"; then
5316 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5318 else
5319 ac_cv_path_GREP=$GREP
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5324 $as_echo "$ac_cv_path_GREP" >&6; }
5325 GREP="$ac_cv_path_GREP"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5329 $as_echo_n "checking for egrep... " >&6; }
5330 if test "${ac_cv_path_EGREP+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5334 then ac_cv_path_EGREP="$GREP -E"
5335 else
5336 if test -z "$EGREP"; then
5337 ac_path_EGREP_found=false
5338 # Loop through the user's path and test for each of PROGNAME-LIST
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_prog in egrep; do
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5347 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5348 # Check for GNU ac_path_EGREP and select it if it is found.
5349 # Check for GNU $ac_path_EGREP
5350 case `"$ac_path_EGREP" --version 2>&1` in
5351 *GNU*)
5352 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5354 ac_count=0
5355 $as_echo_n 0123456789 >"conftest.in"
5356 while :
5358 cat "conftest.in" "conftest.in" >"conftest.tmp"
5359 mv "conftest.tmp" "conftest.in"
5360 cp "conftest.in" "conftest.nl"
5361 $as_echo 'EGREP' >> "conftest.nl"
5362 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5364 as_fn_arith $ac_count + 1 && ac_count=$as_val
5365 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5366 # Best one so far, save it but keep looking for a better one
5367 ac_cv_path_EGREP="$ac_path_EGREP"
5368 ac_path_EGREP_max=$ac_count
5370 # 10*(2^10) chars as input seems more than enough
5371 test $ac_count -gt 10 && break
5372 done
5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5374 esac
5376 $ac_path_EGREP_found && break 3
5377 done
5378 done
5379 done
5380 IFS=$as_save_IFS
5381 if test -z "$ac_cv_path_EGREP"; then
5382 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5384 else
5385 ac_cv_path_EGREP=$EGREP
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5391 $as_echo "$ac_cv_path_EGREP" >&6; }
5392 EGREP="$ac_cv_path_EGREP"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5396 $as_echo_n "checking for ANSI C header files... " >&6; }
5397 if test "${ac_cv_header_stdc+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <stdlib.h>
5403 #include <stdarg.h>
5404 #include <string.h>
5405 #include <float.h>
5408 main ()
5412 return 0;
5414 _ACEOF
5415 if ac_fn_cxx_try_compile "$LINENO"; then :
5416 ac_cv_header_stdc=yes
5417 else
5418 ac_cv_header_stdc=no
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 if test $ac_cv_header_stdc = yes; then
5423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <string.h>
5428 _ACEOF
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "memchr" >/dev/null 2>&1; then :
5432 else
5433 ac_cv_header_stdc=no
5435 rm -f conftest*
5439 if test $ac_cv_header_stdc = yes; then
5440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 #include <stdlib.h>
5445 _ACEOF
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 $EGREP "free" >/dev/null 2>&1; then :
5449 else
5450 ac_cv_header_stdc=no
5452 rm -f conftest*
5456 if test $ac_cv_header_stdc = yes; then
5457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5458 if test "$cross_compiling" = yes; then :
5460 else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <ctype.h>
5464 #include <stdlib.h>
5465 #if ((' ' & 0x0FF) == 0x020)
5466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5468 #else
5469 # define ISLOWER(c) \
5470 (('a' <= (c) && (c) <= 'i') \
5471 || ('j' <= (c) && (c) <= 'r') \
5472 || ('s' <= (c) && (c) <= 'z'))
5473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5474 #endif
5476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5478 main ()
5480 int i;
5481 for (i = 0; i < 256; i++)
5482 if (XOR (islower (i), ISLOWER (i))
5483 || toupper (i) != TOUPPER (i))
5484 return 2;
5485 return 0;
5487 _ACEOF
5488 if ac_fn_cxx_try_run "$LINENO"; then :
5490 else
5491 ac_cv_header_stdc=no
5493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5494 conftest.$ac_objext conftest.beam conftest.$ac_ext
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5500 $as_echo "$ac_cv_header_stdc" >&6; }
5501 if test $ac_cv_header_stdc = yes; then
5503 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5507 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5509 inttypes.h stdint.h unistd.h
5510 do :
5511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5512 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5514 eval as_val=\$$as_ac_Header
5515 if test "x$as_val" = x""yes; then :
5516 cat >>confdefs.h <<_ACEOF
5517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5518 _ACEOF
5522 done
5526 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5527 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5528 MINIX=yes
5529 else
5530 MINIX=
5534 if test "$MINIX" = yes; then
5536 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5539 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5542 $as_echo "#define _MINIX 1" >>confdefs.h
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5548 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5549 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5555 # define __EXTENSIONS__ 1
5556 $ac_includes_default
5558 main ()
5562 return 0;
5564 _ACEOF
5565 if ac_fn_cxx_try_compile "$LINENO"; then :
5566 ac_cv_safe_to_define___extensions__=yes
5567 else
5568 ac_cv_safe_to_define___extensions__=no
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5573 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5574 test $ac_cv_safe_to_define___extensions__ = yes &&
5575 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5577 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5579 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5581 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5583 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5586 ac_ext=c
5587 ac_cpp='$CPP $CPPFLAGS'
5588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5592 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5593 # On Suns, sometimes $CPP names a directory.
5594 if test -n "$CPP" && test -d "$CPP"; then
5595 CPP=
5597 if test -z "$CPP"; then
5598 if test "${ac_cv_prog_CPP+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 # Double quotes because CPP needs to be expanded
5602 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5604 ac_preproc_ok=false
5605 for ac_c_preproc_warn_flag in '' yes
5607 # Use a header file that comes with gcc, so configuring glibc
5608 # with a fresh cross-compiler works.
5609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5610 # <limits.h> exists even on freestanding compilers.
5611 # On the NeXT, cc -E runs the code through the compiler's parser,
5612 # not just through cpp. "Syntax error" is here to catch this case.
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #ifdef __STDC__
5616 # include <limits.h>
5617 #else
5618 # include <assert.h>
5619 #endif
5620 Syntax error
5621 _ACEOF
5622 if ac_fn_c_try_cpp "$LINENO"; then :
5624 else
5625 # Broken: fails on valid input.
5626 continue
5628 rm -f conftest.err conftest.$ac_ext
5630 # OK, works on sane cases. Now check whether nonexistent headers
5631 # can be detected and how.
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include <ac_nonexistent.h>
5635 _ACEOF
5636 if ac_fn_c_try_cpp "$LINENO"; then :
5637 # Broken: success on invalid input.
5638 continue
5639 else
5640 # Passes both tests.
5641 ac_preproc_ok=:
5642 break
5644 rm -f conftest.err conftest.$ac_ext
5646 done
5647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5648 rm -f conftest.err conftest.$ac_ext
5649 if $ac_preproc_ok; then :
5650 break
5653 done
5654 ac_cv_prog_CPP=$CPP
5657 CPP=$ac_cv_prog_CPP
5658 else
5659 ac_cv_prog_CPP=$CPP
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5662 $as_echo "$CPP" >&6; }
5663 ac_preproc_ok=false
5664 for ac_c_preproc_warn_flag in '' yes
5666 # Use a header file that comes with gcc, so configuring glibc
5667 # with a fresh cross-compiler works.
5668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669 # <limits.h> exists even on freestanding compilers.
5670 # On the NeXT, cc -E runs the code through the compiler's parser,
5671 # not just through cpp. "Syntax error" is here to catch this case.
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #ifdef __STDC__
5675 # include <limits.h>
5676 #else
5677 # include <assert.h>
5678 #endif
5679 Syntax error
5680 _ACEOF
5681 if ac_fn_c_try_cpp "$LINENO"; then :
5683 else
5684 # Broken: fails on valid input.
5685 continue
5687 rm -f conftest.err conftest.$ac_ext
5689 # OK, works on sane cases. Now check whether nonexistent headers
5690 # can be detected and how.
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #include <ac_nonexistent.h>
5694 _ACEOF
5695 if ac_fn_c_try_cpp "$LINENO"; then :
5696 # Broken: success on invalid input.
5697 continue
5698 else
5699 # Passes both tests.
5700 ac_preproc_ok=:
5701 break
5703 rm -f conftest.err conftest.$ac_ext
5705 done
5706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5707 rm -f conftest.err conftest.$ac_ext
5708 if $ac_preproc_ok; then :
5710 else
5711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5713 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5714 See \`config.log' for more details." "$LINENO" 5; }
5717 ac_ext=cpp
5718 ac_cpp='$CXXCPP $CPPFLAGS'
5719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5724 $as_echo_n "checking for inline... " >&6; }
5725 if test "${ac_cv_c_inline+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 ac_cv_c_inline=no
5729 for ac_kw in inline __inline__ __inline; do
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #ifndef __cplusplus
5733 typedef int foo_t;
5734 static $ac_kw foo_t static_foo () {return 0; }
5735 $ac_kw foo_t foo () {return 0; }
5736 #endif
5738 _ACEOF
5739 if ac_fn_cxx_try_compile "$LINENO"; then :
5740 ac_cv_c_inline=$ac_kw
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 test "$ac_cv_c_inline" != no && break
5744 done
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5748 $as_echo "$ac_cv_c_inline" >&6; }
5750 case $ac_cv_c_inline in
5751 inline | yes) ;;
5753 case $ac_cv_c_inline in
5754 no) ac_val=;;
5755 *) ac_val=$ac_cv_c_inline;;
5756 esac
5757 cat >>confdefs.h <<_ACEOF
5758 #ifndef __cplusplus
5759 #define inline $ac_val
5760 #endif
5761 _ACEOF
5763 esac
5766 # Check whether --enable-largefile was given.
5767 if test "${enable_largefile+set}" = set; then :
5768 enableval=$enable_largefile;
5771 if test "$enable_largefile" != no; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5774 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5775 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 ac_cv_sys_largefile_CC=no
5779 if test "$GCC" != yes; then
5780 ac_save_CC=$CC
5781 while :; do
5782 # IRIX 6.2 and later do not support large files by default,
5783 # so use the C compiler's -n32 option if that helps.
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #include <sys/types.h>
5787 /* Check that off_t can represent 2**63 - 1 correctly.
5788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5789 since some C++ compilers masquerading as C compilers
5790 incorrectly reject 9223372036854775807. */
5791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5793 && LARGE_OFF_T % 2147483647 == 1)
5794 ? 1 : -1];
5796 main ()
5800 return 0;
5802 _ACEOF
5803 if ac_fn_cxx_try_compile "$LINENO"; then :
5804 break
5806 rm -f core conftest.err conftest.$ac_objext
5807 CC="$CC -n32"
5808 if ac_fn_cxx_try_compile "$LINENO"; then :
5809 ac_cv_sys_largefile_CC=' -n32'; break
5811 rm -f core conftest.err conftest.$ac_objext
5812 break
5813 done
5814 CC=$ac_save_CC
5815 rm -f conftest.$ac_ext
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5819 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5820 if test "$ac_cv_sys_largefile_CC" != no; then
5821 CC=$CC$ac_cv_sys_largefile_CC
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5825 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5826 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 while :; do
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5833 /* Check that off_t can represent 2**63 - 1 correctly.
5834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5835 since some C++ compilers masquerading as C compilers
5836 incorrectly reject 9223372036854775807. */
5837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5839 && LARGE_OFF_T % 2147483647 == 1)
5840 ? 1 : -1];
5842 main ()
5846 return 0;
5848 _ACEOF
5849 if ac_fn_cxx_try_compile "$LINENO"; then :
5850 ac_cv_sys_file_offset_bits=no; break
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 #define _FILE_OFFSET_BITS 64
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5864 ? 1 : -1];
5866 main ()
5870 return 0;
5872 _ACEOF
5873 if ac_fn_cxx_try_compile "$LINENO"; then :
5874 ac_cv_sys_file_offset_bits=64; break
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 ac_cv_sys_file_offset_bits=unknown
5878 break
5879 done
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5882 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5883 case $ac_cv_sys_file_offset_bits in #(
5884 no | unknown) ;;
5886 cat >>confdefs.h <<_ACEOF
5887 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5888 _ACEOF
5890 esac
5891 rm -rf conftest*
5892 if test $ac_cv_sys_file_offset_bits = unknown; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5894 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5895 if test "${ac_cv_sys_large_files+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 while :; do
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5901 #include <sys/types.h>
5902 /* Check that off_t can represent 2**63 - 1 correctly.
5903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5904 since some C++ compilers masquerading as C compilers
5905 incorrectly reject 9223372036854775807. */
5906 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5908 && LARGE_OFF_T % 2147483647 == 1)
5909 ? 1 : -1];
5911 main ()
5915 return 0;
5917 _ACEOF
5918 if ac_fn_cxx_try_compile "$LINENO"; then :
5919 ac_cv_sys_large_files=no; break
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 #define _LARGE_FILES 1
5925 #include <sys/types.h>
5926 /* Check that off_t can represent 2**63 - 1 correctly.
5927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5928 since some C++ compilers masquerading as C compilers
5929 incorrectly reject 9223372036854775807. */
5930 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5932 && LARGE_OFF_T % 2147483647 == 1)
5933 ? 1 : -1];
5935 main ()
5939 return 0;
5941 _ACEOF
5942 if ac_fn_cxx_try_compile "$LINENO"; then :
5943 ac_cv_sys_large_files=1; break
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 ac_cv_sys_large_files=unknown
5947 break
5948 done
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5951 $as_echo "$ac_cv_sys_large_files" >&6; }
5952 case $ac_cv_sys_large_files in #(
5953 no | unknown) ;;
5955 cat >>confdefs.h <<_ACEOF
5956 #define _LARGE_FILES $ac_cv_sys_large_files
5957 _ACEOF
5959 esac
5960 rm -rf conftest*
5965 # sizeof(char) is 1 by definition.
5966 # The cast to long int works around a bug in the HP C Compiler
5967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5969 # This bug is HP SR number 8606223364.
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5971 $as_echo_n "checking size of void *... " >&6; }
5972 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5977 else
5978 if test "$ac_cv_type_void_p" = yes; then
5979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5981 { as_fn_set_status 77
5982 as_fn_error "cannot compute sizeof (void *)
5983 See \`config.log' for more details." "$LINENO" 5; }; }
5984 else
5985 ac_cv_sizeof_void_p=0
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5991 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5995 cat >>confdefs.h <<_ACEOF
5996 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5997 _ACEOF
6000 # The cast to long int works around a bug in the HP C Compiler
6001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6003 # This bug is HP SR number 8606223364.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6005 $as_echo_n "checking size of short... " >&6; }
6006 if test "${ac_cv_sizeof_short+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6011 else
6012 if test "$ac_cv_type_short" = yes; then
6013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6015 { as_fn_set_status 77
6016 as_fn_error "cannot compute sizeof (short)
6017 See \`config.log' for more details." "$LINENO" 5; }; }
6018 else
6019 ac_cv_sizeof_short=0
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6025 $as_echo "$ac_cv_sizeof_short" >&6; }
6029 cat >>confdefs.h <<_ACEOF
6030 #define SIZEOF_SHORT $ac_cv_sizeof_short
6031 _ACEOF
6034 # The cast to long int works around a bug in the HP C Compiler
6035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6037 # This bug is HP SR number 8606223364.
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6039 $as_echo_n "checking size of int... " >&6; }
6040 if test "${ac_cv_sizeof_int+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6045 else
6046 if test "$ac_cv_type_int" = yes; then
6047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6049 { as_fn_set_status 77
6050 as_fn_error "cannot compute sizeof (int)
6051 See \`config.log' for more details." "$LINENO" 5; }; }
6052 else
6053 ac_cv_sizeof_int=0
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6059 $as_echo "$ac_cv_sizeof_int" >&6; }
6063 cat >>confdefs.h <<_ACEOF
6064 #define SIZEOF_INT $ac_cv_sizeof_int
6065 _ACEOF
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6073 $as_echo_n "checking size of long... " >&6; }
6074 if test "${ac_cv_sizeof_long+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6079 else
6080 if test "$ac_cv_type_long" = yes; then
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 { as_fn_set_status 77
6084 as_fn_error "cannot compute sizeof (long)
6085 See \`config.log' for more details." "$LINENO" 5; }; }
6086 else
6087 ac_cv_sizeof_long=0
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6093 $as_echo "$ac_cv_sizeof_long" >&6; }
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG $ac_cv_sizeof_long
6099 _ACEOF
6102 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6103 if test "x$ac_cv_type_long_long" = x""yes; then :
6105 cat >>confdefs.h <<_ACEOF
6106 #define HAVE_LONG_LONG 1
6107 _ACEOF
6109 # The cast to long int works around a bug in the HP C Compiler
6110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6112 # This bug is HP SR number 8606223364.
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6114 $as_echo_n "checking size of long long... " >&6; }
6115 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6120 else
6121 if test "$ac_cv_type_long_long" = yes; then
6122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6124 { as_fn_set_status 77
6125 as_fn_error "cannot compute sizeof (long long)
6126 See \`config.log' for more details." "$LINENO" 5; }; }
6127 else
6128 ac_cv_sizeof_long_long=0
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6134 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6138 cat >>confdefs.h <<_ACEOF
6139 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6140 _ACEOF
6145 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6146 case $ac_cv_c_int8_t in #(
6147 no|yes) ;; #(
6150 cat >>confdefs.h <<_ACEOF
6151 #define int8_t $ac_cv_c_int8_t
6152 _ACEOF
6154 esac
6156 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6157 case $ac_cv_c_int16_t in #(
6158 no|yes) ;; #(
6161 cat >>confdefs.h <<_ACEOF
6162 #define int16_t $ac_cv_c_int16_t
6163 _ACEOF
6165 esac
6167 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6168 case $ac_cv_c_int32_t in #(
6169 no|yes) ;; #(
6172 cat >>confdefs.h <<_ACEOF
6173 #define int32_t $ac_cv_c_int32_t
6174 _ACEOF
6176 esac
6178 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6179 case $ac_cv_c_int64_t in #(
6180 no|yes) ;; #(
6183 cat >>confdefs.h <<_ACEOF
6184 #define int64_t $ac_cv_c_int64_t
6185 _ACEOF
6187 esac
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6191 $as_echo_n "checking for long long int... " >&6; }
6192 if test "${ac_cv_type_long_long_int+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6198 /* For now, do not test the preprocessor; as of 2007 there are too many
6199 implementations with broken preprocessors. Perhaps this can
6200 be revisited in 2012. In the meantime, code should not expect
6201 #if to work with literals wider than 32 bits. */
6202 /* Test literals. */
6203 long long int ll = 9223372036854775807ll;
6204 long long int nll = -9223372036854775807LL;
6205 unsigned long long int ull = 18446744073709551615ULL;
6206 /* Test constant expressions. */
6207 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6208 ? 1 : -1)];
6209 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6210 ? 1 : -1)];
6211 int i = 63;
6213 main ()
6215 /* Test availability of runtime routines for shift and division. */
6216 long long int llmax = 9223372036854775807ll;
6217 unsigned long long int ullmax = 18446744073709551615ull;
6218 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6219 | (llmax / ll) | (llmax % ll)
6220 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6221 | (ullmax / ull) | (ullmax % ull));
6223 return 0;
6226 _ACEOF
6227 if ac_fn_cxx_try_link "$LINENO"; then :
6228 if test "$cross_compiling" = yes; then :
6229 ac_cv_type_long_long_int=yes
6230 else
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #include <limits.h>
6234 #ifndef LLONG_MAX
6235 # define HALF \
6236 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6237 # define LLONG_MAX (HALF - 1 + HALF)
6238 #endif
6240 main ()
6242 long long int n = 1;
6243 int i;
6244 for (i = 0; ; i++)
6246 long long int m = n << i;
6247 if (m >> i != n)
6248 return 1;
6249 if (LLONG_MAX / 2 < m)
6250 break;
6252 return 0;
6254 return 0;
6256 _ACEOF
6257 if ac_fn_cxx_try_run "$LINENO"; then :
6258 ac_cv_type_long_long_int=yes
6259 else
6260 ac_cv_type_long_long_int=no
6262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6263 conftest.$ac_objext conftest.beam conftest.$ac_ext
6266 else
6267 ac_cv_type_long_long_int=no
6269 rm -f core conftest.err conftest.$ac_objext \
6270 conftest$ac_exeext conftest.$ac_ext
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6273 $as_echo "$ac_cv_type_long_long_int" >&6; }
6274 if test $ac_cv_type_long_long_int = yes; then
6276 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6282 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6283 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6285 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6287 else
6288 test $ac_cv_type_long_long_int = yes \
6289 && ac_type='long long int' \
6290 || ac_type='long int'
6292 cat >>confdefs.h <<_ACEOF
6293 #define intmax_t $ac_type
6294 _ACEOF
6300 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6301 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6303 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6305 else
6306 for ac_type in 'int' 'long int' 'long long int'; do
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 $ac_includes_default
6311 main ()
6313 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6314 test_array [0] = 0
6317 return 0;
6319 _ACEOF
6320 if ac_fn_cxx_try_compile "$LINENO"; then :
6322 cat >>confdefs.h <<_ACEOF
6323 #define intptr_t $ac_type
6324 _ACEOF
6326 ac_type=
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 test -z "$ac_type" && break
6330 done
6334 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6335 case $ac_cv_c_uint8_t in #(
6336 no|yes) ;; #(
6339 $as_echo "#define _UINT8_T 1" >>confdefs.h
6342 cat >>confdefs.h <<_ACEOF
6343 #define uint8_t $ac_cv_c_uint8_t
6344 _ACEOF
6346 esac
6348 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6349 case $ac_cv_c_uint16_t in #(
6350 no|yes) ;; #(
6354 cat >>confdefs.h <<_ACEOF
6355 #define uint16_t $ac_cv_c_uint16_t
6356 _ACEOF
6358 esac
6360 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6361 case $ac_cv_c_uint32_t in #(
6362 no|yes) ;; #(
6365 $as_echo "#define _UINT32_T 1" >>confdefs.h
6368 cat >>confdefs.h <<_ACEOF
6369 #define uint32_t $ac_cv_c_uint32_t
6370 _ACEOF
6372 esac
6374 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6375 case $ac_cv_c_uint64_t in #(
6376 no|yes) ;; #(
6379 $as_echo "#define _UINT64_T 1" >>confdefs.h
6382 cat >>confdefs.h <<_ACEOF
6383 #define uint64_t $ac_cv_c_uint64_t
6384 _ACEOF
6386 esac
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6390 $as_echo_n "checking for unsigned long long int... " >&6; }
6391 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6397 /* For now, do not test the preprocessor; as of 2007 there are too many
6398 implementations with broken preprocessors. Perhaps this can
6399 be revisited in 2012. In the meantime, code should not expect
6400 #if to work with literals wider than 32 bits. */
6401 /* Test literals. */
6402 long long int ll = 9223372036854775807ll;
6403 long long int nll = -9223372036854775807LL;
6404 unsigned long long int ull = 18446744073709551615ULL;
6405 /* Test constant expressions. */
6406 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6407 ? 1 : -1)];
6408 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6409 ? 1 : -1)];
6410 int i = 63;
6412 main ()
6414 /* Test availability of runtime routines for shift and division. */
6415 long long int llmax = 9223372036854775807ll;
6416 unsigned long long int ullmax = 18446744073709551615ull;
6417 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6418 | (llmax / ll) | (llmax % ll)
6419 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6420 | (ullmax / ull) | (ullmax % ull));
6422 return 0;
6425 _ACEOF
6426 if ac_fn_cxx_try_link "$LINENO"; then :
6427 ac_cv_type_unsigned_long_long_int=yes
6428 else
6429 ac_cv_type_unsigned_long_long_int=no
6431 rm -f core conftest.err conftest.$ac_objext \
6432 conftest$ac_exeext conftest.$ac_ext
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6435 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6436 if test $ac_cv_type_unsigned_long_long_int = yes; then
6438 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6444 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6445 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6447 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6449 else
6450 test $ac_cv_type_unsigned_long_long_int = yes \
6451 && ac_type='unsigned long long int' \
6452 || ac_type='unsigned long int'
6454 cat >>confdefs.h <<_ACEOF
6455 #define uintmax_t $ac_type
6456 _ACEOF
6462 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6463 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6465 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6467 else
6468 for ac_type in 'unsigned int' 'unsigned long int' \
6469 'unsigned long long int'; do
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6472 $ac_includes_default
6474 main ()
6476 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6477 test_array [0] = 0
6480 return 0;
6482 _ACEOF
6483 if ac_fn_cxx_try_compile "$LINENO"; then :
6485 cat >>confdefs.h <<_ACEOF
6486 #define uintptr_t $ac_type
6487 _ACEOF
6489 ac_type=
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 test -z "$ac_type" && break
6493 done
6509 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6510 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6513 # check what underlying integer type int64_t uses
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6515 $as_echo_n "checking for int64_t underlying type... " >&6; }
6516 if test "${ac_cv_int64_t_type+set}" = set; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6523 #ifdef HAVE_STDINT_H
6524 #include <stdint.h>
6525 #endif
6526 template <typename T> struct X { };
6527 template <>
6528 struct X<long> { typedef long t; };
6531 main ()
6533 X<int64_t>::t x;
6535 return 0;
6537 _ACEOF
6538 if ac_fn_cxx_try_compile "$LINENO"; then :
6539 ac_cv_int64_t_type=long
6540 else
6541 ac_cv_int64_t_type="long long"
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6546 $as_echo "$ac_cv_int64_t_type" >&6; }
6547 if test "$ac_cv_int64_t_type" = "long"; then
6549 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6551 else
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6555 #ifdef HAVE_STDINT_H
6556 #include <stdint.h>
6557 #endif
6558 template <typename T> struct X { };
6559 template <>
6560 struct X<long long> { typedef long long t; };
6563 main ()
6565 X<int64_t>::t x;
6567 return 0;
6569 _ACEOF
6570 if ac_fn_cxx_try_compile "$LINENO"; then :
6572 else
6573 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6579 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6580 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6587 #include <utility>
6590 main ()
6592 int a, b; std::swap(a,b);
6594 return 0;
6596 _ACEOF
6597 if ac_fn_cxx_try_compile "$LINENO"; then :
6598 ac_cv_std_swap_in_utility=yes
6599 else
6600 ac_cv_std_swap_in_utility=no
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6605 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6606 if test $ac_cv_std_swap_in_utility = yes; then
6608 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6612 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6613 # If the host compiler is affected by the bug, and we build with optimization
6614 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6615 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6616 # Since there is no reliable feature check for the presence of this bug,
6617 # we simply use a GCC version number check. (This should never trigger for
6618 # stages 2 or 3 of a native bootstrap.)
6619 aliasing_flags=
6620 if test "$GCC" = yes; then
6621 saved_CXXFLAGS="$CXXFLAGS"
6623 # The following test compilation will succeed if and only if $CXX accepts
6624 # -fno-strict-aliasing *and* is older than GCC 4.3.
6625 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6627 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6631 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6632 #error compiler not affected by placement new aliasing bug
6633 #endif
6635 _ACEOF
6636 if ac_fn_cxx_try_compile "$LINENO"; then :
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6638 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 CXXFLAGS="$saved_CXXFLAGS"
6651 # ---------------------
6652 # Warnings and checking
6653 # ---------------------
6655 # Check $CC warning features (if it's GCC).
6656 # We want to use -pedantic, but we don't want warnings about
6657 # * 'long long'
6658 # * variadic macros
6659 # * overlong strings
6660 # * C++11 narrowing conversions in { }
6661 # So, we only use -pedantic if we can disable those warnings.
6663 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6664 # Check whether --enable-build-format-warnings was given.
6665 if test "${enable_build_format_warnings+set}" = set; then :
6666 enableval=$enable_build_format_warnings;
6667 else
6668 enable_build_format_warnings=yes
6671 if test $enable_build_format_warnings = no; then :
6672 wf_opt=-Wno-format
6673 else
6674 wf_opt=
6676 ac_ext=cpp
6677 ac_cpp='$CXXCPP $CPPFLAGS'
6678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6682 loose_warn=
6683 save_CXXFLAGS="$CXXFLAGS"
6684 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6685 # Do the check with the no- prefix removed since gcc silently
6686 # accepts any -Wno-* option on purpose
6687 case $real_option in
6688 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6689 *) option=$real_option ;;
6690 esac
6691 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6694 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6695 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 CXXFLAGS="$option"
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6703 main ()
6707 return 0;
6709 _ACEOF
6710 if ac_fn_cxx_try_compile "$LINENO"; then :
6711 eval "$as_acx_Woption=yes"
6712 else
6713 eval "$as_acx_Woption=no"
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 eval ac_res=\$$as_acx_Woption
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6720 $as_echo "$ac_res" >&6; }
6721 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6722 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6724 done
6725 CXXFLAGS="$save_CXXFLAGS"
6726 ac_ext=cpp
6727 ac_cpp='$CXXCPP $CPPFLAGS'
6728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6734 ac_ext=c
6735 ac_cpp='$CPP $CPPFLAGS'
6736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6740 c_loose_warn=
6741 save_CFLAGS="$CFLAGS"
6742 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6743 # Do the check with the no- prefix removed since gcc silently
6744 # accepts any -Wno-* option on purpose
6745 case $real_option in
6746 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6747 *) option=$real_option ;;
6748 esac
6749 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6752 $as_echo_n "checking whether $CC supports $option... " >&6; }
6753 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 CFLAGS="$option"
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6761 main ()
6765 return 0;
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769 eval "$as_acx_Woption=yes"
6770 else
6771 eval "$as_acx_Woption=no"
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 eval ac_res=\$$as_acx_Woption
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6778 $as_echo "$ac_res" >&6; }
6779 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6780 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6782 done
6783 CFLAGS="$save_CFLAGS"
6784 ac_ext=cpp
6785 ac_cpp='$CXXCPP $CPPFLAGS'
6786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6791 ac_ext=cpp
6792 ac_cpp='$CXXCPP $CPPFLAGS'
6793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6797 strict_warn=
6798 save_CXXFLAGS="$CXXFLAGS"
6799 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6800 # Do the check with the no- prefix removed since gcc silently
6801 # accepts any -Wno-* option on purpose
6802 case $real_option in
6803 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6804 *) option=$real_option ;;
6805 esac
6806 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6809 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6810 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 CXXFLAGS="$option"
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6818 main ()
6822 return 0;
6824 _ACEOF
6825 if ac_fn_cxx_try_compile "$LINENO"; then :
6826 eval "$as_acx_Woption=yes"
6827 else
6828 eval "$as_acx_Woption=no"
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 eval ac_res=\$$as_acx_Woption
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6835 $as_echo "$ac_res" >&6; }
6836 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6837 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6839 done
6840 CXXFLAGS="$save_CXXFLAGS"
6841 ac_ext=cpp
6842 ac_cpp='$CXXCPP $CPPFLAGS'
6843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6848 ac_ext=c
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854 c_strict_warn=
6855 save_CFLAGS="$CFLAGS"
6856 for real_option in -Wold-style-definition -Wc++-compat; do
6857 # Do the check with the no- prefix removed since gcc silently
6858 # accepts any -Wno-* option on purpose
6859 case $real_option in
6860 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6861 *) option=$real_option ;;
6862 esac
6863 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6866 $as_echo_n "checking whether $CC supports $option... " >&6; }
6867 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 CFLAGS="$option"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6875 main ()
6879 return 0;
6881 _ACEOF
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 eval "$as_acx_Woption=yes"
6884 else
6885 eval "$as_acx_Woption=no"
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 eval ac_res=\$$as_acx_Woption
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6892 $as_echo "$ac_res" >&6; }
6893 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6894 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6896 done
6897 CFLAGS="$save_CFLAGS"
6898 ac_ext=cpp
6899 ac_cpp='$CXXCPP $CPPFLAGS'
6900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6905 ac_ext=cpp
6906 ac_cpp='$CXXCPP $CPPFLAGS'
6907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6911 # Do the check with the no- prefix removed from the warning options
6912 # since gcc silently accepts any -Wno-* option on purpose
6913 if test "$GXX" = yes; then :
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6915 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6916 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 save_CXXFLAGS="$CXXFLAGS"
6920 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6925 main ()
6929 return 0;
6931 _ACEOF
6932 if ac_fn_cxx_try_compile "$LINENO"; then :
6933 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6934 else
6935 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 CXXFLAGS="$save_CXXFLAGS"
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6941 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6942 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6943 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6947 ac_ext=cpp
6948 ac_cpp='$CXXCPP $CPPFLAGS'
6949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6954 ac_ext=cpp
6955 ac_cpp='$CXXCPP $CPPFLAGS'
6956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960 # Check whether --enable-werror-always was given.
6961 if test "${enable_werror_always+set}" = set; then :
6962 enableval=$enable_werror_always;
6963 else
6964 enable_werror_always=no
6967 if test $enable_werror_always = yes; then :
6968 strict_warn="$strict_warn${strict_warn:+ }-Werror"
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
6979 # The above macros do nothing if the compiler is not GCC. However, the
6980 # Makefile has more goo to add other flags, so these variables are used
6981 # to enable warnings only for GCC.
6982 warn_cflags=
6983 warn_cxxflags=
6984 if test "x$GCC" = "xyes"; then
6985 warn_cflags='$(GCC_WARN_CFLAGS)'
6986 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6991 # Disable exceptions and RTTI if building with g++
6992 ac_ext=c
6993 ac_cpp='$CPP $CPPFLAGS'
6994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6998 noexception_flags=
6999 save_CFLAGS="$CFLAGS"
7000 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7001 # Do the check with the no- prefix removed since gcc silently
7002 # accepts any -Wno-* option on purpose
7003 case $real_option in
7004 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7005 *) option=$real_option ;;
7006 esac
7007 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7010 $as_echo_n "checking whether $CC supports $option... " >&6; }
7011 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 CFLAGS="$option"
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7019 main ()
7023 return 0;
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"; then :
7027 eval "$as_acx_Woption=yes"
7028 else
7029 eval "$as_acx_Woption=no"
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 eval ac_res=\$$as_acx_Woption
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7036 $as_echo "$ac_res" >&6; }
7037 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7038 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7040 done
7041 CFLAGS="$save_CFLAGS"
7042 ac_ext=cpp
7043 ac_cpp='$CXXCPP $CPPFLAGS'
7044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7050 # Enable expensive internal checks
7051 is_release=
7052 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7053 is_release=yes
7056 # Check whether --enable-checking was given.
7057 if test "${enable_checking+set}" = set; then :
7058 enableval=$enable_checking; ac_checking_flags="${enableval}"
7059 else
7061 # Determine the default checks.
7062 if test x$is_release = x ; then
7063 ac_checking_flags=yes,extra
7064 else
7065 ac_checking_flags=release
7069 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7070 for check in release $ac_checking_flags
7072 case $check in
7073 # these set all the flags to specific states
7074 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7075 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7076 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7077 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7078 ac_tree_checking=1 ; ac_valgrind_checking= ;
7079 ac_types_checking=1 ;;
7080 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7081 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7082 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7083 ac_rtlflag_checking= ; ac_runtime_checking= ;
7084 ac_tree_checking= ; ac_valgrind_checking= ;
7085 ac_types_checking= ;;
7086 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7087 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7088 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7089 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7090 ac_tree_checking=1 ; ac_valgrind_checking= ;
7091 ac_types_checking=1 ;;
7092 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7093 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7094 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7095 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7096 ac_tree_checking= ; ac_valgrind_checking= ;
7097 ac_types_checking= ;;
7098 # these enable particular checks
7099 assert) ac_assert_checking=1 ;;
7100 df) ac_df_checking=1 ;;
7101 extra) ac_extra_checking=1 ;;
7102 fold) ac_fold_checking=1 ;;
7103 gc) ac_gc_checking=1 ;;
7104 gcac) ac_gc_always_collect=1 ;;
7105 gimple) ac_gimple_checking=1 ;;
7106 misc) ac_checking=1 ;;
7107 rtl) ac_rtl_checking=1 ;;
7108 rtlflag) ac_rtlflag_checking=1 ;;
7109 runtime) ac_runtime_checking=1 ;;
7110 tree) ac_tree_checking=1 ;;
7111 types) ac_types_checking=1 ;;
7112 valgrind) ac_valgrind_checking=1 ;;
7113 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7114 esac
7115 done
7116 IFS="$ac_save_IFS"
7118 nocommon_flag=""
7119 if test x$ac_checking != x ; then
7121 $as_echo "#define CHECKING_P 1" >>confdefs.h
7123 nocommon_flag=-fno-common
7124 else
7125 $as_echo "#define CHECKING_P 0" >>confdefs.h
7129 if test x$ac_extra_checking != x ; then
7131 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7133 else
7134 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7137 if test x$ac_df_checking != x ; then
7139 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7142 if test x$ac_assert_checking != x ; then
7144 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7147 if test x$ac_gimple_checking != x ; then
7149 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7153 if test x$ac_runtime_checking != x ; then
7155 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7158 if test x$ac_tree_checking != x ; then
7160 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7162 TREECHECKING=yes
7164 if test x$ac_types_checking != x ; then
7166 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7170 if test x$ac_rtl_checking != x ; then
7172 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7175 if test x$ac_rtlflag_checking != x ; then
7177 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7180 if test x$ac_gc_checking != x ; then
7182 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7185 if test x$ac_gc_always_collect != x ; then
7187 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7190 if test x$ac_fold_checking != x ; then
7192 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7195 valgrind_path_defines=
7196 valgrind_command=
7198 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7199 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7200 have_valgrind_h=yes
7201 else
7202 have_valgrind_h=no
7207 # It is certainly possible that there's valgrind but no valgrind.h.
7208 # GCC relies on making annotations so we must have both.
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7210 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #include <valgrind/memcheck.h>
7214 #ifndef VALGRIND_DISCARD
7215 #error VALGRIND_DISCARD not defined
7216 #endif
7217 _ACEOF
7218 if ac_fn_cxx_try_cpp "$LINENO"; then :
7219 gcc_cv_header_valgrind_memcheck_h=yes
7220 else
7221 gcc_cv_header_valgrind_memcheck_h=no
7223 rm -f conftest.err conftest.$ac_ext
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7225 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7227 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <memcheck.h>
7231 #ifndef VALGRIND_DISCARD
7232 #error VALGRIND_DISCARD not defined
7233 #endif
7234 _ACEOF
7235 if ac_fn_cxx_try_cpp "$LINENO"; then :
7236 gcc_cv_header_memcheck_h=yes
7237 else
7238 gcc_cv_header_memcheck_h=no
7240 rm -f conftest.err conftest.$ac_ext
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7242 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7243 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7245 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7248 if test $gcc_cv_header_memcheck_h = yes; then
7250 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7254 if test x$ac_valgrind_checking != x ; then
7256 # Prepare PATH_SEPARATOR.
7257 # The user is always right.
7258 if test "${PATH_SEPARATOR+set}" != set; then
7259 echo "#! /bin/sh" >conf$$.sh
7260 echo "exit 0" >>conf$$.sh
7261 chmod +x conf$$.sh
7262 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7263 PATH_SEPARATOR=';'
7264 else
7265 PATH_SEPARATOR=:
7267 rm -f conf$$.sh
7270 # Find out how to test for executable files. Don't use a zero-byte file,
7271 # as systems may use methods other than mode bits to determine executability.
7272 cat >conf$$.file <<_ASEOF
7273 #! /bin/sh
7274 exit 0
7275 _ASEOF
7276 chmod +x conf$$.file
7277 if test -x conf$$.file >/dev/null 2>&1; then
7278 ac_executable_p="test -x"
7279 else
7280 ac_executable_p="test -f"
7282 rm -f conf$$.file
7284 # Extract the first word of "valgrind", so it can be a program name with args.
7285 set dummy valgrind; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 case "$valgrind_path" in
7292 [\\/]* | ?:[\\/]*)
7293 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7296 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7297 for ac_dir in $PATH; do
7298 IFS="$ac_save_IFS"
7299 test -z "$ac_dir" && ac_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7302 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7303 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7304 break 2
7307 done
7308 done
7309 IFS="$ac_save_IFS"
7311 esac
7313 valgrind_path="$ac_cv_path_valgrind_path"
7314 if test -n "$valgrind_path"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7316 $as_echo "$valgrind_path" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7322 if test "x$valgrind_path" = "x" \
7323 || (test $have_valgrind_h = no \
7324 && test $gcc_cv_header_memcheck_h = no \
7325 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7326 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7328 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7329 valgrind_command="$valgrind_path -q"
7331 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7337 # Enable code coverage collection
7338 # Check whether --enable-coverage was given.
7339 if test "${enable_coverage+set}" = set; then :
7340 enableval=$enable_coverage; case "${enableval}" in
7341 yes|noopt)
7342 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7344 opt)
7345 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7348 # a.k.a. --disable-coverage
7349 coverage_flags=""
7352 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7354 esac
7355 else
7356 coverage_flags=""
7361 # Check whether --enable-gather-detailed-mem-stats was given.
7362 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7363 enableval=$enable_gather_detailed_mem_stats;
7364 else
7365 enable_gather_detailed_mem_stats=no
7368 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7370 cat >>confdefs.h <<_ACEOF
7371 #define GATHER_STATISTICS $gather_stats
7372 _ACEOF
7375 # Check whether --enable-valgrind-annotations was given.
7376 if test "${enable_valgrind_annotations+set}" = set; then :
7377 enableval=$enable_valgrind_annotations;
7378 else
7379 enable_valgrind_annotations=no
7382 if test x$enable_valgrind_annotations != xno \
7383 || test x$ac_valgrind_checking != x; then
7384 if (test $have_valgrind_h = no \
7385 && test $gcc_cv_header_memcheck_h = no \
7386 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7387 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7390 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7394 # -------------------------------
7395 # Miscenalleous configure options
7396 # -------------------------------
7398 # With stabs
7400 # Check whether --with-stabs was given.
7401 if test "${with_stabs+set}" = set; then :
7402 withval=$with_stabs; stabs="$with_stabs"
7403 else
7404 stabs=no
7408 # Determine whether or not multilibs are enabled.
7409 # Check whether --enable-multilib was given.
7410 if test "${enable_multilib+set}" = set; then :
7411 enableval=$enable_multilib;
7412 else
7413 enable_multilib=yes
7418 # Determine whether or not multiarch is enabled.
7419 # Check whether --enable-multiarch was given.
7420 if test "${enable_multiarch+set}" = set; then :
7421 enableval=$enable_multiarch; case "${enableval}" in
7422 yes|no|auto) enable_multiarch=$enableval;;
7423 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7424 esac
7425 else
7426 enable_multiarch=auto
7429 if test x${enable_multiarch} = xauto; then
7430 if test x${with_native_system_header_dir} != x; then
7431 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7432 enable_multiarch=no
7434 if test x$host != x$target && test "x$with_sysroot" = x; then
7435 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7436 enable_multiarch=no
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7440 $as_echo_n "checking for multiarch configuration... " >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7443 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7445 # needed for setting the multiarch name for soft-float/hard-float ABIs
7449 # default stack clash protection guard size as power of twos in bytes.
7450 # Please keep these in sync with params.def.
7451 stk_clash_min=12
7452 stk_clash_max=30
7454 # Keep the default value when the option is not used to 0, this allows us to
7455 # distinguish between the cases where the user specifially set a value via
7456 # configure and when the normal default value is used.
7458 # Check whether --with-stack-clash-protection-guard-size was given.
7459 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7460 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7461 else
7462 DEFAULT_STK_CLASH_GUARD_SIZE=0
7465 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7466 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7467 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7468 as_fn_error "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7472 cat >>confdefs.h <<_ACEOF
7473 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7474 _ACEOF
7477 # Enable __cxa_atexit for C++.
7478 # Check whether --enable-__cxa_atexit was given.
7479 if test "${enable___cxa_atexit+set}" = set; then :
7480 enableval=$enable___cxa_atexit;
7484 # Enable C extension for decimal float if target supports it.
7486 # Check whether --enable-decimal-float was given.
7487 if test "${enable_decimal_float+set}" = set; then :
7488 enableval=$enable_decimal_float;
7489 case $enable_decimal_float in
7490 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7491 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7492 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7493 esac
7495 else
7497 case $target in
7498 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7499 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7500 i?86*-*-mingw* | x86_64*-*-mingw* | \
7501 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7502 enable_decimal_float=yes
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7506 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7507 enable_decimal_float=no
7509 esac
7514 # x86's use BID format instead of DPD
7515 case x$enable_decimal_float in
7516 xyes)
7517 case $target in
7518 i?86*-*-* | x86_64*-*-*)
7519 enable_decimal_float=bid
7522 enable_decimal_float=dpd
7524 esac
7525 default_decimal_float=$enable_decimal_float
7527 xno)
7528 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7529 # dependency on libdecnumber.
7530 default_decimal_float=dpd
7532 esac
7537 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7539 cat >>confdefs.h <<_ACEOF
7540 #define ENABLE_DECIMAL_FLOAT $dfp
7541 _ACEOF
7544 # Use default_decimal_float for dependency.
7545 enable_decimal_float=$default_decimal_float
7547 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7549 cat >>confdefs.h <<_ACEOF
7550 #define ENABLE_DECIMAL_BID_FORMAT $bid
7551 _ACEOF
7554 # Enable C extension for fixed-point arithmetic.
7555 # Check whether --enable-fixed-point was given.
7556 if test "${enable_fixed_point+set}" = set; then :
7557 enableval=$enable_fixed_point;
7558 else
7560 case $target in
7561 arm*)
7562 enable_fixed_point=yes
7565 mips*-*-*)
7566 enable_fixed_point=yes
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7570 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7571 enable_fixed_point=no
7573 esac
7579 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7581 cat >>confdefs.h <<_ACEOF
7582 #define ENABLE_FIXED_POINT $fixedpoint
7583 _ACEOF
7586 # Enable threads
7587 # Pass with no value to take the default
7588 # Pass with a value to specify a thread package
7589 # Check whether --enable-threads was given.
7590 if test "${enable_threads+set}" = set; then :
7591 enableval=$enable_threads;
7592 else
7593 enable_threads=''
7597 # Check whether --enable-tls was given.
7598 if test "${enable_tls+set}" = set; then :
7599 enableval=$enable_tls;
7600 case $enable_tls in
7601 yes | no) ;;
7602 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7603 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7604 esac
7606 else
7607 enable_tls=''
7611 # Check whether --enable-vtable-verify was given.
7612 if test "${enable_vtable_verify+set}" = set; then :
7613 enableval=$enable_vtable_verify;
7614 else
7615 enable_vtable_verify=no
7618 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7620 cat >>confdefs.h <<_ACEOF
7621 #define ENABLE_VTABLE_VERIFY $vtable_verify
7622 _ACEOF
7625 # Check whether --enable-objc-gc was given.
7626 if test "${enable_objc_gc+set}" = set; then :
7627 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7628 objc_boehm_gc=''
7629 else
7630 objc_boehm_gc=1
7632 else
7633 objc_boehm_gc=''
7638 # Check whether --with-dwarf2 was given.
7639 if test "${with_dwarf2+set}" = set; then :
7640 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7641 else
7642 dwarf2=no
7646 # Check whether --enable-shared was given.
7647 if test "${enable_shared+set}" = set; then :
7648 enableval=$enable_shared;
7649 case $enable_shared in
7650 yes | no) ;;
7652 enable_shared=no
7653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7654 for pkg in $enableval; do
7655 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7656 enable_shared=yes
7658 done
7659 IFS="$ac_save_ifs"
7661 esac
7663 else
7664 enable_shared=yes
7669 # Check whether --enable-gcov was given.
7670 if test "${enable_gcov+set}" = set; then :
7671 enableval=$enable_gcov;
7672 else
7673 enable_gcov=yes
7679 # Check whether --with-specs was given.
7680 if test "${with_specs+set}" = set; then :
7681 withval=$with_specs; CONFIGURE_SPECS=$withval
7682 else
7683 CONFIGURE_SPECS=
7691 # Check whether --with-pkgversion was given.
7692 if test "${with_pkgversion+set}" = set; then :
7693 withval=$with_pkgversion; case "$withval" in
7694 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7695 no) PKGVERSION= ;;
7696 *) PKGVERSION="($withval) " ;;
7697 esac
7698 else
7699 PKGVERSION="(GCC) "
7707 # Check whether --with-bugurl was given.
7708 if test "${with_bugurl+set}" = set; then :
7709 withval=$with_bugurl; case "$withval" in
7710 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7711 no) BUGURL=
7713 *) BUGURL="$withval"
7715 esac
7716 else
7717 BUGURL="https://gcc.gnu.org/bugs/"
7721 case ${BUGURL} in
7723 REPORT_BUGS_TO=
7724 REPORT_BUGS_TEXI=
7727 REPORT_BUGS_TO="<$BUGURL>"
7728 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7730 esac;
7735 # Sanity check enable_languages in case someone does not run the toplevel
7736 # configure # script.
7737 # Check whether --enable-languages was given.
7738 if test "${enable_languages+set}" = set; then :
7739 enableval=$enable_languages; case ,${enable_languages}, in
7740 ,,|,yes,)
7741 # go safe -- we cannot be much sure without the toplevel
7742 # configure's
7743 # analysis of which target libs are present and usable
7744 enable_languages=c
7746 *,all,*)
7747 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7749 *,c,*)
7752 enable_languages=c,${enable_languages}
7754 esac
7755 else
7756 enable_languages=c
7760 if test x"$enable_as_accelerator_for" != x; then
7762 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7764 enable_as_accelerator=yes
7765 case "${target}" in
7766 *-intelmicemul-*)
7767 # In this case we expect offload compiler to be built as native, so we
7768 # need to rename the driver to avoid clashes with host's drivers.
7769 program_transform_name="s&^&${target}-&" ;;
7770 esac
7771 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7772 program_transform_name=`echo $program_transform_name | sed $sedscript`
7773 accel_dir_suffix=/accel/${target_noncanonical}
7774 real_target_noncanonical=${enable_as_accelerator_for}
7780 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7781 tgt=`echo $tgt | sed 's/=.*//'`
7783 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7784 enable_hsa=1
7785 else
7786 enable_offloading=1
7789 if test x"$offload_targets" = x; then
7790 offload_targets=$tgt
7791 else
7792 offload_targets="$offload_targets,$tgt"
7794 done
7796 cat >>confdefs.h <<_ACEOF
7797 #define OFFLOAD_TARGETS "$offload_targets"
7798 _ACEOF
7800 if test x"$enable_offloading" != x; then
7802 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7804 else
7806 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7810 if test x"$enable_hsa" = x1 ; then
7812 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7817 # Check whether --with-multilib-list was given.
7818 if test "${with_multilib_list+set}" = set; then :
7819 withval=$with_multilib_list; :
7820 else
7821 with_multilib_list=default
7825 # -------------------------
7826 # Checks for other programs
7827 # -------------------------
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7830 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7831 set x ${MAKE-make}
7832 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7833 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 cat >conftest.make <<\_ACEOF
7837 SHELL = /bin/sh
7838 all:
7839 @echo '@@@%%%=$(MAKE)=@@@%%%'
7840 _ACEOF
7841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7842 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7843 *@@@%%%=?*=@@@%%%*)
7844 eval ac_cv_prog_make_${ac_make}_set=yes;;
7846 eval ac_cv_prog_make_${ac_make}_set=no;;
7847 esac
7848 rm -f conftest.make
7850 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7852 $as_echo "yes" >&6; }
7853 SET_MAKE=
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 SET_MAKE="MAKE=${MAKE-make}"
7861 # Find some useful tools
7862 for ac_prog in gawk mawk nawk awk
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_AWK+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 if test -n "$AWK"; then
7872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_AWK="$ac_prog"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7885 done
7886 done
7887 IFS=$as_save_IFS
7891 AWK=$ac_cv_prog_AWK
7892 if test -n "$AWK"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7894 $as_echo "$AWK" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7901 test -n "$AWK" && break
7902 done
7904 # We need awk to create options.c and options.h.
7905 # Bail out if it's missing.
7906 case ${AWK} in
7907 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7908 esac
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7911 $as_echo_n "checking whether ln -s works... " >&6; }
7912 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 rm -f conftestdata_t
7916 echo >conftestdata_f
7917 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7918 then
7919 gcc_cv_prog_LN_S="ln -s"
7920 else
7921 if ln conftestdata_f conftestdata_t 2>/dev/null
7922 then
7923 gcc_cv_prog_LN_S=ln
7924 else
7925 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7926 then
7927 gcc_cv_prog_LN_S="cp -p"
7928 else
7929 gcc_cv_prog_LN_S=cp
7933 rm -f conftestdata_f conftestdata_t
7936 LN_S="$gcc_cv_prog_LN_S"
7937 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7939 $as_echo "yes" >&6; }
7940 else
7941 if test "$gcc_cv_prog_LN_S" = "ln"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7943 $as_echo "no, using ln" >&6; }
7944 else
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7946 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7951 $as_echo_n "checking whether ln works... " >&6; }
7952 if test "${acx_cv_prog_LN+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 rm -f conftestdata_t
7956 echo >conftestdata_f
7957 if ln conftestdata_f conftestdata_t 2>/dev/null
7958 then
7959 acx_cv_prog_LN=ln
7960 else
7961 acx_cv_prog_LN=no
7963 rm -f conftestdata_f conftestdata_t
7966 if test $acx_cv_prog_LN = no; then
7967 LN="$LN_S"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7969 $as_echo "no, using $LN" >&6; }
7970 else
7971 LN="$acx_cv_prog_LN"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7973 $as_echo "yes" >&6; }
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 if test -n "$RANLIB"; then
7985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7998 done
7999 done
8000 IFS=$as_save_IFS
8004 RANLIB=$ac_cv_prog_RANLIB
8005 if test -n "$RANLIB"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8007 $as_echo "$RANLIB" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8015 if test -z "$ac_cv_prog_RANLIB"; then
8016 ac_ct_RANLIB=$RANLIB
8017 # Extract the first word of "ranlib", so it can be a program name with args.
8018 set dummy ranlib; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 if test -n "$ac_ct_RANLIB"; then
8025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 ac_cv_prog_ac_ct_RANLIB="ranlib"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8038 done
8039 done
8040 IFS=$as_save_IFS
8044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8045 if test -n "$ac_ct_RANLIB"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8047 $as_echo "$ac_ct_RANLIB" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8053 if test "x$ac_ct_RANLIB" = x; then
8054 RANLIB=":"
8055 else
8056 case $cross_compiling:$ac_tool_warned in
8057 yes:)
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8061 esac
8062 RANLIB=$ac_ct_RANLIB
8064 else
8065 RANLIB="$ac_cv_prog_RANLIB"
8068 ranlib_flags=""
8071 # Find a good install program. We prefer a C program (faster),
8072 # so one script is as good as another. But avoid the broken or
8073 # incompatible versions:
8074 # SysV /etc/install, /usr/sbin/install
8075 # SunOS /usr/etc/install
8076 # IRIX /sbin/install
8077 # AIX /bin/install
8078 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8079 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8080 # ./install, which can be erroneously created by make from ./install.sh.
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8082 $as_echo_n "checking for a BSD compatible install... " >&6; }
8083 if test -z "$INSTALL"; then
8084 if test "${ac_cv_path_install+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8088 for ac_dir in $PATH; do
8089 # Account for people who put trailing slashes in PATH elements.
8090 case "$ac_dir/" in
8091 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8093 # OSF1 and SCO ODT 3.0 have their own names for install.
8094 for ac_prog in ginstall scoinst install; do
8095 if test -f $ac_dir/$ac_prog; then
8096 if test $ac_prog = install &&
8097 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8098 # AIX install. It has an incompatible calling convention.
8099 # OSF/1 installbsd also uses dspmsg, but is usable.
8101 else
8102 ac_cv_path_install="$ac_dir/$ac_prog -c"
8103 break 2
8106 done
8108 esac
8109 done
8110 IFS="$ac_save_IFS"
8113 if test "${ac_cv_path_install+set}" = set; then
8114 INSTALL="$ac_cv_path_install"
8115 else
8116 # As a last resort, use the slow shell script. We don't cache a
8117 # path for INSTALL within a source directory, because that will
8118 # break other packages using the cache if that directory is
8119 # removed, or if the path is relative.
8120 INSTALL="$ac_install_sh"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8124 $as_echo "$INSTALL" >&6; }
8126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8127 # It thinks the first close brace ends the variable substitution.
8128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8133 # See if cmp has --ignore-initial.
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8135 $as_echo_n "checking for cmp's capabilities... " >&6; }
8136 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 echo abfoo >t1
8140 echo cdfoo >t2
8141 gcc_cv_prog_cmp_skip=slowcompare
8142 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8143 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8145 else
8146 gcc_cv_prog_cmp_skip=gnucompare
8149 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8150 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8151 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8153 else
8154 gcc_cv_prog_cmp_skip=fastcompare
8158 rm t1 t2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8162 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8163 make_compare_target=$gcc_cv_prog_cmp_skip
8167 # See if we have the mktemp command.
8168 # Extract the first word of "mktemp", so it can be a program name with args.
8169 set dummy mktemp; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 if test -n "$have_mktemp_command"; then
8176 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185 ac_cv_prog_have_mktemp_command="yes"
8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 break 2
8189 done
8190 done
8191 IFS=$as_save_IFS
8193 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8196 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8197 if test -n "$have_mktemp_command"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8199 $as_echo "$have_mktemp_command" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8207 # See if makeinfo has been installed and is modern enough
8208 # that we can use it.
8210 # Extract the first word of "makeinfo", so it can be a program name with args.
8211 set dummy makeinfo; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$MAKEINFO"; then
8218 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_MAKEINFO="makeinfo"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8231 done
8232 done
8233 IFS=$as_save_IFS
8237 MAKEINFO=$ac_cv_prog_MAKEINFO
8238 if test -n "$MAKEINFO"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8240 $as_echo "$MAKEINFO" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8247 if test -n "$MAKEINFO"; then
8248 # Found it, now check the version.
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8250 $as_echo_n "checking for modern makeinfo... " >&6; }
8251 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8255 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8257 case $ac_prog_version in
8258 '') gcc_cv_prog_makeinfo_modern=no;;
8259 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8260 *) gcc_cv_prog_makeinfo_modern=no;;
8261 esac
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8265 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8266 else
8267 gcc_cv_prog_makeinfo_modern=no
8269 if test $gcc_cv_prog_makeinfo_modern = no; then
8270 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8273 if test $gcc_cv_prog_makeinfo_modern = no; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8275 *** Makeinfo is missing or too old.
8276 *** Info documentation will not be built." >&5
8277 $as_echo "$as_me: WARNING:
8278 *** Makeinfo is missing or too old.
8279 *** Info documentation will not be built." >&2;}
8280 BUILD_INFO=
8281 else
8282 BUILD_INFO=info
8286 # Is pod2man recent enough to regenerate manpages?
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8288 $as_echo_n "checking for recent Pod::Man... " >&6; }
8289 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291 $as_echo "yes" >&6; }
8292 GENERATED_MANPAGES=generated-manpages
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8296 GENERATED_MANPAGES=
8300 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8302 # How about lex?
8303 for ac_prog in flex
8305 # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy $ac_prog; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_FLEX+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 if test -n "$FLEX"; then
8313 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_FLEX="$ac_prog"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8326 done
8327 done
8328 IFS=$as_save_IFS
8332 FLEX=$ac_cv_prog_FLEX
8333 if test -n "$FLEX"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8335 $as_echo "$FLEX" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8342 test -n "$FLEX" && break
8343 done
8344 test -n "$FLEX" || FLEX="$MISSING flex"
8347 # Bison?
8348 for ac_prog in bison
8350 # Extract the first word of "$ac_prog", so it can be a program name with args.
8351 set dummy $ac_prog; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if test "${ac_cv_prog_BISON+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 if test -n "$BISON"; then
8358 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_prog_BISON="$ac_prog"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8371 done
8372 done
8373 IFS=$as_save_IFS
8377 BISON=$ac_cv_prog_BISON
8378 if test -n "$BISON"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8380 $as_echo "$BISON" >&6; }
8381 else
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8387 test -n "$BISON" && break
8388 done
8389 test -n "$BISON" || BISON="$MISSING bison"
8392 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8393 # check for build == host before using them.
8395 # NM
8396 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8397 && test -d ../binutils ; then
8398 NM='${objdir}/../binutils/nm-new'
8399 else
8400 # Extract the first word of "nm", so it can be a program name with args.
8401 set dummy nm; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_NM+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$NM"; then
8408 ac_cv_prog_NM="$NM" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_NM="nm"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8421 done
8422 done
8423 IFS=$as_save_IFS
8425 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8428 NM=$ac_cv_prog_NM
8429 if test -n "$NM"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8431 $as_echo "$NM" >&6; }
8432 else
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8440 # AR
8441 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8442 && test -d ../binutils ; then
8443 AR='${objdir}/../binutils/ar'
8444 else
8445 # Extract the first word of "ar", so it can be a program name with args.
8446 set dummy ar; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if test "${ac_cv_prog_AR+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$AR"; then
8453 ac_cv_prog_AR="$AR" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_prog_AR="ar"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8470 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8473 AR=$ac_cv_prog_AR
8474 if test -n "$AR"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8476 $as_echo "$AR" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8485 # The jit documentation looks better if built with sphinx, but can be
8486 # built with texinfo if sphinx is not available.
8487 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8488 # Extract the first word of "sphinx-build", so it can be a program name with args.
8489 set dummy sphinx-build; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 if test -n "$doc_build_sys"; then
8496 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8497 else
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8501 IFS=$as_save_IFS
8502 test -z "$as_dir" && as_dir=.
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8505 ac_cv_prog_doc_build_sys="sphinx"
8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 break 2
8509 done
8510 done
8511 IFS=$as_save_IFS
8513 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8516 doc_build_sys=$ac_cv_prog_doc_build_sys
8517 if test -n "$doc_build_sys"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8519 $as_echo "$doc_build_sys" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 # --------------------
8528 # Checks for C headers
8529 # --------------------
8531 # Need to reject headers which give warnings, so that the -Werror bootstrap
8532 # works later. *sigh* This needs to come before all header checks.
8534 ac_c_preproc_warn_flag=yes
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8537 $as_echo_n "checking for ANSI C header files... " >&6; }
8538 if test "${ac_cv_header_stdc+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 #include <stdlib.h>
8544 #include <stdarg.h>
8545 #include <string.h>
8546 #include <float.h>
8549 main ()
8553 return 0;
8555 _ACEOF
8556 if ac_fn_cxx_try_compile "$LINENO"; then :
8557 ac_cv_header_stdc=yes
8558 else
8559 ac_cv_header_stdc=no
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 if test $ac_cv_header_stdc = yes; then
8564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 #include <string.h>
8569 _ACEOF
8570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8571 $EGREP "memchr" >/dev/null 2>&1; then :
8573 else
8574 ac_cv_header_stdc=no
8576 rm -f conftest*
8580 if test $ac_cv_header_stdc = yes; then
8581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 #include <stdlib.h>
8586 _ACEOF
8587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8588 $EGREP "free" >/dev/null 2>&1; then :
8590 else
8591 ac_cv_header_stdc=no
8593 rm -f conftest*
8597 if test $ac_cv_header_stdc = yes; then
8598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8599 if test "$cross_compiling" = yes; then :
8601 else
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8604 #include <ctype.h>
8605 #include <stdlib.h>
8606 #if ((' ' & 0x0FF) == 0x020)
8607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8609 #else
8610 # define ISLOWER(c) \
8611 (('a' <= (c) && (c) <= 'i') \
8612 || ('j' <= (c) && (c) <= 'r') \
8613 || ('s' <= (c) && (c) <= 'z'))
8614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8615 #endif
8617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8619 main ()
8621 int i;
8622 for (i = 0; i < 256; i++)
8623 if (XOR (islower (i), ISLOWER (i))
8624 || toupper (i) != TOUPPER (i))
8625 return 2;
8626 return 0;
8628 _ACEOF
8629 if ac_fn_cxx_try_run "$LINENO"; then :
8631 else
8632 ac_cv_header_stdc=no
8634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8635 conftest.$ac_objext conftest.beam conftest.$ac_ext
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8641 $as_echo "$ac_cv_header_stdc" >&6; }
8642 if test $ac_cv_header_stdc = yes; then
8644 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8649 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8650 if test "${ac_cv_header_time+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 #include <sys/types.h>
8656 #include <sys/time.h>
8657 #include <time.h>
8660 main ()
8662 if ((struct tm *) 0)
8663 return 0;
8665 return 0;
8667 _ACEOF
8668 if ac_fn_cxx_try_compile "$LINENO"; then :
8669 ac_cv_header_time=yes
8670 else
8671 ac_cv_header_time=no
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8676 $as_echo "$ac_cv_header_time" >&6; }
8677 if test $ac_cv_header_time = yes; then
8679 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8684 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8685 if test "${gcc_cv_header_string+set}" = set; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #include <string.h>
8691 #include <strings.h>
8693 main ()
8697 return 0;
8699 _ACEOF
8700 if ac_fn_cxx_try_compile "$LINENO"; then :
8701 gcc_cv_header_string=yes
8702 else
8703 gcc_cv_header_string=no
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8708 $as_echo "$gcc_cv_header_string" >&6; }
8709 if test $gcc_cv_header_string = yes; then
8711 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8716 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8717 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #include <sys/types.h>
8723 #include <sys/wait.h>
8724 #ifndef WEXITSTATUS
8725 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8726 #endif
8727 #ifndef WIFEXITED
8728 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8729 #endif
8732 main ()
8734 int s;
8735 wait (&s);
8736 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8738 return 0;
8740 _ACEOF
8741 if ac_fn_cxx_try_compile "$LINENO"; then :
8742 ac_cv_header_sys_wait_h=yes
8743 else
8744 ac_cv_header_sys_wait_h=no
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8749 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8750 if test $ac_cv_header_sys_wait_h = yes; then
8752 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8757 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8758 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 #include <sys/types.h>
8764 #include <termios.h>
8765 #ifdef TIOCGWINSZ
8767 #endif
8769 _ACEOF
8770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8771 $EGREP "yes" >/dev/null 2>&1; then :
8772 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8773 else
8774 ac_cv_sys_tiocgwinsz_in_termios_h=no
8776 rm -f conftest*
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8780 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8782 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8784 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8785 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 #include <sys/types.h>
8791 #include <sys/ioctl.h>
8792 #ifdef TIOCGWINSZ
8794 #endif
8796 _ACEOF
8797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8798 $EGREP "yes" >/dev/null 2>&1; then :
8799 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8800 else
8801 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8803 rm -f conftest*
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8807 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8809 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8811 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8816 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8817 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8818 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8819 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8820 do :
8821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8822 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8823 eval as_val=\$$as_ac_Header
8824 if test "x$as_val" = x""yes; then :
8825 cat >>confdefs.h <<_ACEOF
8826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8827 _ACEOF
8830 done
8833 # Check for thread headers.
8834 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8835 if test "x$ac_cv_header_thread_h" = x""yes; then :
8836 have_thread_h=yes
8837 else
8838 have_thread_h=
8841 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8842 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8843 have_pthread_h=yes
8844 else
8845 have_pthread_h=
8849 # These tests can't be done till we know if we have limits.h.
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8851 $as_echo_n "checking for CHAR_BIT... " >&6; }
8852 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 #ifdef HAVE_LIMITS_H
8858 #include <limits.h>
8859 #endif
8860 #ifdef CHAR_BIT
8861 found
8862 #endif
8863 _ACEOF
8864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8865 $EGREP "found" >/dev/null 2>&1; then :
8866 gcc_cv_decl_char_bit=yes
8867 else
8868 gcc_cv_decl_char_bit=no
8870 rm -f conftest*
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8875 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8876 if test $gcc_cv_decl_char_bit = no; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8878 $as_echo_n "checking number of bits in a byte... " >&6; }
8879 if test "${gcc_cv_c_nbby+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8883 gcc_cv_c_nbby=
8884 while test $i -lt 65; do
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8889 main ()
8891 switch(0) {
8892 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8893 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8896 return 0;
8898 _ACEOF
8899 if ac_fn_cxx_try_compile "$LINENO"; then :
8900 gcc_cv_c_nbby=$i; break
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 i=`expr $i + 1`
8904 done
8905 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8909 $as_echo "$gcc_cv_c_nbby" >&6; }
8910 if test $gcc_cv_c_nbby = failed; then
8911 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8912 else
8914 cat >>confdefs.h <<_ACEOF
8915 #define CHAR_BIT $gcc_cv_c_nbby
8916 _ACEOF
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8921 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8922 if test "${ac_cv_c_bigendian+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 ac_cv_c_bigendian=unknown
8926 # See if we're dealing with a universal compiler.
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #ifndef __APPLE_CC__
8930 not a universal capable compiler
8931 #endif
8932 typedef int dummy;
8934 _ACEOF
8935 if ac_fn_cxx_try_compile "$LINENO"; then :
8937 # Check for potential -arch flags. It is not universal unless
8938 # there are at least two -arch flags with different values.
8939 ac_arch=
8940 ac_prev=
8941 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8942 if test -n "$ac_prev"; then
8943 case $ac_word in
8944 i?86 | x86_64 | ppc | ppc64)
8945 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8946 ac_arch=$ac_word
8947 else
8948 ac_cv_c_bigendian=universal
8949 break
8952 esac
8953 ac_prev=
8954 elif test "x$ac_word" = "x-arch"; then
8955 ac_prev=arch
8957 done
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 if test $ac_cv_c_bigendian = unknown; then
8961 # See if sys/param.h defines the BYTE_ORDER macro.
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 #include <sys/types.h>
8965 #include <sys/param.h>
8968 main ()
8970 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8971 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8972 && LITTLE_ENDIAN)
8973 bogus endian macros
8974 #endif
8977 return 0;
8979 _ACEOF
8980 if ac_fn_cxx_try_compile "$LINENO"; then :
8981 # It does; now see whether it defined to BIG_ENDIAN or not.
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 #include <sys/types.h>
8985 #include <sys/param.h>
8988 main ()
8990 #if BYTE_ORDER != BIG_ENDIAN
8991 not big endian
8992 #endif
8995 return 0;
8997 _ACEOF
8998 if ac_fn_cxx_try_compile "$LINENO"; then :
8999 ac_cv_c_bigendian=yes
9000 else
9001 ac_cv_c_bigendian=no
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 if test $ac_cv_c_bigendian = unknown; then
9008 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 #include <limits.h>
9014 main ()
9016 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9017 bogus endian macros
9018 #endif
9021 return 0;
9023 _ACEOF
9024 if ac_fn_cxx_try_compile "$LINENO"; then :
9025 # It does; now see whether it defined to _BIG_ENDIAN or not.
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9028 #include <limits.h>
9031 main ()
9033 #ifndef _BIG_ENDIAN
9034 not big endian
9035 #endif
9038 return 0;
9040 _ACEOF
9041 if ac_fn_cxx_try_compile "$LINENO"; then :
9042 ac_cv_c_bigendian=yes
9043 else
9044 ac_cv_c_bigendian=no
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 if test $ac_cv_c_bigendian = unknown; then
9051 # Compile a test program.
9052 if test "$cross_compiling" = yes; then :
9053 # Try to guess by grepping values from an object file.
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 short int ascii_mm[] =
9057 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9058 short int ascii_ii[] =
9059 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9060 int use_ascii (int i) {
9061 return ascii_mm[i] + ascii_ii[i];
9063 short int ebcdic_ii[] =
9064 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9065 short int ebcdic_mm[] =
9066 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9067 int use_ebcdic (int i) {
9068 return ebcdic_mm[i] + ebcdic_ii[i];
9070 extern int foo;
9073 main ()
9075 return use_ascii (foo) == use_ebcdic (foo);
9077 return 0;
9079 _ACEOF
9080 if ac_fn_cxx_try_compile "$LINENO"; then :
9081 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9082 ac_cv_c_bigendian=yes
9084 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9085 if test "$ac_cv_c_bigendian" = unknown; then
9086 ac_cv_c_bigendian=no
9087 else
9088 # finding both strings is unlikely to happen, but who knows?
9089 ac_cv_c_bigendian=unknown
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 else
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 $ac_includes_default
9099 main ()
9102 /* Are we little or big endian? From Harbison&Steele. */
9103 union
9105 long int l;
9106 char c[sizeof (long int)];
9107 } u;
9108 u.l = 1;
9109 return u.c[sizeof (long int) - 1] == 1;
9112 return 0;
9114 _ACEOF
9115 if ac_fn_cxx_try_run "$LINENO"; then :
9116 ac_cv_c_bigendian=no
9117 else
9118 ac_cv_c_bigendian=yes
9120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9121 conftest.$ac_objext conftest.beam conftest.$ac_ext
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9127 $as_echo "$ac_cv_c_bigendian" >&6; }
9128 case $ac_cv_c_bigendian in #(
9129 yes)
9130 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9131 ;; #(
9133 ;; #(
9134 universal)
9136 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9138 ;; #(
9140 as_fn_error "unknown endianness
9141 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9142 esac
9145 # ----------------------
9146 # Checks for C++ headers
9147 # ----------------------
9149 ac_ext=cpp
9150 ac_cpp='$CXXCPP $CPPFLAGS'
9151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9155 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9156 if test -z "$CXXCPP"; then
9157 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 # Double quotes because CXXCPP needs to be expanded
9161 for CXXCPP in "$CXX -E" "/lib/cpp"
9163 ac_preproc_ok=false
9164 for ac_cxx_preproc_warn_flag in '' yes
9166 # Use a header file that comes with gcc, so configuring glibc
9167 # with a fresh cross-compiler works.
9168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9169 # <limits.h> exists even on freestanding compilers.
9170 # On the NeXT, cc -E runs the code through the compiler's parser,
9171 # not just through cpp. "Syntax error" is here to catch this case.
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #ifdef __STDC__
9175 # include <limits.h>
9176 #else
9177 # include <assert.h>
9178 #endif
9179 Syntax error
9180 _ACEOF
9181 if ac_fn_cxx_try_cpp "$LINENO"; then :
9183 else
9184 # Broken: fails on valid input.
9185 continue
9187 rm -f conftest.err conftest.$ac_ext
9189 # OK, works on sane cases. Now check whether nonexistent headers
9190 # can be detected and how.
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 #include <ac_nonexistent.h>
9194 _ACEOF
9195 if ac_fn_cxx_try_cpp "$LINENO"; then :
9196 # Broken: success on invalid input.
9197 continue
9198 else
9199 # Passes both tests.
9200 ac_preproc_ok=:
9201 break
9203 rm -f conftest.err conftest.$ac_ext
9205 done
9206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9207 rm -f conftest.err conftest.$ac_ext
9208 if $ac_preproc_ok; then :
9209 break
9212 done
9213 ac_cv_prog_CXXCPP=$CXXCPP
9216 CXXCPP=$ac_cv_prog_CXXCPP
9217 else
9218 ac_cv_prog_CXXCPP=$CXXCPP
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9221 $as_echo "$CXXCPP" >&6; }
9222 ac_preproc_ok=false
9223 for ac_cxx_preproc_warn_flag in '' yes
9225 # Use a header file that comes with gcc, so configuring glibc
9226 # with a fresh cross-compiler works.
9227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9228 # <limits.h> exists even on freestanding compilers.
9229 # On the NeXT, cc -E runs the code through the compiler's parser,
9230 # not just through cpp. "Syntax error" is here to catch this case.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #ifdef __STDC__
9234 # include <limits.h>
9235 #else
9236 # include <assert.h>
9237 #endif
9238 Syntax error
9239 _ACEOF
9240 if ac_fn_cxx_try_cpp "$LINENO"; then :
9242 else
9243 # Broken: fails on valid input.
9244 continue
9246 rm -f conftest.err conftest.$ac_ext
9248 # OK, works on sane cases. Now check whether nonexistent headers
9249 # can be detected and how.
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 #include <ac_nonexistent.h>
9253 _ACEOF
9254 if ac_fn_cxx_try_cpp "$LINENO"; then :
9255 # Broken: success on invalid input.
9256 continue
9257 else
9258 # Passes both tests.
9259 ac_preproc_ok=:
9260 break
9262 rm -f conftest.err conftest.$ac_ext
9264 done
9265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9266 rm -f conftest.err conftest.$ac_ext
9267 if $ac_preproc_ok; then :
9269 else
9270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9273 See \`config.log' for more details." >&5
9274 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9275 See \`config.log' for more details." >&2;}; }
9278 ac_ext=cpp
9279 ac_cpp='$CXXCPP $CPPFLAGS'
9280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9285 for ac_header in unordered_map
9286 do :
9287 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9288 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9289 cat >>confdefs.h <<_ACEOF
9290 #define HAVE_UNORDERED_MAP 1
9291 _ACEOF
9294 done
9296 for ac_header in tr1/unordered_map
9297 do :
9298 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9299 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9300 cat >>confdefs.h <<_ACEOF
9301 #define HAVE_TR1_UNORDERED_MAP 1
9302 _ACEOF
9305 done
9307 for ac_header in ext/hash_map
9308 do :
9309 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9310 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9311 cat >>confdefs.h <<_ACEOF
9312 #define HAVE_EXT_HASH_MAP 1
9313 _ACEOF
9316 done
9319 # --------
9320 # Dependency checking.
9321 # --------
9323 rm -rf .tst 2>/dev/null
9324 mkdir .tst 2>/dev/null
9325 if test -d .tst; then
9326 am__leading_dot=.
9327 else
9328 am__leading_dot=_
9330 rmdir .tst 2>/dev/null
9332 DEPDIR="${am__leading_dot}deps"
9334 ac_config_commands="$ac_config_commands depdir"
9337 ac_config_commands="$ac_config_commands gccdepdir"
9340 depcc="$CXX" am_compiler_list=
9342 am_depcomp=$ac_aux_dir/depcomp
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9344 $as_echo_n "checking dependency style of $depcc... " >&6; }
9345 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 if test -f "$am_depcomp"; then
9349 # We make a subdir and do the tests there. Otherwise we can end up
9350 # making bogus files that we don't know about and never remove. For
9351 # instance it was reported that on HP-UX the gcc test will end up
9352 # making a dummy file named `D' -- because `-MD' means `put the output
9353 # in D'.
9354 mkdir conftest.dir
9355 # Copy depcomp to subdir because otherwise we won't find it if we're
9356 # using a relative directory.
9357 cp "$am_depcomp" conftest.dir
9358 cd conftest.dir
9359 # We will build objects and dependencies in a subdirectory because
9360 # it helps to detect inapplicable dependency modes. For instance
9361 # both Tru64's cc and ICC support -MD to output dependencies as a
9362 # side effect of compilation, but ICC will put the dependencies in
9363 # the current directory while Tru64 will put them in the object
9364 # directory.
9365 mkdir sub
9367 am_cv_CXX_dependencies_compiler_type=none
9368 if test "$am_compiler_list" = ""; then
9369 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9371 for depmode in $am_compiler_list; do
9372 if test $depmode = none; then break; fi
9374 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9375 # Setup a source with many dependencies, because some compilers
9376 # like to wrap large dependency lists on column 80 (with \), and
9377 # we should not choose a depcomp mode which is confused by this.
9379 # We need to recreate these files for each test, as the compiler may
9380 # overwrite some of them when testing with obscure command lines.
9381 # This happens at least with the AIX C compiler.
9382 : > sub/conftest.c
9383 for i in 1 2 3 4 5 6; do
9384 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9385 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9386 # Solaris 8's {/usr,}/bin/sh.
9387 touch sub/conftst$i.h
9388 done
9389 echo "include sub/conftest.Po" > confmf
9391 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9392 # mode. It turns out that the SunPro C++ compiler does not properly
9393 # handle `-M -o', and we need to detect this.
9394 depcmd="depmode=$depmode \
9395 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9397 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9398 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9399 if env $depcmd > conftest.err 2>&1 &&
9400 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9401 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9402 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9403 # icc doesn't choke on unknown options, it will just issue warnings
9404 # or remarks (even with -Werror). So we grep stderr for any message
9405 # that says an option was ignored or not supported.
9406 # When given -MP, icc 7.0 and 7.1 complain thusly:
9407 # icc: Command line warning: ignoring option '-M'; no argument required
9408 # The diagnosis changed in icc 8.0:
9409 # icc: Command line remark: option '-MP' not supported
9410 if (grep 'ignoring option' conftest.err ||
9411 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9412 am_cv_CXX_dependencies_compiler_type=$depmode
9413 $as_echo "$as_me:$LINENO: success" >&5
9414 break
9417 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9418 sed -e 's/^/| /' < conftest.err >&5
9419 done
9421 cd ..
9422 rm -rf conftest.dir
9423 else
9424 am_cv_CXX_dependencies_compiler_type=none
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9429 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9430 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9431 then as_fn_error "no usable dependency style found" "$LINENO" 5
9432 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9437 # --------
9438 # UNSORTED
9439 # --------
9442 # These libraries may be used by collect2.
9443 # We may need a special search path to get them linked.
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9445 $as_echo_n "checking for collect2 libraries... " >&6; }
9446 if test "${gcc_cv_collect2_libs+set}" = set; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 save_LIBS="$LIBS"
9450 for libs in '' -lld -lmld \
9451 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9452 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9454 LIBS="$libs"
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9458 /* Override any GCC internal prototype to avoid an error.
9459 Use char because int might match the return type of a GCC
9460 builtin and then its argument prototype would still apply. */
9461 #ifdef __cplusplus
9462 extern "C"
9463 #endif
9464 char ldopen ();
9466 main ()
9468 return ldopen ();
9470 return 0;
9472 _ACEOF
9473 if ac_fn_cxx_try_link "$LINENO"; then :
9474 gcc_cv_collect2_libs="$libs"; break
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 done
9479 LIBS="$save_LIBS"
9480 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9483 $as_echo "$gcc_cv_collect2_libs" >&6; }
9484 case $gcc_cv_collect2_libs in
9485 "none required") ;;
9486 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9487 esac
9490 # When building Ada code on Alpha, we need exc_resume which is usually in
9491 # -lexc. So test for it.
9492 save_LIBS="$LIBS"
9493 LIBS=
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9495 $as_echo_n "checking for library containing exc_resume... " >&6; }
9496 if test "${ac_cv_search_exc_resume+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 ac_func_search_save_LIBS=$LIBS
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9506 #ifdef __cplusplus
9507 extern "C"
9508 #endif
9509 char exc_resume ();
9511 main ()
9513 return exc_resume ();
9515 return 0;
9517 _ACEOF
9518 for ac_lib in '' exc; do
9519 if test -z "$ac_lib"; then
9520 ac_res="none required"
9521 else
9522 ac_res=-l$ac_lib
9523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9525 if ac_fn_cxx_try_link "$LINENO"; then :
9526 ac_cv_search_exc_resume=$ac_res
9528 rm -f core conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext
9530 if test "${ac_cv_search_exc_resume+set}" = set; then :
9531 break
9533 done
9534 if test "${ac_cv_search_exc_resume+set}" = set; then :
9536 else
9537 ac_cv_search_exc_resume=no
9539 rm conftest.$ac_ext
9540 LIBS=$ac_func_search_save_LIBS
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9543 $as_echo "$ac_cv_search_exc_resume" >&6; }
9544 ac_res=$ac_cv_search_exc_resume
9545 if test "$ac_res" != no; then :
9546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9550 GNAT_LIBEXC="$LIBS"
9551 LIBS="$save_LIBS"
9554 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9555 save_LIBS="$LIBS"
9556 LIBS=
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9558 $as_echo_n "checking for library containing kstat_open... " >&6; }
9559 if test "${ac_cv_search_kstat_open+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 ac_func_search_save_LIBS=$LIBS
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9566 /* Override any GCC internal prototype to avoid an error.
9567 Use char because int might match the return type of a GCC
9568 builtin and then its argument prototype would still apply. */
9569 #ifdef __cplusplus
9570 extern "C"
9571 #endif
9572 char kstat_open ();
9574 main ()
9576 return kstat_open ();
9578 return 0;
9580 _ACEOF
9581 for ac_lib in '' kstat; do
9582 if test -z "$ac_lib"; then
9583 ac_res="none required"
9584 else
9585 ac_res=-l$ac_lib
9586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9588 if ac_fn_cxx_try_link "$LINENO"; then :
9589 ac_cv_search_kstat_open=$ac_res
9591 rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext
9593 if test "${ac_cv_search_kstat_open+set}" = set; then :
9594 break
9596 done
9597 if test "${ac_cv_search_kstat_open+set}" = set; then :
9599 else
9600 ac_cv_search_kstat_open=no
9602 rm conftest.$ac_ext
9603 LIBS=$ac_func_search_save_LIBS
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9606 $as_echo "$ac_cv_search_kstat_open" >&6; }
9607 ac_res=$ac_cv_search_kstat_open
9608 if test "$ac_res" != no; then :
9609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9613 EXTRA_GCC_LIBS="$LIBS"
9614 LIBS="$save_LIBS"
9617 # Some systems put ldexp and frexp in libm instead of libc; assume
9618 # they're both in the same place. jcf-dump needs them.
9619 save_LIBS="$LIBS"
9620 LIBS=
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9622 $as_echo_n "checking for library containing ldexp... " >&6; }
9623 if test "${ac_cv_search_ldexp+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 ac_func_search_save_LIBS=$LIBS
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9630 /* Override any GCC internal prototype to avoid an error.
9631 Use char because int might match the return type of a GCC
9632 builtin and then its argument prototype would still apply. */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 char ldexp ();
9638 main ()
9640 return ldexp ();
9642 return 0;
9644 _ACEOF
9645 for ac_lib in '' m; do
9646 if test -z "$ac_lib"; then
9647 ac_res="none required"
9648 else
9649 ac_res=-l$ac_lib
9650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9652 if ac_fn_cxx_try_link "$LINENO"; then :
9653 ac_cv_search_ldexp=$ac_res
9655 rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext
9657 if test "${ac_cv_search_ldexp+set}" = set; then :
9658 break
9660 done
9661 if test "${ac_cv_search_ldexp+set}" = set; then :
9663 else
9664 ac_cv_search_ldexp=no
9666 rm conftest.$ac_ext
9667 LIBS=$ac_func_search_save_LIBS
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9670 $as_echo "$ac_cv_search_ldexp" >&6; }
9671 ac_res=$ac_cv_search_ldexp
9672 if test "$ac_res" != no; then :
9673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9677 LDEXP_LIB="$LIBS"
9678 LIBS="$save_LIBS"
9681 # Use <inttypes.h> only if it exists,
9682 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9683 # PRId64
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9685 $as_echo_n "checking for inttypes.h... " >&6; }
9686 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691 #define __STDC_FORMAT_MACROS
9692 #include <sys/types.h>
9693 #include <inttypes.h>
9695 main ()
9697 intmax_t i = -1;
9698 #ifndef PRId64
9699 choke me
9700 #endif
9702 return 0;
9704 _ACEOF
9705 if ac_fn_cxx_try_compile "$LINENO"; then :
9706 gcc_cv_header_inttypes_h=yes
9707 else
9708 gcc_cv_header_inttypes_h=no
9710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9714 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9715 if test $gcc_cv_header_inttypes_h = yes; then
9717 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9723 for ac_func in times clock kill getrlimit setrlimit atoq \
9724 popen sysconf strsignal getrusage nl_langinfo \
9725 gettimeofday mbstowcs wcswidth mmap setlocale \
9726 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
9727 do :
9728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9729 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9730 eval as_val=\$$as_ac_var
9731 if test "x$as_val" = x""yes; then :
9732 cat >>confdefs.h <<_ACEOF
9733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9734 _ACEOF
9737 done
9740 if test x$ac_cv_func_mbstowcs = xyes; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9742 $as_echo_n "checking whether mbstowcs works... " >&6; }
9743 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 if test "$cross_compiling" = yes; then :
9747 gcc_cv_func_mbstowcs_works=yes
9748 else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 #include <stdlib.h>
9752 int main()
9754 mbstowcs(0, "", 0);
9755 return 0;
9757 _ACEOF
9758 if ac_fn_cxx_try_run "$LINENO"; then :
9759 gcc_cv_func_mbstowcs_works=yes
9760 else
9761 gcc_cv_func_mbstowcs_works=no
9763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9764 conftest.$ac_objext conftest.beam conftest.$ac_ext
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9769 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9770 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9772 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9777 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9778 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9780 else
9782 cat >>confdefs.h <<_ACEOF
9783 #define ssize_t int
9784 _ACEOF
9788 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9789 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9791 else
9793 cat >>confdefs.h <<_ACEOF
9794 #define caddr_t char *
9795 _ACEOF
9801 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9802 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9803 gcc_header_sys_mman_h=yes
9804 else
9805 gcc_header_sys_mman_h=no
9808 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9809 if test "x$ac_cv_func_mmap" = x""yes; then :
9810 gcc_func_mmap=yes
9811 else
9812 gcc_func_mmap=no
9815 if test "$gcc_header_sys_mman_h" != yes \
9816 || test "$gcc_func_mmap" != yes; then
9817 gcc_cv_func_mmap_file=no
9818 gcc_cv_func_mmap_dev_zero=no
9819 gcc_cv_func_mmap_anon=no
9820 else
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9822 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9823 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 # Add a system to this blacklist if
9827 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9828 # memory area containing the same data that you'd get if you applied
9829 # read() to the same fd. The only system known to have a problem here
9830 # is VMS, where text files have record structure.
9831 case "$host_os" in
9832 *vms* | ultrix*)
9833 gcc_cv_func_mmap_file=no ;;
9835 gcc_cv_func_mmap_file=yes;;
9836 esac
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9839 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9841 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9842 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 # Add a system to this blacklist if it has mmap() but /dev/zero
9846 # does not exist, or if mmapping /dev/zero does not give anonymous
9847 # zeroed pages with both the following properties:
9848 # 1. If you map N consecutive pages in with one call, and then
9849 # unmap any subset of those pages, the pages that were not
9850 # explicitly unmapped remain accessible.
9851 # 2. If you map two adjacent blocks of memory and then unmap them
9852 # both at once, they must both go away.
9853 # Systems known to be in this category are Windows (all variants),
9854 # VMS, and Darwin.
9855 case "$host_os" in
9856 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9857 gcc_cv_func_mmap_dev_zero=no ;;
9859 gcc_cv_func_mmap_dev_zero=yes;;
9860 esac
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9863 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9865 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9867 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9868 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 #include <sys/types.h>
9874 #include <sys/mman.h>
9875 #include <unistd.h>
9877 #ifndef MAP_ANONYMOUS
9878 #define MAP_ANONYMOUS MAP_ANON
9879 #endif
9882 main ()
9884 int n = MAP_ANONYMOUS;
9886 return 0;
9888 _ACEOF
9889 if ac_fn_cxx_try_compile "$LINENO"; then :
9890 gcc_cv_decl_map_anon=yes
9891 else
9892 gcc_cv_decl_map_anon=no
9894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9897 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9899 if test $gcc_cv_decl_map_anon = no; then
9900 gcc_cv_func_mmap_anon=no
9901 else
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9903 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9904 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9908 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9909 # doesn't give anonymous zeroed pages with the same properties listed
9910 # above for use of /dev/zero.
9911 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9912 case "$host_os" in
9913 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9914 gcc_cv_func_mmap_anon=no ;;
9916 gcc_cv_func_mmap_anon=yes;;
9917 esac
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9920 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9924 if test $gcc_cv_func_mmap_file = yes; then
9926 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9929 if test $gcc_cv_func_mmap_dev_zero = yes; then
9931 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9934 if test $gcc_cv_func_mmap_anon = yes; then
9936 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9941 case "${host}" in
9942 *-*-*vms*)
9943 # Under VMS, vfork works very differently than on Unix. The standard test
9944 # won't work, and it isn't easily adaptable. It makes more sense to
9945 # just force it.
9946 ac_cv_func_vfork_works=yes
9948 esac
9949 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9950 if test "x$ac_cv_type_pid_t" = x""yes; then :
9952 else
9954 cat >>confdefs.h <<_ACEOF
9955 #define pid_t int
9956 _ACEOF
9960 for ac_header in vfork.h
9961 do :
9962 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9963 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9964 cat >>confdefs.h <<_ACEOF
9965 #define HAVE_VFORK_H 1
9966 _ACEOF
9969 done
9971 for ac_func in fork vfork
9972 do :
9973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9974 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9975 eval as_val=\$$as_ac_var
9976 if test "x$as_val" = x""yes; then :
9977 cat >>confdefs.h <<_ACEOF
9978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9979 _ACEOF
9982 done
9984 if test "x$ac_cv_func_fork" = xyes; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9986 $as_echo_n "checking for working fork... " >&6; }
9987 if test "${ac_cv_func_fork_works+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 if test "$cross_compiling" = yes; then :
9991 ac_cv_func_fork_works=cross
9992 else
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995 $ac_includes_default
9997 main ()
10000 /* By Ruediger Kuhlmann. */
10001 return fork () < 0;
10004 return 0;
10006 _ACEOF
10007 if ac_fn_cxx_try_run "$LINENO"; then :
10008 ac_cv_func_fork_works=yes
10009 else
10010 ac_cv_func_fork_works=no
10012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10013 conftest.$ac_objext conftest.beam conftest.$ac_ext
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10018 $as_echo "$ac_cv_func_fork_works" >&6; }
10020 else
10021 ac_cv_func_fork_works=$ac_cv_func_fork
10023 if test "x$ac_cv_func_fork_works" = xcross; then
10024 case $host in
10025 *-*-amigaos* | *-*-msdosdjgpp*)
10026 # Override, as these systems have only a dummy fork() stub
10027 ac_cv_func_fork_works=no
10030 ac_cv_func_fork_works=yes
10032 esac
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10034 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10036 ac_cv_func_vfork_works=$ac_cv_func_vfork
10037 if test "x$ac_cv_func_vfork" = xyes; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10039 $as_echo_n "checking for working vfork... " >&6; }
10040 if test "${ac_cv_func_vfork_works+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 if test "$cross_compiling" = yes; then :
10044 ac_cv_func_vfork_works=cross
10045 else
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 /* Thanks to Paul Eggert for this test. */
10049 $ac_includes_default
10050 #include <sys/wait.h>
10051 #ifdef HAVE_VFORK_H
10052 # include <vfork.h>
10053 #endif
10054 /* On some sparc systems, changes by the child to local and incoming
10055 argument registers are propagated back to the parent. The compiler
10056 is told about this with #include <vfork.h>, but some compilers
10057 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10058 static variable whose address is put into a register that is
10059 clobbered by the vfork. */
10060 static void
10061 #ifdef __cplusplus
10062 sparc_address_test (int arg)
10063 # else
10064 sparc_address_test (arg) int arg;
10065 #endif
10067 static pid_t child;
10068 if (!child) {
10069 child = vfork ();
10070 if (child < 0) {
10071 perror ("vfork");
10072 _exit(2);
10074 if (!child) {
10075 arg = getpid();
10076 write(-1, "", 0);
10077 _exit (arg);
10083 main ()
10085 pid_t parent = getpid ();
10086 pid_t child;
10088 sparc_address_test (0);
10090 child = vfork ();
10092 if (child == 0) {
10093 /* Here is another test for sparc vfork register problems. This
10094 test uses lots of local variables, at least as many local
10095 variables as main has allocated so far including compiler
10096 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10097 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10098 reuse the register of parent for one of the local variables,
10099 since it will think that parent can't possibly be used any more
10100 in this routine. Assigning to the local variable will thus
10101 munge parent in the parent process. */
10102 pid_t
10103 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10104 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10105 /* Convince the compiler that p..p7 are live; otherwise, it might
10106 use the same hardware register for all 8 local variables. */
10107 if (p != p1 || p != p2 || p != p3 || p != p4
10108 || p != p5 || p != p6 || p != p7)
10109 _exit(1);
10111 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10112 from child file descriptors. If the child closes a descriptor
10113 before it execs or exits, this munges the parent's descriptor
10114 as well. Test for this by closing stdout in the child. */
10115 _exit(close(fileno(stdout)) != 0);
10116 } else {
10117 int status;
10118 struct stat st;
10120 while (wait(&status) != child)
10122 return (
10123 /* Was there some problem with vforking? */
10124 child < 0
10126 /* Did the child fail? (This shouldn't happen.) */
10127 || status
10129 /* Did the vfork/compiler bug occur? */
10130 || parent != getpid()
10132 /* Did the file descriptor bug occur? */
10133 || fstat(fileno(stdout), &st) != 0
10137 _ACEOF
10138 if ac_fn_cxx_try_run "$LINENO"; then :
10139 ac_cv_func_vfork_works=yes
10140 else
10141 ac_cv_func_vfork_works=no
10143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10144 conftest.$ac_objext conftest.beam conftest.$ac_ext
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10149 $as_echo "$ac_cv_func_vfork_works" >&6; }
10152 if test "x$ac_cv_func_fork_works" = xcross; then
10153 ac_cv_func_vfork_works=$ac_cv_func_vfork
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10155 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10158 if test "x$ac_cv_func_vfork_works" = xyes; then
10160 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10162 else
10164 $as_echo "#define vfork fork" >>confdefs.h
10167 if test "x$ac_cv_func_fork_works" = xyes; then
10169 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10175 if test "X$prefix" = "XNONE"; then
10176 acl_final_prefix="$ac_default_prefix"
10177 else
10178 acl_final_prefix="$prefix"
10180 if test "X$exec_prefix" = "XNONE"; then
10181 acl_final_exec_prefix='${prefix}'
10182 else
10183 acl_final_exec_prefix="$exec_prefix"
10185 acl_save_prefix="$prefix"
10186 prefix="$acl_final_prefix"
10187 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10188 prefix="$acl_save_prefix"
10191 # Check whether --with-gnu-ld was given.
10192 if test "${with_gnu_ld+set}" = set; then :
10193 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10194 else
10195 with_gnu_ld=no
10198 # Prepare PATH_SEPARATOR.
10199 # The user is always right.
10200 if test "${PATH_SEPARATOR+set}" != set; then
10201 echo "#! /bin/sh" >conf$$.sh
10202 echo "exit 0" >>conf$$.sh
10203 chmod +x conf$$.sh
10204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10205 PATH_SEPARATOR=';'
10206 else
10207 PATH_SEPARATOR=:
10209 rm -f conf$$.sh
10211 ac_prog=ld
10212 if test "$GCC" = yes; then
10213 # Check if gcc -print-prog-name=ld gives a path.
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10215 $as_echo_n "checking for ld used by GCC... " >&6; }
10216 case $host in
10217 *-*-mingw*)
10218 # gcc leaves a trailing carriage return which upsets mingw
10219 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10221 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10222 esac
10223 case $ac_prog in
10224 # Accept absolute paths.
10225 [\\/]* | [A-Za-z]:[\\/]*)
10226 re_direlt='/[^/][^/]*/\.\./'
10227 # Canonicalize the path of ld
10228 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10229 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10230 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10231 done
10232 test -z "$LD" && LD="$ac_prog"
10235 # If it fails, then pretend we aren't using GCC.
10236 ac_prog=ld
10239 # If it is relative, then search for the first ld in PATH.
10240 with_gnu_ld=unknown
10242 esac
10243 elif test "$with_gnu_ld" = yes; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10245 $as_echo_n "checking for GNU ld... " >&6; }
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10248 $as_echo_n "checking for non-GNU ld... " >&6; }
10250 if test "${acl_cv_path_LD+set}" = set; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 if test -z "$LD"; then
10254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10255 for ac_dir in $PATH; do
10256 test -z "$ac_dir" && ac_dir=.
10257 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10258 acl_cv_path_LD="$ac_dir/$ac_prog"
10259 # Check to see if the program is GNU ld. I'd rather use --version,
10260 # but apparently some GNU ld's only accept -v.
10261 # Break only if it was the GNU/non-GNU ld that we prefer.
10262 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10263 test "$with_gnu_ld" != no && break
10264 else
10265 test "$with_gnu_ld" != yes && break
10268 done
10269 IFS="$ac_save_ifs"
10270 else
10271 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10275 LD="$acl_cv_path_LD"
10276 if test -n "$LD"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10278 $as_echo "$LD" >&6; }
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10283 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10285 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10286 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10290 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10291 acl_cv_prog_gnu_ld=yes
10292 else
10293 acl_cv_prog_gnu_ld=no
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10297 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10298 with_gnu_ld=$acl_cv_prog_gnu_ld
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10303 $as_echo_n "checking for shared library run path origin... " >&6; }
10304 if test "${acl_cv_rpath+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10308 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10309 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10310 . ./conftest.sh
10311 rm -f ./conftest.sh
10312 acl_cv_rpath=done
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10316 $as_echo "$acl_cv_rpath" >&6; }
10317 wl="$acl_cv_wl"
10318 libext="$acl_cv_libext"
10319 shlibext="$acl_cv_shlibext"
10320 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10321 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10322 hardcode_direct="$acl_cv_hardcode_direct"
10323 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10324 # Check whether --enable-rpath was given.
10325 if test "${enable_rpath+set}" = set; then :
10326 enableval=$enable_rpath; :
10327 else
10328 enable_rpath=yes
10338 use_additional=yes
10340 acl_save_prefix="$prefix"
10341 prefix="$acl_final_prefix"
10342 acl_save_exec_prefix="$exec_prefix"
10343 exec_prefix="$acl_final_exec_prefix"
10345 eval additional_includedir=\"$includedir\"
10346 eval additional_libdir=\"$libdir\"
10348 exec_prefix="$acl_save_exec_prefix"
10349 prefix="$acl_save_prefix"
10352 # Check whether --with-libiconv-prefix was given.
10353 if test "${with_libiconv_prefix+set}" = set; then :
10354 withval=$with_libiconv_prefix;
10355 if test "X$withval" = "Xno"; then
10356 use_additional=no
10357 else
10358 if test "X$withval" = "X"; then
10360 acl_save_prefix="$prefix"
10361 prefix="$acl_final_prefix"
10362 acl_save_exec_prefix="$exec_prefix"
10363 exec_prefix="$acl_final_exec_prefix"
10365 eval additional_includedir=\"$includedir\"
10366 eval additional_libdir=\"$libdir\"
10368 exec_prefix="$acl_save_exec_prefix"
10369 prefix="$acl_save_prefix"
10371 else
10372 additional_includedir="$withval/include"
10373 additional_libdir="$withval/lib"
10379 LIBICONV=
10380 LTLIBICONV=
10381 INCICONV=
10382 rpathdirs=
10383 ltrpathdirs=
10384 names_already_handled=
10385 names_next_round='iconv '
10386 while test -n "$names_next_round"; do
10387 names_this_round="$names_next_round"
10388 names_next_round=
10389 for name in $names_this_round; do
10390 already_handled=
10391 for n in $names_already_handled; do
10392 if test "$n" = "$name"; then
10393 already_handled=yes
10394 break
10396 done
10397 if test -z "$already_handled"; then
10398 names_already_handled="$names_already_handled $name"
10399 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10400 eval value=\"\$HAVE_LIB$uppername\"
10401 if test -n "$value"; then
10402 if test "$value" = yes; then
10403 eval value=\"\$LIB$uppername\"
10404 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10405 eval value=\"\$LTLIB$uppername\"
10406 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10407 else
10410 else
10411 found_dir=
10412 found_la=
10413 found_so=
10414 found_a=
10415 if test $use_additional = yes; then
10416 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10417 found_dir="$additional_libdir"
10418 found_so="$additional_libdir/lib$name.$shlibext"
10419 if test -f "$additional_libdir/lib$name.la"; then
10420 found_la="$additional_libdir/lib$name.la"
10422 else
10423 if test -f "$additional_libdir/lib$name.$libext"; then
10424 found_dir="$additional_libdir"
10425 found_a="$additional_libdir/lib$name.$libext"
10426 if test -f "$additional_libdir/lib$name.la"; then
10427 found_la="$additional_libdir/lib$name.la"
10432 if test "X$found_dir" = "X"; then
10433 for x in $LDFLAGS $LTLIBICONV; do
10435 acl_save_prefix="$prefix"
10436 prefix="$acl_final_prefix"
10437 acl_save_exec_prefix="$exec_prefix"
10438 exec_prefix="$acl_final_exec_prefix"
10439 eval x=\"$x\"
10440 exec_prefix="$acl_save_exec_prefix"
10441 prefix="$acl_save_prefix"
10443 case "$x" in
10444 -L*)
10445 dir=`echo "X$x" | sed -e 's/^X-L//'`
10446 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10447 found_dir="$dir"
10448 found_so="$dir/lib$name.$shlibext"
10449 if test -f "$dir/lib$name.la"; then
10450 found_la="$dir/lib$name.la"
10452 else
10453 if test -f "$dir/lib$name.$libext"; then
10454 found_dir="$dir"
10455 found_a="$dir/lib$name.$libext"
10456 if test -f "$dir/lib$name.la"; then
10457 found_la="$dir/lib$name.la"
10462 esac
10463 if test "X$found_dir" != "X"; then
10464 break
10466 done
10468 if test "X$found_dir" != "X"; then
10469 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10470 if test "X$found_so" != "X"; then
10471 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10472 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10473 else
10474 haveit=
10475 for x in $ltrpathdirs; do
10476 if test "X$x" = "X$found_dir"; then
10477 haveit=yes
10478 break
10480 done
10481 if test -z "$haveit"; then
10482 ltrpathdirs="$ltrpathdirs $found_dir"
10484 if test "$hardcode_direct" = yes; then
10485 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10486 else
10487 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10488 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10489 haveit=
10490 for x in $rpathdirs; do
10491 if test "X$x" = "X$found_dir"; then
10492 haveit=yes
10493 break
10495 done
10496 if test -z "$haveit"; then
10497 rpathdirs="$rpathdirs $found_dir"
10499 else
10500 haveit=
10501 for x in $LDFLAGS $LIBICONV; do
10503 acl_save_prefix="$prefix"
10504 prefix="$acl_final_prefix"
10505 acl_save_exec_prefix="$exec_prefix"
10506 exec_prefix="$acl_final_exec_prefix"
10507 eval x=\"$x\"
10508 exec_prefix="$acl_save_exec_prefix"
10509 prefix="$acl_save_prefix"
10511 if test "X$x" = "X-L$found_dir"; then
10512 haveit=yes
10513 break
10515 done
10516 if test -z "$haveit"; then
10517 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10519 if test "$hardcode_minus_L" != no; then
10520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10521 else
10522 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10527 else
10528 if test "X$found_a" != "X"; then
10529 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10530 else
10531 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10534 additional_includedir=
10535 case "$found_dir" in
10536 */lib | */lib/)
10537 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10538 additional_includedir="$basedir/include"
10540 esac
10541 if test "X$additional_includedir" != "X"; then
10542 if test "X$additional_includedir" != "X/usr/include"; then
10543 haveit=
10544 if test "X$additional_includedir" = "X/usr/local/include"; then
10545 if test -n "$GCC"; then
10546 case $host_os in
10547 linux*) haveit=yes;;
10548 esac
10551 if test -z "$haveit"; then
10552 for x in $CPPFLAGS $INCICONV; do
10554 acl_save_prefix="$prefix"
10555 prefix="$acl_final_prefix"
10556 acl_save_exec_prefix="$exec_prefix"
10557 exec_prefix="$acl_final_exec_prefix"
10558 eval x=\"$x\"
10559 exec_prefix="$acl_save_exec_prefix"
10560 prefix="$acl_save_prefix"
10562 if test "X$x" = "X-I$additional_includedir"; then
10563 haveit=yes
10564 break
10566 done
10567 if test -z "$haveit"; then
10568 if test -d "$additional_includedir"; then
10569 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10575 if test -n "$found_la"; then
10576 save_libdir="$libdir"
10577 case "$found_la" in
10578 */* | *\\*) . "$found_la" ;;
10579 *) . "./$found_la" ;;
10580 esac
10581 libdir="$save_libdir"
10582 for dep in $dependency_libs; do
10583 case "$dep" in
10584 -L*)
10585 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10586 if test "X$additional_libdir" != "X/usr/lib"; then
10587 haveit=
10588 if test "X$additional_libdir" = "X/usr/local/lib"; then
10589 if test -n "$GCC"; then
10590 case $host_os in
10591 linux*) haveit=yes;;
10592 esac
10595 if test -z "$haveit"; then
10596 haveit=
10597 for x in $LDFLAGS $LIBICONV; do
10599 acl_save_prefix="$prefix"
10600 prefix="$acl_final_prefix"
10601 acl_save_exec_prefix="$exec_prefix"
10602 exec_prefix="$acl_final_exec_prefix"
10603 eval x=\"$x\"
10604 exec_prefix="$acl_save_exec_prefix"
10605 prefix="$acl_save_prefix"
10607 if test "X$x" = "X-L$additional_libdir"; then
10608 haveit=yes
10609 break
10611 done
10612 if test -z "$haveit"; then
10613 if test -d "$additional_libdir"; then
10614 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10617 haveit=
10618 for x in $LDFLAGS $LTLIBICONV; do
10620 acl_save_prefix="$prefix"
10621 prefix="$acl_final_prefix"
10622 acl_save_exec_prefix="$exec_prefix"
10623 exec_prefix="$acl_final_exec_prefix"
10624 eval x=\"$x\"
10625 exec_prefix="$acl_save_exec_prefix"
10626 prefix="$acl_save_prefix"
10628 if test "X$x" = "X-L$additional_libdir"; then
10629 haveit=yes
10630 break
10632 done
10633 if test -z "$haveit"; then
10634 if test -d "$additional_libdir"; then
10635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10641 -R*)
10642 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10643 if test "$enable_rpath" != no; then
10644 haveit=
10645 for x in $rpathdirs; do
10646 if test "X$x" = "X$dir"; then
10647 haveit=yes
10648 break
10650 done
10651 if test -z "$haveit"; then
10652 rpathdirs="$rpathdirs $dir"
10654 haveit=
10655 for x in $ltrpathdirs; do
10656 if test "X$x" = "X$dir"; then
10657 haveit=yes
10658 break
10660 done
10661 if test -z "$haveit"; then
10662 ltrpathdirs="$ltrpathdirs $dir"
10666 -l*)
10667 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10669 *.la)
10670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10673 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10676 esac
10677 done
10679 else
10680 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10685 done
10686 done
10687 if test "X$rpathdirs" != "X"; then
10688 if test -n "$hardcode_libdir_separator"; then
10689 alldirs=
10690 for found_dir in $rpathdirs; do
10691 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10692 done
10693 acl_save_libdir="$libdir"
10694 libdir="$alldirs"
10695 eval flag=\"$hardcode_libdir_flag_spec\"
10696 libdir="$acl_save_libdir"
10697 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10698 else
10699 for found_dir in $rpathdirs; do
10700 acl_save_libdir="$libdir"
10701 libdir="$found_dir"
10702 eval flag=\"$hardcode_libdir_flag_spec\"
10703 libdir="$acl_save_libdir"
10704 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10705 done
10708 if test "X$ltrpathdirs" != "X"; then
10709 for found_dir in $ltrpathdirs; do
10710 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10711 done
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10721 $as_echo_n "checking for iconv... " >&6; }
10722 if test "${am_cv_func_iconv+set}" = set; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10726 am_cv_func_iconv="no, consider installing GNU libiconv"
10727 am_cv_lib_iconv=no
10728 am_save_CPPFLAGS="$CPPFLAGS"
10729 CPPFLAGS="$CPPFLAGS $INCICONV"
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 #include <stdlib.h>
10733 #include <iconv.h>
10735 main ()
10737 iconv_t cd = iconv_open("","");
10738 iconv(cd,NULL,NULL,NULL,NULL);
10739 iconv_close(cd);
10741 return 0;
10743 _ACEOF
10744 if ac_fn_cxx_try_link "$LINENO"; then :
10745 am_cv_func_iconv=yes
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 CPPFLAGS="$am_save_CPPFLAGS"
10751 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10752 for _libs in .libs _libs; do
10753 am_save_CPPFLAGS="$CPPFLAGS"
10754 am_save_LIBS="$LIBS"
10755 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10756 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 #include <stdlib.h>
10760 #include <iconv.h>
10762 main ()
10764 iconv_t cd = iconv_open("","");
10765 iconv(cd,NULL,NULL,NULL,NULL);
10766 iconv_close(cd);
10768 return 0;
10770 _ACEOF
10771 if ac_fn_cxx_try_link "$LINENO"; then :
10772 INCICONV="-I../libiconv/include"
10773 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10774 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10775 am_cv_lib_iconv=yes
10776 am_cv_func_iconv=yes
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780 CPPFLAGS="$am_save_CPPFLAGS"
10781 LIBS="$am_save_LIBS"
10782 if test "$am_cv_func_iconv" = "yes"; then
10783 break
10785 done
10788 if test "$am_cv_func_iconv" != yes; then
10789 am_save_CPPFLAGS="$CPPFLAGS"
10790 am_save_LIBS="$LIBS"
10791 CPPFLAGS="$LIBS $INCICONV"
10792 LIBS="$LIBS $LIBICONV"
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include <stdlib.h>
10796 #include <iconv.h>
10798 main ()
10800 iconv_t cd = iconv_open("","");
10801 iconv(cd,NULL,NULL,NULL,NULL);
10802 iconv_close(cd);
10804 return 0;
10806 _ACEOF
10807 if ac_fn_cxx_try_link "$LINENO"; then :
10808 am_cv_lib_iconv=yes
10809 am_cv_func_iconv=yes
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 CPPFLAGS="$am_save_CPPFLAGS"
10814 LIBS="$am_save_LIBS"
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10819 $as_echo "$am_cv_func_iconv" >&6; }
10820 if test "$am_cv_func_iconv" = yes; then
10822 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10825 if test "$am_cv_lib_iconv" = yes; then
10827 for element in $INCICONV; do
10828 haveit=
10829 for x in $CPPFLAGS; do
10831 acl_save_prefix="$prefix"
10832 prefix="$acl_final_prefix"
10833 acl_save_exec_prefix="$exec_prefix"
10834 exec_prefix="$acl_final_exec_prefix"
10835 eval x=\"$x\"
10836 exec_prefix="$acl_save_exec_prefix"
10837 prefix="$acl_save_prefix"
10839 if test "X$x" = "X$element"; then
10840 haveit=yes
10841 break
10843 done
10844 if test -z "$haveit"; then
10845 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10847 done
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10850 $as_echo_n "checking how to link with libiconv... " >&6; }
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10852 $as_echo "$LIBICONV" >&6; }
10853 else
10854 LIBICONV=
10855 LTLIBICONV=
10860 if test "$am_cv_func_iconv" = yes; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10862 $as_echo_n "checking for iconv declaration... " >&6; }
10863 if test "${am_cv_proto_iconv+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10870 #include <stdlib.h>
10871 #include <iconv.h>
10872 extern
10873 #ifdef __cplusplus
10875 #endif
10876 #if defined(__STDC__) || defined(__cplusplus)
10877 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10878 #else
10879 size_t iconv();
10880 #endif
10883 main ()
10887 return 0;
10889 _ACEOF
10890 if ac_fn_cxx_try_compile "$LINENO"; then :
10891 am_cv_proto_iconv_arg1=""
10892 else
10893 am_cv_proto_iconv_arg1="const"
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896 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);"
10899 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10901 }$am_cv_proto_iconv" >&5
10902 $as_echo "${ac_t:-
10903 }$am_cv_proto_iconv" >&6; }
10905 cat >>confdefs.h <<_ACEOF
10906 #define ICONV_CONST $am_cv_proto_iconv_arg1
10907 _ACEOF
10912 # Until we have in-tree GNU iconv:
10913 LIBICONV_DEP=
10914 if test -f "$LTLIBICONV"; then
10915 LIBICONV_DEP=$LTLIBICONV
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10921 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10922 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10923 $as_echo_n "(cached) " >&6
10924 else
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h. */
10927 #include <locale.h>
10929 main ()
10931 return LC_MESSAGES
10933 return 0;
10935 _ACEOF
10936 if ac_fn_cxx_try_link "$LINENO"; then :
10937 am_cv_val_LC_MESSAGES=yes
10938 else
10939 am_cv_val_LC_MESSAGES=no
10941 rm -f core conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10945 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10946 if test $am_cv_val_LC_MESSAGES = yes; then
10948 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10955 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10956 if test "${am_cv_langinfo_codeset+set}" = set; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961 #include <langinfo.h>
10963 main ()
10965 char* cs = nl_langinfo(CODESET);
10967 return 0;
10969 _ACEOF
10970 if ac_fn_cxx_try_link "$LINENO"; then :
10971 am_cv_langinfo_codeset=yes
10972 else
10973 am_cv_langinfo_codeset=no
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10980 $as_echo "$am_cv_langinfo_codeset" >&6; }
10981 if test $am_cv_langinfo_codeset = yes; then
10983 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10988 # We will need to find libiberty.h and ansidecl.h
10989 saved_CFLAGS="$CFLAGS"
10990 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10991 saved_CXXFLAGS="$CXXFLAGS"
10992 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10994 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10995 # normal autoconf function for these. But force definition of
10996 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10997 # basename handling in libiberty.h.
10998 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10999 #undef HAVE_DECL_BASENAME
11000 #define HAVE_DECL_BASENAME 1
11001 #include \"ansidecl.h\"
11002 #include \"system.h\"
11004 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
11005 ac_have_decl=1
11006 else
11007 ac_have_decl=0
11010 cat >>confdefs.h <<_ACEOF
11011 #define HAVE_DECL_BASENAME $ac_have_decl
11012 _ACEOF
11013 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
11014 #undef HAVE_DECL_BASENAME
11015 #define HAVE_DECL_BASENAME 1
11016 #include \"ansidecl.h\"
11017 #include \"system.h\"
11019 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
11020 ac_have_decl=1
11021 else
11022 ac_have_decl=0
11025 cat >>confdefs.h <<_ACEOF
11026 #define HAVE_DECL_STRSTR $ac_have_decl
11027 _ACEOF
11030 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11031 madvise stpcpy strnlen strsignal strverscmp \
11032 strtol strtoul strtoll strtoull setenv unsetenv \
11033 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11034 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
11036 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11038 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11039 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044 #undef $ac_tr_decl
11045 #define $ac_tr_decl 1
11047 #include "ansidecl.h"
11048 #include "system.h"
11051 main ()
11053 #ifndef $ac_func
11054 char *(*pfn) = (char *(*)) $ac_func ;
11055 #endif
11057 return 0;
11059 _ACEOF
11060 if ac_fn_cxx_try_compile "$LINENO"; then :
11061 eval "gcc_cv_have_decl_$ac_func=yes"
11062 else
11063 eval "gcc_cv_have_decl_$ac_func=no"
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11071 #define $ac_tr_decl 1
11072 _ACEOF
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11077 #define $ac_tr_decl 0
11078 _ACEOF
11082 done
11085 for ac_func in getrlimit setrlimit getrusage
11087 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11089 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11090 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 #undef $ac_tr_decl
11096 #define $ac_tr_decl 1
11098 #include "ansidecl.h"
11099 #include "system.h"
11100 #ifdef HAVE_SYS_RESOURCE_H
11101 #include <sys/resource.h>
11102 #endif
11106 main ()
11108 #ifndef $ac_func
11109 char *(*pfn) = (char *(*)) $ac_func ;
11110 #endif
11112 return 0;
11114 _ACEOF
11115 if ac_fn_cxx_try_compile "$LINENO"; then :
11116 eval "gcc_cv_have_decl_$ac_func=yes"
11117 else
11118 eval "gcc_cv_have_decl_$ac_func=no"
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11125 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11126 #define $ac_tr_decl 1
11127 _ACEOF
11129 else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11132 #define $ac_tr_decl 0
11133 _ACEOF
11137 done
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11143 #include "ansidecl.h"
11144 #include "system.h"
11145 #ifdef HAVE_SYS_RESOURCE_H
11146 #include <sys/resource.h>
11147 #endif
11150 main ()
11152 rlim_t l = 0;
11154 return 0;
11156 _ACEOF
11157 if ac_fn_cxx_try_compile "$LINENO"; then :
11159 else
11161 $as_echo "#define rlim_t long" >>confdefs.h
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11167 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11168 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11169 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11170 for ac_func in ldgetname
11172 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11174 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11175 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11176 $as_echo_n "(cached) " >&6
11177 else
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 #undef $ac_tr_decl
11181 #define $ac_tr_decl 1
11183 #include "ansidecl.h"
11184 #include "system.h"
11185 #ifdef HAVE_LDFCN_H
11186 #undef FREAD
11187 #undef FWRITE
11188 #include <ldfcn.h>
11189 #endif
11193 main ()
11195 #ifndef $ac_func
11196 char *(*pfn) = (char *(*)) $ac_func ;
11197 #endif
11199 return 0;
11201 _ACEOF
11202 if ac_fn_cxx_try_compile "$LINENO"; then :
11203 eval "gcc_cv_have_decl_$ac_func=yes"
11204 else
11205 eval "gcc_cv_have_decl_$ac_func=no"
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11213 #define $ac_tr_decl 1
11214 _ACEOF
11216 else
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11219 #define $ac_tr_decl 0
11220 _ACEOF
11224 done
11227 for ac_func in times
11229 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11231 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11232 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 #undef $ac_tr_decl
11238 #define $ac_tr_decl 1
11240 #include "ansidecl.h"
11241 #include "system.h"
11242 #ifdef HAVE_SYS_TIMES_H
11243 #include <sys/times.h>
11244 #endif
11248 main ()
11250 #ifndef $ac_func
11251 char *(*pfn) = (char *(*)) $ac_func ;
11252 #endif
11254 return 0;
11256 _ACEOF
11257 if ac_fn_cxx_try_compile "$LINENO"; then :
11258 eval "gcc_cv_have_decl_$ac_func=yes"
11259 else
11260 eval "gcc_cv_have_decl_$ac_func=no"
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11267 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11268 #define $ac_tr_decl 1
11269 _ACEOF
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11274 #define $ac_tr_decl 0
11275 _ACEOF
11279 done
11282 for ac_func in sigaltstack
11284 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11286 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11287 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11292 #undef $ac_tr_decl
11293 #define $ac_tr_decl 1
11295 #include "ansidecl.h"
11296 #include "system.h"
11297 #include <signal.h>
11301 main ()
11303 #ifndef $ac_func
11304 char *(*pfn) = (char *(*)) $ac_func ;
11305 #endif
11307 return 0;
11309 _ACEOF
11310 if ac_fn_cxx_try_compile "$LINENO"; then :
11311 eval "gcc_cv_have_decl_$ac_func=yes"
11312 else
11313 eval "gcc_cv_have_decl_$ac_func=no"
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11320 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11321 #define $ac_tr_decl 1
11322 _ACEOF
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11327 #define $ac_tr_decl 0
11328 _ACEOF
11332 done
11335 # More time-related stuff.
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11337 $as_echo_n "checking for struct tms... " >&6; }
11338 if test "${ac_cv_struct_tms+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11345 #include "ansidecl.h"
11346 #include "system.h"
11347 #ifdef HAVE_SYS_TIMES_H
11348 #include <sys/times.h>
11349 #endif
11352 main ()
11354 struct tms tms;
11356 return 0;
11358 _ACEOF
11359 if ac_fn_cxx_try_compile "$LINENO"; then :
11360 ac_cv_struct_tms=yes
11361 else
11362 ac_cv_struct_tms=no
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11367 $as_echo "$ac_cv_struct_tms" >&6; }
11368 if test $ac_cv_struct_tms = yes; then
11370 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11374 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11375 # revisit after autoconf 2.50.
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11377 $as_echo_n "checking for clock_t... " >&6; }
11378 if test "${gcc_cv_type_clock_t+set}" = set; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 #include "ansidecl.h"
11386 #include "system.h"
11389 main ()
11391 clock_t x;
11393 return 0;
11395 _ACEOF
11396 if ac_fn_cxx_try_compile "$LINENO"; then :
11397 gcc_cv_type_clock_t=yes
11398 else
11399 gcc_cv_type_clock_t=no
11401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11404 $as_echo "$gcc_cv_type_clock_t" >&6; }
11405 if test $gcc_cv_type_clock_t = yes; then
11407 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11411 # Check if F_SETLKW is supported by fcntl.
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11413 $as_echo_n "checking for F_SETLKW... " >&6; }
11414 if test "${ac_cv_f_setlkw+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11421 #include <fcntl.h>
11423 main ()
11426 struct flock fl;
11427 fl.l_whence = 0;
11428 fl.l_start = 0;
11429 fl.l_len = 0;
11430 fl.l_pid = 0;
11431 return fcntl (1, F_SETLKW, &fl);
11433 return 0;
11435 _ACEOF
11436 if ac_fn_cxx_try_compile "$LINENO"; then :
11437 ac_cv_f_setlkw=yes
11438 else
11439 ac_cv_f_setlkw=no
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11444 $as_echo "$ac_cv_f_setlkw" >&6; }
11445 if test $ac_cv_f_setlkw = yes; then
11447 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11451 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11452 CFLAGS="$saved_CFLAGS"
11453 CXXFLAGS="$saved_CXXFLAGS"
11455 # mkdir takes a single argument on some systems.
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11457 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11458 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11464 #include <sys/types.h>
11465 #ifdef HAVE_SYS_STAT_H
11466 # include <sys/stat.h>
11467 #endif
11468 #ifdef HAVE_UNISTD_H
11469 # include <unistd.h>
11470 #endif
11471 #ifdef HAVE_DIRECT_H
11472 # include <direct.h>
11473 #endif
11475 main ()
11477 mkdir ("foo", 0);
11479 return 0;
11481 _ACEOF
11482 if ac_fn_cxx_try_compile "$LINENO"; then :
11483 gcc_cv_mkdir_takes_one_arg=no
11484 else
11485 gcc_cv_mkdir_takes_one_arg=yes
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11490 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11491 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11493 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11498 # File extensions
11499 manext='.1'
11500 objext='.o'
11504 # With Setjmp/Longjmp based exception handling.
11505 # Check whether --enable-sjlj-exceptions was given.
11506 if test "${enable_sjlj_exceptions+set}" = set; then :
11507 enableval=$enable_sjlj_exceptions; case $target in
11508 *-*-hpux10*)
11509 if test $enableval != yes; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11511 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11512 enableval=yes
11515 esac
11516 force_sjlj_exceptions=yes
11517 else
11518 case $target in
11519 *-*-hpux10*)
11520 force_sjlj_exceptions=yes
11521 enableval=yes
11523 lm32*-*-*)
11524 force_sjlj_exceptions=yes
11525 enableval=yes
11528 force_sjlj_exceptions=no
11530 esac
11533 if test $force_sjlj_exceptions = yes; then
11534 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11536 cat >>confdefs.h <<_ACEOF
11537 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11538 _ACEOF
11542 # --------------------------------------------------------
11543 # Build, host, and target specific configuration fragments
11544 # --------------------------------------------------------
11546 # Collect build-machine-specific information.
11547 . ${srcdir}/config.build || exit 1
11549 # Collect host-machine-specific information.
11550 . ${srcdir}/config.host || exit 1
11552 target_gtfiles=
11554 # Collect target-machine-specific information.
11555 . ${srcdir}/config.gcc || exit 1
11557 extra_objs="${host_extra_objs} ${extra_objs}"
11558 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11560 # Default the target-machine variables that were not explicitly set.
11561 if test x"$tm_file" = x
11562 then tm_file=$cpu_type/$cpu_type.h; fi
11564 if test x"$extra_headers" = x
11565 then extra_headers=; fi
11567 if test x$md_file = x
11568 then md_file=$cpu_type/$cpu_type.md; fi
11570 if test x$out_file = x
11571 then out_file=$cpu_type/$cpu_type.c; fi
11573 if test x"$tmake_file" = x
11574 then tmake_file=$cpu_type/t-$cpu_type
11577 # Support --enable-initfini-array.
11578 if test x$enable_initfini_array != xno; then
11579 tm_file="${tm_file} initfini-array.h"
11582 if test x"$dwarf2" = xyes
11583 then tm_file="$tm_file tm-dwarf2.h"
11586 # Say what files are being used for the output code and MD file.
11587 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11588 echo "Using \`$srcdir/config/$md_file' as machine description file."
11590 # If any of the xm_file variables contain nonexistent files, warn
11591 # about them and drop them.
11594 for x in $build_xm_file; do
11595 if test -f $srcdir/config/$x
11596 then bx="$bx $x"
11597 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11598 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11600 done
11601 build_xm_file="$bx"
11604 for x in $host_xm_file; do
11605 if test -f $srcdir/config/$x
11606 then hx="$hx $x"
11607 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11608 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11610 done
11611 host_xm_file="$hx"
11614 for x in $xm_file; do
11615 if test -f $srcdir/config/$x
11616 then tx="$tx $x"
11617 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11618 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11620 done
11621 xm_file="$tx"
11623 count=a
11624 for f in $tm_file; do
11625 count=${count}x
11626 done
11627 if test $count = ax; then
11628 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11629 else
11630 echo "Using the following target machine macro files:"
11631 for f in $tm_file; do
11632 echo " $srcdir/config/$f"
11633 done
11636 if test x$use_long_long_for_widest_fast_int = xyes; then
11638 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11642 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11644 cat >>confdefs.h <<_ACEOF
11645 #define HAVE_GNU_LD $gnu_ld_bool
11646 _ACEOF
11649 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11651 cat >>confdefs.h <<_ACEOF
11652 #define HAVE_GNU_AS $gnu_as_bool
11653 _ACEOF
11656 count=a
11657 for f in $host_xm_file; do
11658 count=${count}x
11659 done
11660 if test $count = a; then
11662 elif test $count = ax; then
11663 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11664 else
11665 echo "Using the following host machine macro files:"
11666 for f in $host_xm_file; do
11667 echo " $srcdir/config/$f"
11668 done
11670 echo "Using ${out_host_hook_obj} for host machine hooks."
11672 if test "$host_xm_file" != "$build_xm_file"; then
11673 count=a
11674 for f in $build_xm_file; do
11675 count=${count}x
11676 done
11677 if test $count = a; then
11679 elif test $count = ax; then
11680 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11681 else
11682 echo "Using the following build machine macro files:"
11683 for f in $build_xm_file; do
11684 echo " $srcdir/config/$f"
11685 done
11689 if test -n "$configured_native_system_header_dir"; then
11690 native_system_header_dir=$configured_native_system_header_dir
11692 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11695 case ${host} in
11696 powerpc*-*-darwin*)
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11698 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11699 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11705 #include <sys/cdefs.h>
11706 #include <sys/signal.h>
11707 #include <ucontext.h>
11708 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11710 _ACEOF
11711 if ac_fn_cxx_try_compile "$LINENO"; then :
11712 gcc_cv_mcontext_underscores=no
11713 else
11714 gcc_cv_mcontext_underscores=yes
11716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11719 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11720 if test $gcc_cv_mcontext_underscores = yes; then
11722 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11726 esac
11728 # ---------
11729 # Threading
11730 # ---------
11732 # Check if a valid thread package
11733 case ${enable_threads} in
11734 "" | no)
11735 # No threads
11736 target_thread_file='single'
11738 yes)
11739 # default
11740 target_thread_file='single'
11742 aix | dce | lynx | mipssde | posix | rtems | \
11743 single | tpf | vxworks | win32)
11744 target_thread_file=${enable_threads}
11747 echo "${enable_threads} is an unknown thread package" 1>&2
11748 exit 1
11750 esac
11752 if test x${thread_file} = x; then
11753 # No thread file set by target-specific clauses in config.gcc,
11754 # so use file chosen by default logic above
11755 thread_file=${target_thread_file}
11758 # --------
11759 # UNSORTED
11760 # --------
11762 use_cxa_atexit=no
11763 if test x$enable___cxa_atexit = xyes || \
11764 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11765 if test x$host = x$target; then
11766 case $host in
11767 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11768 # keyed to flag_use_cxa_atexit
11769 *-*-mingw32*)
11770 use_cxa_atexit=yes
11772 powerpc-ibm-aix*)
11773 use_cxa_atexit=yes
11776 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11777 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11778 use_cxa_atexit=yes
11779 else
11780 echo "__cxa_atexit can't be enabled on this target"
11784 esac
11785 else
11786 # We can't check for __cxa_atexit when building a cross, so assume
11787 # it is available
11788 use_cxa_atexit=yes
11790 if test x$use_cxa_atexit = xyes; then
11792 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11797 # Look for a file containing extra machine modes.
11798 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11799 extra_modes_file='$(srcdir)'/config/${extra_modes}
11802 cat >>confdefs.h <<_ACEOF
11803 #define EXTRA_MODES_FILE "config/$extra_modes"
11804 _ACEOF
11808 # Convert extra_options into a form suitable for Makefile use.
11809 extra_opt_files=
11810 all_opt_files=
11811 for f in $extra_options; do
11812 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11813 all_opt_files="$all_opt_files $srcdir/config/$f"
11814 done
11817 # auto-host.h is the file containing items generated by autoconf and is
11818 # the first file included by config.h.
11819 # If host=build, it is correct to have bconfig include auto-host.h
11820 # as well. If host!=build, we are in error and need to do more
11821 # work to find out the build config parameters.
11822 if test x$host = x$build
11823 then
11824 build_auto=auto-host.h
11825 else
11826 # We create a subdir, then run autoconf in the subdir.
11827 # To prevent recursion we set host and build for the new
11828 # invocation of configure to the build for this invocation
11829 # of configure.
11830 tempdir=build.$$
11831 rm -rf $tempdir
11832 mkdir $tempdir
11833 cd $tempdir
11834 case ${srcdir} in
11835 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11836 *) realsrcdir=../${srcdir};;
11837 esac
11838 # Clearing GMPINC is necessary to prevent host headers being
11839 # used by the build compiler. Defining GENERATOR_FILE stops
11840 # system.h from including gmp.h.
11841 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11842 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11843 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11844 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11845 ${realsrcdir}/configure \
11846 --enable-languages=${enable_languages-all} \
11847 --target=$target_alias --host=$build_alias --build=$build_alias
11849 # We just finished tests for the build machine, so rename
11850 # the file auto-build.h in the gcc directory.
11851 mv auto-host.h ../auto-build.h
11852 cd ..
11853 rm -rf $tempdir
11854 build_auto=auto-build.h
11858 tm_file="${tm_file} defaults.h"
11859 tm_p_file="${tm_p_file} tm-preds.h"
11860 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11861 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11862 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11863 # put this back in temporarily.
11864 xm_file="auto-host.h ansidecl.h ${xm_file}"
11866 # --------
11867 # UNSORTED
11868 # --------
11870 # Compile in configure arguments.
11871 if test -f configargs.h ; then
11872 # Being re-configured.
11873 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11874 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11875 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11876 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11878 else
11879 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11882 # Double all backslashes and backslash all quotes to turn
11883 # gcc_config_arguments into a C string.
11884 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11885 $gcc_config_arguments
11887 gcc_config_arguments_str=`cat conftest.out`
11888 rm -f conftest.out
11890 cat > configargs.h <<EOF
11891 /* Generated automatically. */
11892 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11893 static const char thread_model[] = "$thread_file";
11895 static const struct {
11896 const char *name, *value;
11897 } configure_default_options[] = $configure_default_options;
11900 gcc_BASEVER=`cat $srcdir/BASE-VER`
11901 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11902 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11903 if test -f $srcdir/REVISION ; then
11904 gcc_REVISION=`cat $srcdir/REVISION`
11905 else
11906 gcc_REVISION=""
11908 cat > plugin-version.h <<EOF
11909 #include "configargs.h"
11911 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11912 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11913 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11914 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11916 static char basever[] = "$gcc_BASEVER";
11917 static char datestamp[] = "$gcc_DATESTAMP";
11918 static char devphase[] = "$gcc_DEVPHASE";
11919 static char revision[] = "$gcc_REVISION";
11921 /* FIXME plugins: We should make the version information more precise.
11922 One way to do is to add a checksum. */
11924 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11925 devphase, revision,
11926 configuration_arguments};
11929 # Determine what GCC version number to use in filesystem paths.
11931 get_gcc_base_ver="cat"
11933 # Check whether --with-gcc-major-version-only was given.
11934 if test "${with_gcc_major_version_only+set}" = set; then :
11935 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11936 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11944 # Internationalization
11945 # If we haven't got the data from the intl directory,
11946 # assume NLS is disabled.
11947 USE_NLS=no
11948 LIBINTL=
11949 LIBINTL_DEP=
11950 INCINTL=
11951 XGETTEXT=
11952 GMSGFMT=
11953 POSUB=
11955 if test -f ../intl/config.intl; then
11956 . ../intl/config.intl
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11959 $as_echo_n "checking whether NLS is requested... " >&6; }
11960 if test x"$USE_NLS" != xyes; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965 $as_echo "yes" >&6; }
11967 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11971 $as_echo_n "checking for catalogs to be installed... " >&6; }
11972 # Look for .po and .gmo files in the source directory.
11973 CATALOGS=
11974 XLINGUAS=
11975 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11976 # If there aren't any .gmo files the shell will give us the
11977 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11978 # weeded out.
11979 case "$cat" in *\**)
11980 continue;;
11981 esac
11982 # The quadruple backslash is collapsed to a double backslash
11983 # by the backticks, then collapsed again by the double quotes,
11984 # leaving us with one backslash in the sed expression (right
11985 # before the dot that mustn't act as a wildcard).
11986 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11987 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11988 # The user is allowed to set LINGUAS to a list of languages to
11989 # install catalogs for. If it's empty that means "all of them."
11990 if test "x$LINGUAS" = x; then
11991 CATALOGS="$CATALOGS $cat"
11992 XLINGUAS="$XLINGUAS $lang"
11993 else
11994 case "$LINGUAS" in *$lang*)
11995 CATALOGS="$CATALOGS $cat"
11996 XLINGUAS="$XLINGUAS $lang"
11998 esac
12000 done
12001 LINGUAS="$XLINGUAS"
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12003 $as_echo "$LINGUAS" >&6; }
12006 DATADIRNAME=share
12008 INSTOBJEXT=.mo
12010 GENCAT=gencat
12012 CATOBJEXT=.gmo
12016 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12017 # -liconv on the link line twice.
12018 case "$LIBINTL" in *$LIBICONV*)
12019 LIBICONV= ;;
12020 esac
12022 # Check whether --enable-secureplt was given.
12023 if test "${enable_secureplt+set}" = set; then :
12024 enableval=$enable_secureplt;
12028 # Check whether --enable-mingw-wildcard was given.
12029 if test "${enable_mingw_wildcard+set}" = set; then :
12030 enableval=$enable_mingw_wildcard;
12031 else
12032 enable_mingw_wildcard=platform
12035 if test x"$enable_mingw_wildcard" != xplatform ; then :
12037 cat >>confdefs.h <<_ACEOF
12038 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12039 _ACEOF
12043 # Check whether --enable-large-address-aware was given.
12044 if test "${enable_large_address_aware+set}" = set; then :
12045 enableval=$enable_large_address_aware;
12048 if test x"$enable_large_address_aware" = xyes; then :
12050 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12054 # Check whether --enable-leading-mingw64-underscores was given.
12055 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12056 enableval=$enable_leading_mingw64_underscores;
12059 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12061 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12065 # Check whether --enable-cld was given.
12066 if test "${enable_cld+set}" = set; then :
12067 enableval=$enable_cld;
12068 else
12069 enable_cld=no
12073 # Check whether --enable-frame-pointer was given.
12074 if test "${enable_frame_pointer+set}" = set; then :
12075 enableval=$enable_frame_pointer;
12076 else
12078 case $target_os in
12079 linux* | darwin[8912]*)
12080 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12081 # DWARF2.
12082 enable_frame_pointer=no
12085 enable_frame_pointer=yes
12087 esac
12092 # Windows32 Registry support for specifying GCC installation paths.
12093 # Check whether --enable-win32-registry was given.
12094 if test "${enable_win32_registry+set}" = set; then :
12095 enableval=$enable_win32_registry;
12099 case $host_os in
12100 win32 | pe | cygwin* | mingw32*)
12101 if test "x$enable_win32_registry" != xno; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12103 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12104 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 ac_func_search_save_LIBS=$LIBS
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12111 /* Override any GCC internal prototype to avoid an error.
12112 Use char because int might match the return type of a GCC
12113 builtin and then its argument prototype would still apply. */
12114 #ifdef __cplusplus
12115 extern "C"
12116 #endif
12117 char RegOpenKeyExA ();
12119 main ()
12121 return RegOpenKeyExA ();
12123 return 0;
12125 _ACEOF
12126 for ac_lib in '' advapi32; do
12127 if test -z "$ac_lib"; then
12128 ac_res="none required"
12129 else
12130 ac_res=-l$ac_lib
12131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12133 if ac_fn_cxx_try_link "$LINENO"; then :
12134 ac_cv_search_RegOpenKeyExA=$ac_res
12136 rm -f core conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext
12138 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12139 break
12141 done
12142 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12144 else
12145 ac_cv_search_RegOpenKeyExA=no
12147 rm conftest.$ac_ext
12148 LIBS=$ac_func_search_save_LIBS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12151 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12152 ac_res=$ac_cv_search_RegOpenKeyExA
12153 if test "$ac_res" != no; then :
12154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12156 else
12157 enable_win32_registry=no
12162 if test "x$enable_win32_registry" != xno; then
12164 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12167 if test "x$enable_win32_registry" != xyes \
12168 && test "x$enable_win32_registry" != x; then
12170 cat >>confdefs.h <<_ACEOF
12171 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12172 _ACEOF
12177 esac
12179 # Get an absolute path to the GCC top-level source directory
12180 holddir=`${PWDCMD-pwd}`
12181 cd $srcdir
12182 topdir=`${PWDCMD-pwd}`
12183 cd $holddir
12185 # Conditionalize the makefile for this host machine.
12186 xmake_file=
12187 for f in ${host_xmake_file}
12189 if test -f ${srcdir}/config/$f
12190 then
12191 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12193 done
12195 # Conditionalize the makefile for this target machine.
12196 tmake_file_=
12197 for f in ${tmake_file}
12199 if test -f ${srcdir}/config/$f
12200 then
12201 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12203 done
12204 tmake_file="${tmake_file_}"
12206 out_object_file=`basename $out_file .c`.o
12207 common_out_object_file=`basename $common_out_file .c`.o
12209 tm_file_list="options.h"
12210 tm_include_list="options.h insn-constants.h"
12211 for f in $tm_file; do
12212 case $f in
12213 ./* )
12214 f=`echo $f | sed 's/^..//'`
12215 tm_file_list="${tm_file_list} $f"
12216 tm_include_list="${tm_include_list} $f"
12218 defaults.h )
12219 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12220 tm_include_list="${tm_include_list} $f"
12223 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12224 tm_include_list="${tm_include_list} config/$f"
12226 esac
12227 done
12229 tm_p_file_list=
12230 tm_p_include_list=
12231 for f in $tm_p_file; do
12232 case $f in
12233 tm-preds.h )
12234 tm_p_file_list="${tm_p_file_list} $f"
12235 tm_p_include_list="${tm_p_include_list} $f"
12238 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12239 tm_p_include_list="${tm_p_include_list} config/$f"
12240 esac
12241 done
12243 xm_file_list=
12244 xm_include_list=
12245 for f in $xm_file; do
12246 case $f in
12247 ansidecl.h )
12248 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12249 xm_include_list="${xm_include_list} $f"
12251 auto-host.h )
12252 xm_file_list="${xm_file_list} $f"
12253 xm_include_list="${xm_include_list} $f"
12256 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12257 xm_include_list="${xm_include_list} config/$f"
12259 esac
12260 done
12262 host_xm_file_list=
12263 host_xm_include_list=
12264 for f in $host_xm_file; do
12265 case $f in
12266 ansidecl.h )
12267 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12268 host_xm_include_list="${host_xm_include_list} $f"
12270 auto-host.h )
12271 host_xm_file_list="${host_xm_file_list} $f"
12272 host_xm_include_list="${host_xm_include_list} $f"
12275 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12276 host_xm_include_list="${host_xm_include_list} config/$f"
12278 esac
12279 done
12281 build_xm_file_list=
12282 for f in $build_xm_file; do
12283 case $f in
12284 ansidecl.h )
12285 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12286 build_xm_include_list="${build_xm_include_list} $f"
12288 auto-build.h | auto-host.h )
12289 build_xm_file_list="${build_xm_file_list} $f"
12290 build_xm_include_list="${build_xm_include_list} $f"
12293 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12294 build_xm_include_list="${build_xm_include_list} config/$f"
12296 esac
12297 done
12299 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12300 # cross-compiler which does not use the native headers and libraries.
12301 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12302 CROSS=
12303 ALL=all.internal
12304 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12305 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12307 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12308 test x$build != x$host || test "x$with_build_sysroot" != x; then
12309 if test "x$with_build_sysroot" != x; then
12310 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12311 else
12312 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12315 if test x$host != x$target
12316 then
12317 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12318 ALL=all.cross
12319 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12320 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12321 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12324 if test "x$with_build_sysroot" != "x"; then
12325 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12326 elif test "x$with_sysroot" = x; then
12327 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12328 elif test "x$with_sysroot" = xyes; then
12329 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12330 else
12331 target_header_dir="${with_sysroot}${native_system_header_dir}"
12333 else
12334 target_header_dir=${native_system_header_dir}
12337 # If this is a cross-compiler that does not
12338 # have its own set of headers then define
12339 # inhibit_libc
12341 # If this is using newlib, without having the headers available now,
12342 # then define inhibit_libc in LIBGCC2_CFLAGS.
12343 # This prevents libgcc2 from containing any code which requires libc
12344 # support.
12345 : ${inhibit_libc=false}
12346 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12347 test x$with_newlib = xyes ; } &&
12348 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12349 inhibit_libc=true
12353 # When building gcc with a cross-compiler, we need to adjust things so
12354 # that the generator programs are still built with the native compiler.
12355 # Also, we cannot run fixincludes.
12357 # These are the normal (build=host) settings:
12358 CC_FOR_BUILD='$(CC)'
12359 CXX_FOR_BUILD='$(CXX)'
12360 BUILD_CFLAGS='$(ALL_CFLAGS)'
12361 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12362 BUILD_LDFLAGS='$(LDFLAGS)'
12363 STMP_FIXINC=stmp-fixinc
12365 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12366 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12368 # And these apply if build != host, or we are generating coverage data
12369 if test x$build != x$host || test "x$coverage_flags" != x
12370 then
12371 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12372 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12373 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12375 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12376 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12377 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12378 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12383 # Expand extra_headers to include complete path.
12384 # This substitutes for lots of t-* files.
12385 extra_headers_list=
12386 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12387 for file in ${extra_headers} ; do
12388 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12389 done
12391 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12392 if test x"$use_gcc_tgmath" = xyes
12393 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12396 # Define collect2 in Makefile.
12397 case $host_can_use_collect2 in
12398 no) collect2= ;;
12399 *) collect2='collect2$(exeext)' ;;
12400 esac
12403 # Add a definition of USE_COLLECT2 if system wants one.
12404 case $use_collect2 in
12405 no) use_collect2= ;;
12406 "") ;;
12408 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12409 xm_defines="${xm_defines} USE_COLLECT2"
12410 case $host_can_use_collect2 in
12412 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12414 esac
12416 esac
12419 cat >>confdefs.h <<_ACEOF
12420 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12421 _ACEOF
12424 # ---------------------------
12425 # Assembler & linker features
12426 # ---------------------------
12428 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12429 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12430 # However when ld-new is first executed from the build tree, libtool will
12431 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12432 # to the build tree. While doing this we need to use the previous-stage
12433 # linker, or we have an infinite loop. The presence of a shell script as
12434 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12435 # the gcc/collect-ld script. So we need to know how libtool works, or
12436 # exec-tool will fail.
12439 case `pwd` in
12440 *\ * | *\ *)
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12442 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12443 esac
12447 macro_version='2.2.7a'
12448 macro_revision='1.3134'
12462 ltmain="$ac_aux_dir/ltmain.sh"
12464 # Backslashify metacharacters that are still active within
12465 # double-quoted strings.
12466 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12468 # Same as above, but do not quote variable references.
12469 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12471 # Sed substitution to delay expansion of an escaped shell variable in a
12472 # double_quote_subst'ed string.
12473 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12475 # Sed substitution to delay expansion of an escaped single quote.
12476 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12478 # Sed substitution to avoid accidental globbing in evaled expressions
12479 no_glob_subst='s/\*/\\\*/g'
12481 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12482 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12483 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12486 $as_echo_n "checking how to print strings... " >&6; }
12487 # Test print first, because it will be a builtin if present.
12488 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12489 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12490 ECHO='print -r --'
12491 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12492 ECHO='printf %s\n'
12493 else
12494 # Use this function as a fallback that always works.
12495 func_fallback_echo ()
12497 eval 'cat <<_LTECHO_EOF
12499 _LTECHO_EOF'
12501 ECHO='func_fallback_echo'
12504 # func_echo_all arg...
12505 # Invoke $ECHO with all args, space-separated.
12506 func_echo_all ()
12508 $ECHO ""
12511 case "$ECHO" in
12512 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12513 $as_echo "printf" >&6; } ;;
12514 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12515 $as_echo "print -r" >&6; } ;;
12516 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12517 $as_echo "cat" >&6; } ;;
12518 esac
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12534 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12535 if test "${ac_cv_path_SED+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12539 for ac_i in 1 2 3 4 5 6 7; do
12540 ac_script="$ac_script$as_nl$ac_script"
12541 done
12542 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12543 { ac_script=; unset ac_script;}
12544 if test -z "$SED"; then
12545 ac_path_SED_found=false
12546 # Loop through the user's path and test for each of PROGNAME-LIST
12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548 for as_dir in $PATH
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_prog in sed gsed; do
12553 for ac_exec_ext in '' $ac_executable_extensions; do
12554 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12555 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12556 # Check for GNU ac_path_SED and select it if it is found.
12557 # Check for GNU $ac_path_SED
12558 case `"$ac_path_SED" --version 2>&1` in
12559 *GNU*)
12560 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12562 ac_count=0
12563 $as_echo_n 0123456789 >"conftest.in"
12564 while :
12566 cat "conftest.in" "conftest.in" >"conftest.tmp"
12567 mv "conftest.tmp" "conftest.in"
12568 cp "conftest.in" "conftest.nl"
12569 $as_echo '' >> "conftest.nl"
12570 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12572 as_fn_arith $ac_count + 1 && ac_count=$as_val
12573 if test $ac_count -gt ${ac_path_SED_max-0}; then
12574 # Best one so far, save it but keep looking for a better one
12575 ac_cv_path_SED="$ac_path_SED"
12576 ac_path_SED_max=$ac_count
12578 # 10*(2^10) chars as input seems more than enough
12579 test $ac_count -gt 10 && break
12580 done
12581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12582 esac
12584 $ac_path_SED_found && break 3
12585 done
12586 done
12587 done
12588 IFS=$as_save_IFS
12589 if test -z "$ac_cv_path_SED"; then
12590 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12592 else
12593 ac_cv_path_SED=$SED
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12598 $as_echo "$ac_cv_path_SED" >&6; }
12599 SED="$ac_cv_path_SED"
12600 rm -f conftest.sed
12602 test -z "$SED" && SED=sed
12603 Xsed="$SED -e 1s/^X//"
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12616 $as_echo_n "checking for fgrep... " >&6; }
12617 if test "${ac_cv_path_FGREP+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12621 then ac_cv_path_FGREP="$GREP -F"
12622 else
12623 if test -z "$FGREP"; then
12624 ac_path_FGREP_found=false
12625 # Loop through the user's path and test for each of PROGNAME-LIST
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
12631 for ac_prog in fgrep; do
12632 for ac_exec_ext in '' $ac_executable_extensions; do
12633 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12634 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12635 # Check for GNU ac_path_FGREP and select it if it is found.
12636 # Check for GNU $ac_path_FGREP
12637 case `"$ac_path_FGREP" --version 2>&1` in
12638 *GNU*)
12639 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12641 ac_count=0
12642 $as_echo_n 0123456789 >"conftest.in"
12643 while :
12645 cat "conftest.in" "conftest.in" >"conftest.tmp"
12646 mv "conftest.tmp" "conftest.in"
12647 cp "conftest.in" "conftest.nl"
12648 $as_echo 'FGREP' >> "conftest.nl"
12649 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12651 as_fn_arith $ac_count + 1 && ac_count=$as_val
12652 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12653 # Best one so far, save it but keep looking for a better one
12654 ac_cv_path_FGREP="$ac_path_FGREP"
12655 ac_path_FGREP_max=$ac_count
12657 # 10*(2^10) chars as input seems more than enough
12658 test $ac_count -gt 10 && break
12659 done
12660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12661 esac
12663 $ac_path_FGREP_found && break 3
12664 done
12665 done
12666 done
12667 IFS=$as_save_IFS
12668 if test -z "$ac_cv_path_FGREP"; then
12669 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12671 else
12672 ac_cv_path_FGREP=$FGREP
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12678 $as_echo "$ac_cv_path_FGREP" >&6; }
12679 FGREP="$ac_cv_path_FGREP"
12682 test -z "$GREP" && GREP=grep
12702 # Check whether --with-gnu-ld was given.
12703 if test "${with_gnu_ld+set}" = set; then :
12704 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12705 else
12706 with_gnu_ld=no
12709 ac_prog=ld
12710 if test "$GCC" = yes; then
12711 # Check if gcc -print-prog-name=ld gives a path.
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12713 $as_echo_n "checking for ld used by $CC... " >&6; }
12714 case $host in
12715 *-*-mingw*)
12716 # gcc leaves a trailing carriage return which upsets mingw
12717 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12719 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12720 esac
12721 case $ac_prog in
12722 # Accept absolute paths.
12723 [\\/]* | ?:[\\/]*)
12724 re_direlt='/[^/][^/]*/\.\./'
12725 # Canonicalize the pathname of ld
12726 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12727 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12728 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12729 done
12730 test -z "$LD" && LD="$ac_prog"
12733 # If it fails, then pretend we aren't using GCC.
12734 ac_prog=ld
12737 # If it is relative, then search for the first ld in PATH.
12738 with_gnu_ld=unknown
12740 esac
12741 elif test "$with_gnu_ld" = yes; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12743 $as_echo_n "checking for GNU ld... " >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12746 $as_echo_n "checking for non-GNU ld... " >&6; }
12748 if test "${lt_cv_path_LD+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test -z "$LD"; then
12752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12753 for ac_dir in $PATH; do
12754 IFS="$lt_save_ifs"
12755 test -z "$ac_dir" && ac_dir=.
12756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12757 lt_cv_path_LD="$ac_dir/$ac_prog"
12758 # Check to see if the program is GNU ld. I'd rather use --version,
12759 # but apparently some variants of GNU ld only accept -v.
12760 # Break only if it was the GNU/non-GNU ld that we prefer.
12761 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12762 *GNU* | *'with BFD'*)
12763 test "$with_gnu_ld" != no && break
12766 test "$with_gnu_ld" != yes && break
12768 esac
12770 done
12771 IFS="$lt_save_ifs"
12772 else
12773 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12777 LD="$lt_cv_path_LD"
12778 if test -n "$LD"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12780 $as_echo "$LD" >&6; }
12781 else
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12785 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12787 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12788 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12792 case `$LD -v 2>&1 </dev/null` in
12793 *GNU* | *'with BFD'*)
12794 lt_cv_prog_gnu_ld=yes
12797 lt_cv_prog_gnu_ld=no
12799 esac
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12802 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12803 with_gnu_ld=$lt_cv_prog_gnu_ld
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12814 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12815 if test "${lt_cv_path_NM+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 if test -n "$NM"; then
12819 # Let the user override the test.
12820 lt_cv_path_NM="$NM"
12821 else
12822 lt_nm_to_check="${ac_tool_prefix}nm"
12823 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12824 lt_nm_to_check="$lt_nm_to_check nm"
12826 for lt_tmp_nm in $lt_nm_to_check; do
12827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12828 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12829 IFS="$lt_save_ifs"
12830 test -z "$ac_dir" && ac_dir=.
12831 tmp_nm="$ac_dir/$lt_tmp_nm"
12832 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12833 # Check to see if the nm accepts a BSD-compat flag.
12834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12835 # nm: unknown option "B" ignored
12836 # Tru64's nm complains that /dev/null is an invalid object file
12837 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12838 */dev/null* | *'Invalid file or object type'*)
12839 lt_cv_path_NM="$tmp_nm -B"
12840 break
12843 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12844 */dev/null*)
12845 lt_cv_path_NM="$tmp_nm -p"
12846 break
12849 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12850 continue # so that we can try to find one that supports BSD flags
12852 esac
12854 esac
12856 done
12857 IFS="$lt_save_ifs"
12858 done
12859 : ${lt_cv_path_NM=no}
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12863 $as_echo "$lt_cv_path_NM" >&6; }
12864 if test "$lt_cv_path_NM" != "no"; then
12865 NM="$lt_cv_path_NM"
12866 else
12867 # Didn't find any BSD compatible name lister, look for dumpbin.
12868 if test -n "$DUMPBIN"; then :
12869 # Let the user override the test.
12870 else
12871 if test -n "$ac_tool_prefix"; then
12872 for ac_prog in dumpbin "link -dump"
12874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12877 $as_echo_n "checking for $ac_word... " >&6; }
12878 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 if test -n "$DUMPBIN"; then
12882 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12883 else
12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 for as_dir in $PATH
12887 IFS=$as_save_IFS
12888 test -z "$as_dir" && as_dir=.
12889 for ac_exec_ext in '' $ac_executable_extensions; do
12890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12891 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12893 break 2
12895 done
12896 done
12897 IFS=$as_save_IFS
12901 DUMPBIN=$ac_cv_prog_DUMPBIN
12902 if test -n "$DUMPBIN"; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12904 $as_echo "$DUMPBIN" >&6; }
12905 else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907 $as_echo "no" >&6; }
12911 test -n "$DUMPBIN" && break
12912 done
12914 if test -z "$DUMPBIN"; then
12915 ac_ct_DUMPBIN=$DUMPBIN
12916 for ac_prog in dumpbin "link -dump"
12918 # Extract the first word of "$ac_prog", so it can be a program name with args.
12919 set dummy $ac_prog; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 if test -n "$ac_ct_DUMPBIN"; then
12926 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12927 else
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 break 2
12939 done
12940 done
12941 IFS=$as_save_IFS
12945 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12946 if test -n "$ac_ct_DUMPBIN"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12948 $as_echo "$ac_ct_DUMPBIN" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12955 test -n "$ac_ct_DUMPBIN" && break
12956 done
12958 if test "x$ac_ct_DUMPBIN" = x; then
12959 DUMPBIN=":"
12960 else
12961 case $cross_compiling:$ac_tool_warned in
12962 yes:)
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12965 ac_tool_warned=yes ;;
12966 esac
12967 DUMPBIN=$ac_ct_DUMPBIN
12971 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12972 *COFF*)
12973 DUMPBIN="$DUMPBIN -symbols"
12976 DUMPBIN=:
12978 esac
12981 if test "$DUMPBIN" != ":"; then
12982 NM="$DUMPBIN"
12985 test -z "$NM" && NM=nm
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12993 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12994 if test "${lt_cv_nm_interface+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 lt_cv_nm_interface="BSD nm"
12998 echo "int some_variable = 0;" > conftest.$ac_ext
12999 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13000 (eval "$ac_compile" 2>conftest.err)
13001 cat conftest.err >&5
13002 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13003 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13004 cat conftest.err >&5
13005 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13006 cat conftest.out >&5
13007 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13008 lt_cv_nm_interface="MS dumpbin"
13010 rm -f conftest*
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13013 $as_echo "$lt_cv_nm_interface" >&6; }
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13016 $as_echo_n "checking whether ln -s works... " >&6; }
13017 LN_S=$as_ln_s
13018 if test "$LN_S" = "ln -s"; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13020 $as_echo "yes" >&6; }
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13023 $as_echo "no, using $LN_S" >&6; }
13026 # find the maximum length of command line arguments
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13028 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13029 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13033 teststring="ABCD"
13035 case $build_os in
13036 msdosdjgpp*)
13037 # On DJGPP, this test can blow up pretty badly due to problems in libc
13038 # (any single argument exceeding 2000 bytes causes a buffer overrun
13039 # during glob expansion). Even if it were fixed, the result of this
13040 # check would be larger than it should be.
13041 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13044 gnu*)
13045 # Under GNU Hurd, this test is not required because there is
13046 # no limit to the length of command line arguments.
13047 # Libtool will interpret -1 as no limit whatsoever
13048 lt_cv_sys_max_cmd_len=-1;
13051 cygwin* | mingw* | cegcc*)
13052 # On Win9x/ME, this test blows up -- it succeeds, but takes
13053 # about 5 minutes as the teststring grows exponentially.
13054 # Worse, since 9x/ME are not pre-emptively multitasking,
13055 # you end up with a "frozen" computer, even though with patience
13056 # the test eventually succeeds (with a max line length of 256k).
13057 # Instead, let's just punt: use the minimum linelength reported by
13058 # all of the supported platforms: 8192 (on NT/2K/XP).
13059 lt_cv_sys_max_cmd_len=8192;
13062 mint*)
13063 # On MiNT this can take a long time and run out of memory.
13064 lt_cv_sys_max_cmd_len=8192;
13067 amigaos*)
13068 # On AmigaOS with pdksh, this test takes hours, literally.
13069 # So we just punt and use a minimum line length of 8192.
13070 lt_cv_sys_max_cmd_len=8192;
13073 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13074 # This has been around since 386BSD, at least. Likely further.
13075 if test -x /sbin/sysctl; then
13076 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13077 elif test -x /usr/sbin/sysctl; then
13078 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13079 else
13080 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13082 # And add a safety zone
13083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13087 interix*)
13088 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13089 lt_cv_sys_max_cmd_len=196608
13092 osf*)
13093 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13094 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13095 # nice to cause kernel panics so lets avoid the loop below.
13096 # First set a reasonable default.
13097 lt_cv_sys_max_cmd_len=16384
13099 if test -x /sbin/sysconfig; then
13100 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13101 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13102 esac
13105 sco3.2v5*)
13106 lt_cv_sys_max_cmd_len=102400
13108 sysv5* | sco5v6* | sysv4.2uw2*)
13109 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13110 if test -n "$kargmax"; then
13111 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13112 else
13113 lt_cv_sys_max_cmd_len=32768
13117 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13118 if test -n "$lt_cv_sys_max_cmd_len"; then
13119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13121 else
13122 # Make teststring a little bigger before we do anything with it.
13123 # a 1K string should be a reasonable start.
13124 for i in 1 2 3 4 5 6 7 8 ; do
13125 teststring=$teststring$teststring
13126 done
13127 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13128 # If test is not a shell built-in, we'll probably end up computing a
13129 # maximum length that is only half of the actual maximum length, but
13130 # we can't tell.
13131 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13132 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13133 test $i != 17 # 1/2 MB should be enough
13135 i=`expr $i + 1`
13136 teststring=$teststring$teststring
13137 done
13138 # Only check the string length outside the loop.
13139 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13140 teststring=
13141 # Add a significant safety factor because C++ compilers can tack on
13142 # massive amounts of additional arguments before passing them to the
13143 # linker. It appears as though 1/2 is a usable value.
13144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13147 esac
13151 if test -n $lt_cv_sys_max_cmd_len ; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13153 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13156 $as_echo "none" >&6; }
13158 max_cmd_len=$lt_cv_sys_max_cmd_len
13165 : ${CP="cp -f"}
13166 : ${MV="mv -f"}
13167 : ${RM="rm -f"}
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13170 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13171 # Try some XSI features
13172 xsi_shell=no
13173 ( _lt_dummy="a/b/c"
13174 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13175 = c,a/b,, \
13176 && eval 'test $(( 1 + 1 )) -eq 2 \
13177 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13178 && xsi_shell=yes
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13180 $as_echo "$xsi_shell" >&6; }
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13184 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13185 lt_shell_append=no
13186 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13187 >/dev/null 2>&1 \
13188 && lt_shell_append=yes
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13190 $as_echo "$lt_shell_append" >&6; }
13193 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13194 lt_unset=unset
13195 else
13196 lt_unset=false
13203 # test EBCDIC or ASCII
13204 case `echo X|tr X '\101'` in
13205 A) # ASCII based system
13206 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13207 lt_SP2NL='tr \040 \012'
13208 lt_NL2SP='tr \015\012 \040\040'
13210 *) # EBCDIC based system
13211 lt_SP2NL='tr \100 \n'
13212 lt_NL2SP='tr \r\n \100\100'
13214 esac
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13225 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13226 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 lt_cv_ld_reload_flag='-r'
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13232 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13233 reload_flag=$lt_cv_ld_reload_flag
13234 case $reload_flag in
13235 "" | " "*) ;;
13236 *) reload_flag=" $reload_flag" ;;
13237 esac
13238 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13239 case $host_os in
13240 darwin*)
13241 if test "$GCC" = yes; then
13242 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13243 else
13244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13247 esac
13257 if test -n "$ac_tool_prefix"; then
13258 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13259 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13261 $as_echo_n "checking for $ac_word... " >&6; }
13262 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 if test -n "$OBJDUMP"; then
13266 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13267 else
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13279 done
13280 done
13281 IFS=$as_save_IFS
13285 OBJDUMP=$ac_cv_prog_OBJDUMP
13286 if test -n "$OBJDUMP"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13288 $as_echo "$OBJDUMP" >&6; }
13289 else
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13296 if test -z "$ac_cv_prog_OBJDUMP"; then
13297 ac_ct_OBJDUMP=$OBJDUMP
13298 # Extract the first word of "objdump", so it can be a program name with args.
13299 set dummy objdump; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 $as_echo_n "checking for $ac_word... " >&6; }
13302 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 if test -n "$ac_ct_OBJDUMP"; then
13306 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13307 else
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13311 IFS=$as_save_IFS
13312 test -z "$as_dir" && as_dir=.
13313 for ac_exec_ext in '' $ac_executable_extensions; do
13314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13315 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13317 break 2
13319 done
13320 done
13321 IFS=$as_save_IFS
13325 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13326 if test -n "$ac_ct_OBJDUMP"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13328 $as_echo "$ac_ct_OBJDUMP" >&6; }
13329 else
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13334 if test "x$ac_ct_OBJDUMP" = x; then
13335 OBJDUMP="false"
13336 else
13337 case $cross_compiling:$ac_tool_warned in
13338 yes:)
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13341 ac_tool_warned=yes ;;
13342 esac
13343 OBJDUMP=$ac_ct_OBJDUMP
13345 else
13346 OBJDUMP="$ac_cv_prog_OBJDUMP"
13349 test -z "$OBJDUMP" && OBJDUMP=objdump
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13360 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13361 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 lt_cv_file_magic_cmd='$MAGIC_CMD'
13365 lt_cv_file_magic_test_file=
13366 lt_cv_deplibs_check_method='unknown'
13367 # Need to set the preceding variable on all platforms that support
13368 # interlibrary dependencies.
13369 # 'none' -- dependencies not supported.
13370 # `unknown' -- same as none, but documents that we really don't know.
13371 # 'pass_all' -- all dependencies passed with no checks.
13372 # 'test_compile' -- check by making test program.
13373 # 'file_magic [[regex]]' -- check by looking for files in library path
13374 # which responds to the $file_magic_cmd with a given extended regex.
13375 # If you have `file' or equivalent on your system and you're not sure
13376 # whether `pass_all' will *always* work, you probably want this one.
13378 case $host_os in
13379 aix[4-9]*)
13380 lt_cv_deplibs_check_method=pass_all
13383 beos*)
13384 lt_cv_deplibs_check_method=pass_all
13387 bsdi[45]*)
13388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13389 lt_cv_file_magic_cmd='/usr/bin/file -L'
13390 lt_cv_file_magic_test_file=/shlib/libc.so
13393 cygwin*)
13394 # func_win32_libid is a shell function defined in ltmain.sh
13395 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13396 lt_cv_file_magic_cmd='func_win32_libid'
13399 mingw* | pw32*)
13400 # Base MSYS/MinGW do not provide the 'file' command needed by
13401 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13402 # unless we find 'file', for example because we are cross-compiling.
13403 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13404 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13406 lt_cv_file_magic_cmd='func_win32_libid'
13407 else
13408 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13409 lt_cv_file_magic_cmd='$OBJDUMP -f'
13413 cegcc*)
13414 # use the weaker test based on 'objdump'. See mingw*.
13415 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13416 lt_cv_file_magic_cmd='$OBJDUMP -f'
13419 darwin* | rhapsody*)
13420 lt_cv_deplibs_check_method=pass_all
13423 freebsd* | dragonfly*)
13424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13425 case $host_cpu in
13426 i*86 )
13427 # Not sure whether the presence of OpenBSD here was a mistake.
13428 # Let's accept both of them until this is cleared up.
13429 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13430 lt_cv_file_magic_cmd=/usr/bin/file
13431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13433 esac
13434 else
13435 lt_cv_deplibs_check_method=pass_all
13439 gnu*)
13440 lt_cv_deplibs_check_method=pass_all
13443 haiku*)
13444 lt_cv_deplibs_check_method=pass_all
13447 hpux10.20* | hpux11*)
13448 lt_cv_file_magic_cmd=/usr/bin/file
13449 case $host_cpu in
13450 ia64*)
13451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13452 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13454 hppa*64*)
13455 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]'
13456 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13460 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13462 esac
13465 interix[3-9]*)
13466 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13470 irix5* | irix6* | nonstopux*)
13471 case $LD in
13472 *-32|*"-32 ") libmagic=32-bit;;
13473 *-n32|*"-n32 ") libmagic=N32;;
13474 *-64|*"-64 ") libmagic=64-bit;;
13475 *) libmagic=never-match;;
13476 esac
13477 lt_cv_deplibs_check_method=pass_all
13480 # This must be Linux ELF.
13481 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13482 lt_cv_deplibs_check_method=pass_all
13485 netbsd*)
13486 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13488 else
13489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13493 newos6*)
13494 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13495 lt_cv_file_magic_cmd=/usr/bin/file
13496 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13499 *nto* | *qnx*)
13500 lt_cv_deplibs_check_method=pass_all
13503 openbsd*)
13504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13506 else
13507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13511 osf3* | osf4* | osf5*)
13512 lt_cv_deplibs_check_method=pass_all
13515 rdos*)
13516 lt_cv_deplibs_check_method=pass_all
13519 solaris*)
13520 lt_cv_deplibs_check_method=pass_all
13523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13524 lt_cv_deplibs_check_method=pass_all
13527 sysv4 | sysv4.3*)
13528 case $host_vendor in
13529 motorola)
13530 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]'
13531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13533 ncr)
13534 lt_cv_deplibs_check_method=pass_all
13536 sequent)
13537 lt_cv_file_magic_cmd='/bin/file'
13538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13540 sni)
13541 lt_cv_file_magic_cmd='/bin/file'
13542 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13543 lt_cv_file_magic_test_file=/lib/libc.so
13545 siemens)
13546 lt_cv_deplibs_check_method=pass_all
13549 lt_cv_deplibs_check_method=pass_all
13551 esac
13554 tpf*)
13555 lt_cv_deplibs_check_method=pass_all
13557 esac
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13561 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13562 file_magic_cmd=$lt_cv_file_magic_cmd
13563 deplibs_check_method=$lt_cv_deplibs_check_method
13564 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13577 if test -n "$ac_tool_prefix"; then
13578 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13579 set dummy ${ac_tool_prefix}ar; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if test "${ac_cv_prog_AR+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 if test -n "$AR"; then
13586 ac_cv_prog_AR="$AR" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13595 ac_cv_prog_AR="${ac_tool_prefix}ar"
13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13599 done
13600 done
13601 IFS=$as_save_IFS
13605 AR=$ac_cv_prog_AR
13606 if test -n "$AR"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13608 $as_echo "$AR" >&6; }
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13616 if test -z "$ac_cv_prog_AR"; then
13617 ac_ct_AR=$AR
13618 # Extract the first word of "ar", so it can be a program name with args.
13619 set dummy ar; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 if test -n "$ac_ct_AR"; then
13626 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13627 else
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13635 ac_cv_prog_ac_ct_AR="ar"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13639 done
13640 done
13641 IFS=$as_save_IFS
13645 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13646 if test -n "$ac_ct_AR"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13648 $as_echo "$ac_ct_AR" >&6; }
13649 else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13654 if test "x$ac_ct_AR" = x; then
13655 AR="false"
13656 else
13657 case $cross_compiling:$ac_tool_warned in
13658 yes:)
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13661 ac_tool_warned=yes ;;
13662 esac
13663 AR=$ac_ct_AR
13665 else
13666 AR="$ac_cv_prog_AR"
13669 test -z "$AR" && AR=ar
13670 test -z "$AR_FLAGS" && AR_FLAGS=cru
13682 if test -n "$ac_tool_prefix"; then
13683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13684 set dummy ${ac_tool_prefix}strip; ac_word=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if test "${ac_cv_prog_STRIP+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 if test -n "$STRIP"; then
13691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13692 else
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13696 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=.
13698 for ac_exec_ext in '' $ac_executable_extensions; do
13699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 break 2
13704 done
13705 done
13706 IFS=$as_save_IFS
13710 STRIP=$ac_cv_prog_STRIP
13711 if test -n "$STRIP"; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13713 $as_echo "$STRIP" >&6; }
13714 else
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13721 if test -z "$ac_cv_prog_STRIP"; then
13722 ac_ct_STRIP=$STRIP
13723 # Extract the first word of "strip", so it can be a program name with args.
13724 set dummy strip; ac_word=$2
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13726 $as_echo_n "checking for $ac_word... " >&6; }
13727 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 if test -n "$ac_ct_STRIP"; then
13731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13732 else
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
13739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13740 ac_cv_prog_ac_ct_STRIP="strip"
13741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13744 done
13745 done
13746 IFS=$as_save_IFS
13750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13751 if test -n "$ac_ct_STRIP"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13753 $as_echo "$ac_ct_STRIP" >&6; }
13754 else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13759 if test "x$ac_ct_STRIP" = x; then
13760 STRIP=":"
13761 else
13762 case $cross_compiling:$ac_tool_warned in
13763 yes:)
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13766 ac_tool_warned=yes ;;
13767 esac
13768 STRIP=$ac_ct_STRIP
13770 else
13771 STRIP="$ac_cv_prog_STRIP"
13774 test -z "$STRIP" && STRIP=:
13781 if test -n "$ac_tool_prefix"; then
13782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13785 $as_echo_n "checking for $ac_word... " >&6; }
13786 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 if test -n "$RANLIB"; then
13790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13791 else
13792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793 for as_dir in $PATH
13795 IFS=$as_save_IFS
13796 test -z "$as_dir" && as_dir=.
13797 for ac_exec_ext in '' $ac_executable_extensions; do
13798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801 break 2
13803 done
13804 done
13805 IFS=$as_save_IFS
13809 RANLIB=$ac_cv_prog_RANLIB
13810 if test -n "$RANLIB"; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13812 $as_echo "$RANLIB" >&6; }
13813 else
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815 $as_echo "no" >&6; }
13820 if test -z "$ac_cv_prog_RANLIB"; then
13821 ac_ct_RANLIB=$RANLIB
13822 # Extract the first word of "ranlib", so it can be a program name with args.
13823 set dummy ranlib; ac_word=$2
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13825 $as_echo_n "checking for $ac_word... " >&6; }
13826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13827 $as_echo_n "(cached) " >&6
13828 else
13829 if test -n "$ac_ct_RANLIB"; then
13830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13831 else
13832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13833 for as_dir in $PATH
13835 IFS=$as_save_IFS
13836 test -z "$as_dir" && as_dir=.
13837 for ac_exec_ext in '' $ac_executable_extensions; do
13838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13839 ac_cv_prog_ac_ct_RANLIB="ranlib"
13840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13841 break 2
13843 done
13844 done
13845 IFS=$as_save_IFS
13849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13850 if test -n "$ac_ct_RANLIB"; then
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13852 $as_echo "$ac_ct_RANLIB" >&6; }
13853 else
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855 $as_echo "no" >&6; }
13858 if test "x$ac_ct_RANLIB" = x; then
13859 RANLIB=":"
13860 else
13861 case $cross_compiling:$ac_tool_warned in
13862 yes:)
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13865 ac_tool_warned=yes ;;
13866 esac
13867 RANLIB=$ac_ct_RANLIB
13869 else
13870 RANLIB="$ac_cv_prog_RANLIB"
13873 test -z "$RANLIB" && RANLIB=:
13880 # Determine commands to create old-style static archives.
13881 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13882 old_postinstall_cmds='chmod 644 $oldlib'
13883 old_postuninstall_cmds=
13885 if test -n "$RANLIB"; then
13886 case $host_os in
13887 openbsd*)
13888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13893 esac
13894 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13897 case $host_os in
13898 darwin*)
13899 lock_old_archive_extraction=yes ;;
13901 lock_old_archive_extraction=no ;;
13902 esac
13942 # If no C compiler was specified, use CC.
13943 LTCC=${LTCC-"$CC"}
13945 # If no C compiler flags were specified, use CFLAGS.
13946 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13948 # Allow CC to be a program name with arguments.
13949 compiler=$CC
13952 # Check for command to grab the raw symbol name followed by C symbol from nm.
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13954 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13955 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13956 $as_echo_n "(cached) " >&6
13957 else
13959 # These are sane defaults that work on at least a few old systems.
13960 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13962 # Character class describing NM global symbol codes.
13963 symcode='[BCDEGRST]'
13965 # Regexp to match symbols that can be accessed directly from C.
13966 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13968 # Define system-specific variables.
13969 case $host_os in
13970 aix*)
13971 symcode='[BCDT]'
13973 cygwin* | mingw* | pw32* | cegcc*)
13974 symcode='[ABCDGISTW]'
13976 hpux*)
13977 if test "$host_cpu" = ia64; then
13978 symcode='[ABCDEGRST]'
13981 irix* | nonstopux*)
13982 symcode='[BCDEGRST]'
13984 osf*)
13985 symcode='[BCDEGQRST]'
13987 solaris*)
13988 symcode='[BDRT]'
13990 sco3.2v5*)
13991 symcode='[DT]'
13993 sysv4.2uw2*)
13994 symcode='[DT]'
13996 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13997 symcode='[ABDT]'
13999 sysv4)
14000 symcode='[DFNSTU]'
14002 esac
14004 # If we're using GNU nm, then use its standard symbol codes.
14005 case `$NM -V 2>&1` in
14006 *GNU* | *'with BFD'*)
14007 symcode='[ABCDGIRSTW]' ;;
14008 esac
14010 # Transform an extracted symbol line into a proper C declaration.
14011 # Some systems (esp. on ia64) link data and code symbols differently,
14012 # so use this general approach.
14013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14015 # Transform an extracted symbol line into symbol name and symbol address
14016 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14017 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'"
14019 # Handle CRLF in mingw tool chain
14020 opt_cr=
14021 case $build_os in
14022 mingw*)
14023 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14025 esac
14027 # Try without a prefix underscore, then with it.
14028 for ac_symprfx in "" "_"; do
14030 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14031 symxfrm="\\1 $ac_symprfx\\2 \\2"
14033 # Write the raw and C identifiers.
14034 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14035 # Fake it for dumpbin and say T for any non-static function
14036 # and D for any global variable.
14037 # Also find C++ and __fastcall symbols from MSVC++,
14038 # which start with @ or ?.
14039 lt_cv_sys_global_symbol_pipe="$AWK '"\
14040 " {last_section=section; section=\$ 3};"\
14041 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14042 " \$ 0!~/External *\|/{next};"\
14043 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14044 " {if(hide[section]) next};"\
14045 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14046 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14047 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14048 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14049 " ' prfx=^$ac_symprfx"
14050 else
14051 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14054 # Check to see that the pipe works correctly.
14055 pipe_works=no
14057 rm -f conftest*
14058 cat > conftest.$ac_ext <<_LT_EOF
14059 #ifdef __cplusplus
14060 extern "C" {
14061 #endif
14062 char nm_test_var;
14063 void nm_test_func(void);
14064 void nm_test_func(void){}
14065 #ifdef __cplusplus
14067 #endif
14068 int main(){nm_test_var='a';nm_test_func();return(0);}
14069 _LT_EOF
14071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14072 (eval $ac_compile) 2>&5
14073 ac_status=$?
14074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14075 test $ac_status = 0; }; then
14076 # Now try to grab the symbols.
14077 nlist=conftest.nm
14078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14079 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14080 ac_status=$?
14081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14082 test $ac_status = 0; } && test -s "$nlist"; then
14083 # Try sorting and uniquifying the output.
14084 if sort "$nlist" | uniq > "$nlist"T; then
14085 mv -f "$nlist"T "$nlist"
14086 else
14087 rm -f "$nlist"T
14090 # Make sure that we snagged all the symbols we need.
14091 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14092 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14093 cat <<_LT_EOF > conftest.$ac_ext
14094 #ifdef __cplusplus
14095 extern "C" {
14096 #endif
14098 _LT_EOF
14099 # Now generate the symbol file.
14100 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14102 cat <<_LT_EOF >> conftest.$ac_ext
14104 /* The mapping between symbol names and symbols. */
14105 const struct {
14106 const char *name;
14107 void *address;
14109 lt__PROGRAM__LTX_preloaded_symbols[] =
14111 { "@PROGRAM@", (void *) 0 },
14112 _LT_EOF
14113 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14114 cat <<\_LT_EOF >> conftest.$ac_ext
14115 {0, (void *) 0}
14118 /* This works around a problem in FreeBSD linker */
14119 #ifdef FREEBSD_WORKAROUND
14120 static const void *lt_preloaded_setup() {
14121 return lt__PROGRAM__LTX_preloaded_symbols;
14123 #endif
14125 #ifdef __cplusplus
14127 #endif
14128 _LT_EOF
14129 # Now try linking the two files.
14130 mv conftest.$ac_objext conftstm.$ac_objext
14131 lt_save_LIBS="$LIBS"
14132 lt_save_CFLAGS="$CFLAGS"
14133 LIBS="conftstm.$ac_objext"
14134 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14136 (eval $ac_link) 2>&5
14137 ac_status=$?
14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14140 pipe_works=yes
14142 LIBS="$lt_save_LIBS"
14143 CFLAGS="$lt_save_CFLAGS"
14144 else
14145 echo "cannot find nm_test_func in $nlist" >&5
14147 else
14148 echo "cannot find nm_test_var in $nlist" >&5
14150 else
14151 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14153 else
14154 echo "$progname: failed program was:" >&5
14155 cat conftest.$ac_ext >&5
14157 rm -rf conftest* conftst*
14159 # Do not use the global_symbol_pipe unless it works.
14160 if test "$pipe_works" = yes; then
14161 break
14162 else
14163 lt_cv_sys_global_symbol_pipe=
14165 done
14169 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14170 lt_cv_sys_global_symbol_to_cdecl=
14172 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14174 $as_echo "failed" >&6; }
14175 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14177 $as_echo "ok" >&6; }
14201 # Check whether --enable-libtool-lock was given.
14202 if test "${enable_libtool_lock+set}" = set; then :
14203 enableval=$enable_libtool_lock;
14206 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14208 # Some flags need to be propagated to the compiler or linker for good
14209 # libtool support.
14210 case $host in
14211 ia64-*-hpux*)
14212 # Find out which ABI we are using.
14213 echo 'int i;' > conftest.$ac_ext
14214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14215 (eval $ac_compile) 2>&5
14216 ac_status=$?
14217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14218 test $ac_status = 0; }; then
14219 case `/usr/bin/file conftest.$ac_objext` in
14220 *ELF-32*)
14221 HPUX_IA64_MODE="32"
14223 *ELF-64*)
14224 HPUX_IA64_MODE="64"
14226 esac
14228 rm -rf conftest*
14230 *-*-irix6*)
14231 # Find out which ABI we are using.
14232 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14234 (eval $ac_compile) 2>&5
14235 ac_status=$?
14236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; }; then
14238 if test "$lt_cv_prog_gnu_ld" = yes; then
14239 case `/usr/bin/file conftest.$ac_objext` in
14240 *32-bit*)
14241 LD="${LD-ld} -melf32bsmip"
14243 *N32*)
14244 LD="${LD-ld} -melf32bmipn32"
14246 *64-bit*)
14247 LD="${LD-ld} -melf64bmip"
14249 esac
14250 else
14251 case `/usr/bin/file conftest.$ac_objext` in
14252 *32-bit*)
14253 LD="${LD-ld} -32"
14255 *N32*)
14256 LD="${LD-ld} -n32"
14258 *64-bit*)
14259 LD="${LD-ld} -64"
14261 esac
14264 rm -rf conftest*
14267 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14268 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14269 # Find out which ABI we are using.
14270 echo 'int i;' > conftest.$ac_ext
14271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14272 (eval $ac_compile) 2>&5
14273 ac_status=$?
14274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14275 test $ac_status = 0; }; then
14276 case `/usr/bin/file conftest.o` in
14277 *32-bit*)
14278 case $host in
14279 x86_64-*kfreebsd*-gnu)
14280 LD="${LD-ld} -m elf_i386_fbsd"
14282 x86_64-*linux*)
14283 case `/usr/bin/file conftest.o` in
14284 *x86-64*)
14285 LD="${LD-ld} -m elf32_x86_64"
14288 LD="${LD-ld} -m elf_i386"
14290 esac
14292 powerpc64le-*linux*)
14293 LD="${LD-ld} -m elf32lppclinux"
14295 powerpc64-*linux*)
14296 LD="${LD-ld} -m elf32ppclinux"
14298 s390x-*linux*)
14299 LD="${LD-ld} -m elf_s390"
14301 sparc64-*linux*)
14302 LD="${LD-ld} -m elf32_sparc"
14304 esac
14306 *64-bit*)
14307 case $host in
14308 x86_64-*kfreebsd*-gnu)
14309 LD="${LD-ld} -m elf_x86_64_fbsd"
14311 x86_64-*linux*)
14312 LD="${LD-ld} -m elf_x86_64"
14314 powerpcle-*linux*)
14315 LD="${LD-ld} -m elf64lppc"
14317 powerpc-*linux*)
14318 LD="${LD-ld} -m elf64ppc"
14320 s390*-*linux*|s390*-*tpf*)
14321 LD="${LD-ld} -m elf64_s390"
14323 sparc*-*linux*)
14324 LD="${LD-ld} -m elf64_sparc"
14326 esac
14328 esac
14330 rm -rf conftest*
14333 *-*-sco3.2v5*)
14334 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14335 SAVE_CFLAGS="$CFLAGS"
14336 CFLAGS="$CFLAGS -belf"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14338 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14339 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 ac_ext=c
14343 ac_cpp='$CPP $CPPFLAGS'
14344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14352 main ()
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 lt_cv_cc_needs_belf=yes
14361 else
14362 lt_cv_cc_needs_belf=no
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 ac_ext=c
14367 ac_cpp='$CPP $CPPFLAGS'
14368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14374 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14375 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14376 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14377 CFLAGS="$SAVE_CFLAGS"
14380 sparc*-*solaris*)
14381 # Find out which ABI we are using.
14382 echo 'int i;' > conftest.$ac_ext
14383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14384 (eval $ac_compile) 2>&5
14385 ac_status=$?
14386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14387 test $ac_status = 0; }; then
14388 case `/usr/bin/file conftest.o` in
14389 *64-bit*)
14390 case $lt_cv_prog_gnu_ld in
14391 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14393 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14394 LD="${LD-ld} -64"
14397 esac
14399 esac
14401 rm -rf conftest*
14403 esac
14405 need_locks="$enable_libtool_lock"
14408 case $host_os in
14409 rhapsody* | darwin*)
14410 if test -n "$ac_tool_prefix"; then
14411 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14412 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14414 $as_echo_n "checking for $ac_word... " >&6; }
14415 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418 if test -n "$DSYMUTIL"; then
14419 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14420 else
14421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14422 for as_dir in $PATH
14424 IFS=$as_save_IFS
14425 test -z "$as_dir" && as_dir=.
14426 for ac_exec_ext in '' $ac_executable_extensions; do
14427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14428 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14430 break 2
14432 done
14433 done
14434 IFS=$as_save_IFS
14438 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14439 if test -n "$DSYMUTIL"; then
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14441 $as_echo "$DSYMUTIL" >&6; }
14442 else
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14444 $as_echo "no" >&6; }
14449 if test -z "$ac_cv_prog_DSYMUTIL"; then
14450 ac_ct_DSYMUTIL=$DSYMUTIL
14451 # Extract the first word of "dsymutil", so it can be a program name with args.
14452 set dummy dsymutil; ac_word=$2
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14454 $as_echo_n "checking for $ac_word... " >&6; }
14455 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458 if test -n "$ac_ct_DSYMUTIL"; then
14459 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14460 else
14461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14462 for as_dir in $PATH
14464 IFS=$as_save_IFS
14465 test -z "$as_dir" && as_dir=.
14466 for ac_exec_ext in '' $ac_executable_extensions; do
14467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14468 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14470 break 2
14472 done
14473 done
14474 IFS=$as_save_IFS
14478 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14479 if test -n "$ac_ct_DSYMUTIL"; then
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14481 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14482 else
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14484 $as_echo "no" >&6; }
14487 if test "x$ac_ct_DSYMUTIL" = x; then
14488 DSYMUTIL=":"
14489 else
14490 case $cross_compiling:$ac_tool_warned in
14491 yes:)
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14494 ac_tool_warned=yes ;;
14495 esac
14496 DSYMUTIL=$ac_ct_DSYMUTIL
14498 else
14499 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14502 if test -n "$ac_tool_prefix"; then
14503 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14506 $as_echo_n "checking for $ac_word... " >&6; }
14507 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14508 $as_echo_n "(cached) " >&6
14509 else
14510 if test -n "$NMEDIT"; then
14511 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14512 else
14513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14514 for as_dir in $PATH
14516 IFS=$as_save_IFS
14517 test -z "$as_dir" && as_dir=.
14518 for ac_exec_ext in '' $ac_executable_extensions; do
14519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14520 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14522 break 2
14524 done
14525 done
14526 IFS=$as_save_IFS
14530 NMEDIT=$ac_cv_prog_NMEDIT
14531 if test -n "$NMEDIT"; then
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14533 $as_echo "$NMEDIT" >&6; }
14534 else
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14536 $as_echo "no" >&6; }
14541 if test -z "$ac_cv_prog_NMEDIT"; then
14542 ac_ct_NMEDIT=$NMEDIT
14543 # Extract the first word of "nmedit", so it can be a program name with args.
14544 set dummy nmedit; ac_word=$2
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14546 $as_echo_n "checking for $ac_word... " >&6; }
14547 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 if test -n "$ac_ct_NMEDIT"; then
14551 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14552 else
14553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554 for as_dir in $PATH
14556 IFS=$as_save_IFS
14557 test -z "$as_dir" && as_dir=.
14558 for ac_exec_ext in '' $ac_executable_extensions; do
14559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14560 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14562 break 2
14564 done
14565 done
14566 IFS=$as_save_IFS
14570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14571 if test -n "$ac_ct_NMEDIT"; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14573 $as_echo "$ac_ct_NMEDIT" >&6; }
14574 else
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576 $as_echo "no" >&6; }
14579 if test "x$ac_ct_NMEDIT" = x; then
14580 NMEDIT=":"
14581 else
14582 case $cross_compiling:$ac_tool_warned in
14583 yes:)
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14586 ac_tool_warned=yes ;;
14587 esac
14588 NMEDIT=$ac_ct_NMEDIT
14590 else
14591 NMEDIT="$ac_cv_prog_NMEDIT"
14594 if test -n "$ac_tool_prefix"; then
14595 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14596 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14598 $as_echo_n "checking for $ac_word... " >&6; }
14599 if test "${ac_cv_prog_LIPO+set}" = set; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14602 if test -n "$LIPO"; then
14603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14604 else
14605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14606 for as_dir in $PATH
14608 IFS=$as_save_IFS
14609 test -z "$as_dir" && as_dir=.
14610 for ac_exec_ext in '' $ac_executable_extensions; do
14611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14612 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14614 break 2
14616 done
14617 done
14618 IFS=$as_save_IFS
14622 LIPO=$ac_cv_prog_LIPO
14623 if test -n "$LIPO"; then
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14625 $as_echo "$LIPO" >&6; }
14626 else
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628 $as_echo "no" >&6; }
14633 if test -z "$ac_cv_prog_LIPO"; then
14634 ac_ct_LIPO=$LIPO
14635 # Extract the first word of "lipo", so it can be a program name with args.
14636 set dummy lipo; ac_word=$2
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14638 $as_echo_n "checking for $ac_word... " >&6; }
14639 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 if test -n "$ac_ct_LIPO"; then
14643 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14644 else
14645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14646 for as_dir in $PATH
14648 IFS=$as_save_IFS
14649 test -z "$as_dir" && as_dir=.
14650 for ac_exec_ext in '' $ac_executable_extensions; do
14651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14652 ac_cv_prog_ac_ct_LIPO="lipo"
14653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14654 break 2
14656 done
14657 done
14658 IFS=$as_save_IFS
14662 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14663 if test -n "$ac_ct_LIPO"; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14665 $as_echo "$ac_ct_LIPO" >&6; }
14666 else
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14668 $as_echo "no" >&6; }
14671 if test "x$ac_ct_LIPO" = x; then
14672 LIPO=":"
14673 else
14674 case $cross_compiling:$ac_tool_warned in
14675 yes:)
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14678 ac_tool_warned=yes ;;
14679 esac
14680 LIPO=$ac_ct_LIPO
14682 else
14683 LIPO="$ac_cv_prog_LIPO"
14686 if test -n "$ac_tool_prefix"; then
14687 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14688 set dummy ${ac_tool_prefix}otool; ac_word=$2
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14690 $as_echo_n "checking for $ac_word... " >&6; }
14691 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694 if test -n "$OTOOL"; then
14695 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14696 else
14697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14698 for as_dir in $PATH
14700 IFS=$as_save_IFS
14701 test -z "$as_dir" && as_dir=.
14702 for ac_exec_ext in '' $ac_executable_extensions; do
14703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14704 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14706 break 2
14708 done
14709 done
14710 IFS=$as_save_IFS
14714 OTOOL=$ac_cv_prog_OTOOL
14715 if test -n "$OTOOL"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14717 $as_echo "$OTOOL" >&6; }
14718 else
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14720 $as_echo "no" >&6; }
14725 if test -z "$ac_cv_prog_OTOOL"; then
14726 ac_ct_OTOOL=$OTOOL
14727 # Extract the first word of "otool", so it can be a program name with args.
14728 set dummy otool; ac_word=$2
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14730 $as_echo_n "checking for $ac_word... " >&6; }
14731 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14732 $as_echo_n "(cached) " >&6
14733 else
14734 if test -n "$ac_ct_OTOOL"; then
14735 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14736 else
14737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14738 for as_dir in $PATH
14740 IFS=$as_save_IFS
14741 test -z "$as_dir" && as_dir=.
14742 for ac_exec_ext in '' $ac_executable_extensions; do
14743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14744 ac_cv_prog_ac_ct_OTOOL="otool"
14745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14746 break 2
14748 done
14749 done
14750 IFS=$as_save_IFS
14754 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14755 if test -n "$ac_ct_OTOOL"; then
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14757 $as_echo "$ac_ct_OTOOL" >&6; }
14758 else
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14760 $as_echo "no" >&6; }
14763 if test "x$ac_ct_OTOOL" = x; then
14764 OTOOL=":"
14765 else
14766 case $cross_compiling:$ac_tool_warned in
14767 yes:)
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14770 ac_tool_warned=yes ;;
14771 esac
14772 OTOOL=$ac_ct_OTOOL
14774 else
14775 OTOOL="$ac_cv_prog_OTOOL"
14778 if test -n "$ac_tool_prefix"; then
14779 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14780 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14782 $as_echo_n "checking for $ac_word... " >&6; }
14783 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 if test -n "$OTOOL64"; then
14787 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14788 else
14789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14790 for as_dir in $PATH
14792 IFS=$as_save_IFS
14793 test -z "$as_dir" && as_dir=.
14794 for ac_exec_ext in '' $ac_executable_extensions; do
14795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14796 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14798 break 2
14800 done
14801 done
14802 IFS=$as_save_IFS
14806 OTOOL64=$ac_cv_prog_OTOOL64
14807 if test -n "$OTOOL64"; then
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14809 $as_echo "$OTOOL64" >&6; }
14810 else
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812 $as_echo "no" >&6; }
14817 if test -z "$ac_cv_prog_OTOOL64"; then
14818 ac_ct_OTOOL64=$OTOOL64
14819 # Extract the first word of "otool64", so it can be a program name with args.
14820 set dummy otool64; ac_word=$2
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14822 $as_echo_n "checking for $ac_word... " >&6; }
14823 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 if test -n "$ac_ct_OTOOL64"; then
14827 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14828 else
14829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830 for as_dir in $PATH
14832 IFS=$as_save_IFS
14833 test -z "$as_dir" && as_dir=.
14834 for ac_exec_ext in '' $ac_executable_extensions; do
14835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14836 ac_cv_prog_ac_ct_OTOOL64="otool64"
14837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14838 break 2
14840 done
14841 done
14842 IFS=$as_save_IFS
14846 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14847 if test -n "$ac_ct_OTOOL64"; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14849 $as_echo "$ac_ct_OTOOL64" >&6; }
14850 else
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852 $as_echo "no" >&6; }
14855 if test "x$ac_ct_OTOOL64" = x; then
14856 OTOOL64=":"
14857 else
14858 case $cross_compiling:$ac_tool_warned in
14859 yes:)
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14862 ac_tool_warned=yes ;;
14863 esac
14864 OTOOL64=$ac_ct_OTOOL64
14866 else
14867 OTOOL64="$ac_cv_prog_OTOOL64"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14897 $as_echo_n "checking for -single_module linker flag... " >&6; }
14898 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14901 lt_cv_apple_cc_single_mod=no
14902 if test -z "${LT_MULTI_MODULE}"; then
14903 # By default we will add the -single_module flag. You can override
14904 # by either setting the environment variable LT_MULTI_MODULE
14905 # non-empty at configure time, or by adding -multi_module to the
14906 # link flags.
14907 rm -rf libconftest.dylib*
14908 echo "int foo(void){return 1;}" > conftest.c
14909 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14910 -dynamiclib -Wl,-single_module conftest.c" >&5
14911 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14912 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14913 _lt_result=$?
14914 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14915 lt_cv_apple_cc_single_mod=yes
14916 else
14917 cat conftest.err >&5
14919 rm -rf libconftest.dylib*
14920 rm -f conftest.*
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14924 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14926 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14927 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14928 $as_echo_n "(cached) " >&6
14929 else
14930 lt_cv_ld_exported_symbols_list=no
14931 save_LDFLAGS=$LDFLAGS
14932 echo "_main" > conftest.sym
14933 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14938 main ()
14942 return 0;
14944 _ACEOF
14945 if ac_fn_c_try_link "$LINENO"; then :
14946 lt_cv_ld_exported_symbols_list=yes
14947 else
14948 lt_cv_ld_exported_symbols_list=no
14950 rm -f core conftest.err conftest.$ac_objext \
14951 conftest$ac_exeext conftest.$ac_ext
14952 LDFLAGS="$save_LDFLAGS"
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14956 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14958 $as_echo_n "checking for -force_load linker flag... " >&6; }
14959 if test "${lt_cv_ld_force_load+set}" = set; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 lt_cv_ld_force_load=no
14963 cat > conftest.c << _LT_EOF
14964 int forced_loaded() { return 2;}
14965 _LT_EOF
14966 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14967 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14968 echo "$AR cru libconftest.a conftest.o" >&5
14969 $AR cru libconftest.a conftest.o 2>&5
14970 cat > conftest.c << _LT_EOF
14971 int main() { return 0;}
14972 _LT_EOF
14973 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14974 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14975 _lt_result=$?
14976 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14977 lt_cv_ld_force_load=yes
14978 else
14979 cat conftest.err >&5
14981 rm -f conftest.err libconftest.a conftest conftest.c
14982 rm -rf conftest.dSYM
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14986 $as_echo "$lt_cv_ld_force_load" >&6; }
14987 case $host_os in
14988 rhapsody* | darwin1.[012])
14989 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14990 darwin1.*)
14991 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14992 darwin*) # darwin 5.x on
14993 # if running on 10.5 or later, the deployment target defaults
14994 # to the OS version, if on x86, and 10.4, the deployment
14995 # target defaults to 10.4. Don't you love it?
14996 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14997 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14999 10.[012][,.]*)
15000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15001 10.*)
15002 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15003 esac
15005 esac
15006 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15007 _lt_dar_single_mod='$single_module'
15009 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15010 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15011 else
15012 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15014 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15015 _lt_dsymutil='~$DSYMUTIL $lib || :'
15016 else
15017 _lt_dsymutil=
15020 esac
15023 for ac_header in dlfcn.h
15024 do :
15025 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15026 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15027 cat >>confdefs.h <<_ACEOF
15028 #define HAVE_DLFCN_H 1
15029 _ACEOF
15032 done
15038 # Set options
15042 enable_dlopen=no
15045 enable_win32_dll=no
15048 # Check whether --enable-shared was given.
15049 if test "${enable_shared+set}" = set; then :
15050 enableval=$enable_shared; p=${PACKAGE-default}
15051 case $enableval in
15052 yes) enable_shared=yes ;;
15053 no) enable_shared=no ;;
15055 enable_shared=no
15056 # Look at the argument we got. We use all the common list separators.
15057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15058 for pkg in $enableval; do
15059 IFS="$lt_save_ifs"
15060 if test "X$pkg" = "X$p"; then
15061 enable_shared=yes
15063 done
15064 IFS="$lt_save_ifs"
15066 esac
15067 else
15068 enable_shared=yes
15079 # Check whether --enable-static was given.
15080 if test "${enable_static+set}" = set; then :
15081 enableval=$enable_static; p=${PACKAGE-default}
15082 case $enableval in
15083 yes) enable_static=yes ;;
15084 no) enable_static=no ;;
15086 enable_static=no
15087 # Look at the argument we got. We use all the common list separators.
15088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15089 for pkg in $enableval; do
15090 IFS="$lt_save_ifs"
15091 if test "X$pkg" = "X$p"; then
15092 enable_static=yes
15094 done
15095 IFS="$lt_save_ifs"
15097 esac
15098 else
15099 enable_static=yes
15111 # Check whether --with-pic was given.
15112 if test "${with_pic+set}" = set; then :
15113 withval=$with_pic; pic_mode="$withval"
15114 else
15115 pic_mode=default
15119 test -z "$pic_mode" && pic_mode=default
15127 # Check whether --enable-fast-install was given.
15128 if test "${enable_fast_install+set}" = set; then :
15129 enableval=$enable_fast_install; p=${PACKAGE-default}
15130 case $enableval in
15131 yes) enable_fast_install=yes ;;
15132 no) enable_fast_install=no ;;
15134 enable_fast_install=no
15135 # Look at the argument we got. We use all the common list separators.
15136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15137 for pkg in $enableval; do
15138 IFS="$lt_save_ifs"
15139 if test "X$pkg" = "X$p"; then
15140 enable_fast_install=yes
15142 done
15143 IFS="$lt_save_ifs"
15145 esac
15146 else
15147 enable_fast_install=yes
15160 # This can be used to rebuild libtool when needed
15161 LIBTOOL_DEPS="$ltmain"
15163 # Always use our own libtool.
15164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15191 test -z "$LN_S" && LN_S="ln -s"
15206 if test -n "${ZSH_VERSION+set}" ; then
15207 setopt NO_GLOB_SUBST
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15211 $as_echo_n "checking for objdir... " >&6; }
15212 if test "${lt_cv_objdir+set}" = set; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215 rm -f .libs 2>/dev/null
15216 mkdir .libs 2>/dev/null
15217 if test -d .libs; then
15218 lt_cv_objdir=.libs
15219 else
15220 # MS-DOS does not allow filenames that begin with a dot.
15221 lt_cv_objdir=_libs
15223 rmdir .libs 2>/dev/null
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15226 $as_echo "$lt_cv_objdir" >&6; }
15227 objdir=$lt_cv_objdir
15233 cat >>confdefs.h <<_ACEOF
15234 #define LT_OBJDIR "$lt_cv_objdir/"
15235 _ACEOF
15240 case $host_os in
15241 aix3*)
15242 # AIX sometimes has problems with the GCC collect2 program. For some
15243 # reason, if we set the COLLECT_NAMES environment variable, the problems
15244 # vanish in a puff of smoke.
15245 if test "X${COLLECT_NAMES+set}" != Xset; then
15246 COLLECT_NAMES=
15247 export COLLECT_NAMES
15250 esac
15252 # Global variables:
15253 ofile=libtool
15254 can_build_shared=yes
15256 # All known linkers require a `.a' archive for static linking (except MSVC,
15257 # which needs '.lib').
15258 libext=a
15260 with_gnu_ld="$lt_cv_prog_gnu_ld"
15262 old_CC="$CC"
15263 old_CFLAGS="$CFLAGS"
15265 # Set sane defaults for various variables
15266 test -z "$CC" && CC=cc
15267 test -z "$LTCC" && LTCC=$CC
15268 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15269 test -z "$LD" && LD=ld
15270 test -z "$ac_objext" && ac_objext=o
15272 for cc_temp in $compiler""; do
15273 case $cc_temp in
15274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15276 \-*) ;;
15277 *) break;;
15278 esac
15279 done
15280 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15283 # Only perform the check for file, if the check method requires it
15284 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15285 case $deplibs_check_method in
15286 file_magic*)
15287 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15289 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15290 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15291 $as_echo_n "(cached) " >&6
15292 else
15293 case $MAGIC_CMD in
15294 [\\/*] | ?:[\\/]*)
15295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15298 lt_save_MAGIC_CMD="$MAGIC_CMD"
15299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15301 for ac_dir in $ac_dummy; do
15302 IFS="$lt_save_ifs"
15303 test -z "$ac_dir" && ac_dir=.
15304 if test -f $ac_dir/${ac_tool_prefix}file; then
15305 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15306 if test -n "$file_magic_test_file"; then
15307 case $deplibs_check_method in
15308 "file_magic "*)
15309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15312 $EGREP "$file_magic_regex" > /dev/null; then
15314 else
15315 cat <<_LT_EOF 1>&2
15317 *** Warning: the command libtool uses to detect shared libraries,
15318 *** $file_magic_cmd, produces output that libtool cannot recognize.
15319 *** The result is that libtool may fail to recognize shared libraries
15320 *** as such. This will affect the creation of libtool libraries that
15321 *** depend on shared libraries, but programs linked with such libtool
15322 *** libraries will work regardless of this problem. Nevertheless, you
15323 *** may want to report the problem to your system manager and/or to
15324 *** bug-libtool@gnu.org
15326 _LT_EOF
15327 fi ;;
15328 esac
15330 break
15332 done
15333 IFS="$lt_save_ifs"
15334 MAGIC_CMD="$lt_save_MAGIC_CMD"
15336 esac
15339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15340 if test -n "$MAGIC_CMD"; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15342 $as_echo "$MAGIC_CMD" >&6; }
15343 else
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345 $as_echo "no" >&6; }
15352 if test -z "$lt_cv_path_MAGIC_CMD"; then
15353 if test -n "$ac_tool_prefix"; then
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15355 $as_echo_n "checking for file... " >&6; }
15356 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 case $MAGIC_CMD in
15360 [\\/*] | ?:[\\/]*)
15361 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15364 lt_save_MAGIC_CMD="$MAGIC_CMD"
15365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15366 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15367 for ac_dir in $ac_dummy; do
15368 IFS="$lt_save_ifs"
15369 test -z "$ac_dir" && ac_dir=.
15370 if test -f $ac_dir/file; then
15371 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15372 if test -n "$file_magic_test_file"; then
15373 case $deplibs_check_method in
15374 "file_magic "*)
15375 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15377 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15378 $EGREP "$file_magic_regex" > /dev/null; then
15380 else
15381 cat <<_LT_EOF 1>&2
15383 *** Warning: the command libtool uses to detect shared libraries,
15384 *** $file_magic_cmd, produces output that libtool cannot recognize.
15385 *** The result is that libtool may fail to recognize shared libraries
15386 *** as such. This will affect the creation of libtool libraries that
15387 *** depend on shared libraries, but programs linked with such libtool
15388 *** libraries will work regardless of this problem. Nevertheless, you
15389 *** may want to report the problem to your system manager and/or to
15390 *** bug-libtool@gnu.org
15392 _LT_EOF
15393 fi ;;
15394 esac
15396 break
15398 done
15399 IFS="$lt_save_ifs"
15400 MAGIC_CMD="$lt_save_MAGIC_CMD"
15402 esac
15405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15406 if test -n "$MAGIC_CMD"; then
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15408 $as_echo "$MAGIC_CMD" >&6; }
15409 else
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15411 $as_echo "no" >&6; }
15415 else
15416 MAGIC_CMD=:
15422 esac
15424 # Use C for the default configuration in the libtool script
15426 lt_save_CC="$CC"
15427 ac_ext=c
15428 ac_cpp='$CPP $CPPFLAGS'
15429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15434 # Source file extension for C test sources.
15435 ac_ext=c
15437 # Object file extension for compiled C test sources.
15438 objext=o
15439 objext=$objext
15441 # Code to be used in simple compile tests
15442 lt_simple_compile_test_code="int some_variable = 0;"
15444 # Code to be used in simple link tests
15445 lt_simple_link_test_code='int main(){return(0);}'
15453 # If no C compiler was specified, use CC.
15454 LTCC=${LTCC-"$CC"}
15456 # If no C compiler flags were specified, use CFLAGS.
15457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15459 # Allow CC to be a program name with arguments.
15460 compiler=$CC
15462 # Save the default compiler, since it gets overwritten when the other
15463 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15464 compiler_DEFAULT=$CC
15466 # save warnings/boilerplate of simple test code
15467 ac_outfile=conftest.$ac_objext
15468 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15469 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15470 _lt_compiler_boilerplate=`cat conftest.err`
15471 $RM conftest*
15473 ac_outfile=conftest.$ac_objext
15474 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15475 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15476 _lt_linker_boilerplate=`cat conftest.err`
15477 $RM -r conftest*
15480 ## CAVEAT EMPTOR:
15481 ## There is no encapsulation within the following macros, do not change
15482 ## the running order or otherwise move them around unless you know exactly
15483 ## what you are doing...
15484 if test -n "$compiler"; then
15486 lt_prog_compiler_no_builtin_flag=
15488 if test "$GCC" = yes; then
15489 case $cc_basename in
15490 nvcc*)
15491 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15493 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15494 esac
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15497 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15498 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15499 $as_echo_n "(cached) " >&6
15500 else
15501 lt_cv_prog_compiler_rtti_exceptions=no
15502 ac_outfile=conftest.$ac_objext
15503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15504 lt_compiler_flag="-fno-rtti -fno-exceptions"
15505 # Insert the option either (1) after the last *FLAGS variable, or
15506 # (2) before a word containing "conftest.", or (3) at the end.
15507 # Note that $ac_compile itself does not contain backslashes and begins
15508 # with a dollar sign (not a hyphen), so the echo should work correctly.
15509 # The option is referenced via a variable to avoid confusing sed.
15510 lt_compile=`echo "$ac_compile" | $SED \
15511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15513 -e 's:$: $lt_compiler_flag:'`
15514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15515 (eval "$lt_compile" 2>conftest.err)
15516 ac_status=$?
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 if (exit $ac_status) && test -s "$ac_outfile"; then
15520 # The compiler can only warn and ignore the option if not recognized
15521 # So say no if there are warnings other than the usual output.
15522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15525 lt_cv_prog_compiler_rtti_exceptions=yes
15528 $RM conftest*
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15532 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15534 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15535 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15536 else
15547 lt_prog_compiler_wl=
15548 lt_prog_compiler_pic=
15549 lt_prog_compiler_static=
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15552 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15554 if test "$GCC" = yes; then
15555 lt_prog_compiler_wl='-Wl,'
15556 lt_prog_compiler_static='-static'
15558 case $host_os in
15559 aix*)
15560 # All AIX code is PIC.
15561 if test "$host_cpu" = ia64; then
15562 # AIX 5 now supports IA64 processor
15563 lt_prog_compiler_static='-Bstatic'
15565 lt_prog_compiler_pic='-fPIC'
15568 amigaos*)
15569 case $host_cpu in
15570 powerpc)
15571 # see comment about AmigaOS4 .so support
15572 lt_prog_compiler_pic='-fPIC'
15574 m68k)
15575 # FIXME: we need at least 68020 code to build shared libraries, but
15576 # adding the `-m68020' flag to GCC prevents building anything better,
15577 # like `-m68040'.
15578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15580 esac
15583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15584 # PIC is the default for these OSes.
15587 mingw* | cygwin* | pw32* | os2* | cegcc*)
15588 # This hack is so that the source file can tell whether it is being
15589 # built for inclusion in a dll (and should export symbols for example).
15590 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15591 # (--disable-auto-import) libraries
15592 lt_prog_compiler_pic='-DDLL_EXPORT'
15595 darwin* | rhapsody*)
15596 # PIC is the default on this platform
15597 # Common symbols not allowed in MH_DYLIB files
15598 lt_prog_compiler_pic='-fno-common'
15601 haiku*)
15602 # PIC is the default for Haiku.
15603 # The "-static" flag exists, but is broken.
15604 lt_prog_compiler_static=
15607 hpux*)
15608 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15609 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15610 # sets the default TLS model and affects inlining.
15611 case $host_cpu in
15612 hppa*64*)
15613 # +Z the default
15616 lt_prog_compiler_pic='-fPIC'
15618 esac
15621 interix[3-9]*)
15622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15623 # Instead, we relocate shared libraries at runtime.
15626 msdosdjgpp*)
15627 # Just because we use GCC doesn't mean we suddenly get shared libraries
15628 # on systems that don't support them.
15629 lt_prog_compiler_can_build_shared=no
15630 enable_shared=no
15633 *nto* | *qnx*)
15634 # QNX uses GNU C++, but need to define -shared option too, otherwise
15635 # it will coredump.
15636 lt_prog_compiler_pic='-fPIC -shared'
15639 sysv4*MP*)
15640 if test -d /usr/nec; then
15641 lt_prog_compiler_pic=-Kconform_pic
15646 lt_prog_compiler_pic='-fPIC'
15648 esac
15650 case $cc_basename in
15651 nvcc*) # Cuda Compiler Driver 2.2
15652 lt_prog_compiler_wl='-Xlinker '
15653 lt_prog_compiler_pic='-Xcompiler -fPIC'
15655 esac
15656 else
15657 # PORTME Check for flag to pass linker flags through the system compiler.
15658 case $host_os in
15659 aix*)
15660 lt_prog_compiler_wl='-Wl,'
15661 if test "$host_cpu" = ia64; then
15662 # AIX 5 now supports IA64 processor
15663 lt_prog_compiler_static='-Bstatic'
15664 else
15665 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15669 mingw* | cygwin* | pw32* | os2* | cegcc*)
15670 # This hack is so that the source file can tell whether it is being
15671 # built for inclusion in a dll (and should export symbols for example).
15672 lt_prog_compiler_pic='-DDLL_EXPORT'
15675 hpux9* | hpux10* | hpux11*)
15676 lt_prog_compiler_wl='-Wl,'
15677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15678 # not for PA HP-UX.
15679 case $host_cpu in
15680 hppa*64*|ia64*)
15681 # +Z the default
15684 lt_prog_compiler_pic='+Z'
15686 esac
15687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15688 lt_prog_compiler_static='${wl}-a ${wl}archive'
15691 irix5* | irix6* | nonstopux*)
15692 lt_prog_compiler_wl='-Wl,'
15693 # PIC (with -KPIC) is the default.
15694 lt_prog_compiler_static='-non_shared'
15697 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15698 case $cc_basename in
15699 # old Intel for x86_64 which still supported -KPIC.
15700 ecc*)
15701 lt_prog_compiler_wl='-Wl,'
15702 lt_prog_compiler_pic='-KPIC'
15703 lt_prog_compiler_static='-static'
15705 # icc used to be incompatible with GCC.
15706 # ICC 10 doesn't accept -KPIC any more.
15707 icc* | ifort*)
15708 lt_prog_compiler_wl='-Wl,'
15709 lt_prog_compiler_pic='-fPIC'
15710 lt_prog_compiler_static='-static'
15712 # Lahey Fortran 8.1.
15713 lf95*)
15714 lt_prog_compiler_wl='-Wl,'
15715 lt_prog_compiler_pic='--shared'
15716 lt_prog_compiler_static='--static'
15718 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15719 # Portland Group compilers (*not* the Pentium gcc compiler,
15720 # which looks to be a dead project)
15721 lt_prog_compiler_wl='-Wl,'
15722 lt_prog_compiler_pic='-fpic'
15723 lt_prog_compiler_static='-Bstatic'
15725 ccc*)
15726 lt_prog_compiler_wl='-Wl,'
15727 # All Alpha code is PIC.
15728 lt_prog_compiler_static='-non_shared'
15730 xl* | bgxl* | bgf* | mpixl*)
15731 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15732 lt_prog_compiler_wl='-Wl,'
15733 lt_prog_compiler_pic='-qpic'
15734 lt_prog_compiler_static='-qstaticlink'
15737 case `$CC -V 2>&1 | sed 5q` in
15738 *Sun\ F* | *Sun*Fortran*)
15739 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15740 lt_prog_compiler_pic='-KPIC'
15741 lt_prog_compiler_static='-Bstatic'
15742 lt_prog_compiler_wl=''
15744 *Sun\ C*)
15745 # Sun C 5.9
15746 lt_prog_compiler_pic='-KPIC'
15747 lt_prog_compiler_static='-Bstatic'
15748 lt_prog_compiler_wl='-Wl,'
15750 esac
15752 esac
15755 newsos6)
15756 lt_prog_compiler_pic='-KPIC'
15757 lt_prog_compiler_static='-Bstatic'
15760 *nto* | *qnx*)
15761 # QNX uses GNU C++, but need to define -shared option too, otherwise
15762 # it will coredump.
15763 lt_prog_compiler_pic='-fPIC -shared'
15766 osf3* | osf4* | osf5*)
15767 lt_prog_compiler_wl='-Wl,'
15768 # All OSF/1 code is PIC.
15769 lt_prog_compiler_static='-non_shared'
15772 rdos*)
15773 lt_prog_compiler_static='-non_shared'
15776 solaris*)
15777 lt_prog_compiler_pic='-KPIC'
15778 lt_prog_compiler_static='-Bstatic'
15779 case $cc_basename in
15780 f77* | f90* | f95*)
15781 lt_prog_compiler_wl='-Qoption ld ';;
15783 lt_prog_compiler_wl='-Wl,';;
15784 esac
15787 sunos4*)
15788 lt_prog_compiler_wl='-Qoption ld '
15789 lt_prog_compiler_pic='-PIC'
15790 lt_prog_compiler_static='-Bstatic'
15793 sysv4 | sysv4.2uw2* | sysv4.3*)
15794 lt_prog_compiler_wl='-Wl,'
15795 lt_prog_compiler_pic='-KPIC'
15796 lt_prog_compiler_static='-Bstatic'
15799 sysv4*MP*)
15800 if test -d /usr/nec ;then
15801 lt_prog_compiler_pic='-Kconform_pic'
15802 lt_prog_compiler_static='-Bstatic'
15806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15807 lt_prog_compiler_wl='-Wl,'
15808 lt_prog_compiler_pic='-KPIC'
15809 lt_prog_compiler_static='-Bstatic'
15812 unicos*)
15813 lt_prog_compiler_wl='-Wl,'
15814 lt_prog_compiler_can_build_shared=no
15817 uts4*)
15818 lt_prog_compiler_pic='-pic'
15819 lt_prog_compiler_static='-Bstatic'
15823 lt_prog_compiler_can_build_shared=no
15825 esac
15828 case $host_os in
15829 # For platforms which do not support PIC, -DPIC is meaningless:
15830 *djgpp*)
15831 lt_prog_compiler_pic=
15834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15836 esac
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15838 $as_echo "$lt_prog_compiler_pic" >&6; }
15846 # Check to make sure the PIC flag actually works.
15848 if test -n "$lt_prog_compiler_pic"; then
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15850 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15851 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 lt_cv_prog_compiler_pic_works=no
15855 ac_outfile=conftest.$ac_objext
15856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15857 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15858 # Insert the option either (1) after the last *FLAGS variable, or
15859 # (2) before a word containing "conftest.", or (3) at the end.
15860 # Note that $ac_compile itself does not contain backslashes and begins
15861 # with a dollar sign (not a hyphen), so the echo should work correctly.
15862 # The option is referenced via a variable to avoid confusing sed.
15863 lt_compile=`echo "$ac_compile" | $SED \
15864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15866 -e 's:$: $lt_compiler_flag:'`
15867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15868 (eval "$lt_compile" 2>conftest.err)
15869 ac_status=$?
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 if (exit $ac_status) && test -s "$ac_outfile"; then
15873 # The compiler can only warn and ignore the option if not recognized
15874 # So say no if there are warnings other than the usual output.
15875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15878 lt_cv_prog_compiler_pic_works=yes
15881 $RM conftest*
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15885 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15887 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15888 case $lt_prog_compiler_pic in
15889 "" | " "*) ;;
15890 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15891 esac
15892 else
15893 lt_prog_compiler_pic=
15894 lt_prog_compiler_can_build_shared=no
15905 # Check to make sure the static flag actually works.
15907 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15909 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15910 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 lt_cv_prog_compiler_static_works=no
15914 save_LDFLAGS="$LDFLAGS"
15915 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15916 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15917 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15918 # The linker can only warn and ignore the option if not recognized
15919 # So say no if there are warnings
15920 if test -s conftest.err; then
15921 # Append any errors to the config.log.
15922 cat conftest.err 1>&5
15923 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15925 if diff conftest.exp conftest.er2 >/dev/null; then
15926 lt_cv_prog_compiler_static_works=yes
15928 else
15929 lt_cv_prog_compiler_static_works=yes
15932 $RM -r conftest*
15933 LDFLAGS="$save_LDFLAGS"
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15937 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15939 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15941 else
15942 lt_prog_compiler_static=
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15952 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15953 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 lt_cv_prog_compiler_c_o=no
15957 $RM -r conftest 2>/dev/null
15958 mkdir conftest
15959 cd conftest
15960 mkdir out
15961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15963 lt_compiler_flag="-o out/conftest2.$ac_objext"
15964 # Insert the option either (1) after the last *FLAGS variable, or
15965 # (2) before a word containing "conftest.", or (3) at the end.
15966 # Note that $ac_compile itself does not contain backslashes and begins
15967 # with a dollar sign (not a hyphen), so the echo should work correctly.
15968 lt_compile=`echo "$ac_compile" | $SED \
15969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15971 -e 's:$: $lt_compiler_flag:'`
15972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15973 (eval "$lt_compile" 2>out/conftest.err)
15974 ac_status=$?
15975 cat out/conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15978 then
15979 # The compiler can only warn and ignore the option if not recognized
15980 # So say no if there are warnings
15981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15984 lt_cv_prog_compiler_c_o=yes
15987 chmod u+w . 2>&5
15988 $RM conftest*
15989 # SGI C++ compiler will create directory out/ii_files/ for
15990 # template instantiation
15991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15992 $RM out/* && rmdir out
15993 cd ..
15994 $RM -r conftest
15995 $RM conftest*
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15999 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16007 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16008 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 lt_cv_prog_compiler_c_o=no
16012 $RM -r conftest 2>/dev/null
16013 mkdir conftest
16014 cd conftest
16015 mkdir out
16016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16018 lt_compiler_flag="-o out/conftest2.$ac_objext"
16019 # Insert the option either (1) after the last *FLAGS variable, or
16020 # (2) before a word containing "conftest.", or (3) at the end.
16021 # Note that $ac_compile itself does not contain backslashes and begins
16022 # with a dollar sign (not a hyphen), so the echo should work correctly.
16023 lt_compile=`echo "$ac_compile" | $SED \
16024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16026 -e 's:$: $lt_compiler_flag:'`
16027 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16028 (eval "$lt_compile" 2>out/conftest.err)
16029 ac_status=$?
16030 cat out/conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16033 then
16034 # The compiler can only warn and ignore the option if not recognized
16035 # So say no if there are warnings
16036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16039 lt_cv_prog_compiler_c_o=yes
16042 chmod u+w . 2>&5
16043 $RM conftest*
16044 # SGI C++ compiler will create directory out/ii_files/ for
16045 # template instantiation
16046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16047 $RM out/* && rmdir out
16048 cd ..
16049 $RM -r conftest
16050 $RM conftest*
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16054 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16059 hard_links="nottested"
16060 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16061 # do not overwrite the value of need_locks provided by the user
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16063 $as_echo_n "checking if we can lock with hard links... " >&6; }
16064 hard_links=yes
16065 $RM conftest*
16066 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16067 touch conftest.a
16068 ln conftest.a conftest.b 2>&5 || hard_links=no
16069 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16071 $as_echo "$hard_links" >&6; }
16072 if test "$hard_links" = no; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16074 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16075 need_locks=warn
16077 else
16078 need_locks=no
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16087 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16089 runpath_var=
16090 allow_undefined_flag=
16091 always_export_symbols=no
16092 archive_cmds=
16093 archive_expsym_cmds=
16094 compiler_needs_object=no
16095 enable_shared_with_static_runtimes=no
16096 export_dynamic_flag_spec=
16097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16098 hardcode_automatic=no
16099 hardcode_direct=no
16100 hardcode_direct_absolute=no
16101 hardcode_libdir_flag_spec=
16102 hardcode_libdir_flag_spec_ld=
16103 hardcode_libdir_separator=
16104 hardcode_minus_L=no
16105 hardcode_shlibpath_var=unsupported
16106 inherit_rpath=no
16107 link_all_deplibs=unknown
16108 module_cmds=
16109 module_expsym_cmds=
16110 old_archive_from_new_cmds=
16111 old_archive_from_expsyms_cmds=
16112 thread_safe_flag_spec=
16113 whole_archive_flag_spec=
16114 # include_expsyms should be a list of space-separated symbols to be *always*
16115 # included in the symbol list
16116 include_expsyms=
16117 # exclude_expsyms can be an extended regexp of symbols to exclude
16118 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16119 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16120 # as well as any symbol that contains `d'.
16121 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16122 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16123 # platforms (ab)use it in PIC code, but their linkers get confused if
16124 # the symbol is explicitly referenced. Since portable code cannot
16125 # rely on this symbol name, it's probably fine to never include it in
16126 # preloaded symbol tables.
16127 # Exclude shared library initialization/finalization symbols.
16128 extract_expsyms_cmds=
16130 case $host_os in
16131 cygwin* | mingw* | pw32* | cegcc*)
16132 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16133 # When not using gcc, we currently assume that we are using
16134 # Microsoft Visual C++.
16135 if test "$GCC" != yes; then
16136 with_gnu_ld=no
16139 interix*)
16140 # we just hope/assume this is gcc and not c89 (= MSVC++)
16141 with_gnu_ld=yes
16143 openbsd*)
16144 with_gnu_ld=no
16146 esac
16148 ld_shlibs=yes
16150 # On some targets, GNU ld is compatible enough with the native linker
16151 # that we're better off using the native interface for both.
16152 lt_use_gnu_ld_interface=no
16153 if test "$with_gnu_ld" = yes; then
16154 case $host_os in
16155 aix*)
16156 # The AIX port of GNU ld has always aspired to compatibility
16157 # with the native linker. However, as the warning in the GNU ld
16158 # block says, versions before 2.19.5* couldn't really create working
16159 # shared libraries, regardless of the interface used.
16160 case `$LD -v 2>&1` in
16161 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16162 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16163 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16165 lt_use_gnu_ld_interface=yes
16167 esac
16170 lt_use_gnu_ld_interface=yes
16172 esac
16175 if test "$lt_use_gnu_ld_interface" = yes; then
16176 # If archive_cmds runs LD, not CC, wlarc should be empty
16177 wlarc='${wl}'
16179 # Set some defaults for GNU ld with shared library support. These
16180 # are reset later if shared libraries are not supported. Putting them
16181 # here allows them to be overridden if necessary.
16182 runpath_var=LD_RUN_PATH
16183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16184 export_dynamic_flag_spec='${wl}--export-dynamic'
16185 # ancient GNU ld didn't support --whole-archive et. al.
16186 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16187 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16188 else
16189 whole_archive_flag_spec=
16191 supports_anon_versioning=no
16192 case `$LD -v 2>&1` in
16193 *GNU\ gold*) supports_anon_versioning=yes ;;
16194 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16195 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16196 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16197 *\ 2.11.*) ;; # other 2.11 versions
16198 *) supports_anon_versioning=yes ;;
16199 esac
16201 # See if GNU ld supports shared libraries.
16202 case $host_os in
16203 aix[3-9]*)
16204 # On AIX/PPC, the GNU linker is very broken
16205 if test "$host_cpu" != ia64; then
16206 ld_shlibs=no
16207 cat <<_LT_EOF 1>&2
16209 *** Warning: the GNU linker, at least up to release 2.19, is reported
16210 *** to be unable to reliably create shared libraries on AIX.
16211 *** Therefore, libtool is disabling shared libraries support. If you
16212 *** really care for shared libraries, you may want to install binutils
16213 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16214 *** You will then need to restart the configuration process.
16216 _LT_EOF
16220 amigaos*)
16221 case $host_cpu in
16222 powerpc)
16223 # see comment about AmigaOS4 .so support
16224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16225 archive_expsym_cmds=''
16227 m68k)
16228 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)'
16229 hardcode_libdir_flag_spec='-L$libdir'
16230 hardcode_minus_L=yes
16232 esac
16235 beos*)
16236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16237 allow_undefined_flag=unsupported
16238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16239 # support --undefined. This deserves some investigation. FIXME
16240 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16241 else
16242 ld_shlibs=no
16246 cygwin* | mingw* | pw32* | cegcc*)
16247 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16248 # as there is no search path for DLLs.
16249 hardcode_libdir_flag_spec='-L$libdir'
16250 export_dynamic_flag_spec='${wl}--export-all-symbols'
16251 allow_undefined_flag=unsupported
16252 always_export_symbols=no
16253 enable_shared_with_static_runtimes=yes
16254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16256 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16258 # If the export-symbols file already is a .def file (1st line
16259 # is EXPORTS), use it as is; otherwise, prepend...
16260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16261 cp $export_symbols $output_objdir/$soname.def;
16262 else
16263 echo EXPORTS > $output_objdir/$soname.def;
16264 cat $export_symbols >> $output_objdir/$soname.def;
16266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16267 else
16268 ld_shlibs=no
16272 haiku*)
16273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16274 link_all_deplibs=yes
16277 interix[3-9]*)
16278 hardcode_direct=no
16279 hardcode_shlibpath_var=no
16280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16281 export_dynamic_flag_spec='${wl}-E'
16282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16283 # Instead, shared libraries are loaded at an image base (0x10000000 by
16284 # default) and relocated if they conflict, which is a slow very memory
16285 # consuming and fragmenting process. To avoid this, we pick a random,
16286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16287 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16288 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16289 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'
16292 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16293 tmp_diet=no
16294 if test "$host_os" = linux-dietlibc; then
16295 case $cc_basename in
16296 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16297 esac
16299 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16300 && test "$tmp_diet" = no
16301 then
16302 tmp_addflag=' $pic_flag'
16303 tmp_sharedflag='-shared'
16304 case $cc_basename,$host_cpu in
16305 pgcc*) # Portland Group C compiler
16306 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'
16307 tmp_addflag=' $pic_flag'
16309 pgf77* | pgf90* | pgf95* | pgfortran*)
16310 # Portland Group f77 and f90 compilers
16311 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'
16312 tmp_addflag=' $pic_flag -Mnomain' ;;
16313 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16314 tmp_addflag=' -i_dynamic' ;;
16315 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16316 tmp_addflag=' -i_dynamic -nofor_main' ;;
16317 ifc* | ifort*) # Intel Fortran compiler
16318 tmp_addflag=' -nofor_main' ;;
16319 lf95*) # Lahey Fortran 8.1
16320 whole_archive_flag_spec=
16321 tmp_sharedflag='--shared' ;;
16322 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16323 tmp_sharedflag='-qmkshrobj'
16324 tmp_addflag= ;;
16325 nvcc*) # Cuda Compiler Driver 2.2
16326 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'
16327 compiler_needs_object=yes
16329 esac
16330 case `$CC -V 2>&1 | sed 5q` in
16331 *Sun\ C*) # Sun C 5.9
16332 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'
16333 compiler_needs_object=yes
16334 tmp_sharedflag='-G' ;;
16335 *Sun\ F*) # Sun Fortran 8.3
16336 tmp_sharedflag='-G' ;;
16337 esac
16338 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16340 if test "x$supports_anon_versioning" = xyes; then
16341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16343 echo "local: *; };" >> $output_objdir/$libname.ver~
16344 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16347 case $cc_basename in
16348 xlf* | bgf* | bgxlf* | mpixlf*)
16349 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16350 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16351 hardcode_libdir_flag_spec=
16352 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16353 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16354 if test "x$supports_anon_versioning" = xyes; then
16355 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16357 echo "local: *; };" >> $output_objdir/$libname.ver~
16358 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16361 esac
16362 else
16363 ld_shlibs=no
16367 netbsd*)
16368 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16369 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16370 wlarc=
16371 else
16372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16377 solaris*)
16378 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16379 ld_shlibs=no
16380 cat <<_LT_EOF 1>&2
16382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16383 *** create shared libraries on Solaris systems. Therefore, libtool
16384 *** is disabling shared libraries support. We urge you to upgrade GNU
16385 *** binutils to release 2.9.1 or newer. Another option is to modify
16386 *** your PATH or compiler configuration so that the native linker is
16387 *** used, and then restart.
16389 _LT_EOF
16390 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16393 else
16394 ld_shlibs=no
16398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16399 case `$LD -v 2>&1` in
16400 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16401 ld_shlibs=no
16402 cat <<_LT_EOF 1>&2
16404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16405 *** reliably create shared libraries on SCO systems. Therefore, libtool
16406 *** is disabling shared libraries support. We urge you to upgrade GNU
16407 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16408 *** your PATH or compiler configuration so that the native linker is
16409 *** used, and then restart.
16411 _LT_EOF
16414 # For security reasons, it is highly recommended that you always
16415 # use absolute paths for naming shared libraries, and exclude the
16416 # DT_RUNPATH tag from executables and libraries. But doing so
16417 # requires that you compile everything twice, which is a pain.
16418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16422 else
16423 ld_shlibs=no
16426 esac
16429 sunos4*)
16430 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16431 wlarc=
16432 hardcode_direct=yes
16433 hardcode_shlibpath_var=no
16437 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16440 else
16441 ld_shlibs=no
16444 esac
16446 if test "$ld_shlibs" = no; then
16447 runpath_var=
16448 hardcode_libdir_flag_spec=
16449 export_dynamic_flag_spec=
16450 whole_archive_flag_spec=
16452 else
16453 # PORTME fill in a description of your system's linker (not GNU ld)
16454 case $host_os in
16455 aix3*)
16456 allow_undefined_flag=unsupported
16457 always_export_symbols=yes
16458 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'
16459 # Note: this linker hardcodes the directories in LIBPATH if there
16460 # are no directories specified by -L.
16461 hardcode_minus_L=yes
16462 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16463 # Neither direct hardcoding nor static linking is supported with a
16464 # broken collect2.
16465 hardcode_direct=unsupported
16469 aix[4-9]*)
16470 if test "$host_cpu" = ia64; then
16471 # On IA64, the linker does run time linking by default, so we don't
16472 # have to do anything special.
16473 aix_use_runtimelinking=no
16474 exp_sym_flag='-Bexport'
16475 no_entry_flag=""
16476 else
16477 # If we're using GNU nm, then we don't want the "-C" option.
16478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16479 # Also, AIX nm treats weak defined symbols like other global
16480 # defined symbols, whereas GNU nm marks them as "W".
16481 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16482 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'
16483 else
16484 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'
16486 aix_use_runtimelinking=no
16488 # Test if we are trying to use run time linking or normal
16489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16490 # need to do runtime linking.
16491 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16492 for ld_flag in $LDFLAGS; do
16493 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16494 aix_use_runtimelinking=yes
16495 break
16497 done
16499 esac
16501 exp_sym_flag='-bexport'
16502 no_entry_flag='-bnoentry'
16505 # When large executables or shared objects are built, AIX ld can
16506 # have problems creating the table of contents. If linking a library
16507 # or program results in "error TOC overflow" add -mminimal-toc to
16508 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16509 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16511 archive_cmds=''
16512 hardcode_direct=yes
16513 hardcode_direct_absolute=yes
16514 hardcode_libdir_separator=':'
16515 link_all_deplibs=yes
16516 file_list_spec='${wl}-f,'
16518 if test "$GCC" = yes; then
16519 case $host_os in aix4.[012]|aix4.[012].*)
16520 # We only want to do this on AIX 4.2 and lower, the check
16521 # below for broken collect2 doesn't work under 4.3+
16522 collect2name=`${CC} -print-prog-name=collect2`
16523 if test -f "$collect2name" &&
16524 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16525 then
16526 # We have reworked collect2
16528 else
16529 # We have old collect2
16530 hardcode_direct=unsupported
16531 # It fails to find uninstalled libraries when the uninstalled
16532 # path is not listed in the libpath. Setting hardcode_minus_L
16533 # to unsupported forces relinking
16534 hardcode_minus_L=yes
16535 hardcode_libdir_flag_spec='-L$libdir'
16536 hardcode_libdir_separator=
16539 esac
16540 shared_flag='-shared'
16541 if test "$aix_use_runtimelinking" = yes; then
16542 shared_flag="$shared_flag "'${wl}-G'
16544 else
16545 # not using gcc
16546 if test "$host_cpu" = ia64; then
16547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16548 # chokes on -Wl,-G. The following line is correct:
16549 shared_flag='-G'
16550 else
16551 if test "$aix_use_runtimelinking" = yes; then
16552 shared_flag='${wl}-G'
16553 else
16554 shared_flag='${wl}-bM:SRE'
16559 export_dynamic_flag_spec='${wl}-bexpall'
16560 # It seems that -bexpall does not export symbols beginning with
16561 # underscore (_), so it is better to generate a list of symbols to export.
16562 always_export_symbols=yes
16563 if test "$aix_use_runtimelinking" = yes; then
16564 # Warning - without using the other runtime loading flags (-brtl),
16565 # -berok will link without error, but may produce a broken library.
16566 allow_undefined_flag='-berok'
16567 # Determine the default libpath from the value encoded in an
16568 # empty executable.
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16573 main ()
16577 return 0;
16579 _ACEOF
16580 if ac_fn_c_try_link "$LINENO"; then :
16582 lt_aix_libpath_sed='
16583 /Import File Strings/,/^$/ {
16584 /^0/ {
16585 s/^0 *\(.*\)$/\1/
16589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16590 # Check for a 64-bit object if we didn't find anything.
16591 if test -z "$aix_libpath"; then
16592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16595 rm -f core conftest.err conftest.$ac_objext \
16596 conftest$ac_exeext conftest.$ac_ext
16597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16599 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16600 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"
16601 else
16602 if test "$host_cpu" = ia64; then
16603 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16604 allow_undefined_flag="-z nodefs"
16605 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"
16606 else
16607 # Determine the default libpath from the value encoded in an
16608 # empty executable.
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16613 main ()
16617 return 0;
16619 _ACEOF
16620 if ac_fn_c_try_link "$LINENO"; then :
16622 lt_aix_libpath_sed='
16623 /Import File Strings/,/^$/ {
16624 /^0/ {
16625 s/^0 *\(.*\)$/\1/
16629 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16630 # Check for a 64-bit object if we didn't find anything.
16631 if test -z "$aix_libpath"; then
16632 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16635 rm -f core conftest.err conftest.$ac_objext \
16636 conftest$ac_exeext conftest.$ac_ext
16637 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16639 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16640 # Warning - without using the other run time loading flags,
16641 # -berok will link without error, but may produce a broken library.
16642 no_undefined_flag=' ${wl}-bernotok'
16643 allow_undefined_flag=' ${wl}-berok'
16644 if test "$with_gnu_ld" = yes; then
16645 # We only use this code for GNU lds that support --whole-archive.
16646 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16647 else
16648 # Exported symbols can be pulled into shared objects from archives
16649 whole_archive_flag_spec='$convenience'
16651 archive_cmds_need_lc=yes
16652 # This is similar to how AIX traditionally builds its shared libraries.
16653 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'
16658 amigaos*)
16659 case $host_cpu in
16660 powerpc)
16661 # see comment about AmigaOS4 .so support
16662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16663 archive_expsym_cmds=''
16665 m68k)
16666 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)'
16667 hardcode_libdir_flag_spec='-L$libdir'
16668 hardcode_minus_L=yes
16670 esac
16673 bsdi[45]*)
16674 export_dynamic_flag_spec=-rdynamic
16677 cygwin* | mingw* | pw32* | cegcc*)
16678 # When not using gcc, we currently assume that we are using
16679 # Microsoft Visual C++.
16680 # hardcode_libdir_flag_spec is actually meaningless, as there is
16681 # no search path for DLLs.
16682 hardcode_libdir_flag_spec=' '
16683 allow_undefined_flag=unsupported
16684 # Tell ltmain to make .lib files, not .a files.
16685 libext=lib
16686 # Tell ltmain to make .dll files, not .so files.
16687 shrext_cmds=".dll"
16688 # FIXME: Setting linknames here is a bad hack.
16689 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16690 # The linker will automatically build a .lib file if we build a DLL.
16691 old_archive_from_new_cmds='true'
16692 # FIXME: Should let the user specify the lib program.
16693 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16694 fix_srcfile_path='`cygpath -w "$srcfile"`'
16695 enable_shared_with_static_runtimes=yes
16698 darwin* | rhapsody*)
16701 archive_cmds_need_lc=no
16702 hardcode_direct=no
16703 hardcode_automatic=yes
16704 hardcode_shlibpath_var=unsupported
16705 if test "$lt_cv_ld_force_load" = "yes"; then
16706 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\"`'
16707 else
16708 whole_archive_flag_spec=''
16710 link_all_deplibs=yes
16711 allow_undefined_flag="$_lt_dar_allow_undefined"
16712 case $cc_basename in
16713 ifort*) _lt_dar_can_shared=yes ;;
16714 *) _lt_dar_can_shared=$GCC ;;
16715 esac
16716 if test "$_lt_dar_can_shared" = "yes"; then
16717 output_verbose_link_cmd=func_echo_all
16718 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16719 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16720 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}"
16721 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}"
16723 else
16724 ld_shlibs=no
16729 dgux*)
16730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16731 hardcode_libdir_flag_spec='-L$libdir'
16732 hardcode_shlibpath_var=no
16735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16736 # support. Future versions do this automatically, but an explicit c++rt0.o
16737 # does not break anything, and helps significantly (at the cost of a little
16738 # extra space).
16739 freebsd2.2*)
16740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16741 hardcode_libdir_flag_spec='-R$libdir'
16742 hardcode_direct=yes
16743 hardcode_shlibpath_var=no
16746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16747 freebsd2.*)
16748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16749 hardcode_direct=yes
16750 hardcode_minus_L=yes
16751 hardcode_shlibpath_var=no
16754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16755 freebsd* | dragonfly*)
16756 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16757 hardcode_libdir_flag_spec='-R$libdir'
16758 hardcode_direct=yes
16759 hardcode_shlibpath_var=no
16762 hpux9*)
16763 if test "$GCC" = yes; then
16764 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'
16765 else
16766 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'
16768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16769 hardcode_libdir_separator=:
16770 hardcode_direct=yes
16772 # hardcode_minus_L: Not really in the search PATH,
16773 # but as the default location of the library.
16774 hardcode_minus_L=yes
16775 export_dynamic_flag_spec='${wl}-E'
16778 hpux10*)
16779 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16780 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16781 else
16782 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16784 if test "$with_gnu_ld" = no; then
16785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16786 hardcode_libdir_flag_spec_ld='+b $libdir'
16787 hardcode_libdir_separator=:
16788 hardcode_direct=yes
16789 hardcode_direct_absolute=yes
16790 export_dynamic_flag_spec='${wl}-E'
16791 # hardcode_minus_L: Not really in the search PATH,
16792 # but as the default location of the library.
16793 hardcode_minus_L=yes
16797 hpux11*)
16798 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16799 case $host_cpu in
16800 hppa*64*)
16801 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16803 ia64*)
16804 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16809 esac
16810 else
16811 case $host_cpu in
16812 hppa*64*)
16813 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16815 ia64*)
16816 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16820 # Older versions of the 11.00 compiler do not understand -b yet
16821 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16823 $as_echo_n "checking if $CC understands -b... " >&6; }
16824 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16825 $as_echo_n "(cached) " >&6
16826 else
16827 lt_cv_prog_compiler__b=no
16828 save_LDFLAGS="$LDFLAGS"
16829 LDFLAGS="$LDFLAGS -b"
16830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16832 # The linker can only warn and ignore the option if not recognized
16833 # So say no if there are warnings
16834 if test -s conftest.err; then
16835 # Append any errors to the config.log.
16836 cat conftest.err 1>&5
16837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16839 if diff conftest.exp conftest.er2 >/dev/null; then
16840 lt_cv_prog_compiler__b=yes
16842 else
16843 lt_cv_prog_compiler__b=yes
16846 $RM -r conftest*
16847 LDFLAGS="$save_LDFLAGS"
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16851 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16853 if test x"$lt_cv_prog_compiler__b" = xyes; then
16854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16855 else
16856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16860 esac
16862 if test "$with_gnu_ld" = no; then
16863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16864 hardcode_libdir_separator=:
16866 case $host_cpu in
16867 hppa*64*|ia64*)
16868 hardcode_direct=no
16869 hardcode_shlibpath_var=no
16872 hardcode_direct=yes
16873 hardcode_direct_absolute=yes
16874 export_dynamic_flag_spec='${wl}-E'
16876 # hardcode_minus_L: Not really in the search PATH,
16877 # but as the default location of the library.
16878 hardcode_minus_L=yes
16880 esac
16884 irix5* | irix6* | nonstopux*)
16885 if test "$GCC" = yes; then
16886 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'
16887 # Try to use the -exported_symbol ld option, if it does not
16888 # work, assume that -exports_file does not work either and
16889 # implicitly export all symbols.
16890 save_LDFLAGS="$LDFLAGS"
16891 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16894 int foo(void) {}
16895 _ACEOF
16896 if ac_fn_c_try_link "$LINENO"; then :
16897 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'
16900 rm -f core conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902 LDFLAGS="$save_LDFLAGS"
16903 else
16904 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'
16905 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'
16907 archive_cmds_need_lc='no'
16908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16909 hardcode_libdir_separator=:
16910 inherit_rpath=yes
16911 link_all_deplibs=yes
16914 netbsd*)
16915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16917 else
16918 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16920 hardcode_libdir_flag_spec='-R$libdir'
16921 hardcode_direct=yes
16922 hardcode_shlibpath_var=no
16925 newsos6)
16926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16927 hardcode_direct=yes
16928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16929 hardcode_libdir_separator=:
16930 hardcode_shlibpath_var=no
16933 *nto* | *qnx*)
16936 openbsd*)
16937 if test -f /usr/libexec/ld.so; then
16938 hardcode_direct=yes
16939 hardcode_shlibpath_var=no
16940 hardcode_direct_absolute=yes
16941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16943 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16945 export_dynamic_flag_spec='${wl}-E'
16946 else
16947 case $host_os in
16948 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16949 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16950 hardcode_libdir_flag_spec='-R$libdir'
16953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16956 esac
16958 else
16959 ld_shlibs=no
16963 os2*)
16964 hardcode_libdir_flag_spec='-L$libdir'
16965 hardcode_minus_L=yes
16966 allow_undefined_flag=unsupported
16967 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'
16968 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16971 osf3*)
16972 if test "$GCC" = yes; then
16973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16974 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'
16975 else
16976 allow_undefined_flag=' -expect_unresolved \*'
16977 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'
16979 archive_cmds_need_lc='no'
16980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16981 hardcode_libdir_separator=:
16984 osf4* | osf5*) # as osf3* with the addition of -msym flag
16985 if test "$GCC" = yes; then
16986 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16987 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'
16988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16989 else
16990 allow_undefined_flag=' -expect_unresolved \*'
16991 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'
16992 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~
16993 $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'
16995 # Both c and cxx compiler support -rpath directly
16996 hardcode_libdir_flag_spec='-rpath $libdir'
16998 archive_cmds_need_lc='no'
16999 hardcode_libdir_separator=:
17002 solaris*)
17003 no_undefined_flag=' -z defs'
17004 if test "$GCC" = yes; then
17005 wlarc='${wl}'
17006 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17008 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17009 else
17010 case `$CC -V 2>&1` in
17011 *"Compilers 5.0"*)
17012 wlarc=''
17013 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17018 wlarc='${wl}'
17019 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17021 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17023 esac
17025 hardcode_libdir_flag_spec='-R$libdir'
17026 hardcode_shlibpath_var=no
17027 case $host_os in
17028 solaris2.[0-5] | solaris2.[0-5].*) ;;
17030 # The compiler driver will combine and reorder linker options,
17031 # but understands `-z linker_flag'. GCC discards it without `$wl',
17032 # but is careful enough not to reorder.
17033 # Supported since Solaris 2.6 (maybe 2.5.1?)
17034 if test "$GCC" = yes; then
17035 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17036 else
17037 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17040 esac
17041 link_all_deplibs=yes
17044 sunos4*)
17045 if test "x$host_vendor" = xsequent; then
17046 # Use $CC to link under sequent, because it throws in some extra .o
17047 # files that make .init and .fini sections work.
17048 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17049 else
17050 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_libdir_flag_spec='-L$libdir'
17053 hardcode_direct=yes
17054 hardcode_minus_L=yes
17055 hardcode_shlibpath_var=no
17058 sysv4)
17059 case $host_vendor in
17060 sni)
17061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17062 hardcode_direct=yes # is this really true???
17064 siemens)
17065 ## LD is ld it makes a PLAMLIB
17066 ## CC just makes a GrossModule.
17067 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17068 reload_cmds='$CC -r -o $output$reload_objs'
17069 hardcode_direct=no
17071 motorola)
17072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17073 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17075 esac
17076 runpath_var='LD_RUN_PATH'
17077 hardcode_shlibpath_var=no
17080 sysv4.3*)
17081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17082 hardcode_shlibpath_var=no
17083 export_dynamic_flag_spec='-Bexport'
17086 sysv4*MP*)
17087 if test -d /usr/nec; then
17088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17089 hardcode_shlibpath_var=no
17090 runpath_var=LD_RUN_PATH
17091 hardcode_runpath_var=yes
17092 ld_shlibs=yes
17096 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17097 no_undefined_flag='${wl}-z,text'
17098 archive_cmds_need_lc=no
17099 hardcode_shlibpath_var=no
17100 runpath_var='LD_RUN_PATH'
17102 if test "$GCC" = yes; then
17103 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17104 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17105 else
17106 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17107 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17111 sysv5* | sco3.2v5* | sco5v6*)
17112 # Note: We can NOT use -z defs as we might desire, because we do not
17113 # link with -lc, and that would cause any symbols used from libc to
17114 # always be unresolved, which means just about no library would
17115 # ever link correctly. If we're not using GNU ld we use -z text
17116 # though, which does catch some bad symbols but isn't as heavy-handed
17117 # as -z defs.
17118 no_undefined_flag='${wl}-z,text'
17119 allow_undefined_flag='${wl}-z,nodefs'
17120 archive_cmds_need_lc=no
17121 hardcode_shlibpath_var=no
17122 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17123 hardcode_libdir_separator=':'
17124 link_all_deplibs=yes
17125 export_dynamic_flag_spec='${wl}-Bexport'
17126 runpath_var='LD_RUN_PATH'
17128 if test "$GCC" = yes; then
17129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17131 else
17132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17137 uts4*)
17138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17139 hardcode_libdir_flag_spec='-L$libdir'
17140 hardcode_shlibpath_var=no
17144 ld_shlibs=no
17146 esac
17148 if test x$host_vendor = xsni; then
17149 case $host in
17150 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17151 export_dynamic_flag_spec='${wl}-Blargedynsym'
17153 esac
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17158 $as_echo "$ld_shlibs" >&6; }
17159 test "$ld_shlibs" = no && can_build_shared=no
17161 with_gnu_ld=$with_gnu_ld
17178 # Do we need to explicitly link libc?
17180 case "x$archive_cmds_need_lc" in
17181 x|xyes)
17182 # Assume -lc should be added
17183 archive_cmds_need_lc=yes
17185 if test "$enable_shared" = yes && test "$GCC" = yes; then
17186 case $archive_cmds in
17187 *'~'*)
17188 # FIXME: we may have to deal with multi-command sequences.
17190 '$CC '*)
17191 # Test whether the compiler implicitly links with -lc since on some
17192 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17193 # to ld, don't add -lc before -lgcc.
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17195 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17196 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17197 $as_echo_n "(cached) " >&6
17198 else
17199 $RM conftest*
17200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17203 (eval $ac_compile) 2>&5
17204 ac_status=$?
17205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206 test $ac_status = 0; } 2>conftest.err; then
17207 soname=conftest
17208 lib=conftest
17209 libobjs=conftest.$ac_objext
17210 deplibs=
17211 wl=$lt_prog_compiler_wl
17212 pic_flag=$lt_prog_compiler_pic
17213 compiler_flags=-v
17214 linker_flags=-v
17215 verstring=
17216 output_objdir=.
17217 libname=conftest
17218 lt_save_allow_undefined_flag=$allow_undefined_flag
17219 allow_undefined_flag=
17220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17221 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17222 ac_status=$?
17223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17224 test $ac_status = 0; }
17225 then
17226 lt_cv_archive_cmds_need_lc=no
17227 else
17228 lt_cv_archive_cmds_need_lc=yes
17230 allow_undefined_flag=$lt_save_allow_undefined_flag
17231 else
17232 cat conftest.err 1>&5
17234 $RM conftest*
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17238 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17239 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17241 esac
17244 esac
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17403 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17405 if test "$GCC" = yes; then
17406 case $host_os in
17407 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17408 *) lt_awk_arg="/^libraries:/" ;;
17409 esac
17410 case $host_os in
17411 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17412 *) lt_sed_strip_eq="s,=/,/,g" ;;
17413 esac
17414 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17415 case $lt_search_path_spec in
17416 *\;*)
17417 # if the path contains ";" then we assume it to be the separator
17418 # otherwise default to the standard path separator (i.e. ":") - it is
17419 # assumed that no part of a normal pathname contains ";" but that should
17420 # okay in the real world where ";" in dirpaths is itself problematic.
17421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17424 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17426 esac
17427 # Ok, now we have the path, separated by spaces, we can step through it
17428 # and add multilib dir if necessary.
17429 lt_tmp_lt_search_path_spec=
17430 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17431 for lt_sys_path in $lt_search_path_spec; do
17432 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17433 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17434 else
17435 test -d "$lt_sys_path" && \
17436 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17438 done
17439 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17440 BEGIN {RS=" "; FS="/|\n";} {
17441 lt_foo="";
17442 lt_count=0;
17443 for (lt_i = NF; lt_i > 0; lt_i--) {
17444 if ($lt_i != "" && $lt_i != ".") {
17445 if ($lt_i == "..") {
17446 lt_count++;
17447 } else {
17448 if (lt_count == 0) {
17449 lt_foo="/" $lt_i lt_foo;
17450 } else {
17451 lt_count--;
17456 if (lt_foo != "") { lt_freq[lt_foo]++; }
17457 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17459 # AWK program above erroneously prepends '/' to C:/dos/paths
17460 # for these hosts.
17461 case $host_os in
17462 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17463 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17464 esac
17465 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17466 else
17467 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17469 library_names_spec=
17470 libname_spec='lib$name'
17471 soname_spec=
17472 shrext_cmds=".so"
17473 postinstall_cmds=
17474 postuninstall_cmds=
17475 finish_cmds=
17476 finish_eval=
17477 shlibpath_var=
17478 shlibpath_overrides_runpath=unknown
17479 version_type=none
17480 dynamic_linker="$host_os ld.so"
17481 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17482 need_lib_prefix=unknown
17483 hardcode_into_libs=no
17485 # when you set need_version to no, make sure it does not cause -set_version
17486 # flags to be left without arguments
17487 need_version=unknown
17489 case $host_os in
17490 aix3*)
17491 version_type=linux
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17493 shlibpath_var=LIBPATH
17495 # AIX 3 has no versioning support, so we append a major version to the name.
17496 soname_spec='${libname}${release}${shared_ext}$major'
17499 aix[4-9]*)
17500 version_type=linux
17501 need_lib_prefix=no
17502 need_version=no
17503 hardcode_into_libs=yes
17504 if test "$host_cpu" = ia64; then
17505 # AIX 5 supports IA64
17506 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17507 shlibpath_var=LD_LIBRARY_PATH
17508 else
17509 # With GCC up to 2.95.x, collect2 would create an import file
17510 # for dependence libraries. The import file would start with
17511 # the line `#! .'. This would cause the generated library to
17512 # depend on `.', always an invalid library. This was fixed in
17513 # development snapshots of GCC prior to 3.0.
17514 case $host_os in
17515 aix4 | aix4.[01] | aix4.[01].*)
17516 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17517 echo ' yes '
17518 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17520 else
17521 can_build_shared=no
17524 esac
17525 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17526 # soname into executable. Probably we can add versioning support to
17527 # collect2, so additional links can be useful in future.
17528 if test "$aix_use_runtimelinking" = yes; then
17529 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17530 # instead of lib<name>.a to let people know that these are not
17531 # typical AIX shared libraries.
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17533 else
17534 # We preserve .a as extension for shared libraries through AIX4.2
17535 # and later when we are not doing run time linking.
17536 library_names_spec='${libname}${release}.a $libname.a'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17539 shlibpath_var=LIBPATH
17543 amigaos*)
17544 case $host_cpu in
17545 powerpc)
17546 # Since July 2007 AmigaOS4 officially supports .so libraries.
17547 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 m68k)
17551 library_names_spec='$libname.ixlibrary $libname.a'
17552 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17553 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'
17555 esac
17558 beos*)
17559 library_names_spec='${libname}${shared_ext}'
17560 dynamic_linker="$host_os ld.so"
17561 shlibpath_var=LIBRARY_PATH
17564 bsdi[45]*)
17565 version_type=linux
17566 need_version=no
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 soname_spec='${libname}${release}${shared_ext}$major'
17569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17573 # the default ld.so.conf also contains /usr/contrib/lib and
17574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17575 # libtool to hard-code these into programs
17578 cygwin* | mingw* | pw32* | cegcc*)
17579 version_type=windows
17580 shrext_cmds=".dll"
17581 need_version=no
17582 need_lib_prefix=no
17584 case $GCC,$host_os in
17585 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17586 library_names_spec='$libname.dll.a'
17587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17588 postinstall_cmds='base_file=`basename \${file}`~
17589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17590 dldir=$destdir/`dirname \$dlpath`~
17591 test -d \$dldir || mkdir -p \$dldir~
17592 $install_prog $dir/$dlname \$dldir/$dlname~
17593 chmod a+x \$dldir/$dlname~
17594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17598 dlpath=$dir/\$dldll~
17599 $RM \$dlpath'
17600 shlibpath_overrides_runpath=yes
17602 case $host_os in
17603 cygwin*)
17604 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17607 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17609 mingw* | cegcc*)
17610 # MinGW DLLs use traditional 'lib' prefix
17611 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17613 pw32*)
17614 # pw32 DLLs use 'pw' prefix rather than 'lib'
17615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17617 esac
17621 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17623 esac
17624 dynamic_linker='Win32 ld.exe'
17625 # FIXME: first we should search . and the directory the executable is in
17626 shlibpath_var=PATH
17629 darwin* | rhapsody*)
17630 dynamic_linker="$host_os dyld"
17631 version_type=darwin
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17635 soname_spec='${libname}${release}${major}$shared_ext'
17636 shlibpath_overrides_runpath=yes
17637 shlibpath_var=DYLD_LIBRARY_PATH
17638 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17640 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17641 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17644 dgux*)
17645 version_type=linux
17646 need_lib_prefix=no
17647 need_version=no
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 shlibpath_var=LD_LIBRARY_PATH
17653 freebsd* | dragonfly*)
17654 # DragonFly does not have aout. When/if they implement a new
17655 # versioning mechanism, adjust this.
17656 if test -x /usr/bin/objformat; then
17657 objformat=`/usr/bin/objformat`
17658 else
17659 case $host_os in
17660 freebsd[23].*) objformat=aout ;;
17661 *) objformat=elf ;;
17662 esac
17664 version_type=freebsd-$objformat
17665 case $version_type in
17666 freebsd-elf*)
17667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17668 need_version=no
17669 need_lib_prefix=no
17671 freebsd-*)
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17673 need_version=yes
17675 esac
17676 shlibpath_var=LD_LIBRARY_PATH
17677 case $host_os in
17678 freebsd2.*)
17679 shlibpath_overrides_runpath=yes
17681 freebsd3.[01]* | freebsdelf3.[01]*)
17682 shlibpath_overrides_runpath=yes
17683 hardcode_into_libs=yes
17685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17687 shlibpath_overrides_runpath=no
17688 hardcode_into_libs=yes
17690 *) # from 4.6 on, and DragonFly
17691 shlibpath_overrides_runpath=yes
17692 hardcode_into_libs=yes
17694 esac
17697 gnu*)
17698 version_type=linux
17699 need_lib_prefix=no
17700 need_version=no
17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17702 soname_spec='${libname}${release}${shared_ext}$major'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 hardcode_into_libs=yes
17707 haiku*)
17708 version_type=linux
17709 need_lib_prefix=no
17710 need_version=no
17711 dynamic_linker="$host_os runtime_loader"
17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17713 soname_spec='${libname}${release}${shared_ext}$major'
17714 shlibpath_var=LIBRARY_PATH
17715 shlibpath_overrides_runpath=yes
17716 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17717 hardcode_into_libs=yes
17720 hpux9* | hpux10* | hpux11*)
17721 # Give a soname corresponding to the major version so that dld.sl refuses to
17722 # link against other versions.
17723 version_type=sunos
17724 need_lib_prefix=no
17725 need_version=no
17726 case $host_cpu in
17727 ia64*)
17728 shrext_cmds='.so'
17729 hardcode_into_libs=yes
17730 dynamic_linker="$host_os dld.so"
17731 shlibpath_var=LD_LIBRARY_PATH
17732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17734 soname_spec='${libname}${release}${shared_ext}$major'
17735 if test "X$HPUX_IA64_MODE" = X32; then
17736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17737 else
17738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17742 hppa*64*)
17743 shrext_cmds='.sl'
17744 hardcode_into_libs=yes
17745 dynamic_linker="$host_os dld.sl"
17746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17754 shrext_cmds='.sl'
17755 dynamic_linker="$host_os dld.sl"
17756 shlibpath_var=SHLIB_PATH
17757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17759 soname_spec='${libname}${release}${shared_ext}$major'
17761 esac
17762 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17763 postinstall_cmds='chmod 555 $lib'
17764 # or fails outright, so override atomically:
17765 install_override_mode=555
17768 interix[3-9]*)
17769 version_type=linux
17770 need_lib_prefix=no
17771 need_version=no
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 shlibpath_overrides_runpath=no
17777 hardcode_into_libs=yes
17780 irix5* | irix6* | nonstopux*)
17781 case $host_os in
17782 nonstopux*) version_type=nonstopux ;;
17784 if test "$lt_cv_prog_gnu_ld" = yes; then
17785 version_type=linux
17786 else
17787 version_type=irix
17788 fi ;;
17789 esac
17790 need_lib_prefix=no
17791 need_version=no
17792 soname_spec='${libname}${release}${shared_ext}$major'
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17794 case $host_os in
17795 irix5* | nonstopux*)
17796 libsuff= shlibsuff=
17799 case $LD in # libtool.m4 will add one of these switches to LD
17800 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17801 libsuff= shlibsuff= libmagic=32-bit;;
17802 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17803 libsuff=32 shlibsuff=N32 libmagic=N32;;
17804 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17805 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17806 *) libsuff= shlibsuff= libmagic=never-match;;
17807 esac
17809 esac
17810 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17811 shlibpath_overrides_runpath=no
17812 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17813 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17814 hardcode_into_libs=yes
17817 # No shared lib support for Linux oldld, aout, or coff.
17818 linux*oldld* | linux*aout* | linux*coff*)
17819 dynamic_linker=no
17822 # This must be Linux ELF.
17823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17824 version_type=linux
17825 need_lib_prefix=no
17826 need_version=no
17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17828 soname_spec='${libname}${release}${shared_ext}$major'
17829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=no
17833 # Some binutils ld are patched to set DT_RUNPATH
17834 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17835 $as_echo_n "(cached) " >&6
17836 else
17837 lt_cv_shlibpath_overrides_runpath=no
17838 save_LDFLAGS=$LDFLAGS
17839 save_libdir=$libdir
17840 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17841 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h. */
17846 main ()
17850 return 0;
17852 _ACEOF
17853 if ac_fn_c_try_link "$LINENO"; then :
17854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17855 lt_cv_shlibpath_overrides_runpath=yes
17858 rm -f core conftest.err conftest.$ac_objext \
17859 conftest$ac_exeext conftest.$ac_ext
17860 LDFLAGS=$save_LDFLAGS
17861 libdir=$save_libdir
17865 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17867 # This implies no fast_install, which is unacceptable.
17868 # Some rework will be needed to allow for fast_install
17869 # before this can be enabled.
17870 hardcode_into_libs=yes
17872 # Append ld.so.conf contents to the search path
17873 if test -f /etc/ld.so.conf; then
17874 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' ' '`
17875 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17878 # We used to test for /lib/ld.so.1 and disable shared libraries on
17879 # powerpc, because MkLinux only supported shared libraries with the
17880 # GNU dynamic linker. Since this was broken with cross compilers,
17881 # most powerpc-linux boxes support dynamic linking these days and
17882 # people can always --disable-shared, the test was removed, and we
17883 # assume the GNU/Linux dynamic linker is in use.
17884 dynamic_linker='GNU/Linux ld.so'
17887 netbsd*)
17888 version_type=sunos
17889 need_lib_prefix=no
17890 need_version=no
17891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17894 dynamic_linker='NetBSD (a.out) ld.so'
17895 else
17896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17897 soname_spec='${libname}${release}${shared_ext}$major'
17898 dynamic_linker='NetBSD ld.elf_so'
17900 shlibpath_var=LD_LIBRARY_PATH
17901 shlibpath_overrides_runpath=yes
17902 hardcode_into_libs=yes
17905 newsos6)
17906 version_type=linux
17907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17908 shlibpath_var=LD_LIBRARY_PATH
17909 shlibpath_overrides_runpath=yes
17912 *nto* | *qnx*)
17913 version_type=qnx
17914 need_lib_prefix=no
17915 need_version=no
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917 soname_spec='${libname}${release}${shared_ext}$major'
17918 shlibpath_var=LD_LIBRARY_PATH
17919 shlibpath_overrides_runpath=no
17920 hardcode_into_libs=yes
17921 dynamic_linker='ldqnx.so'
17924 openbsd*)
17925 version_type=sunos
17926 sys_lib_dlsearch_path_spec="/usr/lib"
17927 need_lib_prefix=no
17928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17929 case $host_os in
17930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17931 *) need_version=no ;;
17932 esac
17933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17937 case $host_os in
17938 openbsd2.[89] | openbsd2.[89].*)
17939 shlibpath_overrides_runpath=no
17942 shlibpath_overrides_runpath=yes
17944 esac
17945 else
17946 shlibpath_overrides_runpath=yes
17950 os2*)
17951 libname_spec='$name'
17952 shrext_cmds=".dll"
17953 need_lib_prefix=no
17954 library_names_spec='$libname${shared_ext} $libname.a'
17955 dynamic_linker='OS/2 ld.exe'
17956 shlibpath_var=LIBPATH
17959 osf3* | osf4* | osf5*)
17960 version_type=osf
17961 need_lib_prefix=no
17962 need_version=no
17963 soname_spec='${libname}${release}${shared_ext}$major'
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17970 rdos*)
17971 dynamic_linker=no
17974 solaris*)
17975 version_type=linux
17976 need_lib_prefix=no
17977 need_version=no
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17979 soname_spec='${libname}${release}${shared_ext}$major'
17980 shlibpath_var=LD_LIBRARY_PATH
17981 shlibpath_overrides_runpath=yes
17982 hardcode_into_libs=yes
17983 # ldd complains unless libraries are executable
17984 postinstall_cmds='chmod +x $lib'
17987 sunos4*)
17988 version_type=sunos
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17990 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 shlibpath_overrides_runpath=yes
17993 if test "$with_gnu_ld" = yes; then
17994 need_lib_prefix=no
17996 need_version=yes
17999 sysv4 | sysv4.3*)
18000 version_type=linux
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 shlibpath_var=LD_LIBRARY_PATH
18004 case $host_vendor in
18005 sni)
18006 shlibpath_overrides_runpath=no
18007 need_lib_prefix=no
18008 runpath_var=LD_RUN_PATH
18010 siemens)
18011 need_lib_prefix=no
18013 motorola)
18014 need_lib_prefix=no
18015 need_version=no
18016 shlibpath_overrides_runpath=no
18017 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18019 esac
18022 sysv4*MP*)
18023 if test -d /usr/nec ;then
18024 version_type=linux
18025 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18026 soname_spec='$libname${shared_ext}.$major'
18027 shlibpath_var=LD_LIBRARY_PATH
18031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18032 version_type=freebsd-elf
18033 need_lib_prefix=no
18034 need_version=no
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18036 soname_spec='${libname}${release}${shared_ext}$major'
18037 shlibpath_var=LD_LIBRARY_PATH
18038 shlibpath_overrides_runpath=yes
18039 hardcode_into_libs=yes
18040 if test "$with_gnu_ld" = yes; then
18041 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18042 else
18043 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18044 case $host_os in
18045 sco3.2v5*)
18046 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18048 esac
18050 sys_lib_dlsearch_path_spec='/usr/lib'
18053 tpf*)
18054 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18055 version_type=linux
18056 need_lib_prefix=no
18057 need_version=no
18058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18059 shlibpath_var=LD_LIBRARY_PATH
18060 shlibpath_overrides_runpath=no
18061 hardcode_into_libs=yes
18064 uts4*)
18065 version_type=linux
18066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18067 soname_spec='${libname}${release}${shared_ext}$major'
18068 shlibpath_var=LD_LIBRARY_PATH
18072 dynamic_linker=no
18074 esac
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18076 $as_echo "$dynamic_linker" >&6; }
18077 test "$dynamic_linker" = no && can_build_shared=no
18079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18080 if test "$GCC" = yes; then
18081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18084 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18085 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18087 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18088 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18183 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18184 hardcode_action=
18185 if test -n "$hardcode_libdir_flag_spec" ||
18186 test -n "$runpath_var" ||
18187 test "X$hardcode_automatic" = "Xyes" ; then
18189 # We can hardcode non-existent directories.
18190 if test "$hardcode_direct" != no &&
18191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18192 # have to relink, otherwise we might link with an installed library
18193 # when we should be linking with a yet-to-be-installed one
18194 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18195 test "$hardcode_minus_L" != no; then
18196 # Linking always hardcodes the temporary library directory.
18197 hardcode_action=relink
18198 else
18199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18200 hardcode_action=immediate
18202 else
18203 # We cannot hardcode anything, or else we can only hardcode existing
18204 # directories.
18205 hardcode_action=unsupported
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18208 $as_echo "$hardcode_action" >&6; }
18210 if test "$hardcode_action" = relink ||
18211 test "$inherit_rpath" = yes; then
18212 # Fast installation is not supported
18213 enable_fast_install=no
18214 elif test "$shlibpath_overrides_runpath" = yes ||
18215 test "$enable_shared" = no; then
18216 # Fast installation is not necessary
18217 enable_fast_install=needless
18225 if test "x$enable_dlopen" != xyes; then
18226 enable_dlopen=unknown
18227 enable_dlopen_self=unknown
18228 enable_dlopen_self_static=unknown
18229 else
18230 lt_cv_dlopen=no
18231 lt_cv_dlopen_libs=
18233 case $host_os in
18234 beos*)
18235 lt_cv_dlopen="load_add_on"
18236 lt_cv_dlopen_libs=
18237 lt_cv_dlopen_self=yes
18240 mingw* | pw32* | cegcc*)
18241 lt_cv_dlopen="LoadLibrary"
18242 lt_cv_dlopen_libs=
18245 cygwin*)
18246 lt_cv_dlopen="dlopen"
18247 lt_cv_dlopen_libs=
18250 darwin*)
18251 # if libdl is installed we need to link against it
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18255 $as_echo_n "(cached) " >&6
18256 else
18257 ac_check_lib_save_LIBS=$LIBS
18258 LIBS="-ldl $LIBS"
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18262 /* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
18265 #ifdef __cplusplus
18266 extern "C"
18267 #endif
18268 char dlopen ();
18270 main ()
18272 return dlopen ();
18274 return 0;
18276 _ACEOF
18277 if ac_fn_c_try_link "$LINENO"; then :
18278 ac_cv_lib_dl_dlopen=yes
18279 else
18280 ac_cv_lib_dl_dlopen=no
18282 rm -f core conftest.err conftest.$ac_objext \
18283 conftest$ac_exeext conftest.$ac_ext
18284 LIBS=$ac_check_lib_save_LIBS
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18288 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18290 else
18292 lt_cv_dlopen="dyld"
18293 lt_cv_dlopen_libs=
18294 lt_cv_dlopen_self=yes
18301 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18302 if test "x$ac_cv_func_shl_load" = x""yes; then :
18303 lt_cv_dlopen="shl_load"
18304 else
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18306 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18308 $as_echo_n "(cached) " >&6
18309 else
18310 ac_check_lib_save_LIBS=$LIBS
18311 LIBS="-ldld $LIBS"
18312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313 /* end confdefs.h. */
18315 /* Override any GCC internal prototype to avoid an error.
18316 Use char because int might match the return type of a GCC
18317 builtin and then its argument prototype would still apply. */
18318 #ifdef __cplusplus
18319 extern "C"
18320 #endif
18321 char shl_load ();
18323 main ()
18325 return shl_load ();
18327 return 0;
18329 _ACEOF
18330 if ac_fn_c_try_link "$LINENO"; then :
18331 ac_cv_lib_dld_shl_load=yes
18332 else
18333 ac_cv_lib_dld_shl_load=no
18335 rm -f core conftest.err conftest.$ac_objext \
18336 conftest$ac_exeext conftest.$ac_ext
18337 LIBS=$ac_check_lib_save_LIBS
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18340 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18341 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18342 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18343 else
18344 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18345 if test "x$ac_cv_func_dlopen" = x""yes; then :
18346 lt_cv_dlopen="dlopen"
18347 else
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18351 $as_echo_n "(cached) " >&6
18352 else
18353 ac_check_lib_save_LIBS=$LIBS
18354 LIBS="-ldl $LIBS"
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18358 /* Override any GCC internal prototype to avoid an error.
18359 Use char because int might match the return type of a GCC
18360 builtin and then its argument prototype would still apply. */
18361 #ifdef __cplusplus
18362 extern "C"
18363 #endif
18364 char dlopen ();
18366 main ()
18368 return dlopen ();
18370 return 0;
18372 _ACEOF
18373 if ac_fn_c_try_link "$LINENO"; then :
18374 ac_cv_lib_dl_dlopen=yes
18375 else
18376 ac_cv_lib_dl_dlopen=no
18378 rm -f core conftest.err conftest.$ac_objext \
18379 conftest$ac_exeext conftest.$ac_ext
18380 LIBS=$ac_check_lib_save_LIBS
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18384 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18386 else
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18388 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18389 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18390 $as_echo_n "(cached) " >&6
18391 else
18392 ac_check_lib_save_LIBS=$LIBS
18393 LIBS="-lsvld $LIBS"
18394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395 /* end confdefs.h. */
18397 /* Override any GCC internal prototype to avoid an error.
18398 Use char because int might match the return type of a GCC
18399 builtin and then its argument prototype would still apply. */
18400 #ifdef __cplusplus
18401 extern "C"
18402 #endif
18403 char dlopen ();
18405 main ()
18407 return dlopen ();
18409 return 0;
18411 _ACEOF
18412 if ac_fn_c_try_link "$LINENO"; then :
18413 ac_cv_lib_svld_dlopen=yes
18414 else
18415 ac_cv_lib_svld_dlopen=no
18417 rm -f core conftest.err conftest.$ac_objext \
18418 conftest$ac_exeext conftest.$ac_ext
18419 LIBS=$ac_check_lib_save_LIBS
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18422 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18423 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18425 else
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18427 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18428 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18429 $as_echo_n "(cached) " >&6
18430 else
18431 ac_check_lib_save_LIBS=$LIBS
18432 LIBS="-ldld $LIBS"
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18439 #ifdef __cplusplus
18440 extern "C"
18441 #endif
18442 char dld_link ();
18444 main ()
18446 return dld_link ();
18448 return 0;
18450 _ACEOF
18451 if ac_fn_c_try_link "$LINENO"; then :
18452 ac_cv_lib_dld_dld_link=yes
18453 else
18454 ac_cv_lib_dld_dld_link=no
18456 rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458 LIBS=$ac_check_lib_save_LIBS
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18461 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18462 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18482 esac
18484 if test "x$lt_cv_dlopen" != xno; then
18485 enable_dlopen=yes
18486 else
18487 enable_dlopen=no
18490 case $lt_cv_dlopen in
18491 dlopen)
18492 save_CPPFLAGS="$CPPFLAGS"
18493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18495 save_LDFLAGS="$LDFLAGS"
18496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18498 save_LIBS="$LIBS"
18499 LIBS="$lt_cv_dlopen_libs $LIBS"
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18502 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18503 if test "${lt_cv_dlopen_self+set}" = set; then :
18504 $as_echo_n "(cached) " >&6
18505 else
18506 if test "$cross_compiling" = yes; then :
18507 lt_cv_dlopen_self=cross
18508 else
18509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18510 lt_status=$lt_dlunknown
18511 cat > conftest.$ac_ext <<_LT_EOF
18512 #line 18512 "configure"
18513 #include "confdefs.h"
18515 #if HAVE_DLFCN_H
18516 #include <dlfcn.h>
18517 #endif
18519 #include <stdio.h>
18521 #ifdef RTLD_GLOBAL
18522 # define LT_DLGLOBAL RTLD_GLOBAL
18523 #else
18524 # ifdef DL_GLOBAL
18525 # define LT_DLGLOBAL DL_GLOBAL
18526 # else
18527 # define LT_DLGLOBAL 0
18528 # endif
18529 #endif
18531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18532 find out it does not work in some platform. */
18533 #ifndef LT_DLLAZY_OR_NOW
18534 # ifdef RTLD_LAZY
18535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18536 # else
18537 # ifdef DL_LAZY
18538 # define LT_DLLAZY_OR_NOW DL_LAZY
18539 # else
18540 # ifdef RTLD_NOW
18541 # define LT_DLLAZY_OR_NOW RTLD_NOW
18542 # else
18543 # ifdef DL_NOW
18544 # define LT_DLLAZY_OR_NOW DL_NOW
18545 # else
18546 # define LT_DLLAZY_OR_NOW 0
18547 # endif
18548 # endif
18549 # endif
18550 # endif
18551 #endif
18553 /* When -fvisbility=hidden is used, assume the code has been annotated
18554 correspondingly for the symbols needed. */
18555 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18556 void fnord () __attribute__((visibility("default")));
18557 #endif
18559 void fnord () { int i=42; }
18560 int main ()
18562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18563 int status = $lt_dlunknown;
18565 if (self)
18567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18568 else
18570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18571 else puts (dlerror ());
18573 /* dlclose (self); */
18575 else
18576 puts (dlerror ());
18578 return status;
18580 _LT_EOF
18581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18582 (eval $ac_link) 2>&5
18583 ac_status=$?
18584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18586 (./conftest; exit; ) >&5 2>/dev/null
18587 lt_status=$?
18588 case x$lt_status in
18589 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18590 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18591 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18592 esac
18593 else :
18594 # compilation failed
18595 lt_cv_dlopen_self=no
18598 rm -fr conftest*
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18603 $as_echo "$lt_cv_dlopen_self" >&6; }
18605 if test "x$lt_cv_dlopen_self" = xyes; then
18606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18608 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18609 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18611 else
18612 if test "$cross_compiling" = yes; then :
18613 lt_cv_dlopen_self_static=cross
18614 else
18615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18616 lt_status=$lt_dlunknown
18617 cat > conftest.$ac_ext <<_LT_EOF
18618 #line 18618 "configure"
18619 #include "confdefs.h"
18621 #if HAVE_DLFCN_H
18622 #include <dlfcn.h>
18623 #endif
18625 #include <stdio.h>
18627 #ifdef RTLD_GLOBAL
18628 # define LT_DLGLOBAL RTLD_GLOBAL
18629 #else
18630 # ifdef DL_GLOBAL
18631 # define LT_DLGLOBAL DL_GLOBAL
18632 # else
18633 # define LT_DLGLOBAL 0
18634 # endif
18635 #endif
18637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18638 find out it does not work in some platform. */
18639 #ifndef LT_DLLAZY_OR_NOW
18640 # ifdef RTLD_LAZY
18641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18642 # else
18643 # ifdef DL_LAZY
18644 # define LT_DLLAZY_OR_NOW DL_LAZY
18645 # else
18646 # ifdef RTLD_NOW
18647 # define LT_DLLAZY_OR_NOW RTLD_NOW
18648 # else
18649 # ifdef DL_NOW
18650 # define LT_DLLAZY_OR_NOW DL_NOW
18651 # else
18652 # define LT_DLLAZY_OR_NOW 0
18653 # endif
18654 # endif
18655 # endif
18656 # endif
18657 #endif
18659 /* When -fvisbility=hidden is used, assume the code has been annotated
18660 correspondingly for the symbols needed. */
18661 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18662 void fnord () __attribute__((visibility("default")));
18663 #endif
18665 void fnord () { int i=42; }
18666 int main ()
18668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18669 int status = $lt_dlunknown;
18671 if (self)
18673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18674 else
18676 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18677 else puts (dlerror ());
18679 /* dlclose (self); */
18681 else
18682 puts (dlerror ());
18684 return status;
18686 _LT_EOF
18687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18688 (eval $ac_link) 2>&5
18689 ac_status=$?
18690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18691 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18692 (./conftest; exit; ) >&5 2>/dev/null
18693 lt_status=$?
18694 case x$lt_status in
18695 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18696 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18697 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18698 esac
18699 else :
18700 # compilation failed
18701 lt_cv_dlopen_self_static=no
18704 rm -fr conftest*
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18709 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18712 CPPFLAGS="$save_CPPFLAGS"
18713 LDFLAGS="$save_LDFLAGS"
18714 LIBS="$save_LIBS"
18716 esac
18718 case $lt_cv_dlopen_self in
18719 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18720 *) enable_dlopen_self=unknown ;;
18721 esac
18723 case $lt_cv_dlopen_self_static in
18724 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18725 *) enable_dlopen_self_static=unknown ;;
18726 esac
18745 striplib=
18746 old_striplib=
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18748 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18749 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18750 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18751 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753 $as_echo "yes" >&6; }
18754 else
18755 # FIXME - insert some real tests, host_os isn't really good enough
18756 case $host_os in
18757 darwin*)
18758 if test -n "$STRIP" ; then
18759 striplib="$STRIP -x"
18760 old_striplib="$STRIP -S"
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18762 $as_echo "yes" >&6; }
18763 else
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765 $as_echo "no" >&6; }
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18772 esac
18786 # Report which library types will actually be built
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18788 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18790 $as_echo "$can_build_shared" >&6; }
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18793 $as_echo_n "checking whether to build shared libraries... " >&6; }
18794 test "$can_build_shared" = "no" && enable_shared=no
18796 # On AIX, shared libraries and static libraries use the same namespace, and
18797 # are all built from PIC.
18798 case $host_os in
18799 aix3*)
18800 test "$enable_shared" = yes && enable_static=no
18801 if test -n "$RANLIB"; then
18802 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18803 postinstall_cmds='$RANLIB $lib'
18807 aix[4-9]*)
18808 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18809 test "$enable_shared" = yes && enable_static=no
18812 esac
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18814 $as_echo "$enable_shared" >&6; }
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18817 $as_echo_n "checking whether to build static libraries... " >&6; }
18818 # Make sure either enable_shared or enable_static is yes.
18819 test "$enable_shared" = yes || enable_static=yes
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18821 $as_echo "$enable_static" >&6; }
18827 ac_ext=cpp
18828 ac_cpp='$CXXCPP $CPPFLAGS'
18829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18833 CC="$lt_save_CC"
18835 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18836 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18837 (test "X$CXX" != "Xg++"))) ; then
18838 ac_ext=cpp
18839 ac_cpp='$CXXCPP $CPPFLAGS'
18840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18844 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18845 if test -z "$CXXCPP"; then
18846 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18847 $as_echo_n "(cached) " >&6
18848 else
18849 # Double quotes because CXXCPP needs to be expanded
18850 for CXXCPP in "$CXX -E" "/lib/cpp"
18852 ac_preproc_ok=false
18853 for ac_cxx_preproc_warn_flag in '' yes
18855 # Use a header file that comes with gcc, so configuring glibc
18856 # with a fresh cross-compiler works.
18857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18858 # <limits.h> exists even on freestanding compilers.
18859 # On the NeXT, cc -E runs the code through the compiler's parser,
18860 # not just through cpp. "Syntax error" is here to catch this case.
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863 #ifdef __STDC__
18864 # include <limits.h>
18865 #else
18866 # include <assert.h>
18867 #endif
18868 Syntax error
18869 _ACEOF
18870 if ac_fn_cxx_try_cpp "$LINENO"; then :
18872 else
18873 # Broken: fails on valid input.
18874 continue
18876 rm -f conftest.err conftest.$ac_ext
18878 # OK, works on sane cases. Now check whether nonexistent headers
18879 # can be detected and how.
18880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18882 #include <ac_nonexistent.h>
18883 _ACEOF
18884 if ac_fn_cxx_try_cpp "$LINENO"; then :
18885 # Broken: success on invalid input.
18886 continue
18887 else
18888 # Passes both tests.
18889 ac_preproc_ok=:
18890 break
18892 rm -f conftest.err conftest.$ac_ext
18894 done
18895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18896 rm -f conftest.err conftest.$ac_ext
18897 if $ac_preproc_ok; then :
18898 break
18901 done
18902 ac_cv_prog_CXXCPP=$CXXCPP
18905 CXXCPP=$ac_cv_prog_CXXCPP
18906 else
18907 ac_cv_prog_CXXCPP=$CXXCPP
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18910 $as_echo "$CXXCPP" >&6; }
18911 ac_preproc_ok=false
18912 for ac_cxx_preproc_warn_flag in '' yes
18914 # Use a header file that comes with gcc, so configuring glibc
18915 # with a fresh cross-compiler works.
18916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18917 # <limits.h> exists even on freestanding compilers.
18918 # On the NeXT, cc -E runs the code through the compiler's parser,
18919 # not just through cpp. "Syntax error" is here to catch this case.
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18922 #ifdef __STDC__
18923 # include <limits.h>
18924 #else
18925 # include <assert.h>
18926 #endif
18927 Syntax error
18928 _ACEOF
18929 if ac_fn_cxx_try_cpp "$LINENO"; then :
18931 else
18932 # Broken: fails on valid input.
18933 continue
18935 rm -f conftest.err conftest.$ac_ext
18937 # OK, works on sane cases. Now check whether nonexistent headers
18938 # can be detected and how.
18939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h. */
18941 #include <ac_nonexistent.h>
18942 _ACEOF
18943 if ac_fn_cxx_try_cpp "$LINENO"; then :
18944 # Broken: success on invalid input.
18945 continue
18946 else
18947 # Passes both tests.
18948 ac_preproc_ok=:
18949 break
18951 rm -f conftest.err conftest.$ac_ext
18953 done
18954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18955 rm -f conftest.err conftest.$ac_ext
18956 if $ac_preproc_ok; then :
18958 else
18959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18961 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18962 See \`config.log' for more details." "$LINENO" 5; }
18965 ac_ext=cpp
18966 ac_cpp='$CXXCPP $CPPFLAGS'
18967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18971 else
18972 _lt_caught_CXX_error=yes
18975 ac_ext=cpp
18976 ac_cpp='$CXXCPP $CPPFLAGS'
18977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18981 archive_cmds_need_lc_CXX=no
18982 allow_undefined_flag_CXX=
18983 always_export_symbols_CXX=no
18984 archive_expsym_cmds_CXX=
18985 compiler_needs_object_CXX=no
18986 export_dynamic_flag_spec_CXX=
18987 hardcode_direct_CXX=no
18988 hardcode_direct_absolute_CXX=no
18989 hardcode_libdir_flag_spec_CXX=
18990 hardcode_libdir_flag_spec_ld_CXX=
18991 hardcode_libdir_separator_CXX=
18992 hardcode_minus_L_CXX=no
18993 hardcode_shlibpath_var_CXX=unsupported
18994 hardcode_automatic_CXX=no
18995 inherit_rpath_CXX=no
18996 module_cmds_CXX=
18997 module_expsym_cmds_CXX=
18998 link_all_deplibs_CXX=unknown
18999 old_archive_cmds_CXX=$old_archive_cmds
19000 reload_flag_CXX=$reload_flag
19001 reload_cmds_CXX=$reload_cmds
19002 no_undefined_flag_CXX=
19003 whole_archive_flag_spec_CXX=
19004 enable_shared_with_static_runtimes_CXX=no
19006 # Source file extension for C++ test sources.
19007 ac_ext=cpp
19009 # Object file extension for compiled C++ test sources.
19010 objext=o
19011 objext_CXX=$objext
19013 # No sense in running all these tests if we already determined that
19014 # the CXX compiler isn't working. Some variables (like enable_shared)
19015 # are currently assumed to apply to all compilers on this platform,
19016 # and will be corrupted by setting them based on a non-working compiler.
19017 if test "$_lt_caught_CXX_error" != yes; then
19018 # Code to be used in simple compile tests
19019 lt_simple_compile_test_code="int some_variable = 0;"
19021 # Code to be used in simple link tests
19022 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19024 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19031 # If no C compiler was specified, use CC.
19032 LTCC=${LTCC-"$CC"}
19034 # If no C compiler flags were specified, use CFLAGS.
19035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19037 # Allow CC to be a program name with arguments.
19038 compiler=$CC
19041 # save warnings/boilerplate of simple test code
19042 ac_outfile=conftest.$ac_objext
19043 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19045 _lt_compiler_boilerplate=`cat conftest.err`
19046 $RM conftest*
19048 ac_outfile=conftest.$ac_objext
19049 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19051 _lt_linker_boilerplate=`cat conftest.err`
19052 $RM -r conftest*
19055 # Allow CC to be a program name with arguments.
19056 lt_save_CC=$CC
19057 lt_save_LD=$LD
19058 lt_save_GCC=$GCC
19059 GCC=$GXX
19060 lt_save_with_gnu_ld=$with_gnu_ld
19061 lt_save_path_LD=$lt_cv_path_LD
19062 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19063 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19064 else
19065 $as_unset lt_cv_prog_gnu_ld
19067 if test -n "${lt_cv_path_LDCXX+set}"; then
19068 lt_cv_path_LD=$lt_cv_path_LDCXX
19069 else
19070 $as_unset lt_cv_path_LD
19072 test -z "${LDCXX+set}" || LD=$LDCXX
19073 CC=${CXX-"c++"}
19074 compiler=$CC
19075 compiler_CXX=$CC
19076 for cc_temp in $compiler""; do
19077 case $cc_temp in
19078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19080 \-*) ;;
19081 *) break;;
19082 esac
19083 done
19084 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19087 if test -n "$compiler"; then
19088 # We don't want -fno-exception when compiling C++ code, so set the
19089 # no_builtin_flag separately
19090 if test "$GXX" = yes; then
19091 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19092 else
19093 lt_prog_compiler_no_builtin_flag_CXX=
19096 if test "$GXX" = yes; then
19097 # Set up default GNU C++ configuration
19101 # Check whether --with-gnu-ld was given.
19102 if test "${with_gnu_ld+set}" = set; then :
19103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19104 else
19105 with_gnu_ld=no
19108 ac_prog=ld
19109 if test "$GCC" = yes; then
19110 # Check if gcc -print-prog-name=ld gives a path.
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19112 $as_echo_n "checking for ld used by $CC... " >&6; }
19113 case $host in
19114 *-*-mingw*)
19115 # gcc leaves a trailing carriage return which upsets mingw
19116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19119 esac
19120 case $ac_prog in
19121 # Accept absolute paths.
19122 [\\/]* | ?:[\\/]*)
19123 re_direlt='/[^/][^/]*/\.\./'
19124 # Canonicalize the pathname of ld
19125 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19126 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19127 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19128 done
19129 test -z "$LD" && LD="$ac_prog"
19132 # If it fails, then pretend we aren't using GCC.
19133 ac_prog=ld
19136 # If it is relative, then search for the first ld in PATH.
19137 with_gnu_ld=unknown
19139 esac
19140 elif test "$with_gnu_ld" = yes; then
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19142 $as_echo_n "checking for GNU ld... " >&6; }
19143 else
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19145 $as_echo_n "checking for non-GNU ld... " >&6; }
19147 if test "${lt_cv_path_LD+set}" = set; then :
19148 $as_echo_n "(cached) " >&6
19149 else
19150 if test -z "$LD"; then
19151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19152 for ac_dir in $PATH; do
19153 IFS="$lt_save_ifs"
19154 test -z "$ac_dir" && ac_dir=.
19155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19156 lt_cv_path_LD="$ac_dir/$ac_prog"
19157 # Check to see if the program is GNU ld. I'd rather use --version,
19158 # but apparently some variants of GNU ld only accept -v.
19159 # Break only if it was the GNU/non-GNU ld that we prefer.
19160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19161 *GNU* | *'with BFD'*)
19162 test "$with_gnu_ld" != no && break
19165 test "$with_gnu_ld" != yes && break
19167 esac
19169 done
19170 IFS="$lt_save_ifs"
19171 else
19172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19176 LD="$lt_cv_path_LD"
19177 if test -n "$LD"; then
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19179 $as_echo "$LD" >&6; }
19180 else
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182 $as_echo "no" >&6; }
19184 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19187 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19188 $as_echo_n "(cached) " >&6
19189 else
19190 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19191 case `$LD -v 2>&1 </dev/null` in
19192 *GNU* | *'with BFD'*)
19193 lt_cv_prog_gnu_ld=yes
19196 lt_cv_prog_gnu_ld=no
19198 esac
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19201 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19202 with_gnu_ld=$lt_cv_prog_gnu_ld
19210 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19211 # archiving commands below assume that GNU ld is being used.
19212 if test "$with_gnu_ld" = yes; then
19213 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19214 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'
19216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19217 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19219 # If archive_cmds runs LD, not CC, wlarc should be empty
19220 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19221 # investigate it a little bit more. (MM)
19222 wlarc='${wl}'
19224 # ancient GNU ld didn't support --whole-archive et. al.
19225 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19226 $GREP 'no-whole-archive' > /dev/null; then
19227 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19228 else
19229 whole_archive_flag_spec_CXX=
19231 else
19232 with_gnu_ld=no
19233 wlarc=
19235 # A generic and very simple default shared library creation
19236 # command for GNU C++ for the case where it uses the native
19237 # linker, instead of GNU ld. If possible, this setting should
19238 # overridden to take advantage of the native linker features on
19239 # the platform it is being used on.
19240 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19243 # Commands to make compiler produce verbose output that lists
19244 # what "hidden" libraries, object files and flags are used when
19245 # linking a shared library.
19246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19248 else
19249 GXX=no
19250 with_gnu_ld=no
19251 wlarc=
19254 # PORTME: fill in a description of your system's C++ link characteristics
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19256 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19257 ld_shlibs_CXX=yes
19258 case $host_os in
19259 aix3*)
19260 # FIXME: insert proper C++ library support
19261 ld_shlibs_CXX=no
19263 aix[4-9]*)
19264 if test "$host_cpu" = ia64; then
19265 # On IA64, the linker does run time linking by default, so we don't
19266 # have to do anything special.
19267 aix_use_runtimelinking=no
19268 exp_sym_flag='-Bexport'
19269 no_entry_flag=""
19270 else
19271 aix_use_runtimelinking=no
19273 # Test if we are trying to use run time linking or normal
19274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19275 # need to do runtime linking.
19276 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19277 for ld_flag in $LDFLAGS; do
19278 case $ld_flag in
19279 *-brtl*)
19280 aix_use_runtimelinking=yes
19281 break
19283 esac
19284 done
19286 esac
19288 exp_sym_flag='-bexport'
19289 no_entry_flag='-bnoentry'
19292 # When large executables or shared objects are built, AIX ld can
19293 # have problems creating the table of contents. If linking a library
19294 # or program results in "error TOC overflow" add -mminimal-toc to
19295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19298 archive_cmds_CXX=''
19299 hardcode_direct_CXX=yes
19300 hardcode_direct_absolute_CXX=yes
19301 hardcode_libdir_separator_CXX=':'
19302 link_all_deplibs_CXX=yes
19303 file_list_spec_CXX='${wl}-f,'
19305 if test "$GXX" = yes; then
19306 case $host_os in aix4.[012]|aix4.[012].*)
19307 # We only want to do this on AIX 4.2 and lower, the check
19308 # below for broken collect2 doesn't work under 4.3+
19309 collect2name=`${CC} -print-prog-name=collect2`
19310 if test -f "$collect2name" &&
19311 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19312 then
19313 # We have reworked collect2
19315 else
19316 # We have old collect2
19317 hardcode_direct_CXX=unsupported
19318 # It fails to find uninstalled libraries when the uninstalled
19319 # path is not listed in the libpath. Setting hardcode_minus_L
19320 # to unsupported forces relinking
19321 hardcode_minus_L_CXX=yes
19322 hardcode_libdir_flag_spec_CXX='-L$libdir'
19323 hardcode_libdir_separator_CXX=
19325 esac
19326 shared_flag='-shared'
19327 if test "$aix_use_runtimelinking" = yes; then
19328 shared_flag="$shared_flag "'${wl}-G'
19330 else
19331 # not using gcc
19332 if test "$host_cpu" = ia64; then
19333 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19334 # chokes on -Wl,-G. The following line is correct:
19335 shared_flag='-G'
19336 else
19337 if test "$aix_use_runtimelinking" = yes; then
19338 shared_flag='${wl}-G'
19339 else
19340 shared_flag='${wl}-bM:SRE'
19345 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19346 # It seems that -bexpall does not export symbols beginning with
19347 # underscore (_), so it is better to generate a list of symbols to
19348 # export.
19349 always_export_symbols_CXX=yes
19350 if test "$aix_use_runtimelinking" = yes; then
19351 # Warning - without using the other runtime loading flags (-brtl),
19352 # -berok will link without error, but may produce a broken library.
19353 allow_undefined_flag_CXX='-berok'
19354 # Determine the default libpath from the value encoded in an empty
19355 # executable.
19356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19360 main ()
19364 return 0;
19366 _ACEOF
19367 if ac_fn_cxx_try_link "$LINENO"; then :
19369 lt_aix_libpath_sed='
19370 /Import File Strings/,/^$/ {
19371 /^0/ {
19372 s/^0 *\(.*\)$/\1/
19376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19377 # Check for a 64-bit object if we didn't find anything.
19378 if test -z "$aix_libpath"; then
19379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19382 rm -f core conftest.err conftest.$ac_objext \
19383 conftest$ac_exeext conftest.$ac_ext
19384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19386 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19388 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"
19389 else
19390 if test "$host_cpu" = ia64; then
19391 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19392 allow_undefined_flag_CXX="-z nodefs"
19393 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"
19394 else
19395 # Determine the default libpath from the value encoded in an
19396 # empty executable.
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19401 main ()
19405 return 0;
19407 _ACEOF
19408 if ac_fn_cxx_try_link "$LINENO"; then :
19410 lt_aix_libpath_sed='
19411 /Import File Strings/,/^$/ {
19412 /^0/ {
19413 s/^0 *\(.*\)$/\1/
19417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19418 # Check for a 64-bit object if we didn't find anything.
19419 if test -z "$aix_libpath"; then
19420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19423 rm -f core conftest.err conftest.$ac_objext \
19424 conftest$ac_exeext conftest.$ac_ext
19425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19428 # Warning - without using the other run time loading flags,
19429 # -berok will link without error, but may produce a broken library.
19430 no_undefined_flag_CXX=' ${wl}-bernotok'
19431 allow_undefined_flag_CXX=' ${wl}-berok'
19432 if test "$with_gnu_ld" = yes; then
19433 # We only use this code for GNU lds that support --whole-archive.
19434 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19435 else
19436 # Exported symbols can be pulled into shared objects from archives
19437 whole_archive_flag_spec_CXX='$convenience'
19439 archive_cmds_need_lc_CXX=yes
19440 # This is similar to how AIX traditionally builds its shared
19441 # libraries.
19442 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'
19447 beos*)
19448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19449 allow_undefined_flag_CXX=unsupported
19450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19451 # support --undefined. This deserves some investigation. FIXME
19452 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19453 else
19454 ld_shlibs_CXX=no
19458 chorus*)
19459 case $cc_basename in
19461 # FIXME: insert proper C++ library support
19462 ld_shlibs_CXX=no
19464 esac
19467 cygwin* | mingw* | pw32* | cegcc*)
19468 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19469 # as there is no search path for DLLs.
19470 hardcode_libdir_flag_spec_CXX='-L$libdir'
19471 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19472 allow_undefined_flag_CXX=unsupported
19473 always_export_symbols_CXX=no
19474 enable_shared_with_static_runtimes_CXX=yes
19476 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19477 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'
19478 # If the export-symbols file already is a .def file (1st line
19479 # is EXPORTS), use it as is; otherwise, prepend...
19480 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19481 cp $export_symbols $output_objdir/$soname.def;
19482 else
19483 echo EXPORTS > $output_objdir/$soname.def;
19484 cat $export_symbols >> $output_objdir/$soname.def;
19486 $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'
19487 else
19488 ld_shlibs_CXX=no
19491 darwin* | rhapsody*)
19494 archive_cmds_need_lc_CXX=no
19495 hardcode_direct_CXX=no
19496 hardcode_automatic_CXX=yes
19497 hardcode_shlibpath_var_CXX=unsupported
19498 if test "$lt_cv_ld_force_load" = "yes"; then
19499 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\"`'
19500 else
19501 whole_archive_flag_spec_CXX=''
19503 link_all_deplibs_CXX=yes
19504 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19505 case $cc_basename in
19506 ifort*) _lt_dar_can_shared=yes ;;
19507 *) _lt_dar_can_shared=$GCC ;;
19508 esac
19509 if test "$_lt_dar_can_shared" = "yes"; then
19510 output_verbose_link_cmd=func_echo_all
19511 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}"
19512 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19513 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}"
19514 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}"
19515 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19516 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}"
19517 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}"
19520 else
19521 ld_shlibs_CXX=no
19526 dgux*)
19527 case $cc_basename in
19528 ec++*)
19529 # FIXME: insert proper C++ library support
19530 ld_shlibs_CXX=no
19532 ghcx*)
19533 # Green Hills C++ Compiler
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19538 # FIXME: insert proper C++ library support
19539 ld_shlibs_CXX=no
19541 esac
19544 freebsd2.*)
19545 # C++ shared libraries reported to be fairly broken before
19546 # switch to ELF
19547 ld_shlibs_CXX=no
19550 freebsd-elf*)
19551 archive_cmds_need_lc_CXX=no
19554 freebsd* | dragonfly*)
19555 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19556 # conventions
19557 ld_shlibs_CXX=yes
19560 gnu*)
19563 haiku*)
19564 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19565 link_all_deplibs_CXX=yes
19568 hpux9*)
19569 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19570 hardcode_libdir_separator_CXX=:
19571 export_dynamic_flag_spec_CXX='${wl}-E'
19572 hardcode_direct_CXX=yes
19573 hardcode_minus_L_CXX=yes # Not in the search PATH,
19574 # but as the default
19575 # location of the library.
19577 case $cc_basename in
19578 CC*)
19579 # FIXME: insert proper C++ library support
19580 ld_shlibs_CXX=no
19582 aCC*)
19583 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'
19584 # Commands to make compiler produce verbose output that lists
19585 # what "hidden" libraries, object files and flags are used when
19586 # linking a shared library.
19588 # There doesn't appear to be a way to prevent this compiler from
19589 # explicitly linking system object files so we need to strip them
19590 # from the output so that they don't get included in the library
19591 # dependencies.
19592 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"'
19595 if test "$GXX" = yes; then
19596 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'
19597 else
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19602 esac
19605 hpux10*|hpux11*)
19606 if test $with_gnu_ld = no; then
19607 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19608 hardcode_libdir_separator_CXX=:
19610 case $host_cpu in
19611 hppa*64*|ia64*)
19614 export_dynamic_flag_spec_CXX='${wl}-E'
19616 esac
19618 case $host_cpu in
19619 hppa*64*|ia64*)
19620 hardcode_direct_CXX=no
19621 hardcode_shlibpath_var_CXX=no
19624 hardcode_direct_CXX=yes
19625 hardcode_direct_absolute_CXX=yes
19626 hardcode_minus_L_CXX=yes # Not in the search PATH,
19627 # but as the default
19628 # location of the library.
19630 esac
19632 case $cc_basename in
19633 CC*)
19634 # FIXME: insert proper C++ library support
19635 ld_shlibs_CXX=no
19637 aCC*)
19638 case $host_cpu in
19639 hppa*64*)
19640 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19642 ia64*)
19643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19648 esac
19649 # Commands to make compiler produce verbose output that lists
19650 # what "hidden" libraries, object files and flags are used when
19651 # linking a shared library.
19653 # There doesn't appear to be a way to prevent this compiler from
19654 # explicitly linking system object files so we need to strip them
19655 # from the output so that they don't get included in the library
19656 # dependencies.
19657 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"'
19660 if test "$GXX" = yes; then
19661 if test $with_gnu_ld = no; then
19662 case $host_cpu in
19663 hppa*64*)
19664 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19666 ia64*)
19667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19670 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'
19672 esac
19674 else
19675 # FIXME: insert proper C++ library support
19676 ld_shlibs_CXX=no
19679 esac
19682 interix[3-9]*)
19683 hardcode_direct_CXX=no
19684 hardcode_shlibpath_var_CXX=no
19685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19686 export_dynamic_flag_spec_CXX='${wl}-E'
19687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19688 # Instead, shared libraries are loaded at an image base (0x10000000 by
19689 # default) and relocated if they conflict, which is a slow very memory
19690 # consuming and fragmenting process. To avoid this, we pick a random,
19691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19693 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'
19694 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'
19696 irix5* | irix6*)
19697 case $cc_basename in
19698 CC*)
19699 # SGI C++
19700 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'
19702 # Archives containing C++ object files must be created using
19703 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19704 # necessary to make sure instantiated templates are included
19705 # in the archive.
19706 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19709 if test "$GXX" = yes; then
19710 if test "$with_gnu_ld" = no; then
19711 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'
19712 else
19713 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'
19716 link_all_deplibs_CXX=yes
19718 esac
19719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19720 hardcode_libdir_separator_CXX=:
19721 inherit_rpath_CXX=yes
19724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19725 case $cc_basename in
19726 KCC*)
19727 # Kuck and Associates, Inc. (KAI) C++ Compiler
19729 # KCC will only create a shared library if the output file
19730 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19731 # to its proper name (with version) after linking.
19732 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'
19733 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'
19734 # Commands to make compiler produce verbose output that lists
19735 # what "hidden" libraries, object files and flags are used when
19736 # linking a shared library.
19738 # There doesn't appear to be a way to prevent this compiler from
19739 # explicitly linking system object files so we need to strip them
19740 # from the output so that they don't get included in the library
19741 # dependencies.
19742 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"'
19744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19747 # Archives containing C++ object files must be created using
19748 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19749 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19751 icpc* | ecpc* )
19752 # Intel C++
19753 with_gnu_ld=yes
19754 # version 8.0 and above of icpc choke on multiply defined symbols
19755 # if we add $predep_objects and $postdep_objects, however 7.1 and
19756 # earlier do not add the objects themselves.
19757 case `$CC -V 2>&1` in
19758 *"Version 7."*)
19759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19760 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'
19762 *) # Version 8.0 or newer
19763 tmp_idyn=
19764 case $host_cpu in
19765 ia64*) tmp_idyn=' -i_dynamic';;
19766 esac
19767 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19768 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'
19770 esac
19771 archive_cmds_need_lc_CXX=no
19772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19774 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19776 pgCC* | pgcpp*)
19777 # Portland Group C++ compiler
19778 case `$CC -V` in
19779 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19780 prelink_cmds_CXX='tpldir=Template.dir~
19781 rm -rf $tpldir~
19782 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19783 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19784 old_archive_cmds_CXX='tpldir=Template.dir~
19785 rm -rf $tpldir~
19786 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19787 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19788 $RANLIB $oldlib'
19789 archive_cmds_CXX='tpldir=Template.dir~
19790 rm -rf $tpldir~
19791 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19792 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19793 archive_expsym_cmds_CXX='tpldir=Template.dir~
19794 rm -rf $tpldir~
19795 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19796 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19798 *) # Version 6 and above use weak symbols
19799 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19800 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'
19802 esac
19804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19806 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'
19808 cxx*)
19809 # Compaq C++
19810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19811 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'
19813 runpath_var=LD_RUN_PATH
19814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19815 hardcode_libdir_separator_CXX=:
19817 # Commands to make compiler produce verbose output that lists
19818 # what "hidden" libraries, object files and flags are used when
19819 # linking a shared library.
19821 # There doesn't appear to be a way to prevent this compiler from
19822 # explicitly linking system object files so we need to strip them
19823 # from the output so that they don't get included in the library
19824 # dependencies.
19825 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'
19827 xl* | mpixl* | bgxl*)
19828 # IBM XL 8.0 on PPC, with GNU ld
19829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19831 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19832 if test "x$supports_anon_versioning" = xyes; then
19833 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19835 echo "local: *; };" >> $output_objdir/$libname.ver~
19836 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19840 case `$CC -V 2>&1 | sed 5q` in
19841 *Sun\ C*)
19842 # Sun C++ 5.9
19843 no_undefined_flag_CXX=' -zdefs'
19844 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19845 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'
19846 hardcode_libdir_flag_spec_CXX='-R$libdir'
19847 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'
19848 compiler_needs_object_CXX=yes
19850 # Not sure whether something based on
19851 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19852 # would be better.
19853 output_verbose_link_cmd='func_echo_all'
19855 # Archives containing C++ object files must be created using
19856 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19857 # necessary to make sure instantiated templates are included
19858 # in the archive.
19859 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19861 esac
19863 esac
19866 lynxos*)
19867 # FIXME: insert proper C++ library support
19868 ld_shlibs_CXX=no
19871 m88k*)
19872 # FIXME: insert proper C++ library support
19873 ld_shlibs_CXX=no
19876 mvs*)
19877 case $cc_basename in
19878 cxx*)
19879 # FIXME: insert proper C++ library support
19880 ld_shlibs_CXX=no
19883 # FIXME: insert proper C++ library support
19884 ld_shlibs_CXX=no
19886 esac
19889 netbsd*)
19890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19891 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19892 wlarc=
19893 hardcode_libdir_flag_spec_CXX='-R$libdir'
19894 hardcode_direct_CXX=yes
19895 hardcode_shlibpath_var_CXX=no
19897 # Workaround some broken pre-1.5 toolchains
19898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19901 *nto* | *qnx*)
19902 ld_shlibs_CXX=yes
19905 openbsd2*)
19906 # C++ shared libraries are fairly broken
19907 ld_shlibs_CXX=no
19910 openbsd*)
19911 if test -f /usr/libexec/ld.so; then
19912 hardcode_direct_CXX=yes
19913 hardcode_shlibpath_var_CXX=no
19914 hardcode_direct_absolute_CXX=yes
19915 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19917 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19918 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19919 export_dynamic_flag_spec_CXX='${wl}-E'
19920 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19922 output_verbose_link_cmd=func_echo_all
19923 else
19924 ld_shlibs_CXX=no
19928 osf3* | osf4* | osf5*)
19929 case $cc_basename in
19930 KCC*)
19931 # Kuck and Associates, Inc. (KAI) C++ Compiler
19933 # KCC will only create a shared library if the output file
19934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19935 # to its proper name (with version) after linking.
19936 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'
19938 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19939 hardcode_libdir_separator_CXX=:
19941 # Archives containing C++ object files must be created using
19942 # the KAI C++ compiler.
19943 case $host in
19944 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19945 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19946 esac
19948 RCC*)
19949 # Rational C++ 2.4.1
19950 # FIXME: insert proper C++ library support
19951 ld_shlibs_CXX=no
19953 cxx*)
19954 case $host in
19955 osf3*)
19956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19957 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'
19958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19961 allow_undefined_flag_CXX=' -expect_unresolved \*'
19962 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'
19963 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19964 echo "-hidden">> $lib.exp~
19965 $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~
19966 $RM $lib.exp'
19967 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19969 esac
19971 hardcode_libdir_separator_CXX=:
19973 # Commands to make compiler produce verbose output that lists
19974 # what "hidden" libraries, object files and flags are used when
19975 # linking a shared library.
19977 # There doesn't appear to be a way to prevent this compiler from
19978 # explicitly linking system object files so we need to strip them
19979 # from the output so that they don't get included in the library
19980 # dependencies.
19981 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"'
19984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19985 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19986 case $host in
19987 osf3*)
19988 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'
19991 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'
19993 esac
19995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19996 hardcode_libdir_separator_CXX=:
19998 # Commands to make compiler produce verbose output that lists
19999 # what "hidden" libraries, object files and flags are used when
20000 # linking a shared library.
20001 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20003 else
20004 # FIXME: insert proper C++ library support
20005 ld_shlibs_CXX=no
20008 esac
20011 psos*)
20012 # FIXME: insert proper C++ library support
20013 ld_shlibs_CXX=no
20016 sunos4*)
20017 case $cc_basename in
20018 CC*)
20019 # Sun C++ 4.x
20020 # FIXME: insert proper C++ library support
20021 ld_shlibs_CXX=no
20023 lcc*)
20024 # Lucid
20025 # FIXME: insert proper C++ library support
20026 ld_shlibs_CXX=no
20029 # FIXME: insert proper C++ library support
20030 ld_shlibs_CXX=no
20032 esac
20035 solaris*)
20036 case $cc_basename in
20037 CC*)
20038 # Sun C++ 4.2, 5.x and Centerline C++
20039 archive_cmds_need_lc_CXX=yes
20040 no_undefined_flag_CXX=' -zdefs'
20041 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20042 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20043 $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'
20045 hardcode_libdir_flag_spec_CXX='-R$libdir'
20046 hardcode_shlibpath_var_CXX=no
20047 case $host_os in
20048 solaris2.[0-5] | solaris2.[0-5].*) ;;
20050 # The compiler driver will combine and reorder linker options,
20051 # but understands `-z linker_flag'.
20052 # Supported since Solaris 2.6 (maybe 2.5.1?)
20053 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20055 esac
20056 link_all_deplibs_CXX=yes
20058 output_verbose_link_cmd='func_echo_all'
20060 # Archives containing C++ object files must be created using
20061 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20062 # necessary to make sure instantiated templates are included
20063 # in the archive.
20064 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20066 gcx*)
20067 # Green Hills C++ Compiler
20068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20070 # The C++ compiler must be used to create the archive.
20071 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20074 # GNU C++ compiler with Solaris linker
20075 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20076 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20077 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20078 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20079 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20080 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20082 # Commands to make compiler produce verbose output that lists
20083 # what "hidden" libraries, object files and flags are used when
20084 # linking a shared library.
20085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20086 else
20087 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20088 # platform.
20089 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20091 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20093 # Commands to make compiler produce verbose output that lists
20094 # what "hidden" libraries, object files and flags are used when
20095 # linking a shared library.
20096 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20099 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20100 case $host_os in
20101 solaris2.[0-5] | solaris2.[0-5].*) ;;
20103 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20105 esac
20108 esac
20111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20112 no_undefined_flag_CXX='${wl}-z,text'
20113 archive_cmds_need_lc_CXX=no
20114 hardcode_shlibpath_var_CXX=no
20115 runpath_var='LD_RUN_PATH'
20117 case $cc_basename in
20118 CC*)
20119 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20120 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20123 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20124 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20126 esac
20129 sysv5* | sco3.2v5* | sco5v6*)
20130 # Note: We can NOT use -z defs as we might desire, because we do not
20131 # link with -lc, and that would cause any symbols used from libc to
20132 # always be unresolved, which means just about no library would
20133 # ever link correctly. If we're not using GNU ld we use -z text
20134 # though, which does catch some bad symbols but isn't as heavy-handed
20135 # as -z defs.
20136 no_undefined_flag_CXX='${wl}-z,text'
20137 allow_undefined_flag_CXX='${wl}-z,nodefs'
20138 archive_cmds_need_lc_CXX=no
20139 hardcode_shlibpath_var_CXX=no
20140 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20141 hardcode_libdir_separator_CXX=':'
20142 link_all_deplibs_CXX=yes
20143 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20144 runpath_var='LD_RUN_PATH'
20146 case $cc_basename in
20147 CC*)
20148 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20149 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20150 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20151 '"$old_archive_cmds_CXX"
20152 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20153 '"$reload_cmds_CXX"
20156 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20157 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20159 esac
20162 tandem*)
20163 case $cc_basename in
20164 NCC*)
20165 # NonStop-UX NCC 3.20
20166 # FIXME: insert proper C++ library support
20167 ld_shlibs_CXX=no
20170 # FIXME: insert proper C++ library support
20171 ld_shlibs_CXX=no
20173 esac
20176 vxworks*)
20177 # FIXME: insert proper C++ library support
20178 ld_shlibs_CXX=no
20182 # FIXME: insert proper C++ library support
20183 ld_shlibs_CXX=no
20185 esac
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20188 $as_echo "$ld_shlibs_CXX" >&6; }
20189 test "$ld_shlibs_CXX" = no && can_build_shared=no
20191 GCC_CXX="$GXX"
20192 LD_CXX="$LD"
20194 ## CAVEAT EMPTOR:
20195 ## There is no encapsulation within the following macros, do not change
20196 ## the running order or otherwise move them around unless you know exactly
20197 ## what you are doing...
20198 # Dependencies to place before and after the object being linked:
20199 predep_objects_CXX=
20200 postdep_objects_CXX=
20201 predeps_CXX=
20202 postdeps_CXX=
20203 compiler_lib_search_path_CXX=
20205 cat > conftest.$ac_ext <<_LT_EOF
20206 class Foo
20208 public:
20209 Foo (void) { a = 0; }
20210 private:
20211 int a;
20213 _LT_EOF
20215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20216 (eval $ac_compile) 2>&5
20217 ac_status=$?
20218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20219 test $ac_status = 0; }; then
20220 # Parse the compiler output and extract the necessary
20221 # objects, libraries and library flags.
20223 # Sentinel used to keep track of whether or not we are before
20224 # the conftest object file.
20225 pre_test_object_deps_done=no
20227 for p in `eval "$output_verbose_link_cmd"`; do
20228 case $p in
20230 -L* | -R* | -l*)
20231 # Some compilers place space between "-{L,R}" and the path.
20232 # Remove the space.
20233 if test $p = "-L" ||
20234 test $p = "-R"; then
20235 prev=$p
20236 continue
20237 else
20238 prev=
20241 if test "$pre_test_object_deps_done" = no; then
20242 case $p in
20243 -L* | -R*)
20244 # Internal compiler library paths should come after those
20245 # provided the user. The postdeps already come after the
20246 # user supplied libs so there is no need to process them.
20247 if test -z "$compiler_lib_search_path_CXX"; then
20248 compiler_lib_search_path_CXX="${prev}${p}"
20249 else
20250 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20253 # The "-l" case would never come before the object being
20254 # linked, so don't bother handling this case.
20255 esac
20256 else
20257 if test -z "$postdeps_CXX"; then
20258 postdeps_CXX="${prev}${p}"
20259 else
20260 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20265 *.$objext)
20266 # This assumes that the test object file only shows up
20267 # once in the compiler output.
20268 if test "$p" = "conftest.$objext"; then
20269 pre_test_object_deps_done=yes
20270 continue
20273 if test "$pre_test_object_deps_done" = no; then
20274 if test -z "$predep_objects_CXX"; then
20275 predep_objects_CXX="$p"
20276 else
20277 predep_objects_CXX="$predep_objects_CXX $p"
20279 else
20280 if test -z "$postdep_objects_CXX"; then
20281 postdep_objects_CXX="$p"
20282 else
20283 postdep_objects_CXX="$postdep_objects_CXX $p"
20288 *) ;; # Ignore the rest.
20290 esac
20291 done
20293 # Clean up.
20294 rm -f a.out a.exe
20295 else
20296 echo "libtool.m4: error: problem compiling CXX test program"
20299 $RM -f confest.$objext
20301 # PORTME: override above test on systems where it is broken
20302 case $host_os in
20303 interix[3-9]*)
20304 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20305 # hack all around it, let's just trust "g++" to DTRT.
20306 predep_objects_CXX=
20307 postdep_objects_CXX=
20308 postdeps_CXX=
20311 linux*)
20312 case `$CC -V 2>&1 | sed 5q` in
20313 *Sun\ C*)
20314 # Sun C++ 5.9
20316 # The more standards-conforming stlport4 library is
20317 # incompatible with the Cstd library. Avoid specifying
20318 # it if it's in CXXFLAGS. Ignore libCrun as
20319 # -library=stlport4 depends on it.
20320 case " $CXX $CXXFLAGS " in
20321 *" -library=stlport4 "*)
20322 solaris_use_stlport4=yes
20324 esac
20326 if test "$solaris_use_stlport4" != yes; then
20327 postdeps_CXX='-library=Cstd -library=Crun'
20330 esac
20333 solaris*)
20334 case $cc_basename in
20335 CC*)
20336 # The more standards-conforming stlport4 library is
20337 # incompatible with the Cstd library. Avoid specifying
20338 # it if it's in CXXFLAGS. Ignore libCrun as
20339 # -library=stlport4 depends on it.
20340 case " $CXX $CXXFLAGS " in
20341 *" -library=stlport4 "*)
20342 solaris_use_stlport4=yes
20344 esac
20346 # Adding this requires a known-good setup of shared libraries for
20347 # Sun compiler versions before 5.6, else PIC objects from an old
20348 # archive will be linked into the output, leading to subtle bugs.
20349 if test "$solaris_use_stlport4" != yes; then
20350 postdeps_CXX='-library=Cstd -library=Crun'
20353 esac
20355 esac
20358 case " $postdeps_CXX " in
20359 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20360 esac
20361 compiler_lib_search_dirs_CXX=
20362 if test -n "${compiler_lib_search_path_CXX}"; then
20363 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20396 lt_prog_compiler_wl_CXX=
20397 lt_prog_compiler_pic_CXX=
20398 lt_prog_compiler_static_CXX=
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20401 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20403 # C++ specific cases for pic, static, wl, etc.
20404 if test "$GXX" = yes; then
20405 lt_prog_compiler_wl_CXX='-Wl,'
20406 lt_prog_compiler_static_CXX='-static'
20408 case $host_os in
20409 aix*)
20410 # All AIX code is PIC.
20411 if test "$host_cpu" = ia64; then
20412 # AIX 5 now supports IA64 processor
20413 lt_prog_compiler_static_CXX='-Bstatic'
20415 lt_prog_compiler_pic_CXX='-fPIC'
20418 amigaos*)
20419 case $host_cpu in
20420 powerpc)
20421 # see comment about AmigaOS4 .so support
20422 lt_prog_compiler_pic_CXX='-fPIC'
20424 m68k)
20425 # FIXME: we need at least 68020 code to build shared libraries, but
20426 # adding the `-m68020' flag to GCC prevents building anything better,
20427 # like `-m68040'.
20428 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20430 esac
20433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20434 # PIC is the default for these OSes.
20436 mingw* | cygwin* | os2* | pw32* | cegcc*)
20437 # This hack is so that the source file can tell whether it is being
20438 # built for inclusion in a dll (and should export symbols for example).
20439 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20440 # (--disable-auto-import) libraries
20441 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20443 darwin* | rhapsody*)
20444 # PIC is the default on this platform
20445 # Common symbols not allowed in MH_DYLIB files
20446 lt_prog_compiler_pic_CXX='-fno-common'
20448 *djgpp*)
20449 # DJGPP does not support shared libraries at all
20450 lt_prog_compiler_pic_CXX=
20452 haiku*)
20453 # PIC is the default for Haiku.
20454 # The "-static" flag exists, but is broken.
20455 lt_prog_compiler_static_CXX=
20457 interix[3-9]*)
20458 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20459 # Instead, we relocate shared libraries at runtime.
20461 sysv4*MP*)
20462 if test -d /usr/nec; then
20463 lt_prog_compiler_pic_CXX=-Kconform_pic
20466 hpux*)
20467 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20468 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20469 # sets the default TLS model and affects inlining.
20470 case $host_cpu in
20471 hppa*64*)
20474 lt_prog_compiler_pic_CXX='-fPIC'
20476 esac
20478 *qnx* | *nto*)
20479 # QNX uses GNU C++, but need to define -shared option too, otherwise
20480 # it will coredump.
20481 lt_prog_compiler_pic_CXX='-fPIC -shared'
20484 lt_prog_compiler_pic_CXX='-fPIC'
20486 esac
20487 else
20488 case $host_os in
20489 aix[4-9]*)
20490 # All AIX code is PIC.
20491 if test "$host_cpu" = ia64; then
20492 # AIX 5 now supports IA64 processor
20493 lt_prog_compiler_static_CXX='-Bstatic'
20494 else
20495 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20498 chorus*)
20499 case $cc_basename in
20500 cxch68*)
20501 # Green Hills C++ Compiler
20502 # _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"
20504 esac
20506 dgux*)
20507 case $cc_basename in
20508 ec++*)
20509 lt_prog_compiler_pic_CXX='-KPIC'
20511 ghcx*)
20512 # Green Hills C++ Compiler
20513 lt_prog_compiler_pic_CXX='-pic'
20517 esac
20519 freebsd* | dragonfly*)
20520 # FreeBSD uses GNU C++
20522 hpux9* | hpux10* | hpux11*)
20523 case $cc_basename in
20524 CC*)
20525 lt_prog_compiler_wl_CXX='-Wl,'
20526 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20527 if test "$host_cpu" != ia64; then
20528 lt_prog_compiler_pic_CXX='+Z'
20531 aCC*)
20532 lt_prog_compiler_wl_CXX='-Wl,'
20533 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20534 case $host_cpu in
20535 hppa*64*|ia64*)
20536 # +Z the default
20539 lt_prog_compiler_pic_CXX='+Z'
20541 esac
20545 esac
20547 interix*)
20548 # This is c89, which is MS Visual C++ (no shared libs)
20549 # Anyone wants to do a port?
20551 irix5* | irix6* | nonstopux*)
20552 case $cc_basename in
20553 CC*)
20554 lt_prog_compiler_wl_CXX='-Wl,'
20555 lt_prog_compiler_static_CXX='-non_shared'
20556 # CC pic flag -KPIC is the default.
20560 esac
20562 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20563 case $cc_basename in
20564 KCC*)
20565 # KAI C++ Compiler
20566 lt_prog_compiler_wl_CXX='--backend -Wl,'
20567 lt_prog_compiler_pic_CXX='-fPIC'
20569 ecpc* )
20570 # old Intel C++ for x86_64 which still supported -KPIC.
20571 lt_prog_compiler_wl_CXX='-Wl,'
20572 lt_prog_compiler_pic_CXX='-KPIC'
20573 lt_prog_compiler_static_CXX='-static'
20575 icpc* )
20576 # Intel C++, used to be incompatible with GCC.
20577 # ICC 10 doesn't accept -KPIC any more.
20578 lt_prog_compiler_wl_CXX='-Wl,'
20579 lt_prog_compiler_pic_CXX='-fPIC'
20580 lt_prog_compiler_static_CXX='-static'
20582 pgCC* | pgcpp*)
20583 # Portland Group C++ compiler
20584 lt_prog_compiler_wl_CXX='-Wl,'
20585 lt_prog_compiler_pic_CXX='-fpic'
20586 lt_prog_compiler_static_CXX='-Bstatic'
20588 cxx*)
20589 # Compaq C++
20590 # Make sure the PIC flag is empty. It appears that all Alpha
20591 # Linux and Compaq Tru64 Unix objects are PIC.
20592 lt_prog_compiler_pic_CXX=
20593 lt_prog_compiler_static_CXX='-non_shared'
20595 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20596 # IBM XL 8.0, 9.0 on PPC and BlueGene
20597 lt_prog_compiler_wl_CXX='-Wl,'
20598 lt_prog_compiler_pic_CXX='-qpic'
20599 lt_prog_compiler_static_CXX='-qstaticlink'
20602 case `$CC -V 2>&1 | sed 5q` in
20603 *Sun\ C*)
20604 # Sun C++ 5.9
20605 lt_prog_compiler_pic_CXX='-KPIC'
20606 lt_prog_compiler_static_CXX='-Bstatic'
20607 lt_prog_compiler_wl_CXX='-Qoption ld '
20609 esac
20611 esac
20613 lynxos*)
20615 m88k*)
20617 mvs*)
20618 case $cc_basename in
20619 cxx*)
20620 lt_prog_compiler_pic_CXX='-W c,exportall'
20624 esac
20626 netbsd*)
20628 *qnx* | *nto*)
20629 # QNX uses GNU C++, but need to define -shared option too, otherwise
20630 # it will coredump.
20631 lt_prog_compiler_pic_CXX='-fPIC -shared'
20633 osf3* | osf4* | osf5*)
20634 case $cc_basename in
20635 KCC*)
20636 lt_prog_compiler_wl_CXX='--backend -Wl,'
20638 RCC*)
20639 # Rational C++ 2.4.1
20640 lt_prog_compiler_pic_CXX='-pic'
20642 cxx*)
20643 # Digital/Compaq C++
20644 lt_prog_compiler_wl_CXX='-Wl,'
20645 # Make sure the PIC flag is empty. It appears that all Alpha
20646 # Linux and Compaq Tru64 Unix objects are PIC.
20647 lt_prog_compiler_pic_CXX=
20648 lt_prog_compiler_static_CXX='-non_shared'
20652 esac
20654 psos*)
20656 solaris*)
20657 case $cc_basename in
20658 CC*)
20659 # Sun C++ 4.2, 5.x and Centerline C++
20660 lt_prog_compiler_pic_CXX='-KPIC'
20661 lt_prog_compiler_static_CXX='-Bstatic'
20662 lt_prog_compiler_wl_CXX='-Qoption ld '
20664 gcx*)
20665 # Green Hills C++ Compiler
20666 lt_prog_compiler_pic_CXX='-PIC'
20670 esac
20672 sunos4*)
20673 case $cc_basename in
20674 CC*)
20675 # Sun C++ 4.x
20676 lt_prog_compiler_pic_CXX='-pic'
20677 lt_prog_compiler_static_CXX='-Bstatic'
20679 lcc*)
20680 # Lucid
20681 lt_prog_compiler_pic_CXX='-pic'
20685 esac
20687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20688 case $cc_basename in
20689 CC*)
20690 lt_prog_compiler_wl_CXX='-Wl,'
20691 lt_prog_compiler_pic_CXX='-KPIC'
20692 lt_prog_compiler_static_CXX='-Bstatic'
20694 esac
20696 tandem*)
20697 case $cc_basename in
20698 NCC*)
20699 # NonStop-UX NCC 3.20
20700 lt_prog_compiler_pic_CXX='-KPIC'
20704 esac
20706 vxworks*)
20709 lt_prog_compiler_can_build_shared_CXX=no
20711 esac
20714 case $host_os in
20715 # For platforms which do not support PIC, -DPIC is meaningless:
20716 *djgpp*)
20717 lt_prog_compiler_pic_CXX=
20720 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20722 esac
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20724 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20729 # Check to make sure the PIC flag actually works.
20731 if test -n "$lt_prog_compiler_pic_CXX"; then
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20733 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20734 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20735 $as_echo_n "(cached) " >&6
20736 else
20737 lt_cv_prog_compiler_pic_works_CXX=no
20738 ac_outfile=conftest.$ac_objext
20739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20740 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20741 # Insert the option either (1) after the last *FLAGS variable, or
20742 # (2) before a word containing "conftest.", or (3) at the end.
20743 # Note that $ac_compile itself does not contain backslashes and begins
20744 # with a dollar sign (not a hyphen), so the echo should work correctly.
20745 # The option is referenced via a variable to avoid confusing sed.
20746 lt_compile=`echo "$ac_compile" | $SED \
20747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20749 -e 's:$: $lt_compiler_flag:'`
20750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20751 (eval "$lt_compile" 2>conftest.err)
20752 ac_status=$?
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 if (exit $ac_status) && test -s "$ac_outfile"; then
20756 # The compiler can only warn and ignore the option if not recognized
20757 # So say no if there are warnings other than the usual output.
20758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20761 lt_cv_prog_compiler_pic_works_CXX=yes
20764 $RM conftest*
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20768 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20770 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20771 case $lt_prog_compiler_pic_CXX in
20772 "" | " "*) ;;
20773 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20774 esac
20775 else
20776 lt_prog_compiler_pic_CXX=
20777 lt_prog_compiler_can_build_shared_CXX=no
20785 # Check to make sure the static flag actually works.
20787 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20789 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20790 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20791 $as_echo_n "(cached) " >&6
20792 else
20793 lt_cv_prog_compiler_static_works_CXX=no
20794 save_LDFLAGS="$LDFLAGS"
20795 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20798 # The linker can only warn and ignore the option if not recognized
20799 # So say no if there are warnings
20800 if test -s conftest.err; then
20801 # Append any errors to the config.log.
20802 cat conftest.err 1>&5
20803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20805 if diff conftest.exp conftest.er2 >/dev/null; then
20806 lt_cv_prog_compiler_static_works_CXX=yes
20808 else
20809 lt_cv_prog_compiler_static_works_CXX=yes
20812 $RM -r conftest*
20813 LDFLAGS="$save_LDFLAGS"
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20817 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20819 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20821 else
20822 lt_prog_compiler_static_CXX=
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20829 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20830 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20831 $as_echo_n "(cached) " >&6
20832 else
20833 lt_cv_prog_compiler_c_o_CXX=no
20834 $RM -r conftest 2>/dev/null
20835 mkdir conftest
20836 cd conftest
20837 mkdir out
20838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20840 lt_compiler_flag="-o out/conftest2.$ac_objext"
20841 # Insert the option either (1) after the last *FLAGS variable, or
20842 # (2) before a word containing "conftest.", or (3) at the end.
20843 # Note that $ac_compile itself does not contain backslashes and begins
20844 # with a dollar sign (not a hyphen), so the echo should work correctly.
20845 lt_compile=`echo "$ac_compile" | $SED \
20846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20848 -e 's:$: $lt_compiler_flag:'`
20849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20850 (eval "$lt_compile" 2>out/conftest.err)
20851 ac_status=$?
20852 cat out/conftest.err >&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20855 then
20856 # The compiler can only warn and ignore the option if not recognized
20857 # So say no if there are warnings
20858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20861 lt_cv_prog_compiler_c_o_CXX=yes
20864 chmod u+w . 2>&5
20865 $RM conftest*
20866 # SGI C++ compiler will create directory out/ii_files/ for
20867 # template instantiation
20868 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20869 $RM out/* && rmdir out
20870 cd ..
20871 $RM -r conftest
20872 $RM conftest*
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20876 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20882 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20883 $as_echo_n "(cached) " >&6
20884 else
20885 lt_cv_prog_compiler_c_o_CXX=no
20886 $RM -r conftest 2>/dev/null
20887 mkdir conftest
20888 cd conftest
20889 mkdir out
20890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20892 lt_compiler_flag="-o out/conftest2.$ac_objext"
20893 # Insert the option either (1) after the last *FLAGS variable, or
20894 # (2) before a word containing "conftest.", or (3) at the end.
20895 # Note that $ac_compile itself does not contain backslashes and begins
20896 # with a dollar sign (not a hyphen), so the echo should work correctly.
20897 lt_compile=`echo "$ac_compile" | $SED \
20898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20900 -e 's:$: $lt_compiler_flag:'`
20901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20902 (eval "$lt_compile" 2>out/conftest.err)
20903 ac_status=$?
20904 cat out/conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20907 then
20908 # The compiler can only warn and ignore the option if not recognized
20909 # So say no if there are warnings
20910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20913 lt_cv_prog_compiler_c_o_CXX=yes
20916 chmod u+w . 2>&5
20917 $RM conftest*
20918 # SGI C++ compiler will create directory out/ii_files/ for
20919 # template instantiation
20920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20921 $RM out/* && rmdir out
20922 cd ..
20923 $RM -r conftest
20924 $RM conftest*
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20928 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20933 hard_links="nottested"
20934 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20935 # do not overwrite the value of need_locks provided by the user
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20937 $as_echo_n "checking if we can lock with hard links... " >&6; }
20938 hard_links=yes
20939 $RM conftest*
20940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20941 touch conftest.a
20942 ln conftest.a conftest.b 2>&5 || hard_links=no
20943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20945 $as_echo "$hard_links" >&6; }
20946 if test "$hard_links" = no; then
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20948 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20949 need_locks=warn
20951 else
20952 need_locks=no
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20958 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20960 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20961 case $host_os in
20962 aix[4-9]*)
20963 # If we're using GNU nm, then we don't want the "-C" option.
20964 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20965 # Also, AIX nm treats weak defined symbols like other global defined
20966 # symbols, whereas GNU nm marks them as "W".
20967 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20968 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'
20969 else
20970 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'
20973 pw32*)
20974 export_symbols_cmds_CXX="$ltdll_cmds"
20976 cygwin* | mingw* | cegcc*)
20977 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'
20980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20982 esac
20983 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20986 $as_echo "$ld_shlibs_CXX" >&6; }
20987 test "$ld_shlibs_CXX" = no && can_build_shared=no
20989 with_gnu_ld_CXX=$with_gnu_ld
20997 # Do we need to explicitly link libc?
20999 case "x$archive_cmds_need_lc_CXX" in
21000 x|xyes)
21001 # Assume -lc should be added
21002 archive_cmds_need_lc_CXX=yes
21004 if test "$enable_shared" = yes && test "$GCC" = yes; then
21005 case $archive_cmds_CXX in
21006 *'~'*)
21007 # FIXME: we may have to deal with multi-command sequences.
21009 '$CC '*)
21010 # Test whether the compiler implicitly links with -lc since on some
21011 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21012 # to ld, don't add -lc before -lgcc.
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21014 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21015 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
21016 $as_echo_n "(cached) " >&6
21017 else
21018 $RM conftest*
21019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21022 (eval $ac_compile) 2>&5
21023 ac_status=$?
21024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21025 test $ac_status = 0; } 2>conftest.err; then
21026 soname=conftest
21027 lib=conftest
21028 libobjs=conftest.$ac_objext
21029 deplibs=
21030 wl=$lt_prog_compiler_wl_CXX
21031 pic_flag=$lt_prog_compiler_pic_CXX
21032 compiler_flags=-v
21033 linker_flags=-v
21034 verstring=
21035 output_objdir=.
21036 libname=conftest
21037 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21038 allow_undefined_flag_CXX=
21039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21040 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21041 ac_status=$?
21042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21043 test $ac_status = 0; }
21044 then
21045 lt_cv_archive_cmds_need_lc_CXX=no
21046 else
21047 lt_cv_archive_cmds_need_lc_CXX=yes
21049 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21050 else
21051 cat conftest.err 1>&5
21053 $RM conftest*
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21057 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21058 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21060 esac
21063 esac
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21129 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21131 library_names_spec=
21132 libname_spec='lib$name'
21133 soname_spec=
21134 shrext_cmds=".so"
21135 postinstall_cmds=
21136 postuninstall_cmds=
21137 finish_cmds=
21138 finish_eval=
21139 shlibpath_var=
21140 shlibpath_overrides_runpath=unknown
21141 version_type=none
21142 dynamic_linker="$host_os ld.so"
21143 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21144 need_lib_prefix=unknown
21145 hardcode_into_libs=no
21147 # when you set need_version to no, make sure it does not cause -set_version
21148 # flags to be left without arguments
21149 need_version=unknown
21151 case $host_os in
21152 aix3*)
21153 version_type=linux
21154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21155 shlibpath_var=LIBPATH
21157 # AIX 3 has no versioning support, so we append a major version to the name.
21158 soname_spec='${libname}${release}${shared_ext}$major'
21161 aix[4-9]*)
21162 version_type=linux
21163 need_lib_prefix=no
21164 need_version=no
21165 hardcode_into_libs=yes
21166 if test "$host_cpu" = ia64; then
21167 # AIX 5 supports IA64
21168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21169 shlibpath_var=LD_LIBRARY_PATH
21170 else
21171 # With GCC up to 2.95.x, collect2 would create an import file
21172 # for dependence libraries. The import file would start with
21173 # the line `#! .'. This would cause the generated library to
21174 # depend on `.', always an invalid library. This was fixed in
21175 # development snapshots of GCC prior to 3.0.
21176 case $host_os in
21177 aix4 | aix4.[01] | aix4.[01].*)
21178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21179 echo ' yes '
21180 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21182 else
21183 can_build_shared=no
21186 esac
21187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21188 # soname into executable. Probably we can add versioning support to
21189 # collect2, so additional links can be useful in future.
21190 if test "$aix_use_runtimelinking" = yes; then
21191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21192 # instead of lib<name>.a to let people know that these are not
21193 # typical AIX shared libraries.
21194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21195 else
21196 # We preserve .a as extension for shared libraries through AIX4.2
21197 # and later when we are not doing run time linking.
21198 library_names_spec='${libname}${release}.a $libname.a'
21199 soname_spec='${libname}${release}${shared_ext}$major'
21201 shlibpath_var=LIBPATH
21205 amigaos*)
21206 case $host_cpu in
21207 powerpc)
21208 # Since July 2007 AmigaOS4 officially supports .so libraries.
21209 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21212 m68k)
21213 library_names_spec='$libname.ixlibrary $libname.a'
21214 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21215 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'
21217 esac
21220 beos*)
21221 library_names_spec='${libname}${shared_ext}'
21222 dynamic_linker="$host_os ld.so"
21223 shlibpath_var=LIBRARY_PATH
21226 bsdi[45]*)
21227 version_type=linux
21228 need_version=no
21229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21230 soname_spec='${libname}${release}${shared_ext}$major'
21231 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21232 shlibpath_var=LD_LIBRARY_PATH
21233 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21234 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21235 # the default ld.so.conf also contains /usr/contrib/lib and
21236 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21237 # libtool to hard-code these into programs
21240 cygwin* | mingw* | pw32* | cegcc*)
21241 version_type=windows
21242 shrext_cmds=".dll"
21243 need_version=no
21244 need_lib_prefix=no
21246 case $GCC,$host_os in
21247 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21248 library_names_spec='$libname.dll.a'
21249 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21250 postinstall_cmds='base_file=`basename \${file}`~
21251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21252 dldir=$destdir/`dirname \$dlpath`~
21253 test -d \$dldir || mkdir -p \$dldir~
21254 $install_prog $dir/$dlname \$dldir/$dlname~
21255 chmod a+x \$dldir/$dlname~
21256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21260 dlpath=$dir/\$dldll~
21261 $RM \$dlpath'
21262 shlibpath_overrides_runpath=yes
21264 case $host_os in
21265 cygwin*)
21266 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21267 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21270 mingw* | cegcc*)
21271 # MinGW DLLs use traditional 'lib' prefix
21272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21274 pw32*)
21275 # pw32 DLLs use 'pw' prefix rather than 'lib'
21276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21278 esac
21282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21284 esac
21285 dynamic_linker='Win32 ld.exe'
21286 # FIXME: first we should search . and the directory the executable is in
21287 shlibpath_var=PATH
21290 darwin* | rhapsody*)
21291 dynamic_linker="$host_os dyld"
21292 version_type=darwin
21293 need_lib_prefix=no
21294 need_version=no
21295 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21296 soname_spec='${libname}${release}${major}$shared_ext'
21297 shlibpath_overrides_runpath=yes
21298 shlibpath_var=DYLD_LIBRARY_PATH
21299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21301 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21304 dgux*)
21305 version_type=linux
21306 need_lib_prefix=no
21307 need_version=no
21308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21309 soname_spec='${libname}${release}${shared_ext}$major'
21310 shlibpath_var=LD_LIBRARY_PATH
21313 freebsd* | dragonfly*)
21314 # DragonFly does not have aout. When/if they implement a new
21315 # versioning mechanism, adjust this.
21316 if test -x /usr/bin/objformat; then
21317 objformat=`/usr/bin/objformat`
21318 else
21319 case $host_os in
21320 freebsd[23].*) objformat=aout ;;
21321 *) objformat=elf ;;
21322 esac
21324 version_type=freebsd-$objformat
21325 case $version_type in
21326 freebsd-elf*)
21327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21328 need_version=no
21329 need_lib_prefix=no
21331 freebsd-*)
21332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21333 need_version=yes
21335 esac
21336 shlibpath_var=LD_LIBRARY_PATH
21337 case $host_os in
21338 freebsd2.*)
21339 shlibpath_overrides_runpath=yes
21341 freebsd3.[01]* | freebsdelf3.[01]*)
21342 shlibpath_overrides_runpath=yes
21343 hardcode_into_libs=yes
21345 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21346 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21347 shlibpath_overrides_runpath=no
21348 hardcode_into_libs=yes
21350 *) # from 4.6 on, and DragonFly
21351 shlibpath_overrides_runpath=yes
21352 hardcode_into_libs=yes
21354 esac
21357 gnu*)
21358 version_type=linux
21359 need_lib_prefix=no
21360 need_version=no
21361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21362 soname_spec='${libname}${release}${shared_ext}$major'
21363 shlibpath_var=LD_LIBRARY_PATH
21364 hardcode_into_libs=yes
21367 haiku*)
21368 version_type=linux
21369 need_lib_prefix=no
21370 need_version=no
21371 dynamic_linker="$host_os runtime_loader"
21372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21373 soname_spec='${libname}${release}${shared_ext}$major'
21374 shlibpath_var=LIBRARY_PATH
21375 shlibpath_overrides_runpath=yes
21376 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21377 hardcode_into_libs=yes
21380 hpux9* | hpux10* | hpux11*)
21381 # Give a soname corresponding to the major version so that dld.sl refuses to
21382 # link against other versions.
21383 version_type=sunos
21384 need_lib_prefix=no
21385 need_version=no
21386 case $host_cpu in
21387 ia64*)
21388 shrext_cmds='.so'
21389 hardcode_into_libs=yes
21390 dynamic_linker="$host_os dld.so"
21391 shlibpath_var=LD_LIBRARY_PATH
21392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21394 soname_spec='${libname}${release}${shared_ext}$major'
21395 if test "X$HPUX_IA64_MODE" = X32; then
21396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21397 else
21398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21402 hppa*64*)
21403 shrext_cmds='.sl'
21404 hardcode_into_libs=yes
21405 dynamic_linker="$host_os dld.sl"
21406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21409 soname_spec='${libname}${release}${shared_ext}$major'
21410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21414 shrext_cmds='.sl'
21415 dynamic_linker="$host_os dld.sl"
21416 shlibpath_var=SHLIB_PATH
21417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21419 soname_spec='${libname}${release}${shared_ext}$major'
21421 esac
21422 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21423 postinstall_cmds='chmod 555 $lib'
21424 # or fails outright, so override atomically:
21425 install_override_mode=555
21428 interix[3-9]*)
21429 version_type=linux
21430 need_lib_prefix=no
21431 need_version=no
21432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21433 soname_spec='${libname}${release}${shared_ext}$major'
21434 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21435 shlibpath_var=LD_LIBRARY_PATH
21436 shlibpath_overrides_runpath=no
21437 hardcode_into_libs=yes
21440 irix5* | irix6* | nonstopux*)
21441 case $host_os in
21442 nonstopux*) version_type=nonstopux ;;
21444 if test "$lt_cv_prog_gnu_ld" = yes; then
21445 version_type=linux
21446 else
21447 version_type=irix
21448 fi ;;
21449 esac
21450 need_lib_prefix=no
21451 need_version=no
21452 soname_spec='${libname}${release}${shared_ext}$major'
21453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21454 case $host_os in
21455 irix5* | nonstopux*)
21456 libsuff= shlibsuff=
21459 case $LD in # libtool.m4 will add one of these switches to LD
21460 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21461 libsuff= shlibsuff= libmagic=32-bit;;
21462 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21463 libsuff=32 shlibsuff=N32 libmagic=N32;;
21464 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21465 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21466 *) libsuff= shlibsuff= libmagic=never-match;;
21467 esac
21469 esac
21470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21471 shlibpath_overrides_runpath=no
21472 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21473 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21474 hardcode_into_libs=yes
21477 # No shared lib support for Linux oldld, aout, or coff.
21478 linux*oldld* | linux*aout* | linux*coff*)
21479 dynamic_linker=no
21482 # This must be Linux ELF.
21483 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21484 version_type=linux
21485 need_lib_prefix=no
21486 need_version=no
21487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21488 soname_spec='${libname}${release}${shared_ext}$major'
21489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21490 shlibpath_var=LD_LIBRARY_PATH
21491 shlibpath_overrides_runpath=no
21493 # Some binutils ld are patched to set DT_RUNPATH
21494 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21495 $as_echo_n "(cached) " >&6
21496 else
21497 lt_cv_shlibpath_overrides_runpath=no
21498 save_LDFLAGS=$LDFLAGS
21499 save_libdir=$libdir
21500 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21501 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21503 /* end confdefs.h. */
21506 main ()
21510 return 0;
21512 _ACEOF
21513 if ac_fn_cxx_try_link "$LINENO"; then :
21514 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21515 lt_cv_shlibpath_overrides_runpath=yes
21518 rm -f core conftest.err conftest.$ac_objext \
21519 conftest$ac_exeext conftest.$ac_ext
21520 LDFLAGS=$save_LDFLAGS
21521 libdir=$save_libdir
21525 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21527 # This implies no fast_install, which is unacceptable.
21528 # Some rework will be needed to allow for fast_install
21529 # before this can be enabled.
21530 hardcode_into_libs=yes
21532 # Append ld.so.conf contents to the search path
21533 if test -f /etc/ld.so.conf; then
21534 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' ' '`
21535 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21538 # We used to test for /lib/ld.so.1 and disable shared libraries on
21539 # powerpc, because MkLinux only supported shared libraries with the
21540 # GNU dynamic linker. Since this was broken with cross compilers,
21541 # most powerpc-linux boxes support dynamic linking these days and
21542 # people can always --disable-shared, the test was removed, and we
21543 # assume the GNU/Linux dynamic linker is in use.
21544 dynamic_linker='GNU/Linux ld.so'
21547 netbsd*)
21548 version_type=sunos
21549 need_lib_prefix=no
21550 need_version=no
21551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21554 dynamic_linker='NetBSD (a.out) ld.so'
21555 else
21556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21557 soname_spec='${libname}${release}${shared_ext}$major'
21558 dynamic_linker='NetBSD ld.elf_so'
21560 shlibpath_var=LD_LIBRARY_PATH
21561 shlibpath_overrides_runpath=yes
21562 hardcode_into_libs=yes
21565 newsos6)
21566 version_type=linux
21567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21568 shlibpath_var=LD_LIBRARY_PATH
21569 shlibpath_overrides_runpath=yes
21572 *nto* | *qnx*)
21573 version_type=qnx
21574 need_lib_prefix=no
21575 need_version=no
21576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21577 soname_spec='${libname}${release}${shared_ext}$major'
21578 shlibpath_var=LD_LIBRARY_PATH
21579 shlibpath_overrides_runpath=no
21580 hardcode_into_libs=yes
21581 dynamic_linker='ldqnx.so'
21584 openbsd*)
21585 version_type=sunos
21586 sys_lib_dlsearch_path_spec="/usr/lib"
21587 need_lib_prefix=no
21588 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21589 case $host_os in
21590 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21591 *) need_version=no ;;
21592 esac
21593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21595 shlibpath_var=LD_LIBRARY_PATH
21596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21597 case $host_os in
21598 openbsd2.[89] | openbsd2.[89].*)
21599 shlibpath_overrides_runpath=no
21602 shlibpath_overrides_runpath=yes
21604 esac
21605 else
21606 shlibpath_overrides_runpath=yes
21610 os2*)
21611 libname_spec='$name'
21612 shrext_cmds=".dll"
21613 need_lib_prefix=no
21614 library_names_spec='$libname${shared_ext} $libname.a'
21615 dynamic_linker='OS/2 ld.exe'
21616 shlibpath_var=LIBPATH
21619 osf3* | osf4* | osf5*)
21620 version_type=osf
21621 need_lib_prefix=no
21622 need_version=no
21623 soname_spec='${libname}${release}${shared_ext}$major'
21624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21625 shlibpath_var=LD_LIBRARY_PATH
21626 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21627 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21630 rdos*)
21631 dynamic_linker=no
21634 solaris*)
21635 version_type=linux
21636 need_lib_prefix=no
21637 need_version=no
21638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21639 soname_spec='${libname}${release}${shared_ext}$major'
21640 shlibpath_var=LD_LIBRARY_PATH
21641 shlibpath_overrides_runpath=yes
21642 hardcode_into_libs=yes
21643 # ldd complains unless libraries are executable
21644 postinstall_cmds='chmod +x $lib'
21647 sunos4*)
21648 version_type=sunos
21649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21650 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21651 shlibpath_var=LD_LIBRARY_PATH
21652 shlibpath_overrides_runpath=yes
21653 if test "$with_gnu_ld" = yes; then
21654 need_lib_prefix=no
21656 need_version=yes
21659 sysv4 | sysv4.3*)
21660 version_type=linux
21661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21662 soname_spec='${libname}${release}${shared_ext}$major'
21663 shlibpath_var=LD_LIBRARY_PATH
21664 case $host_vendor in
21665 sni)
21666 shlibpath_overrides_runpath=no
21667 need_lib_prefix=no
21668 runpath_var=LD_RUN_PATH
21670 siemens)
21671 need_lib_prefix=no
21673 motorola)
21674 need_lib_prefix=no
21675 need_version=no
21676 shlibpath_overrides_runpath=no
21677 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21679 esac
21682 sysv4*MP*)
21683 if test -d /usr/nec ;then
21684 version_type=linux
21685 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21686 soname_spec='$libname${shared_ext}.$major'
21687 shlibpath_var=LD_LIBRARY_PATH
21691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21692 version_type=freebsd-elf
21693 need_lib_prefix=no
21694 need_version=no
21695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21696 soname_spec='${libname}${release}${shared_ext}$major'
21697 shlibpath_var=LD_LIBRARY_PATH
21698 shlibpath_overrides_runpath=yes
21699 hardcode_into_libs=yes
21700 if test "$with_gnu_ld" = yes; then
21701 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21702 else
21703 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21704 case $host_os in
21705 sco3.2v5*)
21706 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21708 esac
21710 sys_lib_dlsearch_path_spec='/usr/lib'
21713 tpf*)
21714 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21715 version_type=linux
21716 need_lib_prefix=no
21717 need_version=no
21718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21719 shlibpath_var=LD_LIBRARY_PATH
21720 shlibpath_overrides_runpath=no
21721 hardcode_into_libs=yes
21724 uts4*)
21725 version_type=linux
21726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21727 soname_spec='${libname}${release}${shared_ext}$major'
21728 shlibpath_var=LD_LIBRARY_PATH
21732 dynamic_linker=no
21734 esac
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21736 $as_echo "$dynamic_linker" >&6; }
21737 test "$dynamic_linker" = no && can_build_shared=no
21739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21740 if test "$GCC" = yes; then
21741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21744 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21745 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21747 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21748 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21789 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21790 hardcode_action_CXX=
21791 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21792 test -n "$runpath_var_CXX" ||
21793 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21795 # We can hardcode non-existent directories.
21796 if test "$hardcode_direct_CXX" != no &&
21797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21798 # have to relink, otherwise we might link with an installed library
21799 # when we should be linking with a yet-to-be-installed one
21800 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21801 test "$hardcode_minus_L_CXX" != no; then
21802 # Linking always hardcodes the temporary library directory.
21803 hardcode_action_CXX=relink
21804 else
21805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21806 hardcode_action_CXX=immediate
21808 else
21809 # We cannot hardcode anything, or else we can only hardcode existing
21810 # directories.
21811 hardcode_action_CXX=unsupported
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21814 $as_echo "$hardcode_action_CXX" >&6; }
21816 if test "$hardcode_action_CXX" = relink ||
21817 test "$inherit_rpath_CXX" = yes; then
21818 # Fast installation is not supported
21819 enable_fast_install=no
21820 elif test "$shlibpath_overrides_runpath" = yes ||
21821 test "$enable_shared" = no; then
21822 # Fast installation is not necessary
21823 enable_fast_install=needless
21832 fi # test -n "$compiler"
21834 CC=$lt_save_CC
21835 LDCXX=$LD
21836 LD=$lt_save_LD
21837 GCC=$lt_save_GCC
21838 with_gnu_ld=$lt_save_with_gnu_ld
21839 lt_cv_path_LDCXX=$lt_cv_path_LD
21840 lt_cv_path_LD=$lt_save_path_LD
21841 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21842 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21843 fi # test "$_lt_caught_CXX_error" != yes
21845 ac_ext=cpp
21846 ac_cpp='$CXXCPP $CPPFLAGS'
21847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21866 # Only expand once:
21872 # Identify the assembler which will work hand-in-glove with the newly
21873 # built GCC, so that we can examine its features. This is the assembler
21874 # which will be driven by the driver program.
21876 # If build != host, and we aren't building gas in-tree, we identify a
21877 # build->target assembler and hope that it will have the same features
21878 # as the host->target assembler we'll be using.
21879 gcc_cv_gas_major_version=
21880 gcc_cv_gas_minor_version=
21881 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21883 if test "${gcc_cv_as+set}" = set; then :
21885 else
21887 if test -x "$DEFAULT_ASSEMBLER"; then
21888 gcc_cv_as="$DEFAULT_ASSEMBLER"
21889 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21890 && test -f ../gas/Makefile \
21891 && test x$build = x$host; then
21892 gcc_cv_as=../gas/as-new$build_exeext
21893 elif test -x as$build_exeext; then
21894 # Build using assembler in the current directory.
21895 gcc_cv_as=./as$build_exeext
21896 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21897 gcc_cv_as="$AS_FOR_TARGET"
21898 else
21899 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21900 set dummy $AS_FOR_TARGET; ac_word=$2
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21902 $as_echo_n "checking for $ac_word... " >&6; }
21903 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21904 $as_echo_n "(cached) " >&6
21905 else
21906 case $gcc_cv_as in
21907 [\\/]* | ?:[\\/]*)
21908 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21912 for as_dir in $PATH
21914 IFS=$as_save_IFS
21915 test -z "$as_dir" && as_dir=.
21916 for ac_exec_ext in '' $ac_executable_extensions; do
21917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21918 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21920 break 2
21922 done
21923 done
21924 IFS=$as_save_IFS
21927 esac
21929 gcc_cv_as=$ac_cv_path_gcc_cv_as
21930 if test -n "$gcc_cv_as"; then
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21932 $as_echo "$gcc_cv_as" >&6; }
21933 else
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21935 $as_echo "no" >&6; }
21942 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21944 case "$ORIGINAL_AS_FOR_TARGET" in
21945 ./as | ./as$build_exeext) ;;
21946 *) ac_config_files="$ac_config_files as:exec-tool.in"
21948 esac
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21951 $as_echo_n "checking what assembler to use... " >&6; }
21952 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21953 # Single tree build which includes gas. We want to prefer it
21954 # over whatever linker top-level may have detected, since
21955 # we'll use what we're building after installation anyway.
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21957 $as_echo "newly built gas" >&6; }
21958 in_tree_gas=yes
21959 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21960 for f in $gcc_cv_as_bfd_srcdir/configure \
21961 $gcc_cv_as_gas_srcdir/configure \
21962 $gcc_cv_as_gas_srcdir/configure.ac \
21963 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21964 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21965 if test x$gcc_cv_gas_version != x; then
21966 break
21968 done
21969 case $gcc_cv_gas_version in
21970 VERSION=[0-9]*) ;;
21971 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21972 esac
21973 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21974 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21975 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21976 case $gcc_cv_gas_patch_version in
21977 "") gcc_cv_gas_patch_version="0" ;;
21978 esac
21979 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21980 + $gcc_cv_gas_minor_version \) \* 1000 \
21981 + $gcc_cv_gas_patch_version`
21983 in_tree_gas_is_elf=no
21984 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21985 || (grep 'obj_format = multi' ../gas/Makefile \
21986 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21987 then
21988 in_tree_gas_is_elf=yes
21990 else
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21992 $as_echo "$gcc_cv_as" >&6; }
21993 in_tree_gas=no
21996 default_ld=
21997 # Check whether --enable-ld was given.
21998 if test "${enable_ld+set}" = set; then :
21999 enableval=$enable_ld; case "${enableval}" in
22001 default_ld=ld.gold
22003 esac
22007 install_gold_as_default=no
22008 # Check whether --enable-gold was given.
22009 if test "${enable_gold+set}" = set; then :
22010 enableval=$enable_gold; case "${enableval}" in
22011 default)
22012 install_gold_as_default=yes
22014 yes)
22015 if test x${default_ld} != x; then
22016 install_gold_as_default=yes
22022 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
22024 esac
22028 # Identify the linker which will work hand-in-glove with the newly
22029 # built GCC, so that we can examine its features. This is the linker
22030 # which will be driven by the driver program.
22032 # If build != host, and we aren't building gas in-tree, we identify a
22033 # build->target linker and hope that it will have the same features
22034 # as the host->target linker we'll be using.
22035 gcc_cv_gld_major_version=
22036 gcc_cv_gld_minor_version=
22037 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22038 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22039 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22041 if test "${gcc_cv_ld+set}" = set; then :
22043 else
22045 if test -x "$DEFAULT_LINKER"; then
22046 gcc_cv_ld="$DEFAULT_LINKER"
22047 elif test $install_gold_as_default = yes \
22048 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22049 && test -f ../gold/Makefile \
22050 && test x$build = x$host; then
22051 gcc_cv_ld=../gold/ld-new$build_exeext
22052 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22053 && test -f ../ld/Makefile \
22054 && test x$build = x$host; then
22055 gcc_cv_ld=../ld/ld-new$build_exeext
22056 elif test -x collect-ld$build_exeext; then
22057 # Build using linker in the current directory.
22058 gcc_cv_ld=./collect-ld$build_exeext
22059 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22060 gcc_cv_ld="$LD_FOR_TARGET"
22061 else
22062 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22063 set dummy $LD_FOR_TARGET; ac_word=$2
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22065 $as_echo_n "checking for $ac_word... " >&6; }
22066 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 case $gcc_cv_ld in
22070 [\\/]* | ?:[\\/]*)
22071 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22075 for as_dir in $PATH
22077 IFS=$as_save_IFS
22078 test -z "$as_dir" && as_dir=.
22079 for ac_exec_ext in '' $ac_executable_extensions; do
22080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22081 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22083 break 2
22085 done
22086 done
22087 IFS=$as_save_IFS
22090 esac
22092 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22093 if test -n "$gcc_cv_ld"; then
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22095 $as_echo "$gcc_cv_ld" >&6; }
22096 else
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22098 $as_echo "no" >&6; }
22105 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22106 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22107 # if the PLUGIN_LD is set ld-new, just have it as ld
22108 # as that is the installed named.
22109 if test x$PLUGIN_LD_SUFFIX = xld-new \
22110 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22111 PLUGIN_LD_SUFFIX=ld
22114 # Check whether --with-plugin-ld was given.
22115 if test "${with_plugin_ld+set}" = set; then :
22116 withval=$with_plugin_ld; if test x"$withval" != x; then
22117 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22118 PLUGIN_LD_SUFFIX="$withval"
22124 cat >>confdefs.h <<_ACEOF
22125 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22126 _ACEOF
22129 # Check to see if we are using gold instead of ld
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22131 $as_echo_n "checking whether we are using gold... " >&6; }
22132 ld_is_gold=no
22133 if test x$gcc_cv_ld != x; then
22134 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22135 | grep "GNU gold" > /dev/null; then
22136 ld_is_gold=yes
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22140 $as_echo "$ld_is_gold" >&6; }
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22143 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22144 # Check to see if default ld is not gold, but gold is
22145 # available and has support for split stack. If gcc was configured
22146 # with gold then no checking is done.
22148 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22150 # For platforms other than powerpc64*, enable as appropriate.
22152 gold_non_default=no
22153 ld_gold=`which ${gcc_cv_ld}.gold`
22154 # Make sure this gold has minimal split stack support
22155 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22156 ld_vers=`$ld_gold --version | sed 1q`
22157 gold_vers=`echo $ld_vers | sed -n \
22158 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22159 case $target in
22160 # check that the gold version contains the complete split stack support
22161 # on powerpc64 big and little endian
22162 powerpc64*-*-*)
22163 case "$gold_vers" in
22164 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22166 *) gold_non_default=no
22168 esac
22170 esac
22172 if test $gold_non_default = yes; then
22174 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22179 $as_echo "$gold_non_default" >&6; }
22181 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22183 case "$ORIGINAL_LD_FOR_TARGET" in
22184 ./collect-ld | ./collect-ld$build_exeext) ;;
22185 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22187 esac
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22190 $as_echo_n "checking what linker to use... " >&6; }
22191 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22192 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22193 # Single tree build which includes ld. We want to prefer it
22194 # over whatever linker top-level may have detected, since
22195 # we'll use what we're building after installation anyway.
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22197 $as_echo "newly built ld" >&6; }
22198 in_tree_ld=yes
22199 in_tree_ld_is_elf=no
22200 if (grep 'EMUL = .*elf' ../ld/Makefile \
22201 || grep 'EMUL = .*linux' ../ld/Makefile \
22202 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22203 in_tree_ld_is_elf=yes
22204 elif test "$ld_is_gold" = yes; then
22205 in_tree_ld_is_elf=yes
22207 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
22209 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22210 if test x$gcc_cv_gld_version != x; then
22211 break
22213 done
22214 case $gcc_cv_gld_version in
22215 VERSION=[0-9]*) ;;
22216 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22217 esac
22218 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22219 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22220 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22221 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22222 else
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22224 $as_echo "$gcc_cv_ld" >&6; }
22225 in_tree_ld=no
22226 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22227 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22228 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22234 # Figure out what nm we will be using.
22235 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22236 if test "${gcc_cv_nm+set}" = set; then :
22238 else
22240 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22241 && test -f ../binutils/Makefile \
22242 && test x$build = x$host; then
22243 gcc_cv_nm=../binutils/nm-new$build_exeext
22244 elif test -x nm$build_exeext; then
22245 gcc_cv_nm=./nm$build_exeext
22246 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22247 gcc_cv_nm="$NM_FOR_TARGET"
22248 else
22249 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22250 set dummy $NM_FOR_TARGET; ac_word=$2
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22252 $as_echo_n "checking for $ac_word... " >&6; }
22253 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22254 $as_echo_n "(cached) " >&6
22255 else
22256 case $gcc_cv_nm in
22257 [\\/]* | ?:[\\/]*)
22258 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in $PATH
22264 IFS=$as_save_IFS
22265 test -z "$as_dir" && as_dir=.
22266 for ac_exec_ext in '' $ac_executable_extensions; do
22267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22268 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22270 break 2
22272 done
22273 done
22274 IFS=$as_save_IFS
22277 esac
22279 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22280 if test -n "$gcc_cv_nm"; then
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22282 $as_echo "$gcc_cv_nm" >&6; }
22283 else
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22285 $as_echo "no" >&6; }
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22293 $as_echo_n "checking what nm to use... " >&6; }
22294 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22295 # Single tree build which includes binutils.
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22297 $as_echo "newly built nm" >&6; }
22298 in_tree_nm=yes
22299 else
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22301 $as_echo "$gcc_cv_nm" >&6; }
22302 in_tree_nm=no
22305 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22307 case "$ORIGINAL_NM_FOR_TARGET" in
22308 ./nm | ./nm$build_exeext) ;;
22309 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22311 esac
22314 # Figure out what objdump we will be using.
22315 if test "${gcc_cv_objdump+set}" = set; then :
22317 else
22319 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22320 && test -f ../binutils/Makefile \
22321 && test x$build = x$host; then
22322 # Single tree build which includes binutils.
22323 gcc_cv_objdump=../binutils/objdump$build_exeext
22324 elif test -x objdump$build_exeext; then
22325 gcc_cv_objdump=./objdump$build_exeext
22326 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22327 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22328 else
22329 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22330 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22332 $as_echo_n "checking for $ac_word... " >&6; }
22333 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22334 $as_echo_n "(cached) " >&6
22335 else
22336 case $gcc_cv_objdump in
22337 [\\/]* | ?:[\\/]*)
22338 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22342 for as_dir in $PATH
22344 IFS=$as_save_IFS
22345 test -z "$as_dir" && as_dir=.
22346 for ac_exec_ext in '' $ac_executable_extensions; do
22347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22348 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22350 break 2
22352 done
22353 done
22354 IFS=$as_save_IFS
22357 esac
22359 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22360 if test -n "$gcc_cv_objdump"; then
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22362 $as_echo "$gcc_cv_objdump" >&6; }
22363 else
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22365 $as_echo "no" >&6; }
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22373 $as_echo_n "checking what objdump to use... " >&6; }
22374 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22375 # Single tree build which includes binutils.
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22377 $as_echo "newly built objdump" >&6; }
22378 elif test x$gcc_cv_objdump = x; then
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22380 $as_echo "not found" >&6; }
22381 else
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22383 $as_echo "$gcc_cv_objdump" >&6; }
22386 # Figure out what readelf we will be using.
22387 if test "${gcc_cv_readelf+set}" = set; then :
22389 else
22391 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22392 && test -f ../binutils/Makefile \
22393 && test x$build = x$host; then
22394 # Single tree build which includes binutils.
22395 gcc_cv_readelf=../binutils/readelf$build_exeext
22396 elif test -x readelf$build_exeext; then
22397 gcc_cv_readelf=./readelf$build_exeext
22398 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22399 gcc_cv_readelf="$READELF_FOR_TARGET"
22400 else
22401 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22402 set dummy $READELF_FOR_TARGET; ac_word=$2
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22404 $as_echo_n "checking for $ac_word... " >&6; }
22405 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22406 $as_echo_n "(cached) " >&6
22407 else
22408 case $gcc_cv_readelf in
22409 [\\/]* | ?:[\\/]*)
22410 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22414 for as_dir in $PATH
22416 IFS=$as_save_IFS
22417 test -z "$as_dir" && as_dir=.
22418 for ac_exec_ext in '' $ac_executable_extensions; do
22419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22420 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22422 break 2
22424 done
22425 done
22426 IFS=$as_save_IFS
22429 esac
22431 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22432 if test -n "$gcc_cv_readelf"; then
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22434 $as_echo "$gcc_cv_readelf" >&6; }
22435 else
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22437 $as_echo "no" >&6; }
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22445 $as_echo_n "checking what readelf to use... " >&6; }
22446 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22447 # Single tree build which includes binutils.
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22449 $as_echo "newly built readelf" >&6; }
22450 elif test x$gcc_cv_readelf = x; then
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22452 $as_echo "not found" >&6; }
22453 else
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22455 $as_echo "$gcc_cv_readelf" >&6; }
22458 # Figure out what assembler alignment features are present.
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22460 $as_echo_n "checking assembler flags... " >&6; }
22461 if test "${gcc_cv_as_flags+set}" = set; then :
22462 $as_echo_n "(cached) " >&6
22463 else
22464 case "$target" in
22465 i[34567]86-*-linux*)
22466 gcc_cv_as_flags=--32
22468 x86_64-*-linux-gnux32)
22469 gcc_cv_as_flags=--x32
22471 x86_64-*-linux*)
22472 gcc_cv_as_flags=--64
22474 powerpc*-*-darwin*)
22475 gcc_cv_as_flags="-arch ppc"
22478 gcc_cv_as_flags=" "
22480 esac
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22483 $as_echo "$gcc_cv_as_flags" >&6; }
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22486 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22487 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22489 else
22490 gcc_cv_as_balign_and_p2align=no
22491 if test $in_tree_gas = yes; then
22492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22493 then gcc_cv_as_balign_and_p2align=yes
22495 elif test x$gcc_cv_as != x; then
22496 $as_echo '.balign 4
22497 .p2align 2' > conftest.s
22498 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22503 test $ac_status = 0; }; }
22504 then
22505 gcc_cv_as_balign_and_p2align=yes
22506 else
22507 echo "configure: failed program was" >&5
22508 cat conftest.s >&5
22510 rm -f conftest.o conftest.s
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22514 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22515 if test $gcc_cv_as_balign_and_p2align = yes; then
22517 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22523 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22524 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 gcc_cv_as_max_skip_p2align=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_max_skip_p2align=yes
22532 elif test x$gcc_cv_as != x; then
22533 $as_echo '.p2align 4,,7' > 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_max_skip_p2align=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_max_skip_p2align" >&5
22550 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22551 if test $gcc_cv_as_max_skip_p2align = yes; then
22553 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22559 $as_echo_n "checking assembler for .literal16... " >&6; }
22560 if test "${gcc_cv_as_literal16+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562 else
22563 gcc_cv_as_literal16=no
22564 if test $in_tree_gas = yes; then
22565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22566 then gcc_cv_as_literal16=yes
22568 elif test x$gcc_cv_as != x; then
22569 $as_echo '.literal16' > conftest.s
22570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22572 (eval $ac_try) 2>&5
22573 ac_status=$?
22574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22575 test $ac_status = 0; }; }
22576 then
22577 gcc_cv_as_literal16=yes
22578 else
22579 echo "configure: failed program was" >&5
22580 cat conftest.s >&5
22582 rm -f conftest.o conftest.s
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22586 $as_echo "$gcc_cv_as_literal16" >&6; }
22587 if test $gcc_cv_as_literal16 = yes; then
22589 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22595 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22596 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22597 $as_echo_n "(cached) " >&6
22598 else
22599 gcc_cv_as_subsection_m1=no
22600 if test $in_tree_gas = yes; then
22601 if test $in_tree_gas_is_elf = yes \
22602 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22603 then gcc_cv_as_subsection_m1=yes
22605 elif test x$gcc_cv_as != x; then
22606 $as_echo 'conftest_label1: .word 0
22607 .subsection -1
22608 conftest_label2: .word 0
22609 .previous' > conftest.s
22610 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22615 test $ac_status = 0; }; }
22616 then
22617 if test x$gcc_cv_nm != x; then
22618 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22619 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22620 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22621 then :
22622 else gcc_cv_as_subsection_m1=yes
22624 rm -f conftest.nm1 conftest.nm2
22626 else
22627 echo "configure: failed program was" >&5
22628 cat conftest.s >&5
22630 rm -f conftest.o conftest.s
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22634 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22635 if test $gcc_cv_as_subsection_m1 = yes; then
22637 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22643 $as_echo_n "checking assembler for .weak... " >&6; }
22644 if test "${gcc_cv_as_weak+set}" = set; then :
22645 $as_echo_n "(cached) " >&6
22646 else
22647 gcc_cv_as_weak=no
22648 if test $in_tree_gas = yes; then
22649 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22650 then gcc_cv_as_weak=yes
22652 elif test x$gcc_cv_as != x; then
22653 $as_echo ' .weak foobar' > conftest.s
22654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22656 (eval $ac_try) 2>&5
22657 ac_status=$?
22658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22659 test $ac_status = 0; }; }
22660 then
22661 gcc_cv_as_weak=yes
22662 else
22663 echo "configure: failed program was" >&5
22664 cat conftest.s >&5
22666 rm -f conftest.o conftest.s
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22670 $as_echo "$gcc_cv_as_weak" >&6; }
22671 if test $gcc_cv_as_weak = yes; then
22673 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22679 $as_echo_n "checking assembler for .weakref... " >&6; }
22680 if test "${gcc_cv_as_weakref+set}" = set; then :
22681 $as_echo_n "(cached) " >&6
22682 else
22683 gcc_cv_as_weakref=no
22684 if test $in_tree_gas = yes; then
22685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22686 then gcc_cv_as_weakref=yes
22688 elif test x$gcc_cv_as != x; then
22689 $as_echo ' .weakref foobar, barfnot' > conftest.s
22690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22692 (eval $ac_try) 2>&5
22693 ac_status=$?
22694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22695 test $ac_status = 0; }; }
22696 then
22697 gcc_cv_as_weakref=yes
22698 else
22699 echo "configure: failed program was" >&5
22700 cat conftest.s >&5
22702 rm -f conftest.o conftest.s
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22706 $as_echo "$gcc_cv_as_weakref" >&6; }
22707 if test $gcc_cv_as_weakref = yes; then
22709 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22715 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22716 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22718 else
22719 gcc_cv_as_nsubspa_comdat=no
22720 if test $in_tree_gas = yes; then
22721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22722 then gcc_cv_as_nsubspa_comdat=yes
22724 elif test x$gcc_cv_as != x; then
22725 $as_echo ' .SPACE $TEXT$
22726 .NSUBSPA $CODE$,COMDAT' > conftest.s
22727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22729 (eval $ac_try) 2>&5
22730 ac_status=$?
22731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22732 test $ac_status = 0; }; }
22733 then
22734 gcc_cv_as_nsubspa_comdat=yes
22735 else
22736 echo "configure: failed program was" >&5
22737 cat conftest.s >&5
22739 rm -f conftest.o conftest.s
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22743 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22744 if test $gcc_cv_as_nsubspa_comdat = yes; then
22746 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22751 # .hidden needs to be supported in both the assembler and the linker,
22752 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22753 # This is irritatingly difficult to feature test for; we have to check the
22754 # date string after the version number. If we've got an in-tree
22755 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22756 # to be safe.
22757 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22758 case "${target}" in
22759 *-*-aix*)
22760 conftest_s=' .globl foobar,hidden'
22763 conftest_s=' .hidden foobar
22764 foobar:'
22766 esac
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22768 $as_echo_n "checking assembler for .hidden... " >&6; }
22769 if test "${gcc_cv_as_hidden+set}" = set; then :
22770 $as_echo_n "(cached) " >&6
22771 else
22772 gcc_cv_as_hidden=no
22773 if test $in_tree_gas = yes; then
22774 if test $in_tree_gas_is_elf = yes \
22775 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22776 then gcc_cv_as_hidden=yes
22778 elif test x$gcc_cv_as != x; then
22779 $as_echo "$conftest_s" > conftest.s
22780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22782 (eval $ac_try) 2>&5
22783 ac_status=$?
22784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22785 test $ac_status = 0; }; }
22786 then
22787 gcc_cv_as_hidden=yes
22788 else
22789 echo "configure: failed program was" >&5
22790 cat conftest.s >&5
22792 rm -f conftest.o conftest.s
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22796 $as_echo "$gcc_cv_as_hidden" >&6; }
22799 case "${target}" in
22800 *-*-darwin*)
22801 # Darwin as has some visibility support, though with a different syntax.
22802 gcc_cv_as_hidden=yes
22804 esac
22806 # gnu_indirect_function type is an extension proposed at
22807 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22808 # selection of function implementation
22809 # Check whether --enable-gnu-indirect-function was given.
22810 if test "${enable_gnu_indirect_function+set}" = set; then :
22811 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22812 yes | no) ;;
22813 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22814 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22815 esac
22816 else
22817 enable_gnu_indirect_function="$default_gnu_indirect_function"
22821 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22823 cat >>confdefs.h <<_ACEOF
22824 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22825 _ACEOF
22829 if test $in_tree_ld != yes ; then
22830 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22831 if echo "$ld_ver" | grep GNU > /dev/null; then
22832 if test x"$ld_is_gold" = xyes; then
22833 # GNU gold --version looks like this:
22835 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22837 # We extract the binutils version which is more familiar and specific
22838 # than the gold version.
22839 ld_vers=`echo $ld_ver | sed -n \
22840 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22841 else
22842 # GNU ld --version looks like this:
22844 # GNU ld (GNU Binutils) 2.21.51.20110225
22845 ld_vers=`echo $ld_ver | sed -n \
22846 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22848 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'`
22849 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22850 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22851 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22852 else
22853 case "${target}" in
22854 *-*-solaris2*)
22855 # Solaris 2 ld -V output looks like this for a regular version:
22857 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22859 # but test versions add stuff at the end:
22861 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22863 # In Solaris 11.4, this was changed to
22865 # ld: Solaris ELF Utilities: 11.4-1.3123
22867 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22868 # numbers can be used in ld.so.1 feature checks even if a different
22869 # linker is configured.
22870 ld_ver=`$gcc_cv_ld -V 2>&1`
22871 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22872 ld_vers=`echo $ld_ver | sed -n \
22873 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22874 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22875 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22878 esac
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22883 $as_echo_n "checking linker for .hidden support... " >&6; }
22884 if test "${gcc_cv_ld_hidden+set}" = set; then :
22885 $as_echo_n "(cached) " >&6
22886 else
22887 if test $in_tree_ld = yes ; then
22888 gcc_cv_ld_hidden=no
22889 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 \
22890 && test $in_tree_ld_is_elf = yes; then
22891 gcc_cv_ld_hidden=yes
22893 else
22894 gcc_cv_ld_hidden=yes
22895 if test x"$ld_is_gold" = xyes; then
22897 elif echo "$ld_ver" | grep GNU > /dev/null; then
22898 case "${target}" in
22899 mmix-knuth-mmixware)
22900 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22901 gcc_cv_ld_hidden=no
22903 esac
22904 if test 0"$ld_date" -lt 20020404; then
22905 if test -n "$ld_date"; then
22906 # If there was date string, but was earlier than 2002-04-04, fail
22907 gcc_cv_ld_hidden=no
22908 elif test -z "$ld_vers"; then
22909 # If there was no date string nor ld version number, something is wrong
22910 gcc_cv_ld_hidden=no
22911 else
22912 test -z "$ld_vers_patch" && ld_vers_patch=0
22913 if test "$ld_vers_major" -lt 2; then
22914 gcc_cv_ld_hidden=no
22915 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22916 gcc_cv_ld_hidden="no"
22917 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22918 gcc_cv_ld_hidden=no
22922 else
22923 case "${target}" in
22924 *-*-aix[789]*)
22925 gcc_cv_ld_hidden=yes
22927 *-*-darwin*)
22928 # Darwin ld has some visibility support.
22929 gcc_cv_ld_hidden=yes
22931 hppa64*-*-hpux* | ia64*-*-hpux*)
22932 gcc_cv_ld_hidden=yes
22934 *-*-solaris2.1[0-9]*)
22935 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22936 # .symbolic was only added in Solaris 9 12/02.
22937 gcc_cv_ld_hidden=yes
22940 gcc_cv_ld_hidden=no
22942 esac
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22947 $as_echo "$gcc_cv_ld_hidden" >&6; }
22948 libgcc_visibility=no
22951 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22952 libgcc_visibility=yes
22954 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22959 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22960 gcc_cv_ld_ro_rw_mix=unknown
22961 if test $in_tree_ld = yes ; then
22962 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 \
22963 && test $in_tree_ld_is_elf = yes; then
22964 gcc_cv_ld_ro_rw_mix=read-write
22966 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22967 echo '.section myfoosect, "a"' > conftest1.s
22968 echo '.section myfoosect, "aw"' > conftest2.s
22969 echo '.byte 1' >> conftest2.s
22970 echo '.section myfoosect, "a"' > conftest3.s
22971 echo '.byte 0' >> conftest3.s
22972 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22973 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22974 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22975 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22976 conftest2.o conftest3.o > /dev/null 2>&1; then
22977 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22978 | sed -e '/myfoosect/!d' -e N`
22979 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22980 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22981 gcc_cv_ld_ro_rw_mix=read-only
22982 else
22983 gcc_cv_ld_ro_rw_mix=read-write
22987 rm -f conftest.* conftest[123].*
22989 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22991 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22995 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22997 # Check whether --enable-initfini-array was given.
22998 if test "${enable_initfini_array+set}" = set; then :
22999 enableval=$enable_initfini_array;
23000 else
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23003 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23004 if test "${gcc_cv_initfini_array+set}" = set; then :
23005 $as_echo_n "(cached) " >&6
23006 else
23007 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23008 case "${target}" in
23009 ia64-*)
23010 if test "$cross_compiling" = yes; then :
23011 gcc_cv_initfini_array=no
23012 else
23013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23014 /* end confdefs.h. */
23016 #ifndef __ELF__
23017 #error Not an ELF OS
23018 #endif
23019 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23020 if it can be used. */
23021 static int x = -1;
23022 int main (void) { return x; }
23023 int foo (void) { x = 0; }
23024 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23026 _ACEOF
23027 if ac_fn_cxx_try_run "$LINENO"; then :
23028 gcc_cv_initfini_array=yes
23029 else
23030 gcc_cv_initfini_array=no
23032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23033 conftest.$ac_objext conftest.beam conftest.$ac_ext
23037 gcc_cv_initfini_array=no
23038 if test $in_tree_ld = yes ; then
23039 if test "$gcc_cv_gld_major_version" -eq 2 \
23040 -a "$gcc_cv_gld_minor_version" -ge 22 \
23041 -o "$gcc_cv_gld_major_version" -gt 2 \
23042 && test $in_tree_ld_is_elf = yes; then
23043 gcc_cv_initfini_array=yes
23045 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23046 case $target:$gas in
23047 *:yes)
23048 sh_flags='"a"'
23049 sh_type='%progbits'
23051 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23052 sh_flags='"a"'
23053 sh_type='@progbits'
23055 sparc*-*-solaris2*:no)
23056 sh_flags='#alloc'
23057 sh_type='#progbits'
23058 sh_quote='"'
23060 esac
23061 case "$target:$gnu_ld" in
23062 *:yes)
23063 cat > conftest.s <<EOF
23064 .section .dtors,$sh_flags,$sh_type
23065 .balign 4
23066 .byte 'A', 'A', 'A', 'A'
23067 .section .ctors,$sh_flags,$sh_type
23068 .balign 4
23069 .byte 'B', 'B', 'B', 'B'
23070 .section .fini_array.65530,$sh_flags,$sh_type
23071 .balign 4
23072 .byte 'C', 'C', 'C', 'C'
23073 .section .init_array.65530,$sh_flags,$sh_type
23074 .balign 4
23075 .byte 'D', 'D', 'D', 'D'
23076 .section .dtors.64528,$sh_flags,$sh_type
23077 .balign 4
23078 .byte 'E', 'E', 'E', 'E'
23079 .section .ctors.64528,$sh_flags,$sh_type
23080 .balign 4
23081 .byte 'F', 'F', 'F', 'F'
23082 .section .fini_array.01005,$sh_flags,$sh_type
23083 .balign 4
23084 .byte 'G', 'G', 'G', 'G'
23085 .section .init_array.01005,$sh_flags,$sh_type
23086 .balign 4
23087 .byte 'H', 'H', 'H', 'H'
23088 .text
23089 .globl _start
23090 _start:
23092 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23093 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23094 && $gcc_cv_objdump -s -j .init_array conftest \
23095 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23096 && $gcc_cv_objdump -s -j .fini_array conftest \
23097 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23098 gcc_cv_initfini_array=yes
23101 *-*-solaris2*:no)
23102 # When Solaris ld added constructor priority support, it was
23103 # decided to only handle .init_array.N/.fini_array.N since
23104 # there was no need for backwards compatibility with
23105 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23106 # sections with correct execution order resp. to
23107 # .init_array/.fini_array, while gld merges them into
23108 # .init_array/.fini_array.
23109 cat > conftest.s <<EOF
23110 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23111 .align 4
23112 .byte 'C', 'C', 'C', 'C'
23113 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23114 .align 4
23115 .byte 'D', 'D', 'D', 'D'
23116 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23117 .align 4
23118 .byte 'G', 'G', 'G', 'G'
23119 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23120 .align 4
23121 .byte 'H', 'H', 'H', 'H'
23122 .text
23123 .globl _start
23124 _start:
23126 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23127 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23128 && $gcc_cv_objdump -s -j .init_array conftest \
23129 | grep HHHHDDDD > /dev/null 2>&1 \
23130 && $gcc_cv_objdump -s -j .fini_array conftest \
23131 | grep GGGGCCCC > /dev/null 2>&1; then
23132 gcc_cv_initfini_array=yes
23135 esac
23136 rm -f conftest conftest.*
23138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139 /* end confdefs.h. */
23141 #ifndef __ELF__
23142 # error Not an ELF OS
23143 #endif
23144 #include <stdlib.h>
23145 #if defined __GLIBC_PREREQ
23146 # if __GLIBC_PREREQ (2, 4)
23147 # else
23148 # error GLIBC 2.4 required
23149 # endif
23150 #else
23151 # if defined __sun__ && defined __svr4__
23152 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23153 # else
23154 # error The C library not known to support .init_array/.fini_array
23155 # endif
23156 #endif
23158 _ACEOF
23159 if ac_fn_cxx_try_cpp "$LINENO"; then :
23161 else
23162 gcc_cv_initfini_array=no
23164 rm -f conftest.err conftest.$ac_ext;;
23165 esac
23166 else
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23168 $as_echo_n "checking cross compile... guessing... " >&6; }
23169 gcc_cv_initfini_array=no
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23173 $as_echo "$gcc_cv_initfini_array" >&6; }
23174 enable_initfini_array=$gcc_cv_initfini_array
23179 cat >>confdefs.h <<_ACEOF
23180 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23181 _ACEOF
23185 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23187 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23188 if test "${gcc_cv_as_leb128+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23190 else
23191 gcc_cv_as_leb128=no
23192 if test $in_tree_gas = yes; then
23193 if test $in_tree_gas_is_elf = yes \
23194 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23195 then gcc_cv_as_leb128=yes
23197 elif test x$gcc_cv_as != x; then
23198 $as_echo ' .data
23199 .uleb128 L2 - L1
23201 .uleb128 1280
23202 .sleb128 -1010
23203 L2:' > conftest.s
23204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23206 (eval $ac_try) 2>&5
23207 ac_status=$?
23208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23209 test $ac_status = 0; }; }
23210 then
23211 # GAS versions before 2.11 do not support uleb128,
23212 # despite appearing to.
23213 # ??? There exists an elf-specific test that will crash
23214 # the assembler. Perhaps it's better to figure out whether
23215 # arbitrary sections are supported and try the test.
23216 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23217 if echo "$as_ver" | grep GNU > /dev/null; then
23218 as_vers=`echo $as_ver | sed -n \
23219 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23220 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23221 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23222 if test $as_major -eq 2 && test $as_minor -lt 11
23223 then :
23224 else gcc_cv_as_leb128=yes
23227 else
23228 echo "configure: failed program was" >&5
23229 cat conftest.s >&5
23231 rm -f conftest.o conftest.s
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23235 $as_echo "$gcc_cv_as_leb128" >&6; }
23236 if test $gcc_cv_as_leb128 = yes; then
23238 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23241 if test $gcc_cv_as_leb128 != yes; then
23243 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23247 # Determine if an .eh_frame section is read-only.
23248 gcc_fn_eh_frame_ro () {
23249 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23250 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23251 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23254 # Check if we have assembler support for unwind directives.
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23256 $as_echo_n "checking assembler for cfi directives... " >&6; }
23257 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23258 $as_echo_n "(cached) " >&6
23259 else
23260 gcc_cv_as_cfi_directive=no
23261 if test x$gcc_cv_as != x; then
23262 $as_echo ' .text
23263 .cfi_startproc
23264 .cfi_offset 0, 0
23265 .cfi_same_value 1
23266 .cfi_def_cfa 1, 2
23267 .cfi_escape 1, 2, 3, 4, 5
23268 .cfi_endproc' > conftest.s
23269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23274 test $ac_status = 0; }; }
23275 then
23276 case "$target" in
23277 *-*-solaris*)
23278 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23279 # read-only and read-write sections, we need to make sure that the
23280 # assembler used emits read-write .eh_frame sections.
23281 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23282 gcc_cv_as_cfi_directive=yes
23283 elif test "x$gcc_cv_objdump" = x; then
23284 # No objdump, err on the side of caution.
23285 gcc_cv_as_cfi_directive=no
23286 else
23287 if test x$gas = xyes; then
23288 as_32_opt="--32"
23289 as_64_opt="--64"
23290 else
23291 as_32_opt="-m32"
23292 as_64_opt="-m64"
23294 case "$target" in
23295 sparc*-*-solaris2.*)
23296 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23297 if gcc_fn_eh_frame_ro $as_32_opt \
23298 || gcc_fn_eh_frame_ro $as_64_opt; then
23299 gcc_cv_as_cfi_directive=no
23300 else
23301 gcc_cv_as_cfi_directive=yes
23304 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23305 # On Solaris/x86, make sure that GCC and assembler agree on using
23306 # read-only .eh_frame sections for 64-bit.
23307 if gcc_fn_eh_frame_ro $as_32_opt; then
23308 gcc_cv_as_cfi_directive=no
23309 elif gcc_fn_eh_frame_ro $as_64_opt; then
23310 gcc_cv_as_cfi_directive=yes
23311 else
23312 gcc_cv_as_cfi_directive=no
23315 esac
23318 *-*-*)
23319 gcc_cv_as_cfi_directive=yes
23321 esac
23322 else
23323 echo "configure: failed program was" >&5
23324 cat conftest.s >&5
23326 rm -f conftest.o conftest.s
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23330 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23333 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23335 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23336 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23337 $as_echo_n "(cached) " >&6
23338 else
23339 gcc_cv_as_cfi_advance_working=no
23340 if test x$gcc_cv_as != x; then
23341 $as_echo ' .text
23342 .cfi_startproc
23343 .cfi_adjust_cfa_offset 64
23344 .skip 75040, 0
23345 .cfi_adjust_cfa_offset 128
23346 .cfi_endproc' > conftest.s
23347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23349 (eval $ac_try) 2>&5
23350 ac_status=$?
23351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23352 test $ac_status = 0; }; }
23353 then
23355 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23356 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23357 gcc_cv_as_cfi_advance_working=yes
23360 else
23361 echo "configure: failed program was" >&5
23362 cat conftest.s >&5
23364 rm -f conftest.o conftest.s
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23368 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23371 else
23372 # no objdump, err on the side of caution
23373 gcc_cv_as_cfi_advance_working=no
23377 cat >>confdefs.h <<_ACEOF
23378 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23379 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23380 _ACEOF
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23385 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23386 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23387 $as_echo_n "(cached) " >&6
23388 else
23389 gcc_cv_as_cfi_personality_directive=no
23390 if test x$gcc_cv_as != x; then
23391 $as_echo ' .text
23392 .cfi_startproc
23393 .cfi_personality 0, symbol
23394 .cfi_endproc' > conftest.s
23395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23400 test $ac_status = 0; }; }
23401 then
23402 gcc_cv_as_cfi_personality_directive=yes
23403 else
23404 echo "configure: failed program was" >&5
23405 cat conftest.s >&5
23407 rm -f conftest.o conftest.s
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23411 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23415 cat >>confdefs.h <<_ACEOF
23416 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23417 then echo 1; else echo 0; fi`
23418 _ACEOF
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23422 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23423 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23424 $as_echo_n "(cached) " >&6
23425 else
23426 gcc_cv_as_cfi_sections_directive=no
23427 if test x$gcc_cv_as != x; then
23428 $as_echo ' .text
23429 .cfi_sections .debug_frame, .eh_frame
23430 .cfi_startproc
23431 .cfi_endproc' > conftest.s
23432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23434 (eval $ac_try) 2>&5
23435 ac_status=$?
23436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23437 test $ac_status = 0; }; }
23438 then
23439 case $target_os in
23440 win32 | pe | cygwin* | mingw32*)
23441 # Need to check that we generated the correct relocation for the
23442 # .debug_frame section. This was fixed for binutils 2.21.
23443 gcc_cv_as_cfi_sections_directive=no
23444 if test "x$gcc_cv_objdump" != x; then
23445 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23446 grep secrel > /dev/null; then
23447 gcc_cv_as_cfi_sections_directive=yes
23452 gcc_cv_as_cfi_sections_directive=yes
23454 esac
23455 else
23456 echo "configure: failed program was" >&5
23457 cat conftest.s >&5
23459 rm -f conftest.o conftest.s
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23463 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23468 cat >>confdefs.h <<_ACEOF
23469 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23470 then echo 1; else echo 0; fi`
23471 _ACEOF
23474 # GAS versions up to and including 2.11.0 may mis-optimize
23475 # .eh_frame data.
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23477 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23478 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23479 $as_echo_n "(cached) " >&6
23480 else
23481 gcc_cv_as_eh_frame=no
23482 if test $in_tree_gas = yes; then
23483 if test $in_tree_gas_is_elf = yes \
23484 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23485 then gcc_cv_as_eh_frame=yes
23487 elif test x$gcc_cv_as != x; then
23488 $as_echo ' .text
23489 .LFB1:
23490 .4byte 0
23491 .L1:
23492 .4byte 0
23493 .LFE1:
23494 .section .eh_frame,"aw",@progbits
23495 __FRAME_BEGIN__:
23496 .4byte .LECIE1-.LSCIE1
23497 .LSCIE1:
23498 .4byte 0x0
23499 .byte 0x1
23500 .ascii "z\0"
23501 .byte 0x1
23502 .byte 0x78
23503 .byte 0x1a
23504 .byte 0x0
23505 .byte 0x4
23506 .4byte 1
23507 .p2align 1
23508 .LECIE1:
23509 .LSFDE1:
23510 .4byte .LEFDE1-.LASFDE1
23511 .LASFDE1:
23512 .4byte .LASFDE1-__FRAME_BEGIN__
23513 .4byte .LFB1
23514 .4byte .LFE1-.LFB1
23515 .byte 0x4
23516 .4byte .LFE1-.LFB1
23517 .byte 0x4
23518 .4byte .L1-.LFB1
23519 .LEFDE1:' > conftest.s
23520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23522 (eval $ac_try) 2>&5
23523 ac_status=$?
23524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23525 test $ac_status = 0; }; }
23526 then
23527 cat > conftest.lit <<EOF
23528 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23529 0010 01000000 12000000 18000000 00000000 ................
23530 0020 08000000 04080000 0044 .........D
23532 cat > conftest.big <<EOF
23533 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23534 0010 00000001 00000012 00000018 00000000 ................
23535 0020 00000008 04000000 0844 .........D
23537 # If the assembler didn't choke, and we can objdump,
23538 # and we got the correct data, then succeed.
23539 # The text in the here-document typically retains its unix-style line
23540 # endings, while the output of objdump will use host line endings.
23541 # Therefore, use diff -b for the comparisons.
23542 if test x$gcc_cv_objdump != x \
23543 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23544 | tail -3 > conftest.got \
23545 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23546 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23547 then
23548 gcc_cv_as_eh_frame=yes
23549 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23551 (eval $ac_try) 2>&5
23552 ac_status=$?
23553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23554 test $ac_status = 0; }; }; then
23555 gcc_cv_as_eh_frame=buggy
23556 else
23557 # Uh oh, what do we do now?
23558 gcc_cv_as_eh_frame=no
23560 else
23561 echo "configure: failed program was" >&5
23562 cat conftest.s >&5
23564 rm -f conftest.o conftest.s
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23568 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23572 if test $gcc_cv_as_eh_frame = buggy; then
23574 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23578 # Test if the assembler supports the section flag 'e' or #exclude for
23579 # specifying an excluded section.
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23581 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23582 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23583 $as_echo_n "(cached) " >&6
23584 else
23585 gcc_cv_as_section_exclude_e=no
23586 if test $in_tree_gas = yes; then
23587 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23588 then gcc_cv_as_section_exclude_e=yes
23590 elif test x$gcc_cv_as != x; then
23591 $as_echo '.section foo1,"e"
23592 .byte 0,0,0,0' > conftest.s
23593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23595 (eval $ac_try) 2>&5
23596 ac_status=$?
23597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23598 test $ac_status = 0; }; }
23599 then
23600 gcc_cv_as_section_exclude_e=yes
23601 else
23602 echo "configure: failed program was" >&5
23603 cat conftest.s >&5
23605 rm -f conftest.o conftest.s
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23609 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23612 if test $gcc_cv_as_section_exclude_e = no; then
23613 case "${target}" in
23614 # Solaris as uses #exclude instead.
23615 *-*-solaris2*)
23616 case "${target}" in
23617 sparc*-*-solaris2*)
23618 conftest_s='.section "foo1", #exclude'
23620 i?86-*-solaris2* | x86_64-*-solaris2*)
23621 conftest_s='.section foo1, #exclude'
23623 esac
23625 esac
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23627 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23628 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23629 $as_echo_n "(cached) " >&6
23630 else
23631 gcc_cv_as_section_exclude_hash=no
23632 if test x$gcc_cv_as != x; then
23633 $as_echo "$conftest_s
23634 .byte 0,0,0,0" > conftest.s
23635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_section_exclude_hash=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_section_exclude_hash" >&5
23651 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23656 cat >>confdefs.h <<_ACEOF
23657 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23658 _ACEOF
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23662 $as_echo_n "checking assembler for section merging support... " >&6; }
23663 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23664 $as_echo_n "(cached) " >&6
23665 else
23666 gcc_cv_as_shf_merge=no
23667 if test $in_tree_gas = yes; then
23668 if test $in_tree_gas_is_elf = yes \
23669 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23670 then gcc_cv_as_shf_merge=yes
23672 elif test x$gcc_cv_as != x; then
23673 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23679 test $ac_status = 0; }; }
23680 then
23681 gcc_cv_as_shf_merge=yes
23682 else
23683 echo "configure: failed program was" >&5
23684 cat conftest.s >&5
23686 rm -f conftest.o conftest.s
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23690 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23693 if test $gcc_cv_as_shf_merge = no; then
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23695 $as_echo_n "checking assembler for section merging support... " >&6; }
23696 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23697 $as_echo_n "(cached) " >&6
23698 else
23699 gcc_cv_as_shf_merge=no
23700 if test $in_tree_gas = yes; then
23701 if test $in_tree_gas_is_elf = yes \
23702 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23703 then gcc_cv_as_shf_merge=yes
23705 elif test x$gcc_cv_as != x; then
23706 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23709 (eval $ac_try) 2>&5
23710 ac_status=$?
23711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23712 test $ac_status = 0; }; }
23713 then
23714 gcc_cv_as_shf_merge=yes
23715 else
23716 echo "configure: failed program was" >&5
23717 cat conftest.s >&5
23719 rm -f conftest.o conftest.s
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23723 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23727 case "$target" in
23728 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23729 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23730 if test x"$gnu_ld" = xno; then
23731 gcc_cv_as_shf_merge=no
23734 esac
23736 cat >>confdefs.h <<_ACEOF
23737 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23738 _ACEOF
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23742 $as_echo_n "checking assembler for stabs directive... " >&6; }
23743 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23744 $as_echo_n "(cached) " >&6
23745 else
23746 gcc_cv_as_stabs_directive=no
23747 if test x$gcc_cv_as != x; then
23748 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23754 test $ac_status = 0; }; }
23755 then
23756 gcc_cv_as_stabs_directive=yes
23757 else
23758 echo "configure: failed program was" >&5
23759 cat conftest.s >&5
23761 rm -f conftest.o conftest.s
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23765 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23766 if test $gcc_cv_as_stabs_directive = yes; then
23768 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23774 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23775 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23776 $as_echo_n "(cached) " >&6
23777 else
23778 gcc_cv_as_comdat_group=no
23779 if test $in_tree_gas = yes; then
23780 if test $in_tree_gas_is_elf = yes \
23781 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23782 then gcc_cv_as_comdat_group=yes
23784 elif test x$gcc_cv_as != x; then
23785 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23788 (eval $ac_try) 2>&5
23789 ac_status=$?
23790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23791 test $ac_status = 0; }; }
23792 then
23793 gcc_cv_as_comdat_group=yes
23794 else
23795 echo "configure: failed program was" >&5
23796 cat conftest.s >&5
23798 rm -f conftest.o conftest.s
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23802 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23805 if test $gcc_cv_as_comdat_group = yes; then
23806 gcc_cv_as_comdat_group_percent=no
23807 gcc_cv_as_comdat_group_group=no
23808 else
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23810 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23811 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23812 $as_echo_n "(cached) " >&6
23813 else
23814 gcc_cv_as_comdat_group_percent=no
23815 if test $in_tree_gas = yes; then
23816 if test $in_tree_gas_is_elf = yes \
23817 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23818 then gcc_cv_as_comdat_group_percent=yes
23820 elif test x$gcc_cv_as != x; then
23821 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_comdat_group_percent=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_comdat_group_percent" >&5
23838 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23841 if test $gcc_cv_as_comdat_group_percent = yes; then
23842 gcc_cv_as_comdat_group_group=no
23843 else
23844 case "${target}" in
23845 # Sun as uses a completely different syntax.
23846 *-*-solaris2*)
23847 case "${target}" in
23848 sparc*-*-solaris2*)
23849 conftest_s='
23850 .group foo,".text%foo",#comdat
23851 .section ".text%foo", #alloc,#execinstr,#progbits
23852 .globl foo
23853 foo:
23856 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23857 conftest_s='
23858 .group foo,.text%foo,#comdat
23859 .section .text%foo, "ax", @progbits
23860 .globl foo
23861 foo:
23864 esac
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23866 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23867 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23868 $as_echo_n "(cached) " >&6
23869 else
23870 gcc_cv_as_comdat_group_group=no
23871 if test x$gcc_cv_as != x; then
23872 $as_echo "$conftest_s" > conftest.s
23873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23875 (eval $ac_try) 2>&5
23876 ac_status=$?
23877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23878 test $ac_status = 0; }; }
23879 then
23880 gcc_cv_as_comdat_group_group=yes
23881 else
23882 echo "configure: failed program was" >&5
23883 cat conftest.s >&5
23885 rm -f conftest.o conftest.s
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23889 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23893 esac
23894 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23895 gcc_cv_as_comdat_group_group=no
23899 if test x"$ld_is_gold" = xyes; then
23900 comdat_group=yes
23901 elif test $in_tree_ld = yes ; then
23902 comdat_group=no
23903 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 \
23904 && test $in_tree_ld_is_elf = yes; then
23905 comdat_group=yes
23907 elif echo "$ld_ver" | grep GNU > /dev/null; then
23908 comdat_group=yes
23909 if test 0"$ld_date" -lt 20050308; then
23910 if test -n "$ld_date"; then
23911 # If there was date string, but was earlier than 2005-03-08, fail
23912 comdat_group=no
23913 elif test "$ld_vers_major" -lt 2; then
23914 comdat_group=no
23915 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23916 comdat_group=no
23919 else
23920 case "${target}" in
23921 *-*-solaris2.1[1-9]*)
23922 comdat_group=no
23923 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23924 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23925 # version 1.688.
23927 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23928 # least ld version 1.2267.
23929 if test "$ld_vers_major" -gt 1; then
23930 comdat_group=yes
23931 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23932 comdat_group=yes
23933 elif test "$ld_vers_minor" -ge 2267; then
23934 comdat_group=yes
23938 # Assume linkers other than GNU ld don't support COMDAT group.
23939 comdat_group=no
23941 esac
23943 # Allow overriding the automatic COMDAT group tests above.
23944 # Check whether --enable-comdat was given.
23945 if test "${enable_comdat+set}" = set; then :
23946 enableval=$enable_comdat; comdat_group="$enable_comdat"
23949 if test $comdat_group = no; then
23950 gcc_cv_as_comdat_group=no
23951 gcc_cv_as_comdat_group_percent=no
23952 gcc_cv_as_comdat_group_group=no
23955 cat >>confdefs.h <<_ACEOF
23956 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23957 || test $gcc_cv_as_comdat_group_percent = yes \
23958 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23959 _ACEOF
23962 # Restrict this test to Solaris/x86: other targets define this statically.
23963 case "${target}" in
23964 i?86-*-solaris2* | x86_64-*-solaris2*)
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23966 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23967 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
23968 hidden_linkonce=yes
23969 else
23970 case "${target}" in
23971 # Full support for hidden thunks in linkonce sections only appeared in
23972 # Solaris 11/OpenSolaris.
23973 *-*-solaris2.1[1-9]*)
23974 hidden_linkonce=yes
23977 hidden_linkonce=no
23979 esac
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23982 $as_echo "$hidden_linkonce" >&6; }
23984 cat >>confdefs.h <<_ACEOF
23985 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23986 _ACEOF
23989 esac
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
23992 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
23993 if test "${gcc_cv_as_is_stmt+set}" = set; then :
23994 $as_echo_n "(cached) " >&6
23995 else
23996 gcc_cv_as_is_stmt=no
23997 if test $in_tree_gas = yes; then
23998 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
23999 then gcc_cv_as_is_stmt=yes
24001 elif test x$gcc_cv_as != x; then
24002 $as_echo ' .text
24003 .file 1 "conf.c"
24004 .loc 1 1 0 is_stmt 1' > conftest.s
24005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24007 (eval $ac_try) 2>&5
24008 ac_status=$?
24009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010 test $ac_status = 0; }; }
24011 then
24012 gcc_cv_as_is_stmt=yes
24013 else
24014 echo "configure: failed program was" >&5
24015 cat conftest.s >&5
24017 rm -f conftest.o conftest.s
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24021 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24022 if test $gcc_cv_as_is_stmt = yes; then
24024 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24030 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24031 if test "${gcc_cv_as_discriminator+set}" = set; then :
24032 $as_echo_n "(cached) " >&6
24033 else
24034 gcc_cv_as_discriminator=no
24035 if test $in_tree_gas = yes; then
24036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24037 then gcc_cv_as_discriminator=yes
24039 elif test x$gcc_cv_as != x; then
24040 $as_echo ' .text
24041 .file 1 "conf.c"
24042 .loc 1 1 0 discriminator 1' > conftest.s
24043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048 test $ac_status = 0; }; }
24049 then
24050 gcc_cv_as_discriminator=yes
24051 else
24052 echo "configure: failed program was" >&5
24053 cat conftest.s >&5
24055 rm -f conftest.o conftest.s
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24059 $as_echo "$gcc_cv_as_discriminator" >&6; }
24060 if test $gcc_cv_as_discriminator = yes; then
24062 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24067 # Thread-local storage - the check is heavily parameterized.
24068 conftest_s=
24069 tls_first_major=
24070 tls_first_minor=
24071 tls_as_opt=
24072 case "$target" in
24073 alpha*-*-*)
24074 conftest_s='
24075 .section ".tdata","awT",@progbits
24076 foo: .long 25
24077 .text
24078 ldq $27,__tls_get_addr($29) !literal!1
24079 lda $16,foo($29) !tlsgd!1
24080 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24081 ldq $27,__tls_get_addr($29) !literal!2
24082 lda $16,foo($29) !tlsldm!2
24083 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24084 ldq $1,foo($29) !gotdtprel
24085 ldah $2,foo($29) !dtprelhi
24086 lda $3,foo($2) !dtprello
24087 lda $4,foo($29) !dtprel
24088 ldq $1,foo($29) !gottprel
24089 ldah $2,foo($29) !tprelhi
24090 lda $3,foo($2) !tprello
24091 lda $4,foo($29) !tprel'
24092 tls_first_major=2
24093 tls_first_minor=13
24094 tls_as_opt=--fatal-warnings
24096 arc*-*-*)
24097 conftest_s='
24098 add_s r0,r0, @foo@tpoff'
24099 tls_first_major=2
24100 tls_first_minor=23
24102 cris-*-*|crisv32-*-*)
24103 conftest_s='
24104 .section ".tdata","awT",@progbits
24105 x: .long 25
24106 .text
24107 move.d x:IE,$r10
24108 nop'
24109 tls_first_major=2
24110 tls_first_minor=20
24111 tls_as_opt=--fatal-warnings
24113 frv*-*-*)
24114 conftest_s='
24115 .section ".tdata","awT",@progbits
24116 x: .long 25
24117 .text
24118 call #gettlsoff(x)'
24119 tls_first_major=2
24120 tls_first_minor=14
24122 hppa*-*-linux*)
24123 conftest_s='
24124 t1: .reg %r20
24125 t2: .reg %r21
24126 gp: .reg %r19
24127 .section ".tdata","awT",@progbits
24128 foo: .long 25
24129 .text
24130 .align 4
24131 addil LT%foo-$tls_gdidx$,gp
24132 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24133 b __tls_get_addr
24135 addil LT%foo-$tls_ldidx$,gp
24136 b __tls_get_addr
24137 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24138 addil LR%foo-$tls_dtpoff$,%ret0
24139 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24140 mfctl %cr27,%t1
24141 addil LT%foo-$tls_ieoff$,gp
24142 ldw RT%foo-$tls_ieoff$(%r1),%t2
24143 add %t1,%t2,%t3
24144 mfctl %cr27,%t1
24145 addil LR%foo-$tls_leoff$,%t1
24146 ldo RR%foo-$tls_leoff$(%r1),%t2'
24147 tls_first_major=2
24148 tls_first_minor=15
24149 tls_as_opt=--fatal-warnings
24151 arm*-*-*)
24152 conftest_s='
24153 .section ".tdata","awT",%progbits
24154 foo: .long 25
24155 .text
24156 .word foo(gottpoff)
24157 .word foo(tpoff)
24158 .word foo(tlsgd)
24159 .word foo(tlsldm)
24160 .word foo(tlsldo)'
24161 tls_first_major=2
24162 tls_first_minor=17
24164 i[34567]86-*-* | x86_64-*-*)
24165 case "$target" in
24166 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24167 on_solaris=yes
24170 on_solaris=no
24172 esac
24173 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24174 conftest_s='
24175 .section .tdata,"awt",@progbits'
24176 tls_first_major=0
24177 tls_first_minor=0
24178 tls_section_flag=t
24180 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24182 else
24183 conftest_s='
24184 .section ".tdata","awT",@progbits'
24185 tls_first_major=2
24186 tls_first_minor=14
24187 tls_section_flag=T
24188 tls_as_opt="--fatal-warnings"
24190 case "$target" in
24191 i[34567]86-*-*)
24192 conftest_s="$conftest_s
24193 foo: .long 25
24194 .text
24195 movl %gs:0, %eax
24196 leal foo@tlsgd(,%ebx,1), %eax
24197 leal foo@tlsldm(%ebx), %eax
24198 leal foo@dtpoff(%eax), %edx
24199 movl foo@gottpoff(%ebx), %eax
24200 subl foo@gottpoff(%ebx), %eax
24201 addl foo@gotntpoff(%ebx), %eax
24202 movl foo@indntpoff, %eax
24203 movl \$foo@tpoff, %eax
24204 subl \$foo@tpoff, %eax
24205 leal foo@ntpoff(%ecx), %eax"
24207 x86_64-*-*)
24208 if test x$on_solaris = xyes; then
24209 case $gas_flag in
24210 yes) tls_as_opt="$tls_as_opt --64" ;;
24211 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24212 esac
24214 conftest_s="$conftest_s
24215 foo: .long 25
24216 .text
24217 movq %fs:0, %rax
24218 leaq foo@tlsgd(%rip), %rdi
24219 leaq foo@tlsld(%rip), %rdi
24220 leaq foo@dtpoff(%rax), %rdx
24221 movq foo@gottpoff(%rip), %rax
24222 movq \$foo@tpoff, %rax"
24224 esac
24226 ia64-*-*)
24227 conftest_s='
24228 .section ".tdata","awT",@progbits
24229 foo: data8 25
24230 .text
24231 addl r16 = @ltoff(@dtpmod(foo#)), gp
24232 addl r17 = @ltoff(@dtprel(foo#)), gp
24233 addl r18 = @ltoff(@tprel(foo#)), gp
24234 addl r19 = @dtprel(foo#), gp
24235 adds r21 = @dtprel(foo#), r13
24236 movl r23 = @dtprel(foo#)
24237 addl r20 = @tprel(foo#), gp
24238 adds r22 = @tprel(foo#), r13
24239 movl r24 = @tprel(foo#)'
24240 tls_first_major=2
24241 tls_first_minor=13
24242 tls_as_opt=--fatal-warnings
24244 microblaze*-*-*)
24245 conftest_s='
24246 .section .tdata,"awT",@progbits
24248 .word 2
24249 .text
24250 addik r5,r20,x@TLSGD
24251 addik r5,r20,x@TLSLDM'
24252 tls_first_major=2
24253 tls_first_minor=20
24254 tls_as_opt='--fatal-warnings'
24256 mips*-*-*)
24257 conftest_s='
24258 .section .tdata,"awT",@progbits
24260 .word 2
24261 .text
24262 addiu $4, $28, %tlsgd(x)
24263 addiu $4, $28, %tlsldm(x)
24264 lui $4, %dtprel_hi(x)
24265 addiu $4, $4, %dtprel_lo(x)
24266 lw $4, %gottprel(x)($28)
24267 lui $4, %tprel_hi(x)
24268 addiu $4, $4, %tprel_lo(x)'
24269 tls_first_major=2
24270 tls_first_minor=16
24271 tls_as_opt='-32 --fatal-warnings'
24273 m68k-*-*)
24274 conftest_s='
24275 .section .tdata,"awT",@progbits
24277 .word 2
24278 .text
24279 foo:
24280 move.l x@TLSGD(%a5),%a0
24281 move.l x@TLSLDM(%a5),%a0
24282 move.l x@TLSLDO(%a5),%a0
24283 move.l x@TLSIE(%a5),%a0
24284 move.l x@TLSLE(%a5),%a0'
24285 tls_first_major=2
24286 tls_first_minor=19
24287 tls_as_opt='--fatal-warnings'
24289 nios2-*-*)
24290 conftest_s='
24291 .section ".tdata","awT",@progbits'
24292 tls_first_major=2
24293 tls_first_minor=23
24294 tls_as_opt="--fatal-warnings"
24296 aarch64*-*-*)
24297 conftest_s='
24298 .section ".tdata","awT",%progbits
24299 foo: .long 25
24300 .text
24301 adrp x0, :tlsgd:x
24302 add x0, x0, #:tlsgd_lo12:x
24303 bl __tls_get_addr
24304 nop'
24305 tls_first_major=2
24306 tls_first_minor=20
24307 tls_as_opt='--fatal-warnings'
24309 powerpc-ibm-aix*)
24310 conftest_s='
24311 .extern __get_tpointer
24312 .toc
24313 LC..1:
24314 .tc a[TC],a[TL]@le
24315 .csect .text[PR]
24316 .tlstest:
24317 lwz 9,LC..1(2)
24318 bla __get_tpointer
24319 lwzx 3,9,3
24320 .globl a
24321 .csect a[TL],4
24323 .space 4'
24324 tls_first_major=0
24325 tls_first_minor=0
24327 powerpc64*-*-*)
24328 conftest_s='
24329 .section ".tdata","awT",@progbits
24330 .align 3
24331 ld0: .space 8
24332 ld1: .space 8
24333 x1: .space 8
24334 x2: .space 8
24335 x3: .space 8
24336 .text
24337 addi 3,2,ld0@got@tlsgd
24338 bl .__tls_get_addr
24340 addi 3,2,ld1@toc
24341 bl .__tls_get_addr
24343 addi 3,2,x1@got@tlsld
24344 bl .__tls_get_addr
24346 addi 9,3,x1@dtprel
24347 bl .__tls_get_addr
24349 addis 9,3,x2@dtprel@ha
24350 addi 9,9,x2@dtprel@l
24351 bl .__tls_get_addr
24353 ld 9,x3@got@dtprel(2)
24354 add 9,9,3
24355 bl .__tls_get_addr
24356 nop'
24357 tls_first_major=2
24358 tls_first_minor=14
24359 tls_as_opt="-a64 --fatal-warnings"
24361 powerpc*-*-*)
24362 conftest_s='
24363 .section ".tdata","awT",@progbits
24364 .align 2
24365 ld0: .space 4
24366 ld1: .space 4
24367 x1: .space 4
24368 x2: .space 4
24369 x3: .space 4
24370 .text
24371 addi 3,31,ld0@got@tlsgd
24372 bl __tls_get_addr
24373 addi 3,31,x1@got@tlsld
24374 bl __tls_get_addr
24375 addi 9,3,x1@dtprel
24376 addis 9,3,x2@dtprel@ha
24377 addi 9,9,x2@dtprel@l
24378 lwz 9,x3@got@tprel(31)
24379 add 9,9,x@tls
24380 addi 9,2,x1@tprel
24381 addis 9,2,x2@tprel@ha
24382 addi 9,9,x2@tprel@l'
24383 tls_first_major=2
24384 tls_first_minor=14
24385 tls_as_opt="-a32 --fatal-warnings"
24387 riscv*-*-*)
24388 conftest_s='
24389 .section .tdata,"awT",@progbits
24390 x: .word 2
24391 .text
24392 la.tls.gd a0,x
24393 call __tls_get_addr'
24394 tls_first_major=2
24395 tls_first_minor=21
24396 tls_as_opt='--fatal-warnings'
24398 s390-*-*)
24399 conftest_s='
24400 .section ".tdata","awT",@progbits
24401 foo: .long 25
24402 .text
24403 .long foo@TLSGD
24404 .long foo@TLSLDM
24405 .long foo@DTPOFF
24406 .long foo@NTPOFF
24407 .long foo@GOTNTPOFF
24408 .long foo@INDNTPOFF
24409 l %r1,foo@GOTNTPOFF(%r12)
24410 l %r1,0(%r1):tls_load:foo
24411 bas %r14,0(%r1,%r13):tls_gdcall:foo
24412 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24413 tls_first_major=2
24414 tls_first_minor=14
24415 tls_as_opt="-m31 --fatal-warnings"
24417 s390x-*-*)
24418 conftest_s='
24419 .section ".tdata","awT",@progbits
24420 foo: .long 25
24421 .text
24422 .quad foo@TLSGD
24423 .quad foo@TLSLDM
24424 .quad foo@DTPOFF
24425 .quad foo@NTPOFF
24426 .quad foo@GOTNTPOFF
24427 lg %r1,foo@GOTNTPOFF(%r12)
24428 larl %r1,foo@INDNTPOFF
24429 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24430 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24431 tls_first_major=2
24432 tls_first_minor=14
24433 tls_as_opt="-m64 -Aesame --fatal-warnings"
24435 sh-*-* | sh[123456789lbe]*-*-*)
24436 conftest_s='
24437 .section ".tdata","awT",@progbits
24438 foo: .long 25
24439 .text
24440 .long foo@TLSGD
24441 .long foo@TLSLDM
24442 .long foo@DTPOFF
24443 .long foo@GOTTPOFF
24444 .long foo@TPOFF'
24445 tls_first_major=2
24446 tls_first_minor=13
24447 tls_as_opt=--fatal-warnings
24449 sparc*-*-*)
24450 case "$target" in
24451 sparc*-sun-solaris2.*)
24452 on_solaris=yes
24455 on_solaris=no
24457 esac
24458 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24459 conftest_s='
24460 .section ".tdata",#alloc,#write,#tls'
24461 tls_first_major=0
24462 tls_first_minor=0
24463 else
24464 conftest_s='
24465 .section ".tdata","awT",@progbits'
24466 tls_first_major=2
24467 tls_first_minor=14
24468 tls_as_opt="-32 --fatal-warnings"
24470 conftest_s="$conftest_s
24471 foo: .long 25
24472 .text
24473 sethi %tgd_hi22(foo), %o0
24474 add %o0, %tgd_lo10(foo), %o1
24475 add %l7, %o1, %o0, %tgd_add(foo)
24476 call __tls_get_addr, %tgd_call(foo)
24477 sethi %tldm_hi22(foo), %l1
24478 add %l1, %tldm_lo10(foo), %l2
24479 add %l7, %l2, %o0, %tldm_add(foo)
24480 call __tls_get_addr, %tldm_call(foo)
24481 sethi %tldo_hix22(foo), %l3
24482 xor %l3, %tldo_lox10(foo), %l4
24483 add %o0, %l4, %l5, %tldo_add(foo)
24484 sethi %tie_hi22(foo), %o3
24485 add %o3, %tie_lo10(foo), %o3
24486 ld [%l7 + %o3], %o2, %tie_ld(foo)
24487 add %g7, %o2, %o4, %tie_add(foo)
24488 sethi %tle_hix22(foo), %l1
24489 xor %l1, %tle_lox10(foo), %o5
24490 ld [%g7 + %o5], %o1"
24492 tilepro*-*-*)
24493 conftest_s='
24494 .section ".tdata","awT",@progbits
24495 foo: .long 25
24496 .text
24497 addli r0, zero, tls_gd(foo)
24498 auli r0, zero, tls_gd_ha16(foo)
24499 addli r0, r0, tls_gd_lo16(foo)
24500 jal __tls_get_addr
24501 addli r0, zero, tls_ie(foo)
24502 auli r0, r0, tls_ie_ha16(foo)
24503 addli r0, r0, tls_ie_lo16(foo)'
24504 tls_first_major=2
24505 tls_first_minor=22
24506 tls_as_opt="--fatal-warnings"
24508 tilegx*-*-*)
24509 conftest_s='
24510 .section ".tdata","awT",@progbits
24511 foo: .long 25
24512 .text
24513 shl16insli r0, zero, hw0_last_tls_gd(foo)
24514 shl16insli r0, zero, hw1_last_tls_gd(foo)
24515 shl16insli r0, r0, hw0_tls_gd(foo)
24516 jal __tls_get_addr
24517 shl16insli r0, zero, hw1_last_tls_ie(foo)
24518 shl16insli r0, r0, hw0_tls_ie(foo)'
24519 tls_first_major=2
24520 tls_first_minor=22
24521 tls_as_opt="--fatal-warnings"
24523 xtensa*-*-*)
24524 conftest_s='
24525 .section ".tdata","awT",@progbits
24526 foo: .long 25
24527 .text
24528 movi a8, foo@TLSFUNC
24529 movi a10, foo@TLSARG
24530 callx8.tls a8, foo@TLSCALL'
24531 tls_first_major=2
24532 tls_first_minor=19
24534 esac
24535 set_have_as_tls=no
24536 if test "x$enable_tls" = xno ; then
24537 : # TLS explicitly disabled.
24538 elif test "x$enable_tls" = xyes ; then
24539 set_have_as_tls=yes # TLS explicitly enabled.
24540 elif test -z "$tls_first_major"; then
24541 : # If we don't have a check, assume no support.
24542 else
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24544 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24545 if test "${gcc_cv_as_tls+set}" = set; then :
24546 $as_echo_n "(cached) " >&6
24547 else
24548 gcc_cv_as_tls=no
24549 if test $in_tree_gas = yes; then
24550 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24551 then gcc_cv_as_tls=yes
24553 elif test x$gcc_cv_as != x; then
24554 $as_echo "$conftest_s" > conftest.s
24555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24558 ac_status=$?
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24561 then
24562 gcc_cv_as_tls=yes
24563 else
24564 echo "configure: failed program was" >&5
24565 cat conftest.s >&5
24567 rm -f conftest.o conftest.s
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24571 $as_echo "$gcc_cv_as_tls" >&6; }
24572 if test $gcc_cv_as_tls = yes; then
24573 set_have_as_tls=yes
24577 if test $set_have_as_tls = yes ; then
24579 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24583 # Target-specific assembler checks.
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24586 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24587 gcc_cv_ld_static_dynamic=no
24588 gcc_cv_ld_static_option='-Bstatic'
24589 gcc_cv_ld_dynamic_option='-Bdynamic'
24590 if test $in_tree_ld = yes ; then
24591 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
24592 gcc_cv_ld_static_dynamic=yes
24594 elif test x$gcc_cv_ld != x; then
24595 # Check if linker supports -Bstatic/-Bdynamic option
24596 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24597 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24598 gcc_cv_ld_static_dynamic=yes
24599 else
24600 case "$target" in
24601 # AIX ld uses -b flags
24602 *-*-aix4.[23]* | *-*-aix[5-9]*)
24603 gcc_cv_ld_static_dynamic=yes
24604 gcc_cv_ld_static_option="-bstatic"
24605 gcc_cv_ld_dynamic_option="-bdynamic"
24607 # HP-UX ld uses -a flags to select between shared and archive.
24608 *-*-hpux*)
24609 if test x"$gnu_ld" = xno; then
24610 gcc_cv_ld_static_dynamic=yes
24611 gcc_cv_ld_static_option="-aarchive_shared"
24612 gcc_cv_ld_dynamic_option="-adefault"
24615 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24616 *-*-solaris2*)
24617 gcc_cv_ld_static_dynamic=yes
24619 esac
24622 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24624 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24627 cat >>confdefs.h <<_ACEOF
24628 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24629 _ACEOF
24632 cat >>confdefs.h <<_ACEOF
24633 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24634 _ACEOF
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24638 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24641 $as_echo_n "checking linker --version-script option... " >&6; }
24642 gcc_cv_ld_version_script=no
24643 ld_version_script_option=''
24644 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24645 gcc_cv_ld_version_script=yes
24646 ld_version_script_option='--version-script'
24647 elif test x$gcc_cv_ld != x; then
24648 case "$target" in
24649 # Solaris 2 ld always supports -M. It also supports a subset of
24650 # --version-script since Solaris 11.4, but requires
24651 # -z gnu-version-script-compat to activate.
24652 *-*-solaris2*)
24653 gcc_cv_ld_version_script=yes
24654 ld_version_script_option='-M'
24656 esac
24658 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24660 $as_echo "$gcc_cv_ld_version_script" >&6; }
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24664 $as_echo_n "checking linker soname option... " >&6; }
24665 gcc_cv_ld_soname=no
24666 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24667 gcc_cv_ld_soname=yes
24668 ld_soname_option='-soname'
24669 elif test x$gcc_cv_ld != x; then
24670 case "$target" in
24671 *-*-darwin*)
24672 gcc_cv_ld_soname=yes
24673 ld_soname_option='-install_name'
24675 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24676 # ld compatiblity since some Solaris 10 update.
24677 *-*-solaris2*)
24678 gcc_cv_ld_soname=yes
24679 ld_soname_option='-h'
24681 esac
24683 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24685 $as_echo "$gcc_cv_ld_soname" >&6; }
24688 if test x"$demangler_in_ld" = xyes; then
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24690 $as_echo_n "checking linker --demangle support... " >&6; }
24691 gcc_cv_ld_demangle=no
24692 if test $in_tree_ld = yes; then
24693 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 \
24694 gcc_cv_ld_demangle=yes
24696 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24697 # Check if the GNU linker supports --demangle option
24698 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24699 gcc_cv_ld_demangle=yes
24702 if test x"$gcc_cv_ld_demangle" = xyes; then
24704 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24708 $as_echo "$gcc_cv_ld_demangle" >&6; }
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24712 $as_echo_n "checking linker plugin support... " >&6; }
24713 gcc_cv_lto_plugin=0
24714 if test -f liblto_plugin.la; then
24715 save_ld_ver="$ld_ver"
24716 save_ld_vers_major="$ld_vers_major"
24717 save_ld_vers_minor="$ld_vers_minor"
24718 save_ld_is_gold="$ld_is_gold"
24720 ld_is_gold=no
24722 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24723 ld_ver="GNU ld"
24724 # FIXME: ld_is_gold?
24725 ld_vers_major="$gcc_cv_gld_major_version"
24726 ld_vers_minor="$gcc_cv_gld_minor_version"
24727 else
24728 # Determine plugin linker version.
24729 # FIXME: Partial duplicate from above, generalize.
24730 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24731 if echo "$ld_ver" | grep GNU > /dev/null; then
24732 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24733 ld_is_gold=yes
24734 ld_vers=`echo $ld_ver | sed -n \
24735 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24736 else
24737 ld_vers=`echo $ld_ver | sed -n \
24738 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24740 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24741 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24745 # Determine plugin support.
24746 if echo "$ld_ver" | grep GNU > /dev/null; then
24747 # Require GNU ld or gold 2.21+ for plugin support by default.
24748 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24749 gcc_cv_lto_plugin=2
24750 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24751 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24752 gcc_cv_lto_plugin=1
24756 ld_ver="$save_ld_ver"
24757 ld_vers_major="$save_ld_vers_major"
24758 ld_vers_minor="$save_ld_vers_minor"
24759 ld_is_gold="$save_ld_is_gold"
24762 cat >>confdefs.h <<_ACEOF
24763 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24764 _ACEOF
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24767 $as_echo "$gcc_cv_lto_plugin" >&6; }
24769 # Target OS-specific assembler checks.
24771 case "$target_os" in
24772 darwin*)
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24774 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24775 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 gcc_cv_as_mmacosx_version_min=no
24779 if test x$gcc_cv_as != x; then
24780 $as_echo '.text' > conftest.s
24781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783 (eval $ac_try) 2>&5
24784 ac_status=$?
24785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786 test $ac_status = 0; }; }
24787 then
24788 gcc_cv_as_mmacosx_version_min=yes
24789 else
24790 echo "configure: failed program was" >&5
24791 cat conftest.s >&5
24793 rm -f conftest.o conftest.s
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24797 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24798 if test $gcc_cv_as_mmacosx_version_min = yes; then
24800 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24805 esac
24807 # Target CPU-specific assembler checks.
24809 case "$target" in
24810 aarch64*-*-*)
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24812 $as_echo_n "checking assembler for -mabi option... " >&6; }
24813 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24815 else
24816 gcc_cv_as_aarch64_mabi=no
24817 if test x$gcc_cv_as != x; then
24818 $as_echo '.text' > conftest.s
24819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24822 ac_status=$?
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24825 then
24826 gcc_cv_as_aarch64_mabi=yes
24827 else
24828 echo "configure: failed program was" >&5
24829 cat conftest.s >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24835 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24838 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24840 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24842 else
24843 if test x$with_abi = xilp32; then
24844 as_fn_error "Assembler does not support -mabi=ilp32.\
24845 Upgrade the Assembler." "$LINENO" 5
24847 if test x"$with_multilib_list" = xdefault; then
24848 TM_MULTILIB_CONFIG=lp64
24849 else
24850 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24851 for aarch64_multilib in ${aarch64_multilibs}; do
24852 case ${aarch64_multilib} in
24853 ilp32)
24854 as_fn_error "Assembler does not support -mabi=ilp32.\
24855 Upgrade the Assembler." "$LINENO" 5
24859 esac
24860 done
24863 # Check if we have binutils support for relocations types needed by -fpic
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24865 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24866 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24867 $as_echo_n "(cached) " >&6
24868 else
24869 gcc_cv_as_aarch64_picreloc=no
24870 if test x$gcc_cv_as != x; then
24871 $as_echo '
24872 .text
24873 ldr x0, [x2, #:gotpage_lo15:globalsym]
24874 ' > conftest.s
24875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24877 (eval $ac_try) 2>&5
24878 ac_status=$?
24879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24880 test $ac_status = 0; }; }
24881 then
24882 gcc_cv_as_aarch64_picreloc=yes
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24887 rm -f conftest.o conftest.s
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24891 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24892 if test $gcc_cv_as_aarch64_picreloc = yes; then
24894 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24898 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24899 # Check whether --enable-fix-cortex-a53-835769 was given.
24900 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24901 enableval=$enable_fix_cortex_a53_835769;
24902 case $enableval in
24903 yes)
24904 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24909 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24910 Valid choices are 'yes' and 'no'." "$LINENO" 5
24913 esac
24917 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24918 # Check whether --enable-fix-cortex-a53-843419 was given.
24919 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24920 enableval=$enable_fix_cortex_a53_843419;
24921 case $enableval in
24922 yes)
24923 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24928 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24929 Valid choices are 'yes' and 'no'." "$LINENO" 5
24932 esac
24938 # All TARGET_ABI_OSF targets.
24939 alpha*-*-linux* | alpha*-*-*bsd*)
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24941 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24942 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24943 $as_echo_n "(cached) " >&6
24944 else
24945 gcc_cv_as_alpha_explicit_relocs=no
24946 if test $in_tree_gas = yes; then
24947 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24948 then gcc_cv_as_alpha_explicit_relocs=yes
24950 elif test x$gcc_cv_as != x; then
24951 $as_echo ' .set nomacro
24952 .text
24953 extbl $3, $2, $3 !lituse_bytoff!1
24954 ldq $2, a($29) !literal!1
24955 ldq $4, b($29) !literal!2
24956 ldq_u $3, 0($2) !lituse_base!1
24957 ldq $27, f($29) !literal!5
24958 jsr $26, ($27), f !lituse_jsr!5
24959 ldah $29, 0($26) !gpdisp!3
24960 lda $0, c($29) !gprel
24961 ldah $1, d($29) !gprelhigh
24962 lda $1, d($1) !gprellow
24963 lda $29, 0($29) !gpdisp!3' > conftest.s
24964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24966 (eval $ac_try) 2>&5
24967 ac_status=$?
24968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24969 test $ac_status = 0; }; }
24970 then
24971 gcc_cv_as_alpha_explicit_relocs=yes
24972 else
24973 echo "configure: failed program was" >&5
24974 cat conftest.s >&5
24976 rm -f conftest.o conftest.s
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24980 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24981 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24983 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24988 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24989 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24991 else
24992 gcc_cv_as_alpha_jsrdirect_relocs=no
24993 if test $in_tree_gas = yes; then
24994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24995 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24997 elif test x$gcc_cv_as != x; then
24998 $as_echo ' .set nomacro
24999 .text
25000 ldq $27, a($29) !literal!1
25001 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25004 (eval $ac_try) 2>&5
25005 ac_status=$?
25006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25007 test $ac_status = 0; }; }
25008 then
25009 gcc_cv_as_alpha_jsrdirect_relocs=yes
25010 else
25011 echo "configure: failed program was" >&5
25012 cat conftest.s >&5
25014 rm -f conftest.o conftest.s
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25018 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25019 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25021 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25027 avr-*-*)
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25029 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25030 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
25031 $as_echo_n "(cached) " >&6
25032 else
25033 gcc_cv_as_avr_mlink_relax=no
25034 if test x$gcc_cv_as != x; then
25035 $as_echo '.text' > conftest.s
25036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25038 (eval $ac_try) 2>&5
25039 ac_status=$?
25040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25041 test $ac_status = 0; }; }
25042 then
25043 gcc_cv_as_avr_mlink_relax=yes
25044 else
25045 echo "configure: failed program was" >&5
25046 cat conftest.s >&5
25048 rm -f conftest.o conftest.s
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25052 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25053 if test $gcc_cv_as_avr_mlink_relax = yes; then
25055 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25061 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25062 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
25063 $as_echo_n "(cached) " >&6
25064 else
25065 gcc_cv_as_avr_mrmw=no
25066 if test x$gcc_cv_as != x; then
25067 $as_echo '.text' > conftest.s
25068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25070 (eval $ac_try) 2>&5
25071 ac_status=$?
25072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25073 test $ac_status = 0; }; }
25074 then
25075 gcc_cv_as_avr_mrmw=yes
25076 else
25077 echo "configure: failed program was" >&5
25078 cat conftest.s >&5
25080 rm -f conftest.o conftest.s
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25084 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25085 if test $gcc_cv_as_avr_mrmw = yes; then
25087 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25093 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25094 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25095 $as_echo_n "(cached) " >&6
25096 else
25097 gcc_cv_as_avr_mgccisr=no
25098 if test x$gcc_cv_as != x; then
25099 $as_echo '.text
25100 __gcc_isr 1
25101 __gcc_isr 2
25102 __gcc_isr 0,r24
25103 ' > conftest.s
25104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25109 test $ac_status = 0; }; }
25110 then
25111 gcc_cv_as_avr_mgccisr=yes
25112 else
25113 echo "configure: failed program was" >&5
25114 cat conftest.s >&5
25116 rm -f conftest.o conftest.s
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25120 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25121 if test $gcc_cv_as_avr_mgccisr = yes; then
25123 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25128 # Check how default linker description file implements .rodata for
25129 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25130 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25132 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25133 cat > conftest.s <<EOF
25134 .section .rodata,"a",@progbits
25135 .global xxvaryy
25136 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25137 xxvaryy:
25138 .word 1
25140 rm -f conftest.nm
25141 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25149 (eval $ac_try) 2>&5
25150 ac_status=$?
25151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25152 test $ac_status = 0; }; }
25153 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25158 test $ac_status = 0; }; }
25159 if test -s conftest.nm
25160 then
25161 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25163 $as_echo "yes" >&6; }
25165 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25167 else
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25169 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25170 echo "$as_me: nm output was" >&5
25171 cat conftest.nm >&5
25172 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25174 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25176 else
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25178 $as_echo "test failed" >&6; }
25179 echo "$as_me: failed program was" >&5
25180 cat conftest.s >&5
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25182 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25184 rm -f conftest.s conftest.o conftest.elf conftest.nm
25187 cris-*-*)
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25189 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25190 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25191 $as_echo_n "(cached) " >&6
25192 else
25193 gcc_cv_as_cris_no_mul_bug=no
25194 if test $in_tree_gas = yes; then
25195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25196 then gcc_cv_as_cris_no_mul_bug=yes
25198 elif test x$gcc_cv_as != x; then
25199 $as_echo '.text' > conftest.s
25200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25202 (eval $ac_try) 2>&5
25203 ac_status=$?
25204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25205 test $ac_status = 0; }; }
25206 then
25207 gcc_cv_as_cris_no_mul_bug=yes
25208 else
25209 echo "configure: failed program was" >&5
25210 cat conftest.s >&5
25212 rm -f conftest.o conftest.s
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25216 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25217 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25219 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25225 sparc*-*-*)
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25227 $as_echo_n "checking assembler for .register... " >&6; }
25228 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25229 $as_echo_n "(cached) " >&6
25230 else
25231 gcc_cv_as_sparc_register_op=no
25232 if test x$gcc_cv_as != x; then
25233 $as_echo '.register %g2, #scratch' > conftest.s
25234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25239 test $ac_status = 0; }; }
25240 then
25241 gcc_cv_as_sparc_register_op=yes
25242 else
25243 echo "configure: failed program was" >&5
25244 cat conftest.s >&5
25246 rm -f conftest.o conftest.s
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25250 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25251 if test $gcc_cv_as_sparc_register_op = yes; then
25253 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25259 $as_echo_n "checking assembler for -relax option... " >&6; }
25260 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25261 $as_echo_n "(cached) " >&6
25262 else
25263 gcc_cv_as_sparc_relax=no
25264 if test x$gcc_cv_as != x; then
25265 $as_echo '.text' > conftest.s
25266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25268 (eval $ac_try) 2>&5
25269 ac_status=$?
25270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25271 test $ac_status = 0; }; }
25272 then
25273 gcc_cv_as_sparc_relax=yes
25274 else
25275 echo "configure: failed program was" >&5
25276 cat conftest.s >&5
25278 rm -f conftest.o conftest.s
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25282 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25283 if test $gcc_cv_as_sparc_relax = yes; then
25285 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25291 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25292 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25293 $as_echo_n "(cached) " >&6
25294 else
25295 gcc_cv_as_sparc_gotdata_op=no
25296 if test x$gcc_cv_as != x; then
25297 $as_echo '.text
25298 .align 4
25299 foo:
25301 bar:
25302 sethi %gdop_hix22(foo), %g1
25303 xor %g1, %gdop_lox10(foo), %g1
25304 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25307 (eval $ac_try) 2>&5
25308 ac_status=$?
25309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25310 test $ac_status = 0; }; }
25311 then
25312 if test x$gcc_cv_ld != x \
25313 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25314 if test x$gcc_cv_objdump != x; then
25315 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25316 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25317 gcc_cv_as_sparc_gotdata_op=no
25318 else
25319 gcc_cv_as_sparc_gotdata_op=yes
25323 rm -f conftest
25324 else
25325 echo "configure: failed program was" >&5
25326 cat conftest.s >&5
25328 rm -f conftest.o conftest.s
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25332 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25333 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25335 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25341 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25342 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25343 $as_echo_n "(cached) " >&6
25344 else
25345 gcc_cv_as_sparc_ua_pcrel=no
25346 if test x$gcc_cv_as != x; then
25347 $as_echo '.text
25348 foo:
25350 .data
25351 .align 4
25352 .byte 0
25353 .uaword %r_disp32(foo)' > conftest.s
25354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
25358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25359 test $ac_status = 0; }; }
25360 then
25361 if test x$gcc_cv_ld != x \
25362 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25363 gcc_cv_as_sparc_ua_pcrel=yes
25365 rm -f conftest
25366 else
25367 echo "configure: failed program was" >&5
25368 cat conftest.s >&5
25370 rm -f conftest.o conftest.s
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25374 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25375 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25377 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25381 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25382 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25383 $as_echo_n "(cached) " >&6
25384 else
25385 gcc_cv_as_sparc_ua_pcrel_hidden=no
25386 if test x$gcc_cv_as != x; then
25387 $as_echo '.data
25388 .align 4
25389 .byte 0x31
25390 .uaword %r_disp32(foo)
25391 .byte 0x32, 0x33, 0x34
25392 .global foo
25393 .hidden foo
25394 foo:
25395 .skip 4' > conftest.s
25396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25402 then
25403 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25404 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25405 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25406 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25407 if $gcc_cv_objdump -R conftest 2> /dev/null \
25408 | grep 'DISP32' > /dev/null 2>&1; then
25410 else
25411 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25414 rm -f conftest
25415 else
25416 echo "configure: failed program was" >&5
25417 cat conftest.s >&5
25419 rm -f conftest.o conftest.s
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25423 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25424 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25426 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25432 # unaligned pcrel relocs
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25435 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25436 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25437 $as_echo_n "(cached) " >&6
25438 else
25439 gcc_cv_as_sparc_offsetable_lo10=no
25440 if test x$gcc_cv_as != x; then
25441 $as_echo '.text
25442 or %g1, %lo(ab) + 12, %g1
25443 or %g1, %lo(ab + 12), %g1' > conftest.s
25444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25446 (eval $ac_try) 2>&5
25447 ac_status=$?
25448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25449 test $ac_status = 0; }; }
25450 then
25451 if test x$gcc_cv_objdump != x \
25452 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25453 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25454 gcc_cv_as_sparc_offsetable_lo10=yes
25456 else
25457 echo "configure: failed program was" >&5
25458 cat conftest.s >&5
25460 rm -f conftest.o conftest.s
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25464 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25465 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25467 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25473 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25474 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25475 $as_echo_n "(cached) " >&6
25476 else
25477 gcc_cv_as_sparc_fmaf=no
25478 if test x$gcc_cv_as != x; then
25479 $as_echo '.text
25480 .register %g2, #scratch
25481 .register %g3, #scratch
25482 .align 4
25483 fmaddd %f0, %f2, %f4, %f6
25484 addxccc %g1, %g2, %g3
25485 fsrl32 %f2, %f4, %f8
25486 fnaddd %f10, %f12, %f14' > conftest.s
25487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492 test $ac_status = 0; }; }
25493 then
25494 gcc_cv_as_sparc_fmaf=yes
25495 else
25496 echo "configure: failed program was" >&5
25497 cat conftest.s >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25503 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25504 if test $gcc_cv_as_sparc_fmaf = yes; then
25506 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25512 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25513 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25515 else
25516 gcc_cv_as_sparc_sparc4=no
25517 if test x$gcc_cv_as != x; then
25518 $as_echo '.text
25519 .register %g2, #scratch
25520 .register %g3, #scratch
25521 .align 4
25522 cxbe %g2, %g3, 1f
25523 1: cwbneg %g2, %g3, 1f
25524 1: sha1
25526 aes_kexpand0 %f4, %f6, %f8
25527 des_round %f38, %f40, %f42, %f44
25528 camellia_f %f54, %f56, %f58, %f60
25529 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25532 (eval $ac_try) 2>&5
25533 ac_status=$?
25534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25535 test $ac_status = 0; }; }
25536 then
25537 gcc_cv_as_sparc_sparc4=yes
25538 else
25539 echo "configure: failed program was" >&5
25540 cat conftest.s >&5
25542 rm -f conftest.o conftest.s
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25546 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25547 if test $gcc_cv_as_sparc_sparc4 = yes; then
25549 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25555 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25556 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25557 $as_echo_n "(cached) " >&6
25558 else
25559 gcc_cv_as_sparc_sparc5=no
25560 if test x$gcc_cv_as != x; then
25561 $as_echo '.text
25562 .register %g2, #scratch
25563 .register %g3, #scratch
25564 .align 4
25565 subxc %g1, %g2, %g3
25566 fpadd8 %f0, %f2, %f4' > conftest.s
25567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25572 test $ac_status = 0; }; }
25573 then
25574 gcc_cv_as_sparc_sparc5=yes
25575 else
25576 echo "configure: failed program was" >&5
25577 cat conftest.s >&5
25579 rm -f conftest.o conftest.s
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25583 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25584 if test $gcc_cv_as_sparc_sparc5 = yes; then
25586 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25592 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25593 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25594 $as_echo_n "(cached) " >&6
25595 else
25596 gcc_cv_as_sparc_sparc6=no
25597 if test x$gcc_cv_as != x; then
25598 $as_echo '.text
25599 .register %g2, #scratch
25600 .register %g3, #scratch
25601 .align 4
25602 rd %entropy, %g1
25603 fpsll64x %f0, %f2, %f4' > conftest.s
25604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25607 ac_status=$?
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25610 then
25611 gcc_cv_as_sparc_sparc6=yes
25612 else
25613 echo "configure: failed program was" >&5
25614 cat conftest.s >&5
25616 rm -f conftest.o conftest.s
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25620 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25621 if test $gcc_cv_as_sparc_sparc6 = yes; then
25623 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25629 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25630 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25632 else
25633 gcc_cv_as_sparc_leon=no
25634 if test x$gcc_cv_as != x; then
25635 $as_echo '.text
25636 .register %g2, #scratch
25637 .register %g3, #scratch
25638 .align 4
25639 smac %g2, %g3, %g1
25640 umac %g2, %g3, %g1
25641 casa [%g2] 0xb, %g3, %g1' > conftest.s
25642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25644 (eval $ac_try) 2>&5
25645 ac_status=$?
25646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25647 test $ac_status = 0; }; }
25648 then
25649 gcc_cv_as_sparc_leon=yes
25650 else
25651 echo "configure: failed program was" >&5
25652 cat conftest.s >&5
25654 rm -f conftest.o conftest.s
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25658 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25659 if test $gcc_cv_as_sparc_leon = yes; then
25661 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25667 i[34567]86-*-* | x86_64-*-*)
25668 case $target_os in
25669 cygwin*)
25670 # Full C++ conformance when using a shared libstdc++-v3 requires some
25671 # support from the Cygwin DLL, which in more recent versions exports
25672 # wrappers to aid in interposing and redirecting operators new, delete,
25673 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25674 # are configuring for a version of Cygwin that exports the wrappers.
25675 if test x$host = x$target && test x$host_cpu = xi686; then
25676 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25677 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25678 gcc_ac_cygwin_dll_wrappers=yes
25679 else
25680 gcc_ac_cygwin_dll_wrappers=no
25683 else
25684 # Can't check presence of libc functions during cross-compile, so
25685 # we just have to assume we're building for an up-to-date target.
25686 gcc_ac_cygwin_dll_wrappers=yes
25689 cat >>confdefs.h <<_ACEOF
25690 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25691 _ACEOF
25693 esac
25694 case $target_os in
25695 cygwin* | pe | mingw32*)
25696 # Recent binutils allows the three-operand form of ".comm" on PE. This
25697 # definition is used unconditionally to initialise the default state of
25698 # the target option variable that governs usage of the feature.
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25700 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25701 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25702 $as_echo_n "(cached) " >&6
25703 else
25704 gcc_cv_as_comm_has_align=no
25705 if test $in_tree_gas = yes; then
25706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25707 then gcc_cv_as_comm_has_align=yes
25709 elif test x$gcc_cv_as != x; then
25710 $as_echo '.comm foo,1,32' > conftest.s
25711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25713 (eval $ac_try) 2>&5
25714 ac_status=$?
25715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25716 test $ac_status = 0; }; }
25717 then
25718 gcc_cv_as_comm_has_align=yes
25719 else
25720 echo "configure: failed program was" >&5
25721 cat conftest.s >&5
25723 rm -f conftest.o conftest.s
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25727 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25731 cat >>confdefs.h <<_ACEOF
25732 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25733 _ACEOF
25735 # Used for DWARF 2 in PE
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25737 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25738 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25739 $as_echo_n "(cached) " >&6
25740 else
25741 gcc_cv_as_ix86_pe_secrel32=no
25742 if test $in_tree_gas = yes; then
25743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25744 then gcc_cv_as_ix86_pe_secrel32=yes
25746 elif test x$gcc_cv_as != x; then
25747 $as_echo '.text
25748 foo: nop
25749 .data
25750 .secrel32 foo' > conftest.s
25751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756 test $ac_status = 0; }; }
25757 then
25758 if test x$gcc_cv_ld != x \
25759 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25760 gcc_cv_as_ix86_pe_secrel32=yes
25762 rm -f conftest
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_pe_secrel32" >&5
25771 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25772 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25774 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25778 # Test if the assembler supports the extended form of the .section
25779 # directive that specifies section alignment. LTO support uses this,
25780 # but normally only after installation, so we warn but don't fail the
25781 # configure if LTO is enabled but the assembler does not support it.
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25783 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25784 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25785 $as_echo_n "(cached) " >&6
25786 else
25787 gcc_cv_as_section_has_align=no
25788 if test $in_tree_gas = yes; then
25789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25790 then gcc_cv_as_section_has_align=yes
25792 elif test x$gcc_cv_as != x; then
25793 $as_echo '.section lto_test,"dr0"' > conftest.s
25794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25796 (eval $ac_try) 2>&5
25797 ac_status=$?
25798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25799 test $ac_status = 0; }; }
25800 then
25801 gcc_cv_as_section_has_align=yes
25802 else
25803 echo "configure: failed program was" >&5
25804 cat conftest.s >&5
25806 rm -f conftest.o conftest.s
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25810 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25813 if test x$gcc_cv_as_section_has_align != xyes; then
25814 case ",$enable_languages," in
25815 *,lto,*)
25816 { $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
25817 $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;}
25819 esac
25822 esac
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25825 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25826 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25827 $as_echo_n "(cached) " >&6
25828 else
25829 gcc_cv_as_ix86_xbrace_comment=no
25830 if test x$gcc_cv_as != x; then
25831 $as_echo '.text' > conftest.s
25832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25838 then
25839 gcc_cv_as_ix86_xbrace_comment=yes
25840 else
25841 echo "configure: failed program was" >&5
25842 cat conftest.s >&5
25844 rm -f conftest.o conftest.s
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25848 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25849 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25851 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25857 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25858 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25859 $as_echo_n "(cached) " >&6
25860 else
25861 gcc_cv_as_ix86_filds=no
25862 if test x$gcc_cv_as != x; then
25863 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25866 (eval $ac_try) 2>&5
25867 ac_status=$?
25868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25869 test $ac_status = 0; }; }
25870 then
25871 gcc_cv_as_ix86_filds=yes
25872 else
25873 echo "configure: failed program was" >&5
25874 cat conftest.s >&5
25876 rm -f conftest.o conftest.s
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25880 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25881 if test $gcc_cv_as_ix86_filds = yes; then
25883 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25889 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25890 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 gcc_cv_as_ix86_fildq=no
25894 if test x$gcc_cv_as != x; then
25895 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25901 test $ac_status = 0; }; }
25902 then
25903 gcc_cv_as_ix86_fildq=yes
25904 else
25905 echo "configure: failed program was" >&5
25906 cat conftest.s >&5
25908 rm -f conftest.o conftest.s
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25912 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25913 if test $gcc_cv_as_ix86_fildq = yes; then
25915 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25921 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25922 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25923 $as_echo_n "(cached) " >&6
25924 else
25925 gcc_cv_as_ix86_cmov_sun_syntax=no
25926 if test x$gcc_cv_as != x; then
25927 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25933 test $ac_status = 0; }; }
25934 then
25935 gcc_cv_as_ix86_cmov_sun_syntax=yes
25936 else
25937 echo "configure: failed program was" >&5
25938 cat conftest.s >&5
25940 rm -f conftest.o conftest.s
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25944 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25945 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25947 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25953 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25954 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25955 $as_echo_n "(cached) " >&6
25956 else
25957 gcc_cv_as_ix86_ffreep=no
25958 if test x$gcc_cv_as != x; then
25959 $as_echo 'ffreep %st(1)' > conftest.s
25960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25965 test $ac_status = 0; }; }
25966 then
25967 gcc_cv_as_ix86_ffreep=yes
25968 else
25969 echo "configure: failed program was" >&5
25970 cat conftest.s >&5
25972 rm -f conftest.o conftest.s
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25976 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25977 if test $gcc_cv_as_ix86_ffreep = yes; then
25979 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25985 $as_echo_n "checking assembler for .quad directive... " >&6; }
25986 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25987 $as_echo_n "(cached) " >&6
25988 else
25989 gcc_cv_as_ix86_quad=no
25990 if test x$gcc_cv_as != x; then
25991 $as_echo '.quad 0' > conftest.s
25992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25994 (eval $ac_try) 2>&5
25995 ac_status=$?
25996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25997 test $ac_status = 0; }; }
25998 then
25999 gcc_cv_as_ix86_quad=yes
26000 else
26001 echo "configure: failed program was" >&5
26002 cat conftest.s >&5
26004 rm -f conftest.o conftest.s
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26008 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26009 if test $gcc_cv_as_ix86_quad = yes; then
26011 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26017 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26018 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
26019 $as_echo_n "(cached) " >&6
26020 else
26021 gcc_cv_as_ix86_sahf=no
26022 if test x$gcc_cv_as != x; then
26023 $as_echo '.code64
26024 sahf' > conftest.s
26025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26030 test $ac_status = 0; }; }
26031 then
26032 gcc_cv_as_ix86_sahf=yes
26033 else
26034 echo "configure: failed program was" >&5
26035 cat conftest.s >&5
26037 rm -f conftest.o conftest.s
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26041 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26042 if test $gcc_cv_as_ix86_sahf = yes; then
26044 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26050 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26051 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 gcc_cv_as_ix86_interunit_movq=no
26055 if test x$gcc_cv_as != x; then
26056 $as_echo '.code64
26057 movq %mm0, %rax
26058 movq %rax, %xmm0' > conftest.s
26059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26065 then
26066 gcc_cv_as_ix86_interunit_movq=yes
26067 else
26068 echo "configure: failed program was" >&5
26069 cat conftest.s >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26075 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26079 cat >>confdefs.h <<_ACEOF
26080 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26081 _ACEOF
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26085 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26086 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26087 $as_echo_n "(cached) " >&6
26088 else
26089 gcc_cv_as_ix86_hle=no
26090 if test x$gcc_cv_as != x; then
26091 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26097 test $ac_status = 0; }; }
26098 then
26099 gcc_cv_as_ix86_hle=yes
26100 else
26101 echo "configure: failed program was" >&5
26102 cat conftest.s >&5
26104 rm -f conftest.o conftest.s
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26108 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26109 if test $gcc_cv_as_ix86_hle = yes; then
26111 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26117 $as_echo_n "checking assembler for swap suffix... " >&6; }
26118 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26119 $as_echo_n "(cached) " >&6
26120 else
26121 gcc_cv_as_ix86_swap=no
26122 if test x$gcc_cv_as != x; then
26123 $as_echo 'movl.s %esp, %ebp' > conftest.s
26124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26126 (eval $ac_try) 2>&5
26127 ac_status=$?
26128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26129 test $ac_status = 0; }; }
26130 then
26131 gcc_cv_as_ix86_swap=yes
26132 else
26133 echo "configure: failed program was" >&5
26134 cat conftest.s >&5
26136 rm -f conftest.o conftest.s
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26140 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26141 if test $gcc_cv_as_ix86_swap = yes; then
26143 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26149 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26150 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26151 $as_echo_n "(cached) " >&6
26152 else
26153 gcc_cv_as_ix86_diff_sect_delta=no
26154 if test x$gcc_cv_as != x; then
26155 $as_echo '.section .rodata
26156 .L1:
26157 .long .L2-.L1
26158 .long .L3-.L1
26159 .text
26160 .L3: nop
26161 .L2: nop' > conftest.s
26162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26164 (eval $ac_try) 2>&5
26165 ac_status=$?
26166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26167 test $ac_status = 0; }; }
26168 then
26169 gcc_cv_as_ix86_diff_sect_delta=yes
26170 else
26171 echo "configure: failed program was" >&5
26172 cat conftest.s >&5
26174 rm -f conftest.o conftest.s
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26178 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26179 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26181 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26187 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26188 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26189 $as_echo_n "(cached) " >&6
26190 else
26191 gcc_cv_as_ix86_rep_lock_prefix=no
26192 if test x$gcc_cv_as != x; then
26193 $as_echo 'rep movsl
26194 rep ret
26195 rep nop
26196 rep bsf %ecx, %eax
26197 rep bsr %ecx, %eax
26198 lock addl %edi, (%eax,%esi)
26199 lock orl $0, (%esp)' > conftest.s
26200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26202 (eval $ac_try) 2>&5
26203 ac_status=$?
26204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26205 test $ac_status = 0; }; }
26206 then
26207 gcc_cv_as_ix86_rep_lock_prefix=yes
26208 else
26209 echo "configure: failed program was" >&5
26210 cat conftest.s >&5
26212 rm -f conftest.o conftest.s
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26216 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26217 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26219 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26225 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26226 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26227 $as_echo_n "(cached) " >&6
26228 else
26229 gcc_cv_as_ix86_ud2=no
26230 if test x$gcc_cv_as != x; then
26231 $as_echo 'ud2' > conftest.s
26232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26234 (eval $ac_try) 2>&5
26235 ac_status=$?
26236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26237 test $ac_status = 0; }; }
26238 then
26239 gcc_cv_as_ix86_ud2=yes
26240 else
26241 echo "configure: failed program was" >&5
26242 cat conftest.s >&5
26244 rm -f conftest.o conftest.s
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26248 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26249 if test $gcc_cv_as_ix86_ud2 = yes; then
26251 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26256 # Enforce 32-bit output with gas and gld.
26257 if test x$gas = xyes; then
26258 as_ix86_gas_32_opt="--32"
26260 if echo "$ld_ver" | grep GNU > /dev/null; then
26261 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26262 ld_ix86_gld_32_opt="-melf_i386_sol2"
26263 else
26264 ld_ix86_gld_32_opt="-melf_i386"
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26269 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26270 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26271 $as_echo_n "(cached) " >&6
26272 else
26273 gcc_cv_as_ix86_tlsgdplt=no
26274 if test x$gcc_cv_as != x; then
26275 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26281 test $ac_status = 0; }; }
26282 then
26283 if test x$gcc_cv_ld != x \
26284 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26285 gcc_cv_as_ix86_tlsgdplt=yes
26287 rm -f conftest
26288 else
26289 echo "configure: failed program was" >&5
26290 cat conftest.s >&5
26292 rm -f conftest.o conftest.s
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26296 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26297 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26299 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26304 conftest_s='
26305 .section .tdata,"aw'$tls_section_flag'",@progbits
26306 tls_ld:
26307 .section .text,"ax",@progbits
26308 call tls_ld@tlsldmplt'
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26311 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26312 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26313 $as_echo_n "(cached) " >&6
26314 else
26315 gcc_cv_as_ix86_tlsldmplt=no
26316 if test x$gcc_cv_as != x; then
26317 $as_echo "$conftest_s" > conftest.s
26318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26323 test $ac_status = 0; }; }
26324 then
26325 if test x$gcc_cv_ld != x \
26326 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26327 gcc_cv_as_ix86_tlsldmplt=yes
26329 rm -f conftest
26330 else
26331 echo "configure: failed program was" >&5
26332 cat conftest.s >&5
26334 rm -f conftest.o conftest.s
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26338 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26342 cat >>confdefs.h <<_ACEOF
26343 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26344 _ACEOF
26347 conftest_s='
26348 .section .text,"ax",@progbits
26349 .globl _start
26350 .type _start, @function
26351 _start:
26352 leal value@tlsldm(%ebx), %eax
26353 call ___tls_get_addr@plt
26355 .section .tdata,"aw'$tls_section_flag'",@progbits
26356 .type value, @object
26357 value:'
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26359 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26360 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26361 $as_echo_n "(cached) " >&6
26362 else
26363 gcc_cv_as_ix86_tlsldm=no
26364 if test x$gcc_cv_as != x; then
26365 $as_echo "$conftest_s" > conftest.s
26366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26368 (eval $ac_try) 2>&5
26369 ac_status=$?
26370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26371 test $ac_status = 0; }; }
26372 then
26373 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26374 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26375 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26376 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26377 gcc_cv_as_ix86_tlsldm=yes
26380 rm -f conftest
26381 else
26382 echo "configure: failed program was" >&5
26383 cat conftest.s >&5
26385 rm -f conftest.o conftest.s
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26389 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26393 cat >>confdefs.h <<_ACEOF
26394 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26395 _ACEOF
26398 conftest_s='
26399 .data
26400 bar:
26401 .byte 1
26402 .text
26403 .global _start
26404 _start:
26405 cmpl $0, bar@GOT
26406 jmp *_start@GOT'
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26408 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26409 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26410 $as_echo_n "(cached) " >&6
26411 else
26412 gcc_cv_as_ix86_got32x=no
26413 if test x$gcc_cv_as != x; then
26414 $as_echo "$conftest_s" > conftest.s
26415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26417 (eval $ac_try) 2>&5
26418 ac_status=$?
26419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26420 test $ac_status = 0; }; }
26421 then
26422 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26423 && test x$gcc_cv_readelf != x \
26424 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26425 | grep R_386_GOT32X > /dev/null 2>&1 \
26426 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26427 if $gcc_cv_objdump -dw conftest 2>&1 \
26428 | grep 0xffffff > /dev/null 2>&1; then
26429 gcc_cv_as_ix86_got32x=no
26430 else
26431 gcc_cv_as_ix86_got32x=yes
26434 rm -f conftest
26435 else
26436 echo "configure: failed program was" >&5
26437 cat conftest.s >&5
26439 rm -f conftest.o conftest.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26443 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26447 cat >>confdefs.h <<_ACEOF
26448 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26449 _ACEOF
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26453 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26454 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26455 $as_echo_n "(cached) " >&6
26456 else
26457 gcc_cv_as_ix86_gotoff_in_data=no
26458 if test $in_tree_gas = yes; then
26459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26460 then gcc_cv_as_ix86_gotoff_in_data=yes
26462 elif test x$gcc_cv_as != x; then
26463 $as_echo ' .text
26464 .L0:
26466 .data
26467 .long .L0@GOTOFF' > conftest.s
26468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26470 (eval $ac_try) 2>&5
26471 ac_status=$?
26472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26473 test $ac_status = 0; }; }
26474 then
26475 gcc_cv_as_ix86_gotoff_in_data=yes
26476 else
26477 echo "configure: failed program was" >&5
26478 cat conftest.s >&5
26480 rm -f conftest.o conftest.s
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26484 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26488 cat >>confdefs.h <<_ACEOF
26489 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26490 _ACEOF
26493 conftest_s='
26494 .section .text,"ax",@progbits
26495 .globl _start
26496 .type _start, @function
26497 _start:
26498 leal ld@tlsldm(%ecx), %eax
26499 call *___tls_get_addr@GOT(%ecx)
26500 leal gd@tlsgd(%ecx), %eax
26501 call *___tls_get_addr@GOT(%ecx)
26503 .section .tdata,"aw'$tls_section_flag'",@progbits
26504 .type ld, @object
26506 .byte 0
26507 .globl gd
26508 .type gd, @object
26510 .byte 0'
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26512 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26513 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26514 $as_echo_n "(cached) " >&6
26515 else
26516 gcc_cv_as_ix86_tls_get_addr_via_got=no
26517 if test x$gcc_cv_as != x; then
26518 $as_echo "$conftest_s" > conftest.s
26519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26525 then
26526 if test x$gcc_cv_ld != x \
26527 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26528 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26530 rm -f conftest
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_ix86_tls_get_addr_via_got" >&5
26539 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26543 cat >>confdefs.h <<_ACEOF
26544 #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`
26545 _ACEOF
26549 ia64*-*-*)
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26551 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26552 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26553 $as_echo_n "(cached) " >&6
26554 else
26555 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26556 if test $in_tree_gas = yes; then
26557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26558 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26560 elif test x$gcc_cv_as != x; then
26561 $as_echo ' .text
26562 addl r15 = @ltoffx(x#), gp
26564 ld8.mov r16 = [r15], x#' > conftest.s
26565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_ia64_ltoffx_ldxmov_relocs=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_ia64_ltoffx_ldxmov_relocs" >&5
26581 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26582 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26584 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26591 powerpc*-*-*)
26593 case $target in
26594 *-*-darwin*)
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26596 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26597 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_as_machine_directive=no
26601 if test x$gcc_cv_as != x; then
26602 $as_echo ' .machine ppc7400' > conftest.s
26603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26608 test $ac_status = 0; }; }
26609 then
26610 gcc_cv_as_machine_directive=yes
26611 else
26612 echo "configure: failed program was" >&5
26613 cat conftest.s >&5
26615 rm -f conftest.o conftest.s
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26619 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26622 if test x$gcc_cv_as_machine_directive != xyes; then
26623 echo "*** This target requires an assembler supporting \".machine\"" >&2
26624 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26625 test x$build = x$target && exit 1
26628 esac
26630 case $target in
26631 *-*-aix*) conftest_s=' .machine "pwr5"
26632 .csect .text[PR]
26633 mfcr 3,128';;
26634 *-*-darwin*) conftest_s=' .text
26635 mfcr r3,128';;
26636 *) conftest_s=' .machine power4
26637 .text
26638 mfcr 3,128';;
26639 esac
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26642 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26643 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26644 $as_echo_n "(cached) " >&6
26645 else
26646 gcc_cv_as_powerpc_mfcrf=no
26647 if test $in_tree_gas = yes; then
26648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26649 then gcc_cv_as_powerpc_mfcrf=yes
26651 elif test x$gcc_cv_as != x; then
26652 $as_echo "$conftest_s" > conftest.s
26653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26655 (eval $ac_try) 2>&5
26656 ac_status=$?
26657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26658 test $ac_status = 0; }; }
26659 then
26660 gcc_cv_as_powerpc_mfcrf=yes
26661 else
26662 echo "configure: failed program was" >&5
26663 cat conftest.s >&5
26665 rm -f conftest.o conftest.s
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26669 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26670 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26672 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26677 case $target in
26678 *-*-aix*) conftest_s=' .csect .text[PR]
26679 LCF..0:
26680 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26681 *-*-darwin*)
26682 conftest_s=' .text
26683 LCF0:
26684 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26685 *) conftest_s=' .text
26686 .LCF0:
26687 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26688 esac
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26691 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26692 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26693 $as_echo_n "(cached) " >&6
26694 else
26695 gcc_cv_as_powerpc_rel16=no
26696 if test $in_tree_gas = yes; then
26697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26698 then gcc_cv_as_powerpc_rel16=yes
26700 elif test x$gcc_cv_as != x; then
26701 $as_echo "$conftest_s" > conftest.s
26702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26707 test $ac_status = 0; }; }
26708 then
26709 gcc_cv_as_powerpc_rel16=yes
26710 else
26711 echo "configure: failed program was" >&5
26712 cat conftest.s >&5
26714 rm -f conftest.o conftest.s
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26718 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26719 if test $gcc_cv_as_powerpc_rel16 = yes; then
26721 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26726 case $target in
26727 *-*-aix*) conftest_s=' .machine "pwr7"
26728 .csect .text[PR]
26729 lxvd2x 1,2,3';;
26730 *) conftest_s=' .machine power7
26731 .text
26732 lxvd2x 1,2,3';;
26733 esac
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26736 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26737 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26738 $as_echo_n "(cached) " >&6
26739 else
26740 gcc_cv_as_powerpc_vsx=no
26741 if test $in_tree_gas = yes; then
26742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26743 then gcc_cv_as_powerpc_vsx=yes
26745 elif test x$gcc_cv_as != x; then
26746 $as_echo "$conftest_s" > conftest.s
26747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26752 test $ac_status = 0; }; }
26753 then
26754 gcc_cv_as_powerpc_vsx=yes
26755 else
26756 echo "configure: failed program was" >&5
26757 cat conftest.s >&5
26759 rm -f conftest.o conftest.s
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26763 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26764 if test $gcc_cv_as_powerpc_vsx = yes; then
26766 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26772 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26773 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26774 $as_echo_n "(cached) " >&6
26775 else
26776 gcc_cv_as_powerpc_gnu_attribute=no
26777 if test $in_tree_gas = yes; then
26778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26779 then gcc_cv_as_powerpc_gnu_attribute=yes
26781 elif test x$gcc_cv_as != x; then
26782 $as_echo '.gnu_attribute 4,1' > conftest.s
26783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26788 test $ac_status = 0; }; }
26789 then
26790 gcc_cv_as_powerpc_gnu_attribute=yes
26791 else
26792 echo "configure: failed program was" >&5
26793 cat conftest.s >&5
26795 rm -f conftest.o conftest.s
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26799 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26800 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26802 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26808 $as_echo_n "checking assembler for tls marker support... " >&6; }
26809 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26810 $as_echo_n "(cached) " >&6
26811 else
26812 gcc_cv_as_powerpc_tls_markers=no
26813 if test $in_tree_gas = yes; then
26814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26815 then gcc_cv_as_powerpc_tls_markers=yes
26817 elif test x$gcc_cv_as != x; then
26818 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26824 test $ac_status = 0; }; }
26825 then
26826 gcc_cv_as_powerpc_tls_markers=yes
26827 else
26828 echo "configure: failed program was" >&5
26829 cat conftest.s >&5
26831 rm -f conftest.o conftest.s
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26835 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26836 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26838 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26844 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26845 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26846 $as_echo_n "(cached) " >&6
26847 else
26848 gcc_cv_as_powerpc_entry_markers=no
26849 if test $in_tree_gas = yes; then
26850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26851 then gcc_cv_as_powerpc_entry_markers=yes
26853 elif test x$gcc_cv_as != x; then
26854 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26857 (eval $ac_try) 2>&5
26858 ac_status=$?
26859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26860 test $ac_status = 0; }; }
26861 then
26862 gcc_cv_as_powerpc_entry_markers=yes
26863 else
26864 echo "configure: failed program was" >&5
26865 cat conftest.s >&5
26867 rm -f conftest.o conftest.s
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26871 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26872 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26874 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26879 case $target in
26880 *-*-aix*)
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26882 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26883 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26884 $as_echo_n "(cached) " >&6
26885 else
26886 gcc_cv_as_aix_ref=no
26887 if test $in_tree_gas = yes; then
26888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26889 then gcc_cv_as_aix_ref=yes
26891 elif test x$gcc_cv_as != x; then
26892 $as_echo ' .csect stuff[rw]
26893 stuff:
26894 .long 1
26895 .extern sym
26896 .ref sym
26897 ' > conftest.s
26898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26900 (eval $ac_try) 2>&5
26901 ac_status=$?
26902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26903 test $ac_status = 0; }; }
26904 then
26905 gcc_cv_as_aix_ref=yes
26906 else
26907 echo "configure: failed program was" >&5
26908 cat conftest.s >&5
26910 rm -f conftest.o conftest.s
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26914 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26915 if test $gcc_cv_as_aix_ref = yes; then
26917 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26923 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26924 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26925 $as_echo_n "(cached) " >&6
26926 else
26927 gcc_cv_as_aix_dwloc=no
26928 if test $in_tree_gas = yes; then
26929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26930 then gcc_cv_as_aix_dwloc=yes
26932 elif test x$gcc_cv_as != x; then
26933 $as_echo ' .dwsect 0xA0000
26934 Lframe..0:
26935 .vbyte 4,Lframe..0
26936 ' > conftest.s
26937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26939 (eval $ac_try) 2>&5
26940 ac_status=$?
26941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26942 test $ac_status = 0; }; }
26943 then
26944 gcc_cv_as_aix_dwloc=yes
26945 else
26946 echo "configure: failed program was" >&5
26947 cat conftest.s >&5
26949 rm -f conftest.o conftest.s
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26953 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26954 if test $gcc_cv_as_aix_dwloc = yes; then
26956 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26961 esac
26964 mips*-*-*)
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26966 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26967 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26968 $as_echo_n "(cached) " >&6
26969 else
26970 gcc_cv_as_mips_explicit_relocs=no
26971 if test $in_tree_gas = yes; then
26972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26973 then gcc_cv_as_mips_explicit_relocs=yes
26975 elif test x$gcc_cv_as != x; then
26976 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26979 (eval $ac_try) 2>&5
26980 ac_status=$?
26981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26982 test $ac_status = 0; }; }
26983 then
26984 gcc_cv_as_mips_explicit_relocs=yes
26985 else
26986 echo "configure: failed program was" >&5
26987 cat conftest.s >&5
26989 rm -f conftest.o conftest.s
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26993 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26994 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26995 if test x$target_cpu_default = x
26996 then target_cpu_default=MASK_EXPLICIT_RELOCS
26997 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27003 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27004 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27005 $as_echo_n "(cached) " >&6
27006 else
27007 gcc_cv_as_mips_no_shared=no
27008 if test $in_tree_gas = yes; then
27009 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27010 then gcc_cv_as_mips_no_shared=yes
27012 elif test x$gcc_cv_as != x; then
27013 $as_echo 'nop' > conftest.s
27014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27016 (eval $ac_try) 2>&5
27017 ac_status=$?
27018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27019 test $ac_status = 0; }; }
27020 then
27021 gcc_cv_as_mips_no_shared=yes
27022 else
27023 echo "configure: failed program was" >&5
27024 cat conftest.s >&5
27026 rm -f conftest.o conftest.s
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27030 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27031 if test $gcc_cv_as_mips_no_shared = yes; then
27033 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27039 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27040 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27041 $as_echo_n "(cached) " >&6
27042 else
27043 gcc_cv_as_mips_gnu_attribute=no
27044 if test $in_tree_gas = yes; then
27045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27046 then gcc_cv_as_mips_gnu_attribute=yes
27048 elif test x$gcc_cv_as != x; then
27049 $as_echo '.gnu_attribute 4,1' > conftest.s
27050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27052 (eval $ac_try) 2>&5
27053 ac_status=$?
27054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055 test $ac_status = 0; }; }
27056 then
27057 gcc_cv_as_mips_gnu_attribute=yes
27058 else
27059 echo "configure: failed program was" >&5
27060 cat conftest.s >&5
27062 rm -f conftest.o conftest.s
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27066 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27067 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27069 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27075 $as_echo_n "checking assembler for .module support... " >&6; }
27076 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27077 $as_echo_n "(cached) " >&6
27078 else
27079 gcc_cv_as_mips_dot_module=no
27080 if test x$gcc_cv_as != x; then
27081 $as_echo '.module mips2
27082 .module fp=xx' > conftest.s
27083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27088 test $ac_status = 0; }; }
27089 then
27090 gcc_cv_as_mips_dot_module=yes
27091 else
27092 echo "configure: failed program was" >&5
27093 cat conftest.s >&5
27095 rm -f conftest.o conftest.s
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27099 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27100 if test $gcc_cv_as_mips_dot_module = yes; then
27102 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27106 if test x$gcc_cv_as_mips_dot_module = xno \
27107 && test x$with_fp_32 != x; then
27108 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27112 $as_echo_n "checking assembler for .micromips support... " >&6; }
27113 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27114 $as_echo_n "(cached) " >&6
27115 else
27116 gcc_cv_as_micromips_support=no
27117 if test x$gcc_cv_as != x; then
27118 $as_echo '.set micromips' > conftest.s
27119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27121 (eval $ac_try) 2>&5
27122 ac_status=$?
27123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27124 test $ac_status = 0; }; }
27125 then
27126 gcc_cv_as_micromips_support=yes
27127 else
27128 echo "configure: failed program was" >&5
27129 cat conftest.s >&5
27131 rm -f conftest.o conftest.s
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27135 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27136 if test $gcc_cv_as_micromips_support = yes; then
27138 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27144 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27145 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27146 $as_echo_n "(cached) " >&6
27147 else
27148 gcc_cv_as_mips_dtprelword=no
27149 if test $in_tree_gas = yes; then
27150 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27151 then gcc_cv_as_mips_dtprelword=yes
27153 elif test x$gcc_cv_as != x; then
27154 $as_echo '.section .tdata,"awT",@progbits
27156 .word 2
27157 .text
27158 .dtprelword x+0x8000' > conftest.s
27159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27161 (eval $ac_try) 2>&5
27162 ac_status=$?
27163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27164 test $ac_status = 0; }; }
27165 then
27166 gcc_cv_as_mips_dtprelword=yes
27167 else
27168 echo "configure: failed program was" >&5
27169 cat conftest.s >&5
27171 rm -f conftest.o conftest.s
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27175 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27176 if test $gcc_cv_as_mips_dtprelword = yes; then
27178 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27184 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27185 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27186 $as_echo_n "(cached) " >&6
27187 else
27188 gcc_cv_as_mips_dspr1_mult=no
27189 if test x$gcc_cv_as != x; then
27190 $as_echo ' .set mips32r2
27191 .set nodspr2
27192 .set dsp
27193 madd $ac3,$4,$5
27194 maddu $ac3,$4,$5
27195 msub $ac3,$4,$5
27196 msubu $ac3,$4,$5
27197 mult $ac3,$4,$5
27198 multu $ac3,$4,$5' > conftest.s
27199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27204 test $ac_status = 0; }; }
27205 then
27206 gcc_cv_as_mips_dspr1_mult=yes
27207 else
27208 echo "configure: failed program was" >&5
27209 cat conftest.s >&5
27211 rm -f conftest.o conftest.s
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27215 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27216 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27218 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27224 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27225 gcc_cv_as_ld_jalr_reloc=no
27226 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27227 if test $in_tree_ld = yes ; then
27228 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 \
27229 && test $in_tree_ld_is_elf = yes; then
27230 gcc_cv_as_ld_jalr_reloc=yes
27232 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27233 echo ' .ent x' > conftest.s
27234 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27235 echo ' lw $25,%call16(y)($28)' >> conftest.s
27236 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27237 echo '1: jalr $25' >> conftest.s
27238 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27239 echo '1: jalr $25' >> conftest.s
27240 echo ' .end x' >> conftest.s
27241 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27242 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27243 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27244 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27245 gcc_cv_as_ld_jalr_reloc=yes
27248 rm -f conftest.*
27251 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27252 if test x$target_cpu_default = x; then
27253 target_cpu_default=MASK_RELAX_PIC_CALLS
27254 else
27255 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27259 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27262 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27263 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27264 $as_echo_n "(cached) " >&6
27265 else
27266 gcc_cv_ld_mips_personality_relaxation=no
27267 if test $in_tree_ld = yes ; then
27268 if test "$gcc_cv_gld_major_version" -eq 2 \
27269 -a "$gcc_cv_gld_minor_version" -ge 21 \
27270 -o "$gcc_cv_gld_major_version" -gt 2; then
27271 gcc_cv_ld_mips_personality_relaxation=yes
27273 elif test x$gcc_cv_as != x \
27274 -a x$gcc_cv_ld != x \
27275 -a x$gcc_cv_readelf != x ; then
27276 cat > conftest.s <<EOF
27277 .cfi_startproc
27278 .cfi_personality 0x80,indirect_ptr
27279 .ent test
27280 test:
27282 .end test
27283 .cfi_endproc
27285 .section .data,"aw",@progbits
27286 indirect_ptr:
27287 .dc.a personality
27289 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27290 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27291 if $gcc_cv_readelf -d conftest 2>&1 \
27292 | grep TEXTREL > /dev/null 2>&1; then
27294 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27295 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27297 else
27298 gcc_cv_ld_mips_personality_relaxation=yes
27302 rm -f conftest.s conftest.o conftest
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27305 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27306 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27308 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27313 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27314 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27315 $as_echo_n "(cached) " >&6
27316 else
27317 gcc_cv_as_mips_nan=no
27318 if test x$gcc_cv_as != x; then
27319 $as_echo '' > conftest.s
27320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27322 (eval $ac_try) 2>&5
27323 ac_status=$?
27324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27325 test $ac_status = 0; }; }
27326 then
27327 gcc_cv_as_mips_nan=yes
27328 else
27329 echo "configure: failed program was" >&5
27330 cat conftest.s >&5
27332 rm -f conftest.o conftest.s
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27336 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27337 if test $gcc_cv_as_mips_nan = yes; then
27339 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27343 if test x$gcc_cv_as_mips_nan = xno \
27344 && test x$with_nan != x; then
27345 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27348 s390*-*-*)
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27350 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27351 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27352 $as_echo_n "(cached) " >&6
27353 else
27354 gcc_cv_as_s390_gnu_attribute=no
27355 if test $in_tree_gas = yes; then
27356 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27357 then gcc_cv_as_s390_gnu_attribute=yes
27359 elif test x$gcc_cv_as != x; then
27360 $as_echo '.gnu_attribute 8,1' > conftest.s
27361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27363 (eval $ac_try) 2>&5
27364 ac_status=$?
27365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366 test $ac_status = 0; }; }
27367 then
27368 gcc_cv_as_s390_gnu_attribute=yes
27369 else
27370 echo "configure: failed program was" >&5
27371 cat conftest.s >&5
27373 rm -f conftest.o conftest.s
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27377 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27378 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27380 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27385 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27386 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27387 $as_echo_n "(cached) " >&6
27388 else
27389 gcc_cv_as_s390_machine_machinemode=no
27390 if test $in_tree_gas = yes; then
27391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27392 then gcc_cv_as_s390_machine_machinemode=yes
27394 elif test x$gcc_cv_as != x; then
27395 $as_echo ' .machinemode push
27396 .machinemode pop
27397 .machine push
27398 .machine pop' > conftest.s
27399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27401 (eval $ac_try) 2>&5
27402 ac_status=$?
27403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27404 test $ac_status = 0; }; }
27405 then
27406 gcc_cv_as_s390_machine_machinemode=yes
27407 else
27408 echo "configure: failed program was" >&5
27409 cat conftest.s >&5
27411 rm -f conftest.o conftest.s
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27415 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27416 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27418 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27423 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27424 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27425 $as_echo_n "(cached) " >&6
27426 else
27427 gcc_cv_as_s390_architecture_modifiers=no
27428 if test $in_tree_gas = yes; then
27429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27430 then gcc_cv_as_s390_architecture_modifiers=yes
27432 elif test x$gcc_cv_as != x; then
27433 $as_echo ' .machine z13+vx ' > conftest.s
27434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27436 (eval $ac_try) 2>&5
27437 ac_status=$?
27438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27439 test $ac_status = 0; }; }
27440 then
27441 gcc_cv_as_s390_architecture_modifiers=yes
27442 else
27443 echo "configure: failed program was" >&5
27444 cat conftest.s >&5
27446 rm -f conftest.o conftest.s
27449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27450 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27451 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27453 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27458 esac
27460 # Mips and HP-UX need the GNU assembler.
27461 # Linux on IA64 might be able to use the Intel assembler.
27463 case "$target" in
27464 mips*-*-* | *-*-hpux* )
27465 if test x$gas_flag = xyes \
27466 || test x"$host" != x"$build" \
27467 || test ! -x "$gcc_cv_as" \
27468 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27470 else
27471 echo "*** This configuration requires the GNU assembler" >&2
27472 exit 1
27475 esac
27477 # ??? Not all targets support dwarf2 debug_line, even within a version
27478 # of gas. Moreover, we need to emit a valid instruction to trigger any
27479 # info to the output file. So, as supported targets are added to gas 2.11,
27480 # add some instruction here to (also) show we expect this might work.
27481 # ??? Once 2.11 is released, probably need to add first known working
27482 # version to the per-target configury.
27483 case "$cpu_type" in
27484 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27485 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27486 | tilegx | tilepro | visium | xstormy16 | xtensa)
27487 insn="nop"
27489 ia64 | s390)
27490 insn="nop 0"
27492 mmix)
27493 insn="swym 0"
27495 esac
27496 if test x"$insn" != x; then
27497 conftest_s="\
27498 .file 1 \"conftest.s\"
27499 .loc 1 3 0
27500 $insn"
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27502 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27503 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27504 $as_echo_n "(cached) " >&6
27505 else
27506 gcc_cv_as_dwarf2_debug_line=no
27507 if test $in_tree_gas = yes; then
27508 if test $in_tree_gas_is_elf = yes \
27509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27510 then gcc_cv_as_dwarf2_debug_line=yes
27512 elif test x$gcc_cv_as != x; then
27513 $as_echo "$conftest_s" > conftest.s
27514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27519 test $ac_status = 0; }; }
27520 then
27521 if test x$gcc_cv_objdump != x \
27522 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27523 | grep debug_line > /dev/null 2>&1; then
27524 gcc_cv_as_dwarf2_debug_line=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_dwarf2_debug_line" >&5
27534 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27538 # The .debug_line file table must be in the exact order that
27539 # we specified the files, since these indices are also used
27540 # by DW_AT_decl_file. Approximate this test by testing if
27541 # the assembler bitches if the same index is assigned twice.
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27543 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27544 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27545 $as_echo_n "(cached) " >&6
27546 else
27547 gcc_cv_as_dwarf2_file_buggy=no
27548 if test x$gcc_cv_as != x; then
27549 $as_echo ' .file 1 "foo.s"
27550 .file 1 "bar.s"' > conftest.s
27551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27556 test $ac_status = 0; }; }
27557 then
27558 gcc_cv_as_dwarf2_file_buggy=yes
27559 else
27560 echo "configure: failed program was" >&5
27561 cat conftest.s >&5
27563 rm -f conftest.o conftest.s
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27567 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27571 if test $gcc_cv_as_dwarf2_debug_line = yes \
27572 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27574 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27577 if test $gcc_cv_as_leb128 = yes; then
27578 conftest_s="\
27579 .file 1 \"conftest.s\"
27580 .loc 1 3 0 view .LVU1
27581 $insn
27582 .data
27583 .uleb128 .LVU1
27584 .uleb128 .LVU1
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27587 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27588 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27589 $as_echo_n "(cached) " >&6
27590 else
27591 gcc_cv_as_dwarf2_debug_view=no
27592 if test $in_tree_gas = yes; then
27593 if test $in_tree_gas_is_elf = yes \
27594 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27595 then gcc_cv_as_dwarf2_debug_view=yes
27597 elif test x$gcc_cv_as != x; then
27598 $as_echo "$conftest_s" > conftest.s
27599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27601 (eval $ac_try) 2>&5
27602 ac_status=$?
27603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27604 test $ac_status = 0; }; }
27605 then
27606 gcc_cv_as_dwarf2_debug_view=yes
27607 else
27608 echo "configure: failed program was" >&5
27609 cat conftest.s >&5
27611 rm -f conftest.o conftest.s
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27615 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27616 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27618 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27626 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27627 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27628 $as_echo_n "(cached) " >&6
27629 else
27630 gcc_cv_as_gdwarf2_flag=no
27631 if test $in_tree_gas = yes; then
27632 if test $in_tree_gas_is_elf = yes \
27633 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27634 then gcc_cv_as_gdwarf2_flag=yes
27636 elif test x$gcc_cv_as != x; then
27637 $as_echo "$insn" > conftest.s
27638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27640 (eval $ac_try) 2>&5
27641 ac_status=$?
27642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27643 test $ac_status = 0; }; }
27644 then
27645 gcc_cv_as_gdwarf2_flag=yes
27646 else
27647 echo "configure: failed program was" >&5
27648 cat conftest.s >&5
27650 rm -f conftest.o conftest.s
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27654 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27655 if test $gcc_cv_as_gdwarf2_flag = yes; then
27657 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27663 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27664 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27665 $as_echo_n "(cached) " >&6
27666 else
27667 gcc_cv_as_gstabs_flag=no
27668 if test $in_tree_gas = yes; then
27669 if test $in_tree_gas_is_elf = yes \
27670 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27671 then gcc_cv_as_gstabs_flag=yes
27673 elif test x$gcc_cv_as != x; then
27674 $as_echo "$insn" > conftest.s
27675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27677 (eval $ac_try) 2>&5
27678 ac_status=$?
27679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27680 test $ac_status = 0; }; }
27681 then
27682 gcc_cv_as_gstabs_flag=yes
27683 else
27684 echo "configure: failed program was" >&5
27685 cat conftest.s >&5
27687 rm -f conftest.o conftest.s
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27691 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27692 if test $gcc_cv_as_gstabs_flag = yes; then
27694 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27700 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27701 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27702 $as_echo_n "(cached) " >&6
27703 else
27704 gcc_cv_as_debug_prefix_map_flag=no
27705 if test $in_tree_gas = yes; then
27706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27707 then gcc_cv_as_debug_prefix_map_flag=yes
27709 elif test x$gcc_cv_as != x; then
27710 $as_echo "$insn" > conftest.s
27711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27713 (eval $ac_try) 2>&5
27714 ac_status=$?
27715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27716 test $ac_status = 0; }; }
27717 then
27718 gcc_cv_as_debug_prefix_map_flag=yes
27719 else
27720 echo "configure: failed program was" >&5
27721 cat conftest.s >&5
27723 rm -f conftest.o conftest.s
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27727 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27728 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27730 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27737 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27738 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27739 $as_echo_n "(cached) " >&6
27740 else
27741 gcc_cv_as_compress_debug=no
27742 if test x$gcc_cv_as != x; then
27743 $as_echo '' > conftest.s
27744 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27746 (eval $ac_try) 2>&5
27747 ac_status=$?
27748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27749 test $ac_status = 0; }; }
27750 then
27751 # gas compiled without zlib cannot compress debug sections and warns
27752 # about it, but still exits successfully. So check for this, too.
27753 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27754 then
27755 gcc_cv_as_compress_debug=0
27756 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27757 # defaulting to the ELF gABI format.
27758 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27759 then
27760 gcc_cv_as_compress_debug=2
27761 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27762 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27763 # Before binutils 2.26, gas only supported --compress-debug-options and
27764 # emitted the traditional GNU format.
27765 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27766 then
27767 gcc_cv_as_compress_debug=1
27768 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27769 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27770 else
27771 gcc_cv_as_compress_debug=0
27773 else
27774 echo "configure: failed program was" >&5
27775 cat conftest.s >&5
27777 rm -f conftest.o conftest.s
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27781 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27785 cat >>confdefs.h <<_ACEOF
27786 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27787 _ACEOF
27790 cat >>confdefs.h <<_ACEOF
27791 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27792 _ACEOF
27795 cat >>confdefs.h <<_ACEOF
27796 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27797 _ACEOF
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27801 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27802 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27803 $as_echo_n "(cached) " >&6
27804 else
27805 gcc_cv_as_lcomm_with_alignment=no
27806 if test x$gcc_cv_as != x; then
27807 $as_echo '.lcomm bar,4,16' > conftest.s
27808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27813 test $ac_status = 0; }; }
27814 then
27815 gcc_cv_as_lcomm_with_alignment=yes
27816 else
27817 echo "configure: failed program was" >&5
27818 cat conftest.s >&5
27820 rm -f conftest.o conftest.s
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27824 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27825 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27827 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27832 if test x$with_sysroot = x && test x$host = x$target \
27833 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27834 && test "$prefix" != "NONE"; then
27836 cat >>confdefs.h <<_ACEOF
27837 #define PREFIX_INCLUDE_DIR "$prefix/include"
27838 _ACEOF
27842 # Determine the version of glibc, if any, used on the target.
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27844 $as_echo_n "checking for target glibc version... " >&6; }
27846 # Check whether --with-glibc-version was given.
27847 if test "${with_glibc_version+set}" = set; then :
27848 withval=$with_glibc_version;
27849 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27850 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27851 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27852 else
27853 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27855 else
27857 glibc_version_major=0
27858 glibc_version_minor=0
27859 if test -f $target_header_dir/features.h \
27860 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27861 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27862 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27863 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27868 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27870 cat >>confdefs.h <<_ACEOF
27871 #define TARGET_GLIBC_MAJOR $glibc_version_major
27872 _ACEOF
27875 cat >>confdefs.h <<_ACEOF
27876 #define TARGET_GLIBC_MINOR $glibc_version_minor
27877 _ACEOF
27880 # Check whether --enable-gnu-unique-object was given.
27881 if test "${enable_gnu_unique_object+set}" = set; then :
27882 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27883 yes | no) ;;
27884 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27885 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27886 esac
27887 else
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27889 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27890 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27891 $as_echo_n "(cached) " >&6
27892 else
27893 gcc_cv_as_gnu_unique_object=no
27894 if test $in_tree_gas = yes; then
27895 if test $in_tree_gas_is_elf = yes \
27896 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27897 then gcc_cv_as_gnu_unique_object=yes
27899 elif test x$gcc_cv_as != x; then
27900 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27903 (eval $ac_try) 2>&5
27904 ac_status=$?
27905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27906 test $ac_status = 0; }; }
27907 then
27908 gcc_cv_as_gnu_unique_object=yes
27909 else
27910 echo "configure: failed program was" >&5
27911 cat conftest.s >&5
27913 rm -f conftest.o conftest.s
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27917 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27918 if test $gcc_cv_as_gnu_unique_object = yes; then
27919 # We need to unquote above to to use the definition from config.gcc.
27920 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27922 if test $glibc_version_major -gt 2 \
27923 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27924 enable_gnu_unique_object=yes
27931 if test x$enable_gnu_unique_object = xyes; then
27933 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27938 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27939 if test "${gcc_cv_as_line_zero+set}" = set; then :
27940 $as_echo_n "(cached) " >&6
27941 else
27942 gcc_cv_as_line_zero=no
27943 if test $in_tree_gas = yes; then
27944 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27945 then gcc_cv_as_line_zero=yes
27947 elif test "x$gcc_cv_as" != x; then
27948 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27949 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27951 (eval $ac_try) 2>&5
27952 ac_status=$?
27953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27954 test $ac_status = 0; }; } &&
27955 test "x`cat conftest.out`" = x
27956 then
27957 gcc_cv_as_line_zero=yes
27958 else
27959 echo "configure: failed program was" >&5
27960 cat conftest.s >&5
27961 echo "configure: error output was" >&5
27962 cat conftest.out >&5
27964 rm -f conftest.o conftest.s conftest.out
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27968 $as_echo "$gcc_cv_as_line_zero" >&6; }
27969 if test "x$gcc_cv_as_line_zero" = xyes; then
27971 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27976 $as_echo_n "checking support for thin archives... " >&6; }
27977 thin_archive_support=no
27978 echo 'int main (void) { return 0; }' > conftest.c
27979 if ($AR --version | sed 1q | grep "GNU ar" \
27980 && $CC $CFLAGS -c conftest.c \
27981 && $AR rcT conftest.a conftest.o \
27982 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27983 thin_archive_support=yes
27985 rm -f conftest.c conftest.o conftest.a conftest
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27987 $as_echo "$thin_archive_support" >&6; }
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27991 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27992 gcc_cv_ld_eh_frame_hdr=no
27993 if test $in_tree_ld = yes ; then
27994 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 \
27995 && test $in_tree_ld_is_elf = yes; then
27996 gcc_cv_ld_eh_frame_hdr=yes
27998 elif test x$gcc_cv_ld != x; then
27999 if echo "$ld_ver" | grep GNU > /dev/null; then
28000 # Check if linker supports --eh-frame-hdr option
28001 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28002 gcc_cv_ld_eh_frame_hdr=yes
28004 else
28005 case "$target" in
28006 *-*-solaris2*)
28007 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28008 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28009 gcc_cv_ld_eh_frame_hdr=yes
28012 esac
28016 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28018 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28022 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28025 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28026 gcc_cv_ld_eh_frame_ciev3=no
28027 if test $in_tree_ld = yes ; then
28028 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 \
28029 && test $in_tree_ld_is_elf = yes; then
28030 gcc_cv_ld_eh_frame_ciev3=yes
28032 elif test x$gcc_cv_ld != x; then
28033 if echo "$ld_ver" | grep GNU > /dev/null; then
28034 gcc_cv_ld_eh_frame_ciev3=yes
28035 if test 0"$ld_date" -lt 20040513; then
28036 if test -n "$ld_date"; then
28037 # If there was date string, but was earlier than 2004-05-13, fail
28038 gcc_cv_ld_eh_frame_ciev3=no
28039 elif test "$ld_vers_major" -lt 2; then
28040 gcc_cv_ld_eh_frame_ciev3=no
28041 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28042 gcc_cv_ld_eh_frame_ciev3=no
28045 else
28046 case "$target" in
28047 *-*-solaris2*)
28048 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28049 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28050 gcc_cv_ld_eh_frame_ciev3=yes
28053 esac
28057 cat >>confdefs.h <<_ACEOF
28058 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28059 _ACEOF
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28062 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28065 $as_echo_n "checking linker position independent executable support... " >&6; }
28066 gcc_cv_ld_pie=no
28067 if test $in_tree_ld = yes ; then
28068 case "$target" in
28069 # Full PIE support on Solaris was only introduced in gld 2.26.
28070 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28071 *) gcc_gld_pie_min_version=15 ;;
28072 esac
28073 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 \
28074 && test $in_tree_ld_is_elf = yes; then
28075 gcc_cv_ld_pie=yes
28077 elif test x$gcc_cv_ld != x; then
28078 # Check if linker supports -pie option
28079 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28080 gcc_cv_ld_pie=yes
28081 case "$target" in
28082 *-*-solaris2*)
28083 if echo "$ld_ver" | grep GNU > /dev/null \
28084 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28085 gcc_cv_ld_pie=no
28088 esac
28089 else
28090 case "$target" in
28091 *-*-solaris2.1[1-9]*)
28092 # Solaris 11.3 added PIE support.
28093 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28094 gcc_cv_ld_pie=yes
28097 esac
28100 if test x"$gcc_cv_ld_pie" = xyes; then
28102 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28106 $as_echo "$gcc_cv_ld_pie" >&6; }
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28109 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28110 gcc_cv_ld_pie_copyreloc=no
28111 if test $gcc_cv_ld_pie = yes ; then
28112 if test $in_tree_ld = yes ; then
28113 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
28114 gcc_cv_ld_pie_copyreloc=yes
28116 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28117 # Check if linker supports -pie option with copy reloc
28118 case "$target" in
28119 i?86-*-linux* | x86_64-*-linux*)
28120 cat > conftest1.s <<EOF
28121 .globl a_glob
28122 .data
28123 .type a_glob, @object
28124 .size a_glob, 4
28125 a_glob:
28126 .long 2
28128 cat > conftest2.s <<EOF
28129 .text
28130 .globl main
28131 .type main, @function
28132 main:
28133 movl %eax, a_glob(%rip)
28134 .size main, .-main
28135 .globl ptr
28136 .section .data.rel,"aw",@progbits
28137 .type ptr, @object
28138 ptr:
28139 .quad a_glob
28141 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28142 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28143 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28144 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28145 gcc_cv_ld_pie_copyreloc=yes
28147 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28149 esac
28153 cat >>confdefs.h <<_ACEOF
28154 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28155 _ACEOF
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28158 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28161 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28162 gcc_cv_ld_eh_gc_sections=no
28163 if test $in_tree_ld = yes ; then
28164 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 \
28165 && test $in_tree_ld_is_elf = yes; then
28166 gcc_cv_ld_eh_gc_sections=yes
28168 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28169 cat > conftest.s <<EOF
28170 .section .text
28171 .globl _start
28172 .type _start, @function
28173 _start:
28174 .long foo
28175 .size _start, .-_start
28176 .section .text.foo,"ax",@progbits
28177 .type foo, @function
28178 foo:
28179 .long 0
28180 .size foo, .-foo
28181 .section .gcc_except_table.foo,"a",@progbits
28182 .L0:
28183 .long 0
28184 .section .eh_frame,"a",@progbits
28185 .long .L0
28187 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28188 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28189 | grep "gc-sections option ignored" > /dev/null; then
28190 gcc_cv_ld_eh_gc_sections=no
28191 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28192 | grep gcc_except_table > /dev/null; then
28193 gcc_cv_ld_eh_gc_sections=yes
28194 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28195 if test x$gcc_cv_as_comdat_group != xyes; then
28196 gcc_cv_ld_eh_gc_sections=no
28197 cat > conftest.s <<EOF
28198 .section .text
28199 .globl _start
28200 .type _start, @function
28201 _start:
28202 .long foo
28203 .size _start, .-_start
28204 .section .gnu.linkonce.t.foo,"ax",@progbits
28205 .type foo, @function
28206 foo:
28207 .long 0
28208 .size foo, .-foo
28209 .section .gcc_except_table.foo,"a",@progbits
28210 .L0:
28211 .long 0
28212 .section .eh_frame,"a",@progbits
28213 .long .L0
28215 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28216 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28217 | grep "gc-sections option ignored" > /dev/null; then
28218 gcc_cv_ld_eh_gc_sections=no
28219 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28220 | grep gcc_except_table > /dev/null; then
28221 gcc_cv_ld_eh_gc_sections=yes
28227 rm -f conftest.s conftest.o conftest
28229 case "$target" in
28230 hppa*-*-linux*)
28231 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28232 gcc_cv_ld_eh_gc_sections=no
28234 esac
28235 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28237 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28241 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28244 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28245 gcc_cv_ld_eh_gc_sections_bug=no
28246 if test $in_tree_ld = yes ; then
28247 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 \
28248 && test $in_tree_ld_is_elf = yes; then
28249 gcc_cv_ld_eh_gc_sections_bug=yes
28251 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
28252 gcc_cv_ld_eh_gc_sections_bug=yes
28253 cat > conftest.s <<EOF
28254 .section .text
28255 .globl _start
28256 .type _start, @function
28257 _start:
28258 .long foo
28259 .size _start, .-_start
28260 .section .text.startup.foo,"ax",@progbits
28261 .type foo, @function
28262 foo:
28263 .long 0
28264 .size foo, .-foo
28265 .section .gcc_except_table.foo,"a",@progbits
28266 .L0:
28267 .long 0
28268 .section .eh_frame,"a",@progbits
28269 .long .L0
28271 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28272 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28273 | grep "gc-sections option ignored" > /dev/null; then
28275 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28276 | grep gcc_except_table > /dev/null; then
28277 gcc_cv_ld_eh_gc_sections_bug=no
28280 rm -f conftest.s conftest.o conftest
28282 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28284 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28288 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28291 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28292 # gold/gld support compressed debug sections since binutils 2.19/2.21
28293 # In binutils 2.26, gld gained support for the ELF gABI format.
28294 if test $in_tree_ld = yes ; then
28295 gcc_cv_ld_compress_debug=0
28296 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 \
28297 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28298 gcc_cv_ld_compress_debug=2
28299 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28300 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 \
28301 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28302 gcc_cv_ld_compress_debug=3
28303 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28304 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 \
28305 && test $in_tree_ld_is_elf = yes; then
28306 gcc_cv_ld_compress_debug=1
28308 elif echo "$ld_ver" | grep GNU > /dev/null; then
28309 if test "$ld_vers_major" -lt 2 \
28310 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28311 gcc_cv_ld_compress_debug=0
28312 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28313 gcc_cv_ld_compress_debug=1
28314 else
28315 gcc_cv_ld_compress_debug=3
28316 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28318 if test $ld_is_gold = yes; then
28319 gcc_cv_ld_compress_debug=2
28320 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28322 else
28323 case "${target}" in
28324 *-*-solaris2*)
28325 # Introduced in Solaris 11.2.
28326 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28327 gcc_cv_ld_compress_debug=3
28328 gcc_cv_ld_compress_debug_option="-z compress-sections"
28329 else
28330 gcc_cv_ld_compress_debug=0
28334 # Assume linkers other than GNU ld don't support compessed debug
28335 # sections.
28336 gcc_cv_ld_compress_debug=0
28338 esac
28341 cat >>confdefs.h <<_ACEOF
28342 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28343 _ACEOF
28346 cat >>confdefs.h <<_ACEOF
28347 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28348 _ACEOF
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28351 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28353 if test x"$ld64_flag" = x"yes"; then
28355 # Set defaults for possibly untestable items.
28356 gcc_cv_ld64_export_dynamic=0
28358 if test "$build" = "$host"; then
28359 darwin_try_test=1
28360 else
28361 darwin_try_test=0
28364 # On Darwin, because of FAT library support, it is often possible to execute
28365 # exes from compatible archs even when the host differs from the build system.
28366 case "$build","$host" in
28367 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28368 darwin_try_test=1;;
28369 *) ;;
28370 esac
28372 # If the configurer specified a minimum ld64 version to be supported, then use
28373 # that to determine feature support.
28374 if test x"${gcc_cv_ld64_version}" != x; then
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28376 $as_echo_n "checking ld64 specified version... " >&6; }
28377 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28379 $as_echo "$gcc_cv_ld64_major" >&6; }
28380 if test "$gcc_cv_ld64_major" -ge 236; then
28381 gcc_cv_ld64_export_dynamic=1
28383 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28384 # If the version was not specified, try to find it.
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28386 $as_echo_n "checking linker version... " >&6; }
28387 if test x"${gcc_cv_ld64_version}" = x; then
28388 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28391 $as_echo "$gcc_cv_ld64_version" >&6; }
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28394 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28395 gcc_cv_ld64_export_dynamic=1
28396 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28397 gcc_cv_ld64_export_dynamic=0
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28400 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28403 if test x"${gcc_cv_ld64_version}" != x; then
28405 cat >>confdefs.h <<_ACEOF
28406 #define LD64_VERSION "${gcc_cv_ld64_version}"
28407 _ACEOF
28412 cat >>confdefs.h <<_ACEOF
28413 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28414 _ACEOF
28418 # --------
28419 # UNSORTED
28420 # --------
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28423 $as_echo_n "checking linker --as-needed support... " >&6; }
28424 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28425 $as_echo_n "(cached) " >&6
28426 else
28427 gcc_cv_ld_as_needed=no
28428 gcc_cv_ld_as_needed_option='--as-needed'
28429 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28430 if test $in_tree_ld = yes ; then
28431 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 \
28432 && test $in_tree_ld_is_elf = yes; then
28433 gcc_cv_ld_as_needed=yes
28434 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28435 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28436 gcc_cv_ld_no_as_needed_option='--pop-state'
28439 elif test x$gcc_cv_ld != x; then
28440 # Check if linker supports --as-needed and --no-as-needed options
28441 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28442 gcc_cv_ld_as_needed=yes
28443 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28444 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28445 && echo "$ld_ver" | grep GNU > /dev/null \
28446 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28447 # Use these options only when both ld.bfd and ld.gold support
28448 # --push-state/--pop-state, which unfortunately wasn't added
28449 # at the same time.
28450 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28451 gcc_cv_ld_no_as_needed_option='--pop-state'
28454 case "$target:$gnu_ld" in
28455 *-*-solaris2*:no)
28456 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28457 # forms.
28458 gcc_cv_ld_as_needed=yes
28459 gcc_cv_ld_as_needed_option="-z ignore"
28460 gcc_cv_ld_no_as_needed_option="-z record"
28462 esac
28464 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28465 # dl_iterate_phdr, i.e. since Solaris 11.
28466 case "$target" in
28467 *-*-solaris2.1[1-9]*)
28468 case "$target" in
28469 i?86-*-* | x86_64-*-*)
28470 if echo "$ld_ver" | grep GNU > /dev/null; then
28471 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28472 gcc_cv_ld_as_needed=no
28475 esac
28477 *-*-solaris2*)
28478 gcc_cv_ld_as_needed=no
28480 esac
28483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28484 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28485 if test x"$gcc_cv_ld_as_needed" = xyes; then
28487 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28490 cat >>confdefs.h <<_ACEOF
28491 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28492 _ACEOF
28495 cat >>confdefs.h <<_ACEOF
28496 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28497 _ACEOF
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28502 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28503 saved_LDFLAGS="$LDFLAGS"
28504 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28505 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28507 /* end confdefs.h. */
28508 int main(void) {return 0;}
28509 _ACEOF
28510 if ac_fn_cxx_try_link "$LINENO"; then :
28511 gcc_cv_ld_clearcap=yes; break
28512 else
28513 gcc_cv_ld_clearcap=no
28515 rm -f core conftest.err conftest.$ac_objext \
28516 conftest$ac_exeext conftest.$ac_ext
28517 done
28518 LDFLAGS="$saved_LDFLAGS"
28519 if test "x$gcc_cv_ld_clearcap" = xyes; then
28521 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28523 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28527 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28529 case "$target" in
28530 powerpc*-*-*)
28531 case "$target" in
28532 *le-*-linux*)
28533 emul_name="-melf32lppc"
28536 emul_name="-melf32ppc"
28538 esac
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28540 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28541 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28542 $as_echo_n "(cached) " >&6
28543 else
28544 gcc_cv_ld_ppc_attr=no
28545 if test x"$ld_is_gold" = xyes; then
28546 gcc_cv_ld_ppc_attr=yes
28547 elif test $in_tree_ld = yes ; then
28548 if test "$gcc_cv_gld_major_version" -eq 2 \
28549 -a "$gcc_cv_gld_minor_version" -ge 28 \
28550 -o "$gcc_cv_gld_major_version" -gt 2; then
28551 gcc_cv_ld_ppc_attr=yes
28553 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28554 # check that merging the long double .gnu_attribute doesn't warn
28555 cat > conftest1.s <<EOF
28556 .gnu_attribute 4,1
28558 cat > conftest2.s <<EOF
28559 .gnu_attribute 4,9
28561 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28562 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28563 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28564 && test ! -s conftest.err; then
28565 gcc_cv_ld_ppc_attr=yes
28567 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28572 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28573 if test x$gcc_cv_ld_ppc_attr = xyes; then
28575 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28579 esac
28581 case "$target:$tm_file" in
28582 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28583 case "$target" in
28584 *le-*-linux*)
28585 emul_name="-melf64lppc"
28587 *-*-linux*)
28588 emul_name="-melf64ppc"
28590 *-*-freebsd*)
28591 emul_name="-melf64ppc_fbsd"
28593 esac
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28595 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28596 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28597 $as_echo_n "(cached) " >&6
28598 else
28599 gcc_cv_ld_no_dot_syms=no
28600 if test x"$ld_is_gold" = xyes; then
28601 gcc_cv_ld_no_dot_syms=yes
28602 elif test $in_tree_ld = yes ; then
28603 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
28604 gcc_cv_ld_no_dot_syms=yes
28606 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28607 cat > conftest1.s <<EOF
28608 .text
28609 bl .foo
28611 cat > conftest2.s <<EOF
28612 .section ".opd","aw"
28613 .align 3
28614 .globl foo
28615 .type foo,@function
28616 foo:
28617 .quad .LEfoo,.TOC.@tocbase,0
28618 .text
28619 .LEfoo:
28621 .size foo,.-.LEfoo
28623 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28624 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28625 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28626 gcc_cv_ld_no_dot_syms=yes
28628 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28633 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28634 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28636 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28641 $as_echo_n "checking linker large toc support... " >&6; }
28642 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28643 $as_echo_n "(cached) " >&6
28644 else
28645 gcc_cv_ld_large_toc=no
28646 if test x"$ld_is_gold" = xyes; then
28647 gcc_cv_ld_large_toc=yes
28648 elif test $in_tree_ld = yes ; then
28649 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
28650 gcc_cv_ld_large_toc=yes
28652 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28653 cat > conftest.s <<EOF
28654 .section ".tbss","awT",@nobits
28655 .align 3
28656 ie0: .space 8
28657 .global _start
28658 .text
28659 _start:
28660 addis 9,13,ie0@got@tprel@ha
28661 ld 9,ie0@got@tprel@l(9)
28663 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28664 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28665 gcc_cv_ld_large_toc=yes
28667 rm -f conftest conftest.o conftest.s
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28672 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28673 if test x"$gcc_cv_ld_large_toc" = xyes; then
28675 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28680 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28681 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28682 $as_echo_n "(cached) " >&6
28683 else
28684 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28685 cat > conftest.s <<EOF
28686 .global _start
28687 .text
28688 _start:
28689 addis 9,2,x@got@ha
28690 .section .data.rel.ro,"aw",@progbits
28691 .p2align 16
28692 .space 32768
28693 x: .quad .TOC.
28695 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28696 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28697 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)) }'`
28699 rm -f conftest conftest.o conftest.s
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28704 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28705 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28707 cat >>confdefs.h <<_ACEOF
28708 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28709 _ACEOF
28713 esac
28715 case "$target" in
28716 *-*-aix*)
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28718 $as_echo_n "checking linker large toc support... " >&6; }
28719 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28720 $as_echo_n "(cached) " >&6
28721 else
28722 gcc_cv_ld_large_toc=no
28723 if test x$gcc_cv_as != x ; then
28724 cat > conftest.s <<EOF
28725 .toc
28726 LC..1:
28727 .tc a[TC],a[RW]
28728 .extern a[RW]
28729 .csect .text[PR]
28730 .largetoctest:
28731 addis 9,LC..1@u(2)
28732 ld 3,LC..1@l(9)
28734 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28735 gcc_cv_ld_large_toc=yes
28737 rm -f conftest conftest.o conftest.s
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28742 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28743 if test x"$gcc_cv_ld_large_toc" = xyes; then
28745 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28749 esac
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28752 $as_echo_n "checking linker --build-id support... " >&6; }
28753 if test "${gcc_cv_ld_buildid+set}" = set; then :
28754 $as_echo_n "(cached) " >&6
28755 else
28756 gcc_cv_ld_buildid=no
28757 if test $in_tree_ld = yes ; then
28758 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28759 "$gcc_cv_gld_minor_version" -ge 18 -o \
28760 "$gcc_cv_gld_major_version" -gt 2 \
28761 && test $in_tree_ld_is_elf = yes; then
28762 gcc_cv_ld_buildid=yes
28764 elif test x$gcc_cv_ld != x; then
28765 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28766 gcc_cv_ld_buildid=yes
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28771 $as_echo "$gcc_cv_ld_buildid" >&6; }
28772 if test x"$gcc_cv_ld_buildid" = xyes; then
28774 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28778 # Check whether --enable-linker-build-id was given.
28779 if test "${enable_linker_build_id+set}" = set; then :
28780 enableval=$enable_linker_build_id;
28781 else
28782 enable_linker_build_id=no
28786 if test x"$enable_linker_build_id" = xyes; then
28787 if test x"$gcc_cv_ld_buildid" = xyes; then
28789 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28791 else
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28793 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28797 # In binutils 2.21, GNU ld gained support for new emulations fully
28798 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28800 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28801 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28802 $as_echo_n "(cached) " >&6
28803 else
28804 gcc_cv_ld_sol2_emulation=no
28805 if test $in_tree_ld = yes ; then
28806 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28807 "$gcc_cv_gld_minor_version" -ge 21 -o \
28808 "$gcc_cv_gld_major_version" -gt 2 \
28809 && test $in_tree_ld_is_elf = yes; then
28810 gcc_cv_ld_sol2_emulation=yes
28812 elif test x$gcc_cv_ld != x; then
28813 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28814 grep _sol2 > /dev/null; then
28815 gcc_cv_ld_sol2_emulation=yes
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28820 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28821 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28823 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28828 $as_echo_n "checking linker --sysroot support... " >&6; }
28829 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28830 $as_echo_n "(cached) " >&6
28831 else
28832 gcc_cv_ld_sysroot=no
28833 if test $in_tree_ld = yes ; then
28834 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
28835 gcc_cv_ld_sysroot=yes
28837 elif test x$gcc_cv_ld != x; then
28838 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28839 gcc_cv_ld_sysroot=yes
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28844 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28845 if test x"$gcc_cv_ld_sysroot" = xyes; then
28847 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28851 case $target in
28852 *-*-solaris2*)
28853 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28855 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28856 if test "${gcc_cv_solaris_crts+set}" = set; then :
28857 $as_echo_n "(cached) " >&6
28858 else
28859 gcc_cv_solaris_crts=no
28860 if test x$host != x$target; then
28861 if test "x$with_sysroot" = xyes; then
28862 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28863 else
28864 target_sysroot="${with_sysroot}"
28867 target_libdir="$target_sysroot/usr/lib"
28868 # At the time they were added, gcrt1.o became a symlink for backwards
28869 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28870 case $target in
28871 i?86-*-solaris2* | x86_64-*-solaris2*)
28872 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28874 sparc*-*-solaris2*)
28875 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28877 esac
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28880 $as_echo "$gcc_cv_solaris_crts" >&6; }
28882 esac
28883 if test x$gcc_cv_solaris_crts = xyes; then
28885 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28889 # Check whether --enable-libssp was given.
28890 if test "${enable_libssp+set}" = set; then :
28891 enableval=$enable_libssp; case "${enableval}" in
28892 yes|no)
28895 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
28897 esac
28901 # Test for stack protector support in target C library.
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28903 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28904 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28905 $as_echo_n "(cached) " >&6
28906 else
28907 gcc_cv_libc_provides_ssp=no
28908 if test "x$enable_libssp" = "xno"; then
28909 gcc_cv_libc_provides_ssp=yes
28910 elif test "x$enable_libssp" = "xyes"; then
28911 gcc_cv_libc_provides_ssp=no
28912 else
28913 case "$target" in
28914 *-*-musl*)
28915 # All versions of musl provide stack protector
28916 gcc_cv_libc_provides_ssp=yes;;
28917 *-*-linux* | *-*-kfreebsd*-gnu)
28918 # glibc 2.4 and later provides __stack_chk_fail and
28919 # either __stack_chk_guard, or TLS access to stack guard canary.
28921 if test $glibc_version_major -gt 2 \
28922 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28923 gcc_cv_libc_provides_ssp=yes
28924 else
28926 if test -f $target_header_dir/features.h \
28927 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28928 $target_header_dir/features.h > /dev/null; then
28929 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28930 $target_header_dir/features.h > /dev/null && \
28931 test -f $target_header_dir/bits/uClibc_config.h && \
28932 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28933 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28934 gcc_cv_libc_provides_ssp=yes
28936 # all versions of Bionic support stack protector
28937 elif test -f $target_header_dir/sys/cdefs.h \
28938 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28939 $target_header_dir/sys/cdefs.h > /dev/null; then
28940 gcc_cv_libc_provides_ssp=yes
28944 *-*-gnu*)
28945 # Avoid complicated tests (see
28946 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28947 # simply assert that glibc does provide this, which is true for all
28948 # realistically usable GNU/Hurd configurations.
28949 # All supported versions of musl provide it as well
28950 gcc_cv_libc_provides_ssp=yes;;
28951 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28952 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28953 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28954 gcc_cv_libc_provides_ssp=yes
28955 else
28956 echo "no __stack_chk_fail on this target"
28960 *) gcc_cv_libc_provides_ssp=no ;;
28961 esac
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28965 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28967 if test x$gcc_cv_libc_provides_ssp = xyes; then
28969 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28973 # Check whether --enable-default-ssp was given.
28974 # Check whether --enable-default-ssp was given.
28975 if test "${enable_default_ssp+set}" = set; then :
28976 enableval=$enable_default_ssp;
28977 if test x$gcc_cv_libc_provides_ssp = xyes; then
28978 case "$target" in
28979 ia64*-*-*) enable_default_ssp=no ;;
28980 *) enable_default_ssp=$enableval ;;
28981 esac
28982 else
28983 enable_default_ssp=no
28985 else
28986 enable_default_ssp=no
28989 if test x$enable_default_ssp = xyes ; then
28991 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28996 # Test for <sys/sdt.h> on the target.
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28999 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29000 have_sys_sdt_h=no
29001 if test -f $target_header_dir/sys/sdt.h; then
29002 have_sys_sdt_h=yes
29004 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29008 $as_echo "$have_sys_sdt_h" >&6; }
29010 # Check if TFmode long double should be used by default or not.
29011 # Some glibc targets used DFmode long double, but with glibc 2.4
29012 # and later they can use TFmode.
29013 case "$target" in
29014 powerpc*-*-linux* | \
29015 sparc*-*-linux* | \
29016 s390*-*-linux* | \
29017 alpha*-*-linux*)
29019 # Check whether --with-long-double-128 was given.
29020 if test "${with_long_double_128+set}" = set; then :
29021 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29022 else
29024 if test $glibc_version_major -gt 2 \
29025 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29026 gcc_cv_target_ldbl128=yes
29027 else
29029 gcc_cv_target_ldbl128=no
29030 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29031 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29032 && gcc_cv_target_ldbl128=yes
29038 esac
29039 if test x$gcc_cv_target_ldbl128 = xyes; then
29041 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29045 # Check if TFmode long double target should use the IBM extended double or IEEE
29046 # 128-bit floating point formats if long doubles are 128-bits long. The long
29047 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29048 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29049 # libgcc.
29051 # Check whether --with-long-double-format was given.
29052 if test "${with_long_double_format+set}" = set; then :
29053 withval=$with_long_double_format;
29054 case "$target:$with_long_double_format" in
29055 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29058 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29059 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29060 case "$with_cpu" in
29061 power7 | power8 | power9 | power1*)
29065 as_fn_error "Configuration option --with-long-double-format is only \
29066 supported if the default cpu is power7 or newer" "$LINENO" 5
29067 with_long_double_format=""
29069 esac
29071 xpowerpc64*-*-linux*:*)
29072 as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29073 with_long_double_format=""
29076 as_fn_error "Configure option --with-long-double-format is only supported \
29077 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29078 with_long_double_format=""
29080 esac
29084 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29085 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29086 gcc_cv_libc_provides_hwcap_in_tcb=no
29087 case "$target" in
29088 powerpc*-*-linux*)
29090 if test $glibc_version_major -gt 2 \
29091 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29092 gcc_cv_libc_provides_hwcap_in_tcb=yes
29095 esac
29096 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29098 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29103 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29104 gcc_cv_target_dl_iterate_phdr=unknown
29105 case "$target" in
29106 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29107 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29108 # libdl there, both complicating its use and breaking compatibility
29109 # between Solaris 10 updates.
29110 *-*-solaris2.1[1-9]*)
29111 # <link.h> needs both a dl_iterate_phdr declaration and support for
29112 # compilation with largefile support.
29113 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29114 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29115 gcc_cv_target_dl_iterate_phdr=yes
29116 else
29117 gcc_cv_target_dl_iterate_phdr=no
29120 *-*-dragonfly* | *-*-freebsd*)
29121 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29122 gcc_cv_target_dl_iterate_phdr=yes
29123 else
29124 gcc_cv_target_dl_iterate_phdr=no
29127 *-linux-musl*)
29128 gcc_cv_target_dl_iterate_phdr=yes
29130 esac
29132 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29134 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29138 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29140 # We no longer support different GC mechanisms. Emit an error if
29141 # the user configures with --with-gc.
29143 # Check whether --with-gc was given.
29144 if test "${with_gc+set}" = set; then :
29145 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29149 # Libraries to use on the host. This will normally be set by the top
29150 # level Makefile. Here we simply capture the value for our Makefile.
29151 if test -z "${HOST_LIBS+set}"; then
29152 HOST_LIBS=
29156 # Use the system's zlib library.
29158 # Use the system's zlib library.
29159 zlibdir="-L\$(top_builddir)/../zlib"
29160 zlibinc="-I\$(top_srcdir)/../zlib"
29162 # Check whether --with-system-zlib was given.
29163 if test "${with_system_zlib+set}" = set; then :
29164 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29165 zlibdir=
29166 zlibinc=
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29177 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29178 # Check whether --enable-maintainer-mode was given.
29179 if test "${enable_maintainer_mode+set}" = set; then :
29180 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29181 else
29182 maintainer_mode=no
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29187 $as_echo "$maintainer_mode" >&6; }
29189 if test "$maintainer_mode" = "yes"; then
29190 MAINT=''
29191 else
29192 MAINT='#'
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29197 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29198 # Check whether --enable-link-mutex was given.
29199 if test "${enable_link_mutex+set}" = set; then :
29200 enableval=$enable_link_mutex; do_link_mutex=$enableval
29201 else
29202 do_link_mutex=no
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29206 $as_echo "$do_link_mutex" >&6; }
29208 if test "$do_link_mutex" = "yes"; then
29209 DO_LINK_MUTEX=true
29210 else
29211 DO_LINK_MUTEX=false
29215 # --------------
29216 # Language hooks
29217 # --------------
29219 # Make empty files to contain the specs and options for each language.
29220 # Then add #include lines to for a compiler that has specs and/or options.
29222 subdirs=
29223 lang_opt_files=
29224 lang_specs_files=
29225 lang_tree_files=
29226 # These (without "all_") are set in each config-lang.in.
29227 # `language' must be a single word so is spelled singularly.
29228 all_languages=
29229 all_compilers=
29230 all_outputs='Makefile'
29231 # List of language makefile fragments.
29232 all_lang_makefrags=
29233 # Additional files for gengtype
29234 all_gtfiles="$target_gtfiles"
29236 # These are the languages that are set in --enable-languages,
29237 # and are available in the GCC tree.
29238 all_selected_languages=
29240 # Add the language fragments.
29241 # Languages are added via two mechanisms. Some information must be
29242 # recorded in makefile variables, these are defined in config-lang.in.
29243 # We accumulate them and plug them into the main Makefile.
29244 # The other mechanism is a set of hooks for each of the main targets
29245 # like `clean', `install', etc.
29247 language_hooks="Make-hooks"
29249 for lang in ${srcdir}/*/config-lang.in
29251 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29253 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29254 if test "x$lang_alias" = x
29255 then
29256 echo "$lang doesn't set \$language." 1>&2
29257 exit 1
29259 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29260 subdirs="$subdirs $subdir"
29262 # $gcc_subdir is where the gcc integration files are to be found
29263 # for a language, both for internal compiler purposes (compiler
29264 # sources implementing front-end to GCC tree converters), and for
29265 # build infrastructure purposes (Make-lang.in, etc.)
29267 # This will be <subdir> (relative to $srcdir) if a line like
29268 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29269 # is found in <langdir>/config-lang.in, and will remain <langdir>
29270 # otherwise.
29272 # Except for the language alias (fetched above), the regular
29273 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29274 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29275 # only this and the language alias.
29277 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29278 if [ "$gcc_subdir" = "" ]; then
29279 gcc_subdir="$subdir"
29282 case ",$enable_languages," in
29283 *,$lang_alias,*)
29284 all_selected_languages="$all_selected_languages $lang_alias"
29285 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29286 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29289 esac
29291 language=
29292 boot_language=
29293 compilers=
29294 outputs=
29295 gtfiles=
29296 subdir_requires=
29297 . ${srcdir}/$gcc_subdir/config-lang.in
29298 if test "x$language" = x
29299 then
29300 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29301 exit 1
29304 ok=:
29305 case ",$enable_languages," in
29306 *,$lang_alias,*) ;;
29308 for i in $subdir_requires; do
29309 test -f "${srcdir}/$i/config-lang.in" && continue
29310 ok=false
29311 break
29312 done
29314 esac
29315 $ok || continue
29317 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29318 if test -f $srcdir/$gcc_subdir/lang.opt; then
29319 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29320 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29322 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29323 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29325 all_languages="$all_languages $language"
29326 all_compilers="$all_compilers $compilers"
29327 all_outputs="$all_outputs $outputs"
29328 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29329 case ",$enable_languages," in
29330 *,lto,*)
29332 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29334 enable_lto=yes
29337 *) ;;
29338 esac
29339 done
29341 check_languages=
29342 for language in $all_selected_languages
29344 check_languages="$check_languages check-$language"
29345 done
29347 # We link each language in with a set of hooks, reached indirectly via
29348 # lang.${target}. Only do so for selected languages.
29350 rm -f Make-hooks
29351 touch Make-hooks
29352 target_list="all.cross start.encap rest.encap tags \
29353 install-common install-man install-info install-pdf install-html dvi \
29354 pdf html uninstall info man srcextra srcman srcinfo \
29355 mostlyclean clean distclean maintainer-clean install-plugin"
29357 for t in $target_list
29360 for lang in $all_selected_languages
29362 x="$x $lang.$t"
29363 done
29364 echo "lang.$t: $x" >> Make-hooks
29365 done
29367 # --------
29368 # Option include files
29369 # --------
29371 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29372 option_includes="option-includes.mk"
29375 # --------
29376 # UNSORTED
29377 # --------
29379 # Create .gdbinit.
29381 echo "dir ." > .gdbinit
29382 echo "dir ${srcdir}" >> .gdbinit
29383 if test x$gdb_needs_out_file_path = xyes
29384 then
29385 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29387 if test "x$subdirs" != x; then
29388 for s in $subdirs
29390 echo "dir ${srcdir}/$s" >> .gdbinit
29391 done
29393 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29394 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29396 # Put a breakpoint on __asan_report_error to help with debugging buffer
29397 # overflow.
29398 case "$CFLAGS" in
29399 *-fsanitize=address*)
29400 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29402 esac
29404 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29408 # Find a directory in which to install a shared libgcc.
29410 # Check whether --enable-version-specific-runtime-libs was given.
29411 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29412 enableval=$enable_version_specific_runtime_libs;
29416 # Substitute configuration variables
29479 # Echo link setup.
29480 if test x${build} = x${host} ; then
29481 if test x${host} = x${target} ; then
29482 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29483 else
29484 echo "Links are now set up to build a cross-compiler" 1>&2
29485 echo " from ${host} to ${target}." 1>&2
29487 else
29488 if test x${host} = x${target} ; then
29489 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29490 echo " for ${target}." 1>&2
29491 else
29492 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29493 echo " from ${host} to ${target}." 1>&2
29502 if test "x${ISLLIBS}" != "x" ; then
29504 $as_echo "#define HAVE_isl 1" >>confdefs.h
29508 # Check for plugin support
29509 # Check whether --enable-plugin was given.
29510 if test "${enable_plugin+set}" = set; then :
29511 enableval=$enable_plugin; enable_plugin=$enableval
29512 else
29513 enable_plugin=yes; default_plugin=yes
29517 pluginlibs=
29518 plugin_check=yes
29520 case "${host}" in
29521 *-*-mingw*)
29522 # Since plugin support under MinGW is not as straightforward as on
29523 # other platforms (e.g., we have to link import library, etc), we
29524 # only enable it if explicitly requested.
29525 if test x"$default_plugin" = x"yes"; then
29526 enable_plugin=no
29527 elif test x"$enable_plugin" = x"yes"; then
29528 # Use make's target variable to derive import library name.
29529 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29530 plugin_check=no
29533 *-*-darwin*)
29534 if test x$build = x$host; then
29535 export_sym_check="nm${exeext} -g"
29536 elif test x$host = x$target; then
29537 export_sym_check="$gcc_cv_nm -g"
29538 else
29539 export_sym_check=
29543 if test x$build = x$host; then
29544 export_sym_check="objdump${exeext} -T"
29545 elif test x$host = x$target; then
29546 export_sym_check="$gcc_cv_objdump -T"
29547 else
29548 export_sym_check=
29551 esac
29553 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29556 $as_echo_n "checking for exported symbols... " >&6; }
29557 if test "x$export_sym_check" != x; then
29558 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29559 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29560 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29561 : # No need to use a flag
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29563 $as_echo "yes" >&6; }
29564 else
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29566 $as_echo "yes" >&6; }
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29568 $as_echo_n "checking for -rdynamic... " >&6; }
29569 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29570 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29571 plugin_rdynamic=yes
29572 pluginlibs="-rdynamic"
29573 else
29574 plugin_rdynamic=no
29575 enable_plugin=no
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29578 $as_echo "$plugin_rdynamic" >&6; }
29580 else
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29582 $as_echo "unable to check" >&6; }
29585 # Check -ldl
29586 saved_LIBS="$LIBS"
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29588 $as_echo_n "checking for library containing dlopen... " >&6; }
29589 if test "${ac_cv_search_dlopen+set}" = set; then :
29590 $as_echo_n "(cached) " >&6
29591 else
29592 ac_func_search_save_LIBS=$LIBS
29593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29594 /* end confdefs.h. */
29596 /* Override any GCC internal prototype to avoid an error.
29597 Use char because int might match the return type of a GCC
29598 builtin and then its argument prototype would still apply. */
29599 #ifdef __cplusplus
29600 extern "C"
29601 #endif
29602 char dlopen ();
29604 main ()
29606 return dlopen ();
29608 return 0;
29610 _ACEOF
29611 for ac_lib in '' dl; do
29612 if test -z "$ac_lib"; then
29613 ac_res="none required"
29614 else
29615 ac_res=-l$ac_lib
29616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29618 if ac_fn_cxx_try_link "$LINENO"; then :
29619 ac_cv_search_dlopen=$ac_res
29621 rm -f core conftest.err conftest.$ac_objext \
29622 conftest$ac_exeext
29623 if test "${ac_cv_search_dlopen+set}" = set; then :
29624 break
29626 done
29627 if test "${ac_cv_search_dlopen+set}" = set; then :
29629 else
29630 ac_cv_search_dlopen=no
29632 rm conftest.$ac_ext
29633 LIBS=$ac_func_search_save_LIBS
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29636 $as_echo "$ac_cv_search_dlopen" >&6; }
29637 ac_res=$ac_cv_search_dlopen
29638 if test "$ac_res" != no; then :
29639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29643 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29644 pluginlibs="$pluginlibs -ldl"
29646 LIBS="$saved_LIBS"
29648 # Check that we can build shared objects with -fPIC -shared
29649 saved_LDFLAGS="$LDFLAGS"
29650 saved_CFLAGS="$CFLAGS"
29651 case "${host}" in
29652 *-*-darwin*)
29653 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29654 CFLAGS="$CFLAGS -fPIC"
29655 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29658 CFLAGS="$CFLAGS -fPIC"
29659 LDFLAGS="$LDFLAGS -fPIC -shared"
29661 esac
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29663 $as_echo_n "checking for -fPIC -shared... " >&6; }
29664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29665 /* end confdefs.h. */
29666 extern int X;
29668 main ()
29670 return X == 0;
29672 return 0;
29674 _ACEOF
29675 if ac_fn_cxx_try_link "$LINENO"; then :
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29677 $as_echo "yes" >&6; }; have_pic_shared=yes
29678 else
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29680 $as_echo "no" >&6; }; have_pic_shared=no
29682 rm -f core conftest.err conftest.$ac_objext \
29683 conftest$ac_exeext conftest.$ac_ext
29684 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29685 pluginlibs=
29686 enable_plugin=no
29688 LDFLAGS="$saved_LDFLAGS"
29689 CFLAGS="$saved_CFLAGS"
29691 # If plugin support had been requested but not available, fail.
29692 if test x"$enable_plugin" = x"no" ; then
29693 if test x"$default_plugin" != x"yes"; then
29694 as_fn_error "
29695 Building GCC with plugin support requires a host that supports
29696 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29703 if test x"$enable_plugin" = x"yes"; then
29705 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29710 # Enable --enable-host-shared
29711 # Check whether --enable-host-shared was given.
29712 if test "${enable_host_shared+set}" = set; then :
29713 enableval=$enable_host_shared; PICFLAG=-fPIC
29714 else
29715 PICFLAG=
29722 # Check whether --enable-libquadmath-support was given.
29723 if test "${enable_libquadmath_support+set}" = set; then :
29724 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29725 else
29726 ENABLE_LIBQUADMATH_SUPPORT=yes
29729 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29731 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29736 # Specify what hash style to use by default.
29738 # Check whether --with-linker-hash-style was given.
29739 if test "${with_linker_hash_style+set}" = set; then :
29740 withval=$with_linker_hash_style; case x"$withval" in
29741 xsysv)
29742 LINKER_HASH_STYLE=sysv
29744 xgnu)
29745 LINKER_HASH_STYLE=gnu
29747 xboth)
29748 LINKER_HASH_STYLE=both
29751 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29753 esac
29754 else
29755 LINKER_HASH_STYLE=''
29758 if test x"${LINKER_HASH_STYLE}" != x; then
29760 cat >>confdefs.h <<_ACEOF
29761 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29762 _ACEOF
29766 # Specify what should be the default of -fdiagnostics-color option.
29768 # Check whether --with-diagnostics-color was given.
29769 if test "${with_diagnostics_color+set}" = set; then :
29770 withval=$with_diagnostics_color; case x"$withval" in
29771 xnever)
29772 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29774 xauto)
29775 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29777 xauto-if-env)
29778 DIAGNOSTICS_COLOR_DEFAULT=-1
29780 xalways)
29781 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29784 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29786 esac
29787 else
29788 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29792 cat >>confdefs.h <<_ACEOF
29793 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29794 _ACEOF
29797 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29798 # of jit/jit-playback.c.
29799 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29800 echo "gcc_driver_version: ${gcc_driver_version}"
29801 cat > gcc-driver-name.h <<EOF
29802 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29805 # Check whether --enable-default-pie was given.
29806 # Check whether --enable-default-pie was given.
29807 if test "${enable_default_pie+set}" = set; then :
29808 enableval=$enable_default_pie; enable_default_pie=$enableval
29809 else
29810 enable_default_pie=no
29813 if test x$enable_default_pie = xyes ; then
29815 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29820 # Check if -fno-PIE works.
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29822 $as_echo_n "checking for -fno-PIE option... " >&6; }
29823 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29824 $as_echo_n "(cached) " >&6
29825 else
29826 saved_CXXFLAGS="$CXXFLAGS"
29827 CXXFLAGS="$CXXFLAGS -fno-PIE"
29828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29829 /* end confdefs.h. */
29830 int main(void) {return 0;}
29831 _ACEOF
29832 if ac_fn_cxx_try_compile "$LINENO"; then :
29833 gcc_cv_c_no_fpie=yes
29834 else
29835 gcc_cv_c_no_fpie=no
29837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29838 CXXFLAGS="$saved_CXXFLAGS"
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29841 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29842 if test "$gcc_cv_c_no_fpie" = "yes"; then
29843 NO_PIE_CFLAGS="-fno-PIE"
29847 # Check if -no-pie works.
29848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29849 $as_echo_n "checking for -no-pie option... " >&6; }
29850 if test "${gcc_cv_no_pie+set}" = set; then :
29851 $as_echo_n "(cached) " >&6
29852 else
29853 saved_LDFLAGS="$LDFLAGS"
29854 LDFLAGS="$LDFLAGS -no-pie"
29855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29856 /* end confdefs.h. */
29857 int main(void) {return 0;}
29858 _ACEOF
29859 if ac_fn_cxx_try_link "$LINENO"; then :
29860 gcc_cv_no_pie=yes
29861 else
29862 gcc_cv_no_pie=no
29864 rm -f core conftest.err conftest.$ac_objext \
29865 conftest$ac_exeext conftest.$ac_ext
29866 LDFLAGS="$saved_LDFLAGS"
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29869 $as_echo "$gcc_cv_no_pie" >&6; }
29870 if test "$gcc_cv_no_pie" = "yes"; then
29871 NO_PIE_FLAG="-no-pie"
29875 # Check linker supports '-z bndplt'
29876 ld_bndplt_support=no
29877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29878 $as_echo_n "checking linker -z bndplt option... " >&6; }
29879 if test x"$ld_is_gold" = xno; then
29880 if test $in_tree_ld = yes ; then
29881 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
29882 ld_bndplt_support=yes
29884 elif test x$gcc_cv_ld != x; then
29885 # Check if linker supports -a bndplt option
29886 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29887 ld_bndplt_support=yes
29891 if test x"$ld_bndplt_support" = xyes; then
29893 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29897 $as_echo "$ld_bndplt_support" >&6; }
29899 # Check linker supports '--push-state'/'--pop-state'
29900 ld_pushpopstate_support=no
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29902 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29903 if test x"$ld_is_gold" = xno; then
29904 if test $in_tree_ld = yes ; then
29905 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
29906 ld_pushpopstate_support=yes
29908 elif test x$gcc_cv_ld != x; then
29909 # Check if linker supports --push-state/--pop-state options
29910 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
29911 ld_pushpopstate_support=yes
29915 if test x"$ld_pushpopstate_support" = xyes; then
29917 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29921 $as_echo "$ld_pushpopstate_support" >&6; }
29923 # Configure the subdirectories
29924 # AC_CONFIG_SUBDIRS($subdirs)
29926 # Create the Makefile
29927 # and configure language subdirectories
29928 ac_config_files="$ac_config_files $all_outputs"
29931 ac_config_commands="$ac_config_commands default"
29933 cat >confcache <<\_ACEOF
29934 # This file is a shell script that caches the results of configure
29935 # tests run on this system so they can be shared between configure
29936 # scripts and configure runs, see configure's option --config-cache.
29937 # It is not useful on other systems. If it contains results you don't
29938 # want to keep, you may remove or edit it.
29940 # config.status only pays attention to the cache file if you give it
29941 # the --recheck option to rerun configure.
29943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29945 # following values.
29947 _ACEOF
29949 # The following way of writing the cache mishandles newlines in values,
29950 # but we know of no workaround that is simple, portable, and efficient.
29951 # So, we kill variables containing newlines.
29952 # Ultrix sh set writes to stderr and can't be redirected directly,
29953 # and sets the high bit in the cache file unless we assign to the vars.
29955 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29956 eval ac_val=\$$ac_var
29957 case $ac_val in #(
29958 *${as_nl}*)
29959 case $ac_var in #(
29960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29962 esac
29963 case $ac_var in #(
29964 _ | IFS | as_nl) ;; #(
29965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29966 *) { eval $ac_var=; unset $ac_var;} ;;
29967 esac ;;
29968 esac
29969 done
29971 (set) 2>&1 |
29972 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29973 *${as_nl}ac_space=\ *)
29974 # `set' does not quote correctly, so add quotes: double-quote
29975 # substitution turns \\\\ into \\, and sed turns \\ into \.
29976 sed -n \
29977 "s/'/'\\\\''/g;
29978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29979 ;; #(
29981 # `set' quotes correctly as required by POSIX, so do not add quotes.
29982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29984 esac |
29985 sort
29987 sed '
29988 /^ac_cv_env_/b end
29989 t clear
29990 :clear
29991 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29992 t end
29993 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29994 :end' >>confcache
29995 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29996 if test -w "$cache_file"; then
29997 test "x$cache_file" != "x/dev/null" &&
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29999 $as_echo "$as_me: updating cache $cache_file" >&6;}
30000 cat confcache >$cache_file
30001 else
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30003 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30006 rm -f confcache
30008 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30009 # Let make expand exec_prefix.
30010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30012 DEFS=-DHAVE_CONFIG_H
30014 ac_libobjs=
30015 ac_ltlibobjs=
30016 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30017 # 1. Remove the extension, and $U if already installed.
30018 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30019 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30021 # will be set to the directory where LIBOBJS objects are built.
30022 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30023 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30024 done
30025 LIBOBJS=$ac_libobjs
30027 LTLIBOBJS=$ac_ltlibobjs
30032 : ${CONFIG_STATUS=./config.status}
30033 ac_write_fail=0
30034 ac_clean_files_save=$ac_clean_files
30035 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30037 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30038 as_write_fail=0
30039 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30040 #! $SHELL
30041 # Generated by $as_me.
30042 # Run this file to recreate the current configuration.
30043 # Compiler output produced by configure, useful for debugging
30044 # configure, is in config.log if it exists.
30046 debug=false
30047 ac_cs_recheck=false
30048 ac_cs_silent=false
30050 SHELL=\${CONFIG_SHELL-$SHELL}
30051 export SHELL
30052 _ASEOF
30053 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30054 ## -------------------- ##
30055 ## M4sh Initialization. ##
30056 ## -------------------- ##
30058 # Be more Bourne compatible
30059 DUALCASE=1; export DUALCASE # for MKS sh
30060 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30061 emulate sh
30062 NULLCMD=:
30063 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30064 # is contrary to our usage. Disable this feature.
30065 alias -g '${1+"$@"}'='"$@"'
30066 setopt NO_GLOB_SUBST
30067 else
30068 case `(set -o) 2>/dev/null` in #(
30069 *posix*) :
30070 set -o posix ;; #(
30071 *) :
30073 esac
30077 as_nl='
30079 export as_nl
30080 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30081 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30083 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30084 # Prefer a ksh shell builtin over an external printf program on Solaris,
30085 # but without wasting forks for bash or zsh.
30086 if test -z "$BASH_VERSION$ZSH_VERSION" \
30087 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30088 as_echo='print -r --'
30089 as_echo_n='print -rn --'
30090 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30091 as_echo='printf %s\n'
30092 as_echo_n='printf %s'
30093 else
30094 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30095 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30096 as_echo_n='/usr/ucb/echo -n'
30097 else
30098 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30099 as_echo_n_body='eval
30100 arg=$1;
30101 case $arg in #(
30102 *"$as_nl"*)
30103 expr "X$arg" : "X\\(.*\\)$as_nl";
30104 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30105 esac;
30106 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30108 export as_echo_n_body
30109 as_echo_n='sh -c $as_echo_n_body as_echo'
30111 export as_echo_body
30112 as_echo='sh -c $as_echo_body as_echo'
30115 # The user is always right.
30116 if test "${PATH_SEPARATOR+set}" != set; then
30117 PATH_SEPARATOR=:
30118 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30119 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30120 PATH_SEPARATOR=';'
30125 # IFS
30126 # We need space, tab and new line, in precisely that order. Quoting is
30127 # there to prevent editors from complaining about space-tab.
30128 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30129 # splitting by setting IFS to empty value.)
30130 IFS=" "" $as_nl"
30132 # Find who we are. Look in the path if we contain no directory separator.
30133 case $0 in #((
30134 *[\\/]* ) as_myself=$0 ;;
30135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30136 for as_dir in $PATH
30138 IFS=$as_save_IFS
30139 test -z "$as_dir" && as_dir=.
30140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30141 done
30142 IFS=$as_save_IFS
30145 esac
30146 # We did not find ourselves, most probably we were run as `sh COMMAND'
30147 # in which case we are not to be found in the path.
30148 if test "x$as_myself" = x; then
30149 as_myself=$0
30151 if test ! -f "$as_myself"; then
30152 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30153 exit 1
30156 # Unset variables that we do not need and which cause bugs (e.g. in
30157 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30158 # suppresses any "Segmentation fault" message there. '((' could
30159 # trigger a bug in pdksh 5.2.14.
30160 for as_var in BASH_ENV ENV MAIL MAILPATH
30161 do eval test x\${$as_var+set} = xset \
30162 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30163 done
30164 PS1='$ '
30165 PS2='> '
30166 PS4='+ '
30168 # NLS nuisances.
30169 LC_ALL=C
30170 export LC_ALL
30171 LANGUAGE=C
30172 export LANGUAGE
30174 # CDPATH.
30175 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30178 # as_fn_error ERROR [LINENO LOG_FD]
30179 # ---------------------------------
30180 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30181 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30182 # script with status $?, using 1 if that was 0.
30183 as_fn_error ()
30185 as_status=$?; test $as_status -eq 0 && as_status=1
30186 if test "$3"; then
30187 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30188 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30190 $as_echo "$as_me: error: $1" >&2
30191 as_fn_exit $as_status
30192 } # as_fn_error
30195 # as_fn_set_status STATUS
30196 # -----------------------
30197 # Set $? to STATUS, without forking.
30198 as_fn_set_status ()
30200 return $1
30201 } # as_fn_set_status
30203 # as_fn_exit STATUS
30204 # -----------------
30205 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30206 as_fn_exit ()
30208 set +e
30209 as_fn_set_status $1
30210 exit $1
30211 } # as_fn_exit
30213 # as_fn_unset VAR
30214 # ---------------
30215 # Portably unset VAR.
30216 as_fn_unset ()
30218 { eval $1=; unset $1;}
30220 as_unset=as_fn_unset
30221 # as_fn_append VAR VALUE
30222 # ----------------------
30223 # Append the text in VALUE to the end of the definition contained in VAR. Take
30224 # advantage of any shell optimizations that allow amortized linear growth over
30225 # repeated appends, instead of the typical quadratic growth present in naive
30226 # implementations.
30227 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30228 eval 'as_fn_append ()
30230 eval $1+=\$2
30232 else
30233 as_fn_append ()
30235 eval $1=\$$1\$2
30237 fi # as_fn_append
30239 # as_fn_arith ARG...
30240 # ------------------
30241 # Perform arithmetic evaluation on the ARGs, and store the result in the
30242 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30243 # must be portable across $(()) and expr.
30244 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30245 eval 'as_fn_arith ()
30247 as_val=$(( $* ))
30249 else
30250 as_fn_arith ()
30252 as_val=`expr "$@" || test $? -eq 1`
30254 fi # as_fn_arith
30257 if expr a : '\(a\)' >/dev/null 2>&1 &&
30258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30259 as_expr=expr
30260 else
30261 as_expr=false
30264 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30265 as_basename=basename
30266 else
30267 as_basename=false
30270 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30271 as_dirname=dirname
30272 else
30273 as_dirname=false
30276 as_me=`$as_basename -- "$0" ||
30277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30278 X"$0" : 'X\(//\)$' \| \
30279 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30280 $as_echo X/"$0" |
30281 sed '/^.*\/\([^/][^/]*\)\/*$/{
30282 s//\1/
30285 /^X\/\(\/\/\)$/{
30286 s//\1/
30289 /^X\/\(\/\).*/{
30290 s//\1/
30293 s/.*/./; q'`
30295 # Avoid depending upon Character Ranges.
30296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30299 as_cr_digits='0123456789'
30300 as_cr_alnum=$as_cr_Letters$as_cr_digits
30302 ECHO_C= ECHO_N= ECHO_T=
30303 case `echo -n x` in #(((((
30304 -n*)
30305 case `echo 'xy\c'` in
30306 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30307 xy) ECHO_C='\c';;
30308 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30309 ECHO_T=' ';;
30310 esac;;
30312 ECHO_N='-n';;
30313 esac
30315 rm -f conf$$ conf$$.exe conf$$.file
30316 if test -d conf$$.dir; then
30317 rm -f conf$$.dir/conf$$.file
30318 else
30319 rm -f conf$$.dir
30320 mkdir conf$$.dir 2>/dev/null
30322 if (echo >conf$$.file) 2>/dev/null; then
30323 if ln -s conf$$.file conf$$ 2>/dev/null; then
30324 as_ln_s='ln -s'
30325 # ... but there are two gotchas:
30326 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30327 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30328 # In both cases, we have to default to `cp -p'.
30329 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30330 as_ln_s='cp -p'
30331 elif ln conf$$.file conf$$ 2>/dev/null; then
30332 as_ln_s=ln
30333 else
30334 as_ln_s='cp -p'
30336 else
30337 as_ln_s='cp -p'
30339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30340 rmdir conf$$.dir 2>/dev/null
30343 # as_fn_mkdir_p
30344 # -------------
30345 # Create "$as_dir" as a directory, including parents if necessary.
30346 as_fn_mkdir_p ()
30349 case $as_dir in #(
30350 -*) as_dir=./$as_dir;;
30351 esac
30352 test -d "$as_dir" || eval $as_mkdir_p || {
30353 as_dirs=
30354 while :; do
30355 case $as_dir in #(
30356 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30357 *) as_qdir=$as_dir;;
30358 esac
30359 as_dirs="'$as_qdir' $as_dirs"
30360 as_dir=`$as_dirname -- "$as_dir" ||
30361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30362 X"$as_dir" : 'X\(//\)[^/]' \| \
30363 X"$as_dir" : 'X\(//\)$' \| \
30364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30365 $as_echo X"$as_dir" |
30366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30367 s//\1/
30370 /^X\(\/\/\)[^/].*/{
30371 s//\1/
30374 /^X\(\/\/\)$/{
30375 s//\1/
30378 /^X\(\/\).*/{
30379 s//\1/
30382 s/.*/./; q'`
30383 test -d "$as_dir" && break
30384 done
30385 test -z "$as_dirs" || eval "mkdir $as_dirs"
30386 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30389 } # as_fn_mkdir_p
30390 if mkdir -p . 2>/dev/null; then
30391 as_mkdir_p='mkdir -p "$as_dir"'
30392 else
30393 test -d ./-p && rmdir ./-p
30394 as_mkdir_p=false
30397 if test -x / >/dev/null 2>&1; then
30398 as_test_x='test -x'
30399 else
30400 if ls -dL / >/dev/null 2>&1; then
30401 as_ls_L_option=L
30402 else
30403 as_ls_L_option=
30405 as_test_x='
30406 eval sh -c '\''
30407 if test -d "$1"; then
30408 test -d "$1/.";
30409 else
30410 case $1 in #(
30411 -*)set "./$1";;
30412 esac;
30413 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30414 ???[sx]*):;;*)false;;esac;fi
30415 '\'' sh
30418 as_executable_p=$as_test_x
30420 # Sed expression to map a string onto a valid CPP name.
30421 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30423 # Sed expression to map a string onto a valid variable name.
30424 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30427 exec 6>&1
30428 ## ----------------------------------- ##
30429 ## Main body of $CONFIG_STATUS script. ##
30430 ## ----------------------------------- ##
30431 _ASEOF
30432 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30435 # Save the log message, to keep $0 and so on meaningful, and to
30436 # report actual input values of CONFIG_FILES etc. instead of their
30437 # values after options handling.
30438 ac_log="
30439 This file was extended by $as_me, which was
30440 generated by GNU Autoconf 2.64. Invocation command line was
30442 CONFIG_FILES = $CONFIG_FILES
30443 CONFIG_HEADERS = $CONFIG_HEADERS
30444 CONFIG_LINKS = $CONFIG_LINKS
30445 CONFIG_COMMANDS = $CONFIG_COMMANDS
30446 $ $0 $@
30448 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30451 _ACEOF
30453 case $ac_config_files in *"
30454 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30455 esac
30457 case $ac_config_headers in *"
30458 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30459 esac
30462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30463 # Files that config.status was made for.
30464 config_files="$ac_config_files"
30465 config_headers="$ac_config_headers"
30466 config_links="$ac_config_links"
30467 config_commands="$ac_config_commands"
30469 _ACEOF
30471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30472 ac_cs_usage="\
30473 \`$as_me' instantiates files and other configuration actions
30474 from templates according to the current configuration. Unless the files
30475 and actions are specified as TAGs, all are instantiated by default.
30477 Usage: $0 [OPTION]... [TAG]...
30479 -h, --help print this help, then exit
30480 -V, --version print version number and configuration settings, then exit
30481 -q, --quiet, --silent
30482 do not print progress messages
30483 -d, --debug don't remove temporary files
30484 --recheck update $as_me by reconfiguring in the same conditions
30485 --file=FILE[:TEMPLATE]
30486 instantiate the configuration file FILE
30487 --header=FILE[:TEMPLATE]
30488 instantiate the configuration header FILE
30490 Configuration files:
30491 $config_files
30493 Configuration headers:
30494 $config_headers
30496 Configuration links:
30497 $config_links
30499 Configuration commands:
30500 $config_commands
30502 Report bugs to the package provider."
30504 _ACEOF
30505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30506 ac_cs_version="\\
30507 config.status
30508 configured by $0, generated by GNU Autoconf 2.64,
30509 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30511 Copyright (C) 2009 Free Software Foundation, Inc.
30512 This config.status script is free software; the Free Software Foundation
30513 gives unlimited permission to copy, distribute and modify it."
30515 ac_pwd='$ac_pwd'
30516 srcdir='$srcdir'
30517 AWK='$AWK'
30518 test -n "\$AWK" || AWK=awk
30519 _ACEOF
30521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30522 # The default lists apply if the user does not specify any file.
30523 ac_need_defaults=:
30524 while test $# != 0
30526 case $1 in
30527 --*=*)
30528 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30529 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30530 ac_shift=:
30533 ac_option=$1
30534 ac_optarg=$2
30535 ac_shift=shift
30537 esac
30539 case $ac_option in
30540 # Handling of the options.
30541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30542 ac_cs_recheck=: ;;
30543 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30544 $as_echo "$ac_cs_version"; exit ;;
30545 --debug | --debu | --deb | --de | --d | -d )
30546 debug=: ;;
30547 --file | --fil | --fi | --f )
30548 $ac_shift
30549 case $ac_optarg in
30550 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30551 esac
30552 as_fn_append CONFIG_FILES " '$ac_optarg'"
30553 ac_need_defaults=false;;
30554 --header | --heade | --head | --hea )
30555 $ac_shift
30556 case $ac_optarg in
30557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30558 esac
30559 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30560 ac_need_defaults=false;;
30561 --he | --h)
30562 # Conflict between --help and --header
30563 as_fn_error "ambiguous option: \`$1'
30564 Try \`$0 --help' for more information.";;
30565 --help | --hel | -h )
30566 $as_echo "$ac_cs_usage"; exit ;;
30567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30569 ac_cs_silent=: ;;
30571 # This is an error.
30572 -*) as_fn_error "unrecognized option: \`$1'
30573 Try \`$0 --help' for more information." ;;
30575 *) as_fn_append ac_config_targets " $1"
30576 ac_need_defaults=false ;;
30578 esac
30579 shift
30580 done
30582 ac_configure_extra_args=
30584 if $ac_cs_silent; then
30585 exec 6>/dev/null
30586 ac_configure_extra_args="$ac_configure_extra_args --silent"
30589 _ACEOF
30590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30591 if \$ac_cs_recheck; then
30592 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30593 shift
30594 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30595 CONFIG_SHELL='$SHELL'
30596 export CONFIG_SHELL
30597 exec "\$@"
30600 _ACEOF
30601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30602 exec 5>>config.log
30604 echo
30605 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30606 ## Running $as_me. ##
30607 _ASBOX
30608 $as_echo "$ac_log"
30609 } >&5
30611 _ACEOF
30612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30614 # INIT-COMMANDS
30616 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30617 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30618 subdirs='$subdirs'
30620 _ACEOF
30622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30624 # Handling of arguments.
30625 for ac_config_target in $ac_config_targets
30627 case $ac_config_target in
30628 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30629 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30630 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30631 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30632 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30633 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30634 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30635 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30636 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30638 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30639 esac
30640 done
30643 # If the user did not use the arguments to specify the items to instantiate,
30644 # then the envvar interface is used. Set only those that are not.
30645 # We use the long form for the default assignment because of an extremely
30646 # bizarre bug on SunOS 4.1.3.
30647 if $ac_need_defaults; then
30648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30649 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30650 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30654 # Have a temporary directory for convenience. Make it in the build tree
30655 # simply because there is no reason against having it here, and in addition,
30656 # creating and moving files from /tmp can sometimes cause problems.
30657 # Hook for its removal unless debugging.
30658 # Note that there is a small window in which the directory will not be cleaned:
30659 # after its creation but before its name has been assigned to `$tmp'.
30660 $debug ||
30662 tmp=
30663 trap 'exit_status=$?
30664 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30666 trap 'as_fn_exit 1' 1 2 13 15
30668 # Create a (secure) tmp directory for tmp files.
30671 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30672 test -n "$tmp" && test -d "$tmp"
30673 } ||
30675 tmp=./conf$$-$RANDOM
30676 (umask 077 && mkdir "$tmp")
30677 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30679 # Set up the scripts for CONFIG_FILES section.
30680 # No need to generate them if there are no CONFIG_FILES.
30681 # This happens for instance with `./config.status config.h'.
30682 if test -n "$CONFIG_FILES"; then
30684 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30685 ac_cs_awk_getline=:
30686 ac_cs_awk_pipe_init=
30687 ac_cs_awk_read_file='
30688 while ((getline aline < (F[key])) > 0)
30689 print(aline)
30690 close(F[key])'
30691 ac_cs_awk_pipe_fini=
30692 else
30693 ac_cs_awk_getline=false
30694 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30695 ac_cs_awk_read_file='
30696 print "|#_!!_#|"
30697 print "cat " F[key] " &&"
30698 '$ac_cs_awk_pipe_init
30699 # The final `:' finishes the AND list.
30700 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30702 ac_cr=`echo X | tr X '\015'`
30703 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30704 # But we know of no other shell where ac_cr would be empty at this
30705 # point, so we can use a bashism as a fallback.
30706 if test "x$ac_cr" = x; then
30707 eval ac_cr=\$\'\\r\'
30709 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30710 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30711 ac_cs_awk_cr='\r'
30712 else
30713 ac_cs_awk_cr=$ac_cr
30716 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30717 _ACEOF
30719 # Create commands to substitute file output variables.
30721 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30722 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30723 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30724 echo "_ACAWK" &&
30725 echo "_ACEOF"
30726 } >conf$$files.sh &&
30727 . ./conf$$files.sh ||
30728 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30729 rm -f conf$$files.sh
30732 echo "cat >conf$$subs.awk <<_ACEOF" &&
30733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30734 echo "_ACEOF"
30735 } >conf$$subs.sh ||
30736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30738 ac_delim='%!_!# '
30739 for ac_last_try in false false false false false :; do
30740 . ./conf$$subs.sh ||
30741 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30744 if test $ac_delim_n = $ac_delim_num; then
30745 break
30746 elif $ac_last_try; then
30747 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30748 else
30749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30751 done
30752 rm -f conf$$subs.sh
30754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30755 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30756 _ACEOF
30757 sed -n '
30759 s/^/S["/; s/!.*/"]=/
30762 s/^[^!]*!//
30763 :repl
30764 t repl
30765 s/'"$ac_delim"'$//
30766 t delim
30769 s/\(.\{148\}\).*/\1/
30770 t more1
30771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30774 b repl
30775 :more1
30776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30779 s/.\{148\}//
30780 t nl
30781 :delim
30783 s/\(.\{148\}\).*/\1/
30784 t more2
30785 s/["\\]/\\&/g; s/^/"/; s/$/"/
30788 :more2
30789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30792 s/.\{148\}//
30793 t delim
30794 ' <conf$$subs.awk | sed '
30795 /^[^""]/{
30797 s/\n//
30799 ' >>$CONFIG_STATUS || ac_write_fail=1
30800 rm -f conf$$subs.awk
30801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30802 _ACAWK
30803 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30804 for (key in S) S_is_set[key] = 1
30805 FS = "\a"
30806 \$ac_cs_awk_pipe_init
30809 line = $ 0
30810 nfields = split(line, field, "@")
30811 substed = 0
30812 len = length(field[1])
30813 for (i = 2; i < nfields; i++) {
30814 key = field[i]
30815 keylen = length(key)
30816 if (S_is_set[key]) {
30817 value = S[key]
30818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30819 len += length(value) + length(field[++i])
30820 substed = 1
30821 } else
30822 len += 1 + keylen
30824 if (nfields == 3 && !substed) {
30825 key = field[2]
30826 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30827 \$ac_cs_awk_read_file
30828 next
30831 print line
30833 \$ac_cs_awk_pipe_fini
30834 _ACAWK
30835 _ACEOF
30836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30837 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30838 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30839 else
30841 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30842 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30843 _ACEOF
30845 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30846 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30847 # trailing colons and then remove the whole line if VPATH becomes empty
30848 # (actually we leave an empty line to preserve line numbers).
30849 if test "x$srcdir" = x.; then
30850 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30851 s/:*\$(srcdir):*/:/
30852 s/:*\${srcdir}:*/:/
30853 s/:*@srcdir@:*/:/
30854 s/^\([^=]*=[ ]*\):*/\1/
30855 s/:*$//
30856 s/^[^=]*=[ ]*$//
30860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30861 fi # test -n "$CONFIG_FILES"
30863 # Set up the scripts for CONFIG_HEADERS section.
30864 # No need to generate them if there are no CONFIG_HEADERS.
30865 # This happens for instance with `./config.status Makefile'.
30866 if test -n "$CONFIG_HEADERS"; then
30867 cat >"$tmp/defines.awk" <<\_ACAWK ||
30868 BEGIN {
30869 _ACEOF
30871 # Transform confdefs.h into an awk script `defines.awk', embedded as
30872 # here-document in config.status, that substitutes the proper values into
30873 # config.h.in to produce config.h.
30875 # Create a delimiter string that does not exist in confdefs.h, to ease
30876 # handling of long lines.
30877 ac_delim='%!_!# '
30878 for ac_last_try in false false :; do
30879 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30880 if test -z "$ac_t"; then
30881 break
30882 elif $ac_last_try; then
30883 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30884 else
30885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30887 done
30889 # For the awk script, D is an array of macro values keyed by name,
30890 # likewise P contains macro parameters if any. Preserve backslash
30891 # newline sequences.
30893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30894 sed -n '
30895 s/.\{148\}/&'"$ac_delim"'/g
30896 t rset
30897 :rset
30898 s/^[ ]*#[ ]*define[ ][ ]*/ /
30899 t def
30901 :def
30902 s/\\$//
30903 t bsnl
30904 s/["\\]/\\&/g
30905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30906 D["\1"]=" \3"/p
30907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30909 :bsnl
30910 s/["\\]/\\&/g
30911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30912 D["\1"]=" \3\\\\\\n"\\/p
30913 t cont
30914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30915 t cont
30917 :cont
30919 s/.\{148\}/&'"$ac_delim"'/g
30920 t clear
30921 :clear
30922 s/\\$//
30923 t bsnlc
30924 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30926 :bsnlc
30927 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30928 b cont
30929 ' <confdefs.h | sed '
30930 s/'"$ac_delim"'/"\\\
30931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30934 for (key in D) D_is_set[key] = 1
30935 FS = "\a"
30937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30938 line = \$ 0
30939 split(line, arg, " ")
30940 if (arg[1] == "#") {
30941 defundef = arg[2]
30942 mac1 = arg[3]
30943 } else {
30944 defundef = substr(arg[1], 2)
30945 mac1 = arg[2]
30947 split(mac1, mac2, "(") #)
30948 macro = mac2[1]
30949 prefix = substr(line, 1, index(line, defundef) - 1)
30950 if (D_is_set[macro]) {
30951 # Preserve the white space surrounding the "#".
30952 print prefix "define", macro P[macro] D[macro]
30953 next
30954 } else {
30955 # Replace #undef with comments. This is necessary, for example,
30956 # in the case of _POSIX_SOURCE, which is predefined and required
30957 # on some systems where configure will not decide to define it.
30958 if (defundef == "undef") {
30959 print "/*", prefix defundef, macro, "*/"
30960 next
30964 { print }
30965 _ACAWK
30966 _ACEOF
30967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30968 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30969 fi # test -n "$CONFIG_HEADERS"
30972 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30973 shift
30974 for ac_tag
30976 case $ac_tag in
30977 :[FHLC]) ac_mode=$ac_tag; continue;;
30978 esac
30979 case $ac_mode$ac_tag in
30980 :[FHL]*:*);;
30981 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30982 :[FH]-) ac_tag=-:-;;
30983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30984 esac
30985 ac_save_IFS=$IFS
30986 IFS=:
30987 set x $ac_tag
30988 IFS=$ac_save_IFS
30989 shift
30990 ac_file=$1
30991 shift
30993 case $ac_mode in
30994 :L) ac_source=$1;;
30995 :[FH])
30996 ac_file_inputs=
30997 for ac_f
30999 case $ac_f in
31000 -) ac_f="$tmp/stdin";;
31001 *) # Look for the file first in the build tree, then in the source tree
31002 # (if the path is not absolute). The absolute path cannot be DOS-style,
31003 # because $ac_f cannot contain `:'.
31004 test -f "$ac_f" ||
31005 case $ac_f in
31006 [\\/$]*) false;;
31007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31008 esac ||
31009 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31010 esac
31011 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31012 as_fn_append ac_file_inputs " '$ac_f'"
31013 done
31015 # Let's still pretend it is `configure' which instantiates (i.e., don't
31016 # use $as_me), people would be surprised to read:
31017 # /* config.h. Generated by config.status. */
31018 configure_input='Generated from '`
31019 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31020 `' by configure.'
31021 if test x"$ac_file" != x-; then
31022 configure_input="$ac_file. $configure_input"
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31024 $as_echo "$as_me: creating $ac_file" >&6;}
31026 # Neutralize special characters interpreted by sed in replacement strings.
31027 case $configure_input in #(
31028 *\&* | *\|* | *\\* )
31029 ac_sed_conf_input=`$as_echo "$configure_input" |
31030 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31031 *) ac_sed_conf_input=$configure_input;;
31032 esac
31034 case $ac_tag in
31035 *:-:* | *:-) cat >"$tmp/stdin" \
31036 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31037 esac
31039 esac
31041 ac_dir=`$as_dirname -- "$ac_file" ||
31042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31043 X"$ac_file" : 'X\(//\)[^/]' \| \
31044 X"$ac_file" : 'X\(//\)$' \| \
31045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31046 $as_echo X"$ac_file" |
31047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31048 s//\1/
31051 /^X\(\/\/\)[^/].*/{
31052 s//\1/
31055 /^X\(\/\/\)$/{
31056 s//\1/
31059 /^X\(\/\).*/{
31060 s//\1/
31063 s/.*/./; q'`
31064 as_dir="$ac_dir"; as_fn_mkdir_p
31065 ac_builddir=.
31067 case "$ac_dir" in
31068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31071 # A ".." for each directory in $ac_dir_suffix.
31072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31073 case $ac_top_builddir_sub in
31074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31076 esac ;;
31077 esac
31078 ac_abs_top_builddir=$ac_pwd
31079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31080 # for backward compatibility:
31081 ac_top_builddir=$ac_top_build_prefix
31083 case $srcdir in
31084 .) # We are building in place.
31085 ac_srcdir=.
31086 ac_top_srcdir=$ac_top_builddir_sub
31087 ac_abs_top_srcdir=$ac_pwd ;;
31088 [\\/]* | ?:[\\/]* ) # Absolute name.
31089 ac_srcdir=$srcdir$ac_dir_suffix;
31090 ac_top_srcdir=$srcdir
31091 ac_abs_top_srcdir=$srcdir ;;
31092 *) # Relative name.
31093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31094 ac_top_srcdir=$ac_top_build_prefix$srcdir
31095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31096 esac
31097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31100 case $ac_mode in
31103 # CONFIG_FILE
31106 _ACEOF
31108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31109 # If the template does not know about datarootdir, expand it.
31110 # FIXME: This hack should be removed a few years after 2.60.
31111 ac_datarootdir_hack=; ac_datarootdir_seen=
31112 ac_sed_dataroot='
31113 /datarootdir/ {
31117 /@datadir@/p
31118 /@docdir@/p
31119 /@infodir@/p
31120 /@localedir@/p
31121 /@mandir@/p'
31122 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31123 *datarootdir*) ac_datarootdir_seen=yes;;
31124 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31126 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31127 _ACEOF
31128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31129 ac_datarootdir_hack='
31130 s&@datadir@&$datadir&g
31131 s&@docdir@&$docdir&g
31132 s&@infodir@&$infodir&g
31133 s&@localedir@&$localedir&g
31134 s&@mandir@&$mandir&g
31135 s&\\\${datarootdir}&$datarootdir&g' ;;
31136 esac
31137 _ACEOF
31139 # Neutralize VPATH when `$srcdir' = `.'.
31140 # Shell code in configure.ac might set extrasub.
31141 # FIXME: do we really want to maintain this feature?
31142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31143 ac_sed_extra="$ac_vpsub
31144 $extrasub
31145 _ACEOF
31146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31149 s|@configure_input@|$ac_sed_conf_input|;t t
31150 s&@top_builddir@&$ac_top_builddir_sub&;t t
31151 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31152 s&@srcdir@&$ac_srcdir&;t t
31153 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31154 s&@top_srcdir@&$ac_top_srcdir&;t t
31155 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31156 s&@builddir@&$ac_builddir&;t t
31157 s&@abs_builddir@&$ac_abs_builddir&;t t
31158 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31159 $ac_datarootdir_hack
31161 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31162 if $ac_cs_awk_getline; then
31163 $AWK -f "$tmp/subs.awk"
31164 else
31165 $AWK -f "$tmp/subs.awk" | $SHELL
31166 fi >$tmp/out \
31167 || as_fn_error "could not create $ac_file" "$LINENO" 5
31169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31170 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31173 which seems to be undefined. Please make sure it is defined." >&5
31174 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31175 which seems to be undefined. Please make sure it is defined." >&2;}
31177 rm -f "$tmp/stdin"
31178 case $ac_file in
31179 -) cat "$tmp/out" && rm -f "$tmp/out";;
31180 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31181 esac \
31182 || as_fn_error "could not create $ac_file" "$LINENO" 5
31186 # CONFIG_HEADER
31188 if test x"$ac_file" != x-; then
31190 $as_echo "/* $configure_input */" \
31191 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31192 } >"$tmp/config.h" \
31193 || as_fn_error "could not create $ac_file" "$LINENO" 5
31194 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31196 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31197 else
31198 rm -f "$ac_file"
31199 mv "$tmp/config.h" "$ac_file" \
31200 || as_fn_error "could not create $ac_file" "$LINENO" 5
31202 else
31203 $as_echo "/* $configure_input */" \
31204 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31205 || as_fn_error "could not create -" "$LINENO" 5
31210 # CONFIG_LINK
31213 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31215 else
31216 # Prefer the file from the source tree if names are identical.
31217 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31218 ac_source=$srcdir/$ac_source
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31222 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31224 if test ! -r "$ac_source"; then
31225 as_fn_error "$ac_source: file not found" "$LINENO" 5
31227 rm -f "$ac_file"
31229 # Try a relative symlink, then a hard link, then a copy.
31230 case $srcdir in
31231 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31232 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31233 esac
31234 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31235 ln "$ac_source" "$ac_file" 2>/dev/null ||
31236 cp -p "$ac_source" "$ac_file" ||
31237 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31240 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31241 $as_echo "$as_me: executing $ac_file commands" >&6;}
31243 esac
31246 case $ac_file$ac_mode in
31247 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31248 "gccdepdir":C)
31249 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31250 for lang in $subdirs c-family common
31252 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31253 done ;;
31254 "as":F) chmod +x as ;;
31255 "collect-ld":F) chmod +x collect-ld ;;
31256 "nm":F) chmod +x nm ;;
31257 "default":C)
31258 case ${CONFIG_HEADERS} in
31259 *auto-host.h:config.in*)
31260 echo > cstamp-h ;;
31261 esac
31262 # Make sure all the subdirs exist.
31263 for d in $subdirs doc build common c-family
31265 test -d $d || mkdir $d
31266 done
31269 esac
31270 done # for ac_tag
31273 as_fn_exit 0
31274 _ACEOF
31275 ac_clean_files=$ac_clean_files_save
31277 test $ac_write_fail = 0 ||
31278 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31281 # configure is writing to config.log, and then calls config.status.
31282 # config.status does its own redirection, appending to config.log.
31283 # Unfortunately, on DOS this fails, as config.log is still kept open
31284 # by configure, so config.status won't be able to write to it; its
31285 # output is simply discarded. So we exec the FD to /dev/null,
31286 # effectively closing config.log, so it can be properly (re)opened and
31287 # appended to by config.status. When coming back to configure, we
31288 # need to make the FD available again.
31289 if test "$no_create" != yes; then
31290 ac_cs_success=:
31291 ac_config_status_args=
31292 test "$silent" = yes &&
31293 ac_config_status_args="$ac_config_status_args --quiet"
31294 exec 5>/dev/null
31295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31296 exec 5>>config.log
31297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31298 # would make configure fail if this is the last instruction.
31299 $ac_cs_success || as_fn_exit $?
31301 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31303 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}