PR tree-optimization/78496
[official-gcc.git] / gcc / configure
blobbde3dd8f77a3b1925d13fe1e8826597d9d3f0a87
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 BUILD_SYSTEM_HEADER_DIR
723 SYSTEM_HEADER_DIR
725 CROSS
726 CATOBJEXT
727 GENCAT
728 INSTOBJEXT
729 DATADIRNAME
730 CATALOGS
731 POSUB
732 GMSGFMT
733 XGETTEXT
734 INCINTL
735 LIBINTL_DEP
736 LIBINTL
737 USE_NLS
738 get_gcc_base_ver
739 extra_opt_files
740 extra_modes_file
741 NATIVE_SYSTEM_HEADER_DIR
742 objext
743 manext
744 LIBICONV_DEP
745 LTLIBICONV
746 LIBICONV
747 LDEXP_LIB
748 EXTRA_GCC_LIBS
749 GNAT_LIBEXC
750 COLLECT2_LIBS
751 CXXDEPMODE
752 DEPDIR
753 am__leading_dot
754 doc_build_sys
757 BISON
758 FLEX
759 GENERATED_MANPAGES
760 BUILD_INFO
761 MAKEINFO
762 have_mktemp_command
763 make_compare_target
764 INSTALL_DATA
765 INSTALL_PROGRAM
766 INSTALL
767 ranlib_flags
768 RANLIB
770 LN_S
772 SET_MAKE
773 accel_dir_suffix
774 real_target_noncanonical
775 enable_as_accelerator
776 REPORT_BUGS_TEXI
777 REPORT_BUGS_TO
778 PKGVERSION
779 CONFIGURE_SPECS
780 enable_shared
781 enable_fixed_point
782 enable_decimal_float
783 with_float
784 with_cpu
785 enable_multiarch
786 enable_multilib
787 coverage_flags
788 valgrind_command
789 valgrind_path_defines
790 valgrind_path
791 TREECHECKING
792 nocommon_flag
793 noexception_flags
794 warn_cxxflags
795 warn_cflags
796 c_strict_warn
797 strict_warn
798 c_loose_warn
799 loose_warn
800 aliasing_flags
802 EGREP
803 GREP
804 CXXCPP
805 PICFLAG_FOR_TARGET
806 GNATMAKE
807 GNATBIND
808 ac_ct_CXX
809 CXXFLAGS
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
818 GENINSRC
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
821 TARGET_SYSTEM_ROOT
822 SYSROOT_CFLAGS_FOR_TARGET
823 target_subdir
824 host_subdir
825 build_subdir
826 build_libsubdir
827 target_noncanonical
828 host_noncanonical
829 target_os
830 target_vendor
831 target_cpu
832 target
833 host_os
834 host_vendor
835 host_cpu
836 host
837 build_os
838 build_vendor
839 build_cpu
840 build
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files='option_includes
880 language_hooks'
881 ac_user_opts='
882 enable_option_checking
883 with_build_libsubdir
884 with_local_prefix
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_gxx_include_dir
889 with_cpp_install_dir
890 enable_generated_files_in_srcdir
891 with_gnu_ld
892 with_ld
893 with_demangler_in_ld
894 with_gnu_as
895 with_as
896 enable_largefile
897 enable_build_format_warnings
898 enable_werror_always
899 enable_checking
900 enable_coverage
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
903 with_stabs
904 enable_multilib
905 enable_multiarch
906 enable___cxa_atexit
907 enable_decimal_float
908 enable_fixed_point
909 enable_threads
910 enable_tls
911 enable_vtable_verify
912 enable_objc_gc
913 with_dwarf2
914 enable_shared
915 with_specs
916 with_pkgversion
917 with_bugurl
918 enable_languages
919 with_multilib_list
920 enable_rpath
921 with_libiconv_prefix
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
924 enable_secureplt
925 enable_leading_mingw64_underscores
926 enable_cld
927 enable_frame_pointer
928 enable_win32_registry
929 enable_static
930 with_pic
931 enable_fast_install
932 enable_libtool_lock
933 enable_ld
934 enable_gold
935 with_plugin_ld
936 enable_gnu_indirect_function
937 enable_initfini_array
938 enable_comdat
939 enable_fix_cortex_a53_835769
940 enable_fix_cortex_a53_843419
941 with_glibc_version
942 enable_gnu_unique_object
943 enable_linker_build_id
944 enable_default_ssp
945 with_long_double_128
946 with_gc
947 with_system_zlib
948 enable_maintainer_mode
949 enable_link_mutex
950 enable_version_specific_runtime_libs
951 enable_plugin
952 enable_host_shared
953 enable_libquadmath_support
954 with_linker_hash_style
955 with_diagnostics_color
956 enable_default_pie
958 ac_precious_vars='build_alias
959 host_alias
960 target_alias
962 CFLAGS
963 LDFLAGS
964 LIBS
965 CPPFLAGS
967 CXXFLAGS
969 CXXCPP
971 GMPLIBS
972 GMPINC
973 ISLLIBS
974 ISLINC'
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 ac_unrecognized_opts=
981 ac_unrecognized_sep=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1032 ac_prev=
1033 continue
1036 case $ac_option in
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *) ac_optarg=yes ;;
1039 esac
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1045 ac_dashdash=yes ;;
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1068 ac_prev=datadir ;;
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=no ;;
1095 -docdir | --docdir | --docdi | --doc | --do)
1096 ac_prev=docdir ;;
1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098 docdir=$ac_optarg ;;
1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101 ac_prev=dvidir ;;
1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103 dvidir=$ac_optarg ;;
1105 -enable-* | --enable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1132 with_gas=yes ;;
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147 ac_prev=htmldir ;;
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149 | --ht=*)
1150 htmldir=$ac_optarg ;;
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1160 ac_prev=infodir ;;
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1164 -libdir | --libdir | --libdi | --libd)
1165 ac_prev=libdir ;;
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189 ac_prev=mandir ;;
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1195 with_fp=no ;;
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1199 no_create=yes ;;
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203 no_recursion=yes ;;
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215 ac_prev=prefix ;;
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251 ac_prev=pdfdir ;;
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1255 -psdir | --psdir | --psdi | --psd | --ps)
1256 ac_prev=psdir ;;
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258 psdir=$ac_optarg ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1262 silent=yes ;;
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265 ac_prev=sbindir ;;
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267 | --sbi=* | --sb=*)
1268 sbindir=$ac_optarg ;;
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1273 | --sha | --sh)
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278 | --sha=* | --sh=*)
1279 sharedstatedir=$ac_optarg ;;
1281 -site | --site | --sit)
1282 ac_prev=site ;;
1283 -site=* | --site=* | --sit=*)
1284 site=$ac_optarg ;;
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287 ac_prev=srcdir ;;
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304 verbose=yes ;;
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1309 -with-* | --with-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=\$ac_optarg ;;
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=no ;;
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1359 -*) as_fn_error "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information."
1363 *=*)
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1369 esac
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 esac
1382 done
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error "missing argument to $ac_option"
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1391 no) ;;
1392 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 esac
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1405 case $ac_val in
1406 */ )
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1409 esac
1410 # Be sure to have absolute directory names.
1411 case $ac_val in
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414 esac
1415 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1416 done
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430 If a cross compiler is detected then cross compile mode will be used." >&2
1431 elif test "x$build_alias" != "x$host_alias"; then
1432 cross_compiling=yes
1436 ac_tool_prefix=
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439 test "$silent" = yes && exec 6>/dev/null
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445 as_fn_error "working directory cannot be determined"
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 as_fn_error "pwd does not report name of working directory"
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452 ac_srcdir_defaulted=yes
1453 # Try the directory containing this script, then the parent directory.
1454 ac_confdir=`$as_dirname -- "$as_myself" ||
1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456 X"$as_myself" : 'X\(//\)[^/]' \| \
1457 X"$as_myself" : 'X\(//\)$' \| \
1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459 $as_echo X"$as_myself" |
1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 s//\1/
1464 /^X\(\/\/\)[^/].*/{
1465 s//\1/
1468 /^X\(\/\/\)$/{
1469 s//\1/
1472 /^X\(\/\).*/{
1473 s//\1/
1476 s/.*/./; q'`
1477 srcdir=$ac_confdir
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 srcdir=..
1481 else
1482 ac_srcdir_defaulted=no
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1488 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1489 ac_abs_confdir=`(
1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1491 pwd)`
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 srcdir=.
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1499 case $srcdir in
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 esac
1502 for ac_var in $ac_precious_vars; do
1503 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_env_${ac_var}_value=\$${ac_var}
1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 done
1510 # Report the --help message.
1512 if test "$ac_init_help" = "long"; then
1513 # Omit some internal or obsolete options to make the list less imposing.
1514 # This message is too long to be a string in the A/UX 3.1 sh.
1515 cat <<_ACEOF
1516 \`configure' configures this package to adapt to many kinds of systems.
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE. See below for descriptions of some of the useful variables.
1523 Defaults for the options are specified in brackets.
1525 Configuration:
1526 -h, --help display this help and exit
1527 --help=short display options specific to this package
1528 --help=recursive display the short help of all the included packages
1529 -V, --version display version information and exit
1530 -q, --quiet, --silent do not print \`checking...' messages
1531 --cache-file=FILE cache test results in FILE [disabled]
1532 -C, --config-cache alias for \`--cache-file=config.cache'
1533 -n, --no-create do not create output files
1534 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1536 Installation directories:
1537 --prefix=PREFIX install architecture-independent files in PREFIX
1538 [$ac_default_prefix]
1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 [PREFIX]
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1547 For better control, use the options below.
1549 Fine tuning of the installation directories:
1550 --bindir=DIR user executables [EPREFIX/bin]
1551 --sbindir=DIR system admin executables [EPREFIX/sbin]
1552 --libexecdir=DIR program executables [EPREFIX/libexec]
1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1556 --libdir=DIR object code libraries [EPREFIX/lib]
1557 --includedir=DIR C header files [PREFIX/include]
1558 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1561 --infodir=DIR info documentation [DATAROOTDIR/info]
1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1563 --mandir=DIR man documentation [DATAROOTDIR/man]
1564 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1565 --htmldir=DIR html documentation [DOCDIR]
1566 --dvidir=DIR dvi documentation [DOCDIR]
1567 --pdfdir=DIR pdf documentation [DOCDIR]
1568 --psdir=DIR ps documentation [DOCDIR]
1569 _ACEOF
1571 cat <<\_ACEOF
1573 Program names:
1574 --program-prefix=PREFIX prepend PREFIX to installed program names
1575 --program-suffix=SUFFIX append SUFFIX to installed program names
1576 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1578 System types:
1579 --build=BUILD configure for building on BUILD [guessed]
1580 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1581 --target=TARGET configure for building compilers for TARGET [HOST]
1582 _ACEOF
1585 if test -n "$ac_init_help"; then
1587 cat <<\_ACEOF
1589 Optional Features:
1590 --disable-option-checking ignore unrecognized --enable/--with options
1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1593 --enable-generated-files-in-srcdir
1594 put copies of generated files in source dir intended
1595 for creating source tarballs for users without
1596 texinfo bison or flex
1597 --disable-largefile omit support for large files
1598 --disable-build-format-warnings
1599 don't use -Wformat while building GCC
1600 --enable-werror-always enable -Werror despite compiler version
1601 --enable-checking[=LIST]
1602 enable expensive run-time checks. With LIST, enable
1603 only specific categories of checks. Categories are:
1604 yes,no,all,none,release. Flags are:
1605 assert,df,extra,fold,gc,gcac,gimple,misc,
1606 rtlflag,rtl,runtime,tree,valgrind,types
1607 --enable-coverage[=LEVEL]
1608 enable compiler's code coverage collection. Use to
1609 measure compiler performance and locate unused parts
1610 of the compiler. With LEVEL, specify optimization.
1611 Values are opt, noopt, default is noopt
1612 --enable-gather-detailed-mem-stats
1613 enable detailed memory allocation stats gathering
1614 --enable-valgrind-annotations
1615 enable valgrind runtime interaction
1616 --enable-multilib enable library support for multiple ABIs
1617 --enable-multiarch enable support for multiarch paths
1618 --enable-__cxa_atexit enable __cxa_atexit for C++
1619 --enable-decimal-float={no,yes,bid,dpd}
1620 enable decimal float extension to C. Selecting 'bid'
1621 or 'dpd' choses which decimal floating point format
1622 to use
1623 --enable-fixed-point enable fixed-point arithmetic extension to C
1624 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1625 package
1626 --enable-tls enable or disable generation of tls code overriding
1627 the assembler check for tls support
1628 --enable-vtable-verify enable vtable verification feature
1629 --enable-objc-gc enable the use of Boehm's garbage collector with the
1630 GNU Objective-C runtime
1631 --disable-shared don't provide a shared libgcc
1632 --enable-languages=LIST specify which front-ends to build
1633 --disable-rpath do not hardcode runtime library paths
1634 --enable-sjlj-exceptions
1635 arrange to use setjmp/longjmp exception handling
1636 --enable-secureplt enable -msecure-plt by default for PowerPC
1637 --enable-leading-mingw64-underscores
1638 enable leading underscores on 64 bit mingw targets
1639 --enable-cld enable -mcld by default for 32bit x86
1640 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1642 --disable-win32-registry
1643 disable lookup of installation paths in the Registry
1644 on Windows hosts
1645 --enable-win32-registry enable registry lookup (default)
1646 --enable-win32-registry=KEY
1647 use KEY instead of GCC version as the last portion
1648 of the registry key
1649 --enable-shared[=PKGS] build shared libraries [default=yes]
1650 --enable-static[=PKGS] build static libraries [default=yes]
1651 --enable-fast-install[=PKGS]
1652 optimize for fast installation [default=yes]
1653 --disable-libtool-lock avoid locking (might break parallel builds)
1654 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1655 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1656 --enable-gnu-indirect-function
1657 enable the use of the @gnu_indirect_function to
1658 glibc systems
1659 --enable-initfini-array use .init_array/.fini_array sections
1660 --enable-comdat enable COMDAT group support
1662 --enable-fix-cortex-a53-835769
1663 enable workaround for AArch64 Cortex-A53 erratum
1664 835769 by default
1665 --disable-fix-cortex-a53-835769
1666 disable workaround for AArch64 Cortex-A53 erratum
1667 835769 by default
1670 --enable-fix-cortex-a53-843419
1671 enable workaround for AArch64 Cortex-A53 erratum
1672 843419 by default
1673 --disable-fix-cortex-a53-843419
1674 disable workaround for AArch64 Cortex-A53 erratum
1675 843419 by default
1677 --enable-gnu-unique-object
1678 enable the use of the @gnu_unique_object ELF
1679 extension on glibc systems
1680 --enable-linker-build-id
1681 compiler will always pass --build-id to linker
1682 --enable-default-ssp enable Stack Smashing Protection as default
1683 --enable-maintainer-mode
1684 enable make rules and dependencies not useful (and
1685 sometimes confusing) to the casual installer
1686 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1687 thrashing on the build machine
1688 --enable-version-specific-runtime-libs
1689 specify that runtime libraries should be installed
1690 in a compiler-specific directory
1691 --enable-plugin enable plugin support
1692 --enable-host-shared build host code as shared libraries
1693 --disable-libquadmath-support
1694 disable libquadmath support for Fortran
1695 --enable-default-pie enable Position Independent Executable as default
1697 Optional Packages:
1698 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1699 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1700 --with-build-libsubdir=DIR Directory where to find libraries for build system
1701 --with-local-prefix=DIR specifies directory to put local include
1702 --with-native-system-header-dir=dir
1703 use dir as the directory to look for standard
1704 system header files in. Defaults to /usr/include.
1705 --with-build-sysroot=sysroot
1706 use sysroot as the system root during the build
1707 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1708 --with-gxx-include-dir=DIR
1709 specifies directory to put g++ header files
1710 --with-cpp-install-dir=DIR
1711 install the user visible C preprocessor in DIR
1712 (relative to PREFIX) as well as PREFIX/bin
1713 --with-gnu-ld arrange to work with GNU ld
1714 --with-ld arrange to use the specified ld (full pathname)
1715 --with-demangler-in-ld try to use demangler in GNU ld
1716 --with-gnu-as arrange to work with GNU as
1717 --with-as arrange to use the specified as (full pathname)
1718 --with-stabs arrange to use stabs instead of host debug format
1719 --with-dwarf2 force the default debug format to be DWARF 2
1720 --with-specs=SPECS add SPECS to driver command-line processing
1721 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1722 --with-bugurl=URL Direct users to URL to report a bug
1723 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1724 --with-gnu-ld assume the C compiler uses GNU ld default=no
1725 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1726 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1727 --with-gcc-major-version-only
1728 use only GCC major number in filesystem paths
1729 --with-pic try to use only PIC/non-PIC objects [default=use
1730 both]
1731 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1732 --with-plugin-ld=[ARG] specify the plugin linker
1733 --with-glibc-version=M.N
1734 assume GCC used with glibc version M.N or later
1735 --with-long-double-128 use 128-bit long double by default
1736 --with-gc={page,zone} this option is not supported anymore. It used to
1737 choose the garbage collection mechanism to use with
1738 the compiler
1739 --with-system-zlib use installed libz
1740 --with-linker-hash-style={sysv,gnu,both}
1741 specify the linker hash style
1742 --with-diagnostics-color={never,auto,auto-if-env,always}
1743 specify the default of -fdiagnostics-color option
1744 auto-if-env stands for -fdiagnostics-color=auto if
1745 GCC_COLOR environment variable is present and
1746 -fdiagnostics-color=never otherwise
1748 Some influential environment variables:
1749 CC C compiler command
1750 CFLAGS C compiler flags
1751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1752 nonstandard directory <lib dir>
1753 LIBS libraries to pass to the linker, e.g. -l<library>
1754 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1755 you have headers in a nonstandard directory <include dir>
1756 CXX C++ compiler command
1757 CXXFLAGS C++ compiler flags
1758 CXXCPP C++ preprocessor
1759 CPP C preprocessor
1760 GMPLIBS How to link GMP
1761 GMPINC How to find GMP include files
1762 ISLLIBS How to link isl
1763 ISLINC How to find isl include files
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1768 Report bugs to the package provider.
1769 _ACEOF
1770 ac_status=$?
1773 if test "$ac_init_help" = "recursive"; then
1774 # If there are subdirs, report their specific --help.
1775 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776 test -d "$ac_dir" ||
1777 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778 continue
1779 ac_builddir=.
1781 case "$ac_dir" in
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785 # A ".." for each directory in $ac_dir_suffix.
1786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787 case $ac_top_builddir_sub in
1788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790 esac ;;
1791 esac
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1797 case $srcdir in
1798 .) # We are building in place.
1799 ac_srcdir=.
1800 ac_top_srcdir=$ac_top_builddir_sub
1801 ac_abs_top_srcdir=$ac_pwd ;;
1802 [\\/]* | ?:[\\/]* ) # Absolute name.
1803 ac_srcdir=$srcdir$ac_dir_suffix;
1804 ac_top_srcdir=$srcdir
1805 ac_abs_top_srcdir=$srcdir ;;
1806 *) # Relative name.
1807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808 ac_top_srcdir=$ac_top_build_prefix$srcdir
1809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810 esac
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1813 cd "$ac_dir" || { ac_status=$?; continue; }
1814 # Check for guested configure.
1815 if test -f "$ac_srcdir/configure.gnu"; then
1816 echo &&
1817 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818 elif test -f "$ac_srcdir/configure"; then
1819 echo &&
1820 $SHELL "$ac_srcdir/configure" --help=recursive
1821 else
1822 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823 fi || ac_status=$?
1824 cd "$ac_pwd" || { ac_status=$?; break; }
1825 done
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1830 cat <<\_ACEOF
1831 configure
1832 generated by GNU Autoconf 2.64
1834 Copyright (C) 2009 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1837 _ACEOF
1838 exit
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext
1852 if { { ac_try="$ac_compile"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_compile") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest.$ac_objext; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1876 ac_retval=1
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 return $ac_retval
1881 } # ac_fn_c_try_compile
1883 # ac_fn_cxx_try_compile LINENO
1884 # ----------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_cxx_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1919 } # ac_fn_cxx_try_compile
1921 # ac_fn_cxx_try_cpp LINENO
1922 # ------------------------
1923 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_cpp ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_cpp conftest.$ac_ext"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } >/dev/null && {
1943 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 return $ac_retval
1956 } # ac_fn_cxx_try_cpp
1958 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1959 # ---------------------------------------------------------
1960 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1961 # the include files in INCLUDES and setting the cache variable VAR
1962 # accordingly.
1963 ac_fn_cxx_check_header_mongrel ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1972 eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 else
1976 # Is the header compilable?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1978 $as_echo_n "checking $2 usability... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_cxx_try_compile "$LINENO"; then :
1985 ac_header_compiler=yes
1986 else
1987 ac_header_compiler=no
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1991 $as_echo "$ac_header_compiler" >&6; }
1993 # Is the header present?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1995 $as_echo_n "checking $2 presence... " >&6; }
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 #include <$2>
1999 _ACEOF
2000 if ac_fn_cxx_try_cpp "$LINENO"; then :
2001 ac_header_preproc=yes
2002 else
2003 ac_header_preproc=no
2005 rm -f conftest.err conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2007 $as_echo "$ac_header_preproc" >&6; }
2009 # So? What about this header?
2010 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2011 yes:no: )
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2013 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 no:yes:* )
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2019 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2021 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2023 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2025 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 esac
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2033 $as_echo_n "(cached) " >&6
2034 else
2035 eval "$3=\$ac_header_compiler"
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 } # ac_fn_cxx_check_header_mongrel
2045 # ac_fn_cxx_try_run LINENO
2046 # ------------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2048 # that executables *can* be run.
2049 ac_fn_cxx_try_run ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>&5
2060 ac_status=$?
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2063 { { case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_try") 2>&5
2070 ac_status=$?
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; }; }; then :
2073 ac_retval=0
2074 else
2075 $as_echo "$as_me: program exited with status $ac_status" >&5
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 ac_retval=$ac_status
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083 return $ac_retval
2085 } # ac_fn_cxx_try_run
2087 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists and can be compiled using the include files in
2090 # INCLUDES, setting the cache variable VAR accordingly.
2091 ac_fn_cxx_check_header_compile ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097 $as_echo_n "(cached) " >&6
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2102 #include <$2>
2103 _ACEOF
2104 if ac_fn_cxx_try_compile "$LINENO"; then :
2105 eval "$3=yes"
2106 else
2107 eval "$3=no"
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 } # ac_fn_cxx_check_header_compile
2118 # ac_fn_c_try_cpp LINENO
2119 # ----------------------
2120 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2121 ac_fn_c_try_cpp ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if { { ac_try="$ac_cpp conftest.$ac_ext"
2125 case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128 esac
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2132 ac_status=$?
2133 if test -s conftest.err; then
2134 grep -v '^ *+' conftest.err >conftest.er1
2135 cat conftest.er1 >&5
2136 mv -f conftest.er1 conftest.err
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } >/dev/null && {
2140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2141 test ! -s conftest.err
2142 }; then :
2143 ac_retval=0
2144 else
2145 $as_echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2148 ac_retval=1
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151 return $ac_retval
2153 } # ac_fn_c_try_cpp
2155 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2156 # ----------------------------------------------
2157 # Tries to find the compile-time value of EXPR in a program that includes
2158 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2159 # computed
2160 ac_fn_cxx_compute_int ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 if test "$cross_compiling" = yes; then
2164 # Depending upon the size, compute the lo and hi bounds.
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 static int test_array [1 - 2 * !(($2) >= 0)];
2172 test_array [0] = 0
2175 return 0;
2177 _ACEOF
2178 if ac_fn_cxx_try_compile "$LINENO"; then :
2179 ac_lo=0 ac_mid=0
2180 while :; do
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2185 main ()
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 test_array [0] = 0
2191 return 0;
2193 _ACEOF
2194 if ac_fn_cxx_try_compile "$LINENO"; then :
2195 ac_hi=$ac_mid; break
2196 else
2197 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2198 if test $ac_lo -le $ac_mid; then
2199 ac_lo= ac_hi=
2200 break
2202 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 static int test_array [1 - 2 * !(($2) < 0)];
2214 test_array [0] = 0
2217 return 0;
2219 _ACEOF
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221 ac_hi=-1 ac_mid=-1
2222 while :; do
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2227 main ()
2229 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230 test_array [0] = 0
2233 return 0;
2235 _ACEOF
2236 if ac_fn_cxx_try_compile "$LINENO"; then :
2237 ac_lo=$ac_mid; break
2238 else
2239 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2240 if test $ac_mid -le $ac_hi; then
2241 ac_lo= ac_hi=
2242 break
2244 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 done
2248 else
2249 ac_lo= ac_hi=
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 # Binary search between lo and hi bounds.
2255 while test "x$ac_lo" != "x$ac_hi"; do
2256 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2261 main ()
2263 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 test_array [0] = 0
2267 return 0;
2269 _ACEOF
2270 if ac_fn_cxx_try_compile "$LINENO"; then :
2271 ac_hi=$ac_mid
2272 else
2273 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 done
2277 case $ac_lo in #((
2278 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2279 '') ac_retval=1 ;;
2280 esac
2281 else
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2285 static long int longval () { return $2; }
2286 static unsigned long int ulongval () { return $2; }
2287 #include <stdio.h>
2288 #include <stdlib.h>
2290 main ()
2293 FILE *f = fopen ("conftest.val", "w");
2294 if (! f)
2295 return 1;
2296 if (($2) < 0)
2298 long int i = longval ();
2299 if (i != ($2))
2300 return 1;
2301 fprintf (f, "%ld", i);
2303 else
2305 unsigned long int i = ulongval ();
2306 if (i != ($2))
2307 return 1;
2308 fprintf (f, "%lu", i);
2310 /* Do not output a trailing newline, as this causes \r\n confusion
2311 on some platforms. */
2312 return ferror (f) || fclose (f) != 0;
2315 return 0;
2317 _ACEOF
2318 if ac_fn_cxx_try_run "$LINENO"; then :
2319 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2320 else
2321 ac_retval=1
2323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2324 conftest.$ac_objext conftest.beam conftest.$ac_ext
2325 rm -f conftest.val
2328 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329 return $ac_retval
2331 } # ac_fn_cxx_compute_int
2333 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2334 # ---------------------------------------------
2335 # Tests whether TYPE exists after having included INCLUDES, setting cache
2336 # variable VAR accordingly.
2337 ac_fn_cxx_check_type ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341 $as_echo_n "checking for $2... " >&6; }
2342 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 eval "$3=no"
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2350 main ()
2352 if (sizeof ($2))
2353 return 0;
2355 return 0;
2357 _ACEOF
2358 if ac_fn_cxx_try_compile "$LINENO"; then :
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2365 if (sizeof (($2)))
2366 return 0;
2368 return 0;
2370 _ACEOF
2371 if ac_fn_cxx_try_compile "$LINENO"; then :
2373 else
2374 eval "$3=yes"
2376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 eval ac_res=\$$3
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385 } # ac_fn_cxx_check_type
2387 # ac_fn_c_find_intX_t LINENO BITS VAR
2388 # -----------------------------------
2389 # Finds a signed integer type with width BITS, setting cache variable VAR
2390 # accordingly.
2391 ac_fn_c_find_intX_t ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2395 $as_echo_n "checking for int$2_t... " >&6; }
2396 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 eval "$3=no"
2400 for ac_type in int$2_t 'int' 'long int' \
2401 'long long int' 'short int' 'signed char'; do
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2404 $ac_includes_default
2406 main ()
2408 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2409 test_array [0] = 0
2412 return 0;
2414 _ACEOF
2415 if ac_fn_cxx_try_compile "$LINENO"; then :
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $ac_includes_default
2420 main ()
2422 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2423 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2424 test_array [0] = 0
2427 return 0;
2429 _ACEOF
2430 if ac_fn_cxx_try_compile "$LINENO"; then :
2432 else
2433 case $ac_type in #(
2434 int$2_t) :
2435 eval "$3=yes" ;; #(
2436 *) :
2437 eval "$3=\$ac_type" ;;
2438 esac
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 eval as_val=\$$3
2444 if test "x$as_val" = x""no; then :
2446 else
2447 break
2449 done
2451 eval ac_res=\$$3
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456 } # ac_fn_c_find_intX_t
2458 # ac_fn_cxx_try_link LINENO
2459 # -------------------------
2460 # Try to link conftest.$ac_ext, and return whether this succeeded.
2461 ac_fn_cxx_try_link ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 rm -f conftest.$ac_objext conftest$ac_exeext
2465 if { { ac_try="$ac_link"
2466 case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471 $as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_link") 2>conftest.err
2473 ac_status=$?
2474 if test -s conftest.err; then
2475 grep -v '^ *+' conftest.err >conftest.er1
2476 cat conftest.er1 >&5
2477 mv -f conftest.er1 conftest.err
2479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480 test $ac_status = 0; } && {
2481 test -z "$ac_cxx_werror_flag" ||
2482 test ! -s conftest.err
2483 } && test -s conftest$ac_exeext && {
2484 test "$cross_compiling" = yes ||
2485 $as_test_x conftest$ac_exeext
2486 }; then :
2487 ac_retval=0
2488 else
2489 $as_echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 ac_retval=1
2494 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2495 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2496 # interfere with the next link command; also delete a directory that is
2497 # left behind by Apple's compiler. We do this before executing the actions.
2498 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 return $ac_retval
2502 } # ac_fn_cxx_try_link
2504 # ac_fn_c_find_uintX_t LINENO BITS VAR
2505 # ------------------------------------
2506 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2507 # accordingly.
2508 ac_fn_c_find_uintX_t ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2512 $as_echo_n "checking for uint$2_t... " >&6; }
2513 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 eval "$3=no"
2517 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2518 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2521 $ac_includes_default
2523 main ()
2525 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2526 test_array [0] = 0
2529 return 0;
2531 _ACEOF
2532 if ac_fn_cxx_try_compile "$LINENO"; then :
2533 case $ac_type in #(
2534 uint$2_t) :
2535 eval "$3=yes" ;; #(
2536 *) :
2537 eval "$3=\$ac_type" ;;
2538 esac
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 eval as_val=\$$3
2542 if test "x$as_val" = x""no; then :
2544 else
2545 break
2547 done
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554 } # ac_fn_c_find_uintX_t
2556 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2557 # ------------------------------------------------
2558 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2559 ac_fn_cxx_check_header_preproc ()
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 #include <$2>
2570 _ACEOF
2571 if ac_fn_cxx_try_cpp "$LINENO"; then :
2572 eval "$3=yes"
2573 else
2574 eval "$3=no"
2576 rm -f conftest.err conftest.$ac_ext
2578 eval ac_res=\$$3
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2580 $as_echo "$ac_res" >&6; }
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2583 } # ac_fn_cxx_check_header_preproc
2585 # ac_fn_cxx_check_func LINENO FUNC VAR
2586 # ------------------------------------
2587 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2588 ac_fn_cxx_check_func ()
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2592 $as_echo_n "checking for $2... " >&6; }
2593 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2598 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2600 #define $2 innocuous_$2
2602 /* System header to define __stub macros and hopefully few prototypes,
2603 which can conflict with char $2 (); below.
2604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2605 <limits.h> exists even on freestanding compilers. */
2607 #ifdef __STDC__
2608 # include <limits.h>
2609 #else
2610 # include <assert.h>
2611 #endif
2613 #undef $2
2615 /* Override any GCC internal prototype to avoid an error.
2616 Use char because int might match the return type of a GCC
2617 builtin and then its argument prototype would still apply. */
2618 #ifdef __cplusplus
2619 extern "C"
2620 #endif
2621 char $2 ();
2622 /* The GNU C library defines this for functions which it implements
2623 to always fail with ENOSYS. Some functions are actually named
2624 something starting with __ and the normal name is an alias. */
2625 #if defined __stub_$2 || defined __stub___$2
2626 choke me
2627 #endif
2630 main ()
2632 return $2 ();
2634 return 0;
2636 _ACEOF
2637 if ac_fn_cxx_try_link "$LINENO"; then :
2638 eval "$3=yes"
2639 else
2640 eval "$3=no"
2642 rm -f core conftest.err conftest.$ac_objext \
2643 conftest$ac_exeext conftest.$ac_ext
2645 eval ac_res=\$$3
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650 } # ac_fn_cxx_check_func
2652 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2653 # --------------------------------------
2654 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2655 ac_fn_cxx_check_decl ()
2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658 as_decl_name=`echo $2|sed 's/ *(.*//'`
2659 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2661 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2669 main ()
2671 #ifndef $as_decl_name
2672 #ifdef __cplusplus
2673 (void) $as_decl_use;
2674 #else
2675 (void) $as_decl_name;
2676 #endif
2677 #endif
2680 return 0;
2682 _ACEOF
2683 if ac_fn_cxx_try_compile "$LINENO"; then :
2684 eval "$3=yes"
2685 else
2686 eval "$3=no"
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690 eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2695 } # ac_fn_cxx_check_decl
2697 # ac_fn_c_try_link LINENO
2698 # -----------------------
2699 # Try to link conftest.$ac_ext, and return whether this succeeded.
2700 ac_fn_c_try_link ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 rm -f conftest.$ac_objext conftest$ac_exeext
2704 if { { ac_try="$ac_link"
2705 case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708 esac
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_link") 2>conftest.err
2712 ac_status=$?
2713 if test -s conftest.err; then
2714 grep -v '^ *+' conftest.err >conftest.er1
2715 cat conftest.er1 >&5
2716 mv -f conftest.er1 conftest.err
2718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2719 test $ac_status = 0; } && {
2720 test -z "$ac_c_werror_flag" ||
2721 test ! -s conftest.err
2722 } && test -s conftest$ac_exeext && {
2723 test "$cross_compiling" = yes ||
2724 $as_test_x conftest$ac_exeext
2725 }; then :
2726 ac_retval=0
2727 else
2728 $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2731 ac_retval=1
2733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2735 # interfere with the next link command; also delete a directory that is
2736 # left behind by Apple's compiler. We do this before executing the actions.
2737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2739 return $ac_retval
2741 } # ac_fn_c_try_link
2743 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2744 # ----------------------------------------------
2745 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2746 ac_fn_c_check_header_preproc ()
2748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2750 $as_echo_n "checking for $2... " >&6; }
2751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2756 #include <$2>
2757 _ACEOF
2758 if ac_fn_c_try_cpp "$LINENO"; then :
2759 eval "$3=yes"
2760 else
2761 eval "$3=no"
2763 rm -f conftest.err conftest.$ac_ext
2765 eval ac_res=\$$3
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2767 $as_echo "$ac_res" >&6; }
2768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2770 } # ac_fn_c_check_header_preproc
2772 # ac_fn_c_check_func LINENO FUNC VAR
2773 # ----------------------------------
2774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2775 ac_fn_c_check_func ()
2777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2779 $as_echo_n "checking for $2... " >&6; }
2780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2785 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2787 #define $2 innocuous_$2
2789 /* System header to define __stub macros and hopefully few prototypes,
2790 which can conflict with char $2 (); below.
2791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2792 <limits.h> exists even on freestanding compilers. */
2794 #ifdef __STDC__
2795 # include <limits.h>
2796 #else
2797 # include <assert.h>
2798 #endif
2800 #undef $2
2802 /* Override any GCC internal prototype to avoid an error.
2803 Use char because int might match the return type of a GCC
2804 builtin and then its argument prototype would still apply. */
2805 #ifdef __cplusplus
2806 extern "C"
2807 #endif
2808 char $2 ();
2809 /* The GNU C library defines this for functions which it implements
2810 to always fail with ENOSYS. Some functions are actually named
2811 something starting with __ and the normal name is an alias. */
2812 #if defined __stub_$2 || defined __stub___$2
2813 choke me
2814 #endif
2817 main ()
2819 return $2 ();
2821 return 0;
2823 _ACEOF
2824 if ac_fn_c_try_link "$LINENO"; then :
2825 eval "$3=yes"
2826 else
2827 eval "$3=no"
2829 rm -f core conftest.err conftest.$ac_objext \
2830 conftest$ac_exeext conftest.$ac_ext
2832 eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2837 } # ac_fn_c_check_func
2838 cat >config.log <<_ACEOF
2839 This file contains any messages produced by compilers while
2840 running configure, to aid debugging if configure makes a mistake.
2842 It was created by $as_me, which was
2843 generated by GNU Autoconf 2.64. Invocation command line was
2845 $ $0 $@
2847 _ACEOF
2848 exec 5>>config.log
2850 cat <<_ASUNAME
2851 ## --------- ##
2852 ## Platform. ##
2853 ## --------- ##
2855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2862 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2864 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2865 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2867 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2868 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2869 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2870 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2872 _ASUNAME
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 $as_echo "PATH: $as_dir"
2880 done
2881 IFS=$as_save_IFS
2883 } >&5
2885 cat >&5 <<_ACEOF
2888 ## ----------- ##
2889 ## Core tests. ##
2890 ## ----------- ##
2892 _ACEOF
2895 # Keep a trace of the command line.
2896 # Strip out --no-create and --no-recursion so they do not pile up.
2897 # Strip out --silent because we don't want to record it for future runs.
2898 # Also quote any args containing shell meta-characters.
2899 # Make two passes to allow for proper duplicate-argument suppression.
2900 ac_configure_args=
2901 ac_configure_args0=
2902 ac_configure_args1=
2903 ac_must_keep_next=false
2904 for ac_pass in 1 2
2906 for ac_arg
2908 case $ac_arg in
2909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2911 | -silent | --silent | --silen | --sile | --sil)
2912 continue ;;
2913 *\'*)
2914 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2915 esac
2916 case $ac_pass in
2917 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2919 as_fn_append ac_configure_args1 " '$ac_arg'"
2920 if test $ac_must_keep_next = true; then
2921 ac_must_keep_next=false # Got value, back to normal.
2922 else
2923 case $ac_arg in
2924 *=* | --config-cache | -C | -disable-* | --disable-* \
2925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2927 | -with-* | --with-* | -without-* | --without-* | --x)
2928 case "$ac_configure_args0 " in
2929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2930 esac
2932 -* ) ac_must_keep_next=true ;;
2933 esac
2935 as_fn_append ac_configure_args " '$ac_arg'"
2937 esac
2938 done
2939 done
2940 { ac_configure_args0=; unset ac_configure_args0;}
2941 { ac_configure_args1=; unset ac_configure_args1;}
2943 # When interrupted or exit'd, cleanup temporary files, and complete
2944 # config.log. We remove comments because anyway the quotes in there
2945 # would cause problems or look ugly.
2946 # WARNING: Use '\'' to represent an apostrophe within the trap.
2947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2948 trap 'exit_status=$?
2949 # Save into config.log some information that might help in debugging.
2951 echo
2953 cat <<\_ASBOX
2954 ## ---------------- ##
2955 ## Cache variables. ##
2956 ## ---------------- ##
2957 _ASBOX
2958 echo
2959 # The following way of writing the cache mishandles newlines in values,
2961 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2962 eval ac_val=\$$ac_var
2963 case $ac_val in #(
2964 *${as_nl}*)
2965 case $ac_var in #(
2966 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2967 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2968 esac
2969 case $ac_var in #(
2970 _ | IFS | as_nl) ;; #(
2971 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2972 *) { eval $ac_var=; unset $ac_var;} ;;
2973 esac ;;
2974 esac
2975 done
2976 (set) 2>&1 |
2977 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2978 *${as_nl}ac_space=\ *)
2979 sed -n \
2980 "s/'\''/'\''\\\\'\'''\''/g;
2981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2982 ;; #(
2984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2986 esac |
2987 sort
2989 echo
2991 cat <<\_ASBOX
2992 ## ----------------- ##
2993 ## Output variables. ##
2994 ## ----------------- ##
2995 _ASBOX
2996 echo
2997 for ac_var in $ac_subst_vars
2999 eval ac_val=\$$ac_var
3000 case $ac_val in
3001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3002 esac
3003 $as_echo "$ac_var='\''$ac_val'\''"
3004 done | sort
3005 echo
3007 if test -n "$ac_subst_files"; then
3008 cat <<\_ASBOX
3009 ## ------------------- ##
3010 ## File substitutions. ##
3011 ## ------------------- ##
3012 _ASBOX
3013 echo
3014 for ac_var in $ac_subst_files
3016 eval ac_val=\$$ac_var
3017 case $ac_val in
3018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3019 esac
3020 $as_echo "$ac_var='\''$ac_val'\''"
3021 done | sort
3022 echo
3025 if test -s confdefs.h; then
3026 cat <<\_ASBOX
3027 ## ----------- ##
3028 ## confdefs.h. ##
3029 ## ----------- ##
3030 _ASBOX
3031 echo
3032 cat confdefs.h
3033 echo
3035 test "$ac_signal" != 0 &&
3036 $as_echo "$as_me: caught signal $ac_signal"
3037 $as_echo "$as_me: exit $exit_status"
3038 } >&5
3039 rm -f core *.core core.conftest.* &&
3040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3041 exit $exit_status
3043 for ac_signal in 1 2 13 15; do
3044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3045 done
3046 ac_signal=0
3048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3049 rm -f -r conftest* confdefs.h
3051 $as_echo "/* confdefs.h */" > confdefs.h
3053 # Predefined preprocessor variables.
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_NAME "$PACKAGE_NAME"
3057 _ACEOF
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3061 _ACEOF
3063 cat >>confdefs.h <<_ACEOF
3064 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3065 _ACEOF
3067 cat >>confdefs.h <<_ACEOF
3068 #define PACKAGE_STRING "$PACKAGE_STRING"
3069 _ACEOF
3071 cat >>confdefs.h <<_ACEOF
3072 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3073 _ACEOF
3075 cat >>confdefs.h <<_ACEOF
3076 #define PACKAGE_URL "$PACKAGE_URL"
3077 _ACEOF
3080 # Let the site file select an alternate cache file if it wants to.
3081 # Prefer an explicitly selected file to automatically selected ones.
3082 ac_site_file1=NONE
3083 ac_site_file2=NONE
3084 if test -n "$CONFIG_SITE"; then
3085 ac_site_file1=$CONFIG_SITE
3086 elif test "x$prefix" != xNONE; then
3087 ac_site_file1=$prefix/share/config.site
3088 ac_site_file2=$prefix/etc/config.site
3089 else
3090 ac_site_file1=$ac_default_prefix/share/config.site
3091 ac_site_file2=$ac_default_prefix/etc/config.site
3093 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3095 test "x$ac_site_file" = xNONE && continue
3096 if test -r "$ac_site_file"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3098 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3099 sed 's/^/| /' "$ac_site_file" >&5
3100 . "$ac_site_file"
3102 done
3104 if test -r "$cache_file"; then
3105 # Some versions of bash will fail to source /dev/null (special
3106 # files actually), so we avoid doing that.
3107 if test -f "$cache_file"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3109 $as_echo "$as_me: loading cache $cache_file" >&6;}
3110 case $cache_file in
3111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3112 *) . "./$cache_file";;
3113 esac
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3117 $as_echo "$as_me: creating cache $cache_file" >&6;}
3118 >$cache_file
3121 # Check that the precious variables saved in the cache have kept the same
3122 # value.
3123 ac_cache_corrupted=false
3124 for ac_var in $ac_precious_vars; do
3125 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3126 eval ac_new_set=\$ac_env_${ac_var}_set
3127 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3128 eval ac_new_val=\$ac_env_${ac_var}_value
3129 case $ac_old_set,$ac_new_set in
3130 set,)
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3132 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3133 ac_cache_corrupted=: ;;
3134 ,set)
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3136 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3137 ac_cache_corrupted=: ;;
3138 ,);;
3140 if test "x$ac_old_val" != "x$ac_new_val"; then
3141 # differences in whitespace do not lead to failure.
3142 ac_old_val_w=`echo x $ac_old_val`
3143 ac_new_val_w=`echo x $ac_new_val`
3144 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3146 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3147 ac_cache_corrupted=:
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3150 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3151 eval $ac_var=\$ac_old_val
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3154 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3156 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3157 fi;;
3158 esac
3159 # Pass precious variables to config.status.
3160 if test "$ac_new_set" = set; then
3161 case $ac_new_val in
3162 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3163 *) ac_arg=$ac_var=$ac_new_val ;;
3164 esac
3165 case " $ac_configure_args " in
3166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3167 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3168 esac
3170 done
3171 if $ac_cache_corrupted; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3175 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3176 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3178 ## -------------------- ##
3179 ## Main body of script. ##
3180 ## -------------------- ##
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3196 gcc_version=`cat $srcdir/BASE-VER`
3198 # Determine the host, build, and target systems
3199 ac_aux_dir=
3200 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3201 for ac_t in install-sh install.sh shtool; do
3202 if test -f "$ac_dir/$ac_t"; then
3203 ac_aux_dir=$ac_dir
3204 ac_install_sh="$ac_aux_dir/$ac_t -c"
3205 break 2
3207 done
3208 done
3209 if test -z "$ac_aux_dir"; then
3210 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3213 # These three variables are undocumented and unsupported,
3214 # and are intended to be withdrawn in a future Autoconf release.
3215 # They can cause serious problems if a builder's source tree is in a directory
3216 # whose full name contains unusual characters.
3217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3219 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3222 # Make sure we can run config.sub.
3223 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3224 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3227 $as_echo_n "checking build system type... " >&6; }
3228 if test "${ac_cv_build+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 ac_build_alias=$build_alias
3232 test "x$ac_build_alias" = x &&
3233 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3234 test "x$ac_build_alias" = x &&
3235 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3236 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3237 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3241 $as_echo "$ac_cv_build" >&6; }
3242 case $ac_cv_build in
3243 *-*-*) ;;
3244 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3245 esac
3246 build=$ac_cv_build
3247 ac_save_IFS=$IFS; IFS='-'
3248 set x $ac_cv_build
3249 shift
3250 build_cpu=$1
3251 build_vendor=$2
3252 shift; shift
3253 # Remember, the first character of IFS is used to create $*,
3254 # except with old shells:
3255 build_os=$*
3256 IFS=$ac_save_IFS
3257 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3261 $as_echo_n "checking host system type... " >&6; }
3262 if test "${ac_cv_host+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test "x$host_alias" = x; then
3266 ac_cv_host=$ac_cv_build
3267 else
3268 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3269 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3274 $as_echo "$ac_cv_host" >&6; }
3275 case $ac_cv_host in
3276 *-*-*) ;;
3277 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3278 esac
3279 host=$ac_cv_host
3280 ac_save_IFS=$IFS; IFS='-'
3281 set x $ac_cv_host
3282 shift
3283 host_cpu=$1
3284 host_vendor=$2
3285 shift; shift
3286 # Remember, the first character of IFS is used to create $*,
3287 # except with old shells:
3288 host_os=$*
3289 IFS=$ac_save_IFS
3290 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3294 $as_echo_n "checking target system type... " >&6; }
3295 if test "${ac_cv_target+set}" = set; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test "x$target_alias" = x; then
3299 ac_cv_target=$ac_cv_host
3300 else
3301 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3302 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3307 $as_echo "$ac_cv_target" >&6; }
3308 case $ac_cv_target in
3309 *-*-*) ;;
3310 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3311 esac
3312 target=$ac_cv_target
3313 ac_save_IFS=$IFS; IFS='-'
3314 set x $ac_cv_target
3315 shift
3316 target_cpu=$1
3317 target_vendor=$2
3318 shift; shift
3319 # Remember, the first character of IFS is used to create $*,
3320 # except with old shells:
3321 target_os=$*
3322 IFS=$ac_save_IFS
3323 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3326 # The aliases save the names the user supplied, while $host etc.
3327 # will get canonicalized.
3328 test -n "$target_alias" &&
3329 test "$program_prefix$program_suffix$program_transform_name" = \
3330 NONENONEs,x,x, &&
3331 program_prefix=${target_alias}-
3333 # Determine the noncanonical host name, for Ada.
3334 case ${build_alias} in
3335 "") build_noncanonical=${build} ;;
3336 *) build_noncanonical=${build_alias} ;;
3337 esac
3339 case ${host_alias} in
3340 "") host_noncanonical=${build_noncanonical} ;;
3341 *) host_noncanonical=${host_alias} ;;
3342 esac
3347 # Determine the noncanonical target name, for directory use.
3348 case ${target_alias} in
3349 "") target_noncanonical=${host_noncanonical} ;;
3350 *) target_noncanonical=${target_alias} ;;
3351 esac
3356 # Used for constructing correct paths for offload compilers.
3357 real_target_noncanonical=${target_noncanonical}
3358 accel_dir_suffix=
3360 # Determine the target- and build-specific subdirectories
3362 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3363 # have matching libraries, they should use host libraries: Makefile.tpl
3364 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3365 # However, they still use the build modules, because the corresponding
3366 # host modules (e.g. bison) are only built for the host when bootstrap
3367 # finishes. So:
3368 # - build_subdir is where we find build modules, and never changes.
3369 # - build_libsubdir is where we find build libraries, and can be overridden.
3371 # Prefix 'build-' so this never conflicts with target_subdir.
3372 build_subdir="build-${build_noncanonical}"
3374 # Check whether --with-build-libsubdir was given.
3375 if test "${with_build_libsubdir+set}" = set; then :
3376 withval=$with_build_libsubdir; build_libsubdir="$withval"
3377 else
3378 build_libsubdir="$build_subdir"
3381 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3382 if ( test $srcdir = . && test -d gcc ) \
3383 || test -d $srcdir/../host-${host_noncanonical}; then
3384 host_subdir="host-${host_noncanonical}"
3385 else
3386 host_subdir=.
3388 # No prefix.
3389 target_subdir=${target_noncanonical}
3392 # Set program_transform_name
3393 test "$program_prefix" != NONE &&
3394 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3395 # Use a double $ so make ignores it.
3396 test "$program_suffix" != NONE &&
3397 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3398 # Double any \ or $.
3399 # By default was `s,x,x', remove it if useless.
3400 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3401 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3404 # Check for bogus environment variables.
3405 # Test if LIBRARY_PATH contains the notation for the current directory
3406 # since this would lead to problems installing/building glibc.
3407 # LIBRARY_PATH contains the current directory if one of the following
3408 # is true:
3409 # - one of the terminals (":" and ";") is the first or last sign
3410 # - two terminals occur directly after each other
3411 # - the path contains an element with a dot in it
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3413 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3414 case ${LIBRARY_PATH} in
3415 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3416 library_path_setting="contains current directory"
3419 library_path_setting="ok"
3421 esac
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3423 $as_echo "$library_path_setting" >&6; }
3424 if test "$library_path_setting" != "ok"; then
3425 as_fn_error "
3426 *** LIBRARY_PATH shouldn't contain the current directory when
3427 *** building gcc. Please change the environment variable
3428 *** and run configure again." "$LINENO" 5
3431 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3432 # since this would lead to problems installing/building glibc.
3433 # GCC_EXEC_PREFIX contains the current directory if one of the following
3434 # is true:
3435 # - one of the terminals (":" and ";") is the first or last sign
3436 # - two terminals occur directly after each other
3437 # - the path contains an element with a dot in it
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3439 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3440 case ${GCC_EXEC_PREFIX} in
3441 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3442 gcc_exec_prefix_setting="contains current directory"
3445 gcc_exec_prefix_setting="ok"
3447 esac
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3449 $as_echo "$gcc_exec_prefix_setting" >&6; }
3450 if test "$gcc_exec_prefix_setting" != "ok"; then
3451 as_fn_error "
3452 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3453 *** building gcc. Please change the environment variable
3454 *** and run configure again." "$LINENO" 5
3457 # -----------
3458 # Directories
3459 # -----------
3461 # Specify the local prefix
3462 local_prefix=
3464 # Check whether --with-local-prefix was given.
3465 if test "${with_local_prefix+set}" = set; then :
3466 withval=$with_local_prefix; case "${withval}" in
3467 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3468 no) ;;
3469 *) local_prefix=$with_local_prefix ;;
3470 esac
3474 # Default local prefix if it is empty
3475 if test x$local_prefix = x; then
3476 local_prefix=/usr/local
3480 # Check whether --with-native-system-header-dir was given.
3481 if test "${with_native_system_header_dir+set}" = set; then :
3482 withval=$with_native_system_header_dir;
3483 case ${with_native_system_header_dir} in
3484 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3485 /* | [A-Za-z]:[\\/]*) ;;
3486 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3487 esac
3488 configured_native_system_header_dir="${withval}"
3490 else
3491 configured_native_system_header_dir=
3496 # Check whether --with-build-sysroot was given.
3497 if test "${with_build_sysroot+set}" = set; then :
3498 withval=$with_build_sysroot; if test x"$withval" != x ; then
3499 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3501 else
3502 SYSROOT_CFLAGS_FOR_TARGET=
3507 if test "x$prefix" = xNONE; then
3508 test_prefix=/usr/local
3509 else
3510 test_prefix=$prefix
3512 if test "x$exec_prefix" = xNONE; then
3513 test_exec_prefix=$test_prefix
3514 else
3515 test_exec_prefix=$exec_prefix
3519 # Check whether --with-sysroot was given.
3520 if test "${with_sysroot+set}" = set; then :
3521 withval=$with_sysroot;
3522 case ${with_sysroot} in
3523 /) ;;
3524 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3525 esac
3526 case ${with_sysroot} in
3527 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3528 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3529 esac
3531 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3532 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3534 case ${TARGET_SYSTEM_ROOT} in
3535 "${test_prefix}"|"${test_prefix}/"*|\
3536 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3537 '${prefix}'|'${prefix}/'*|\
3538 '${exec_prefix}'|'${exec_prefix}/'*)
3539 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3540 TARGET_SYSTEM_ROOT_DEFINE="$t"
3542 esac
3544 else
3546 TARGET_SYSTEM_ROOT=
3547 TARGET_SYSTEM_ROOT_DEFINE=
3548 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3556 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3557 # passed in by the toplevel make and thus we'd get different behavior
3558 # depending on where we built the sources.
3559 gcc_gxx_include_dir=
3560 # Specify the g++ header file directory
3562 # Check whether --with-gxx-include-dir was given.
3563 if test "${with_gxx_include_dir+set}" = set; then :
3564 withval=$with_gxx_include_dir; case "${withval}" in
3565 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3566 no) ;;
3567 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3568 esac
3572 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3573 if test x${gcc_gxx_include_dir} = x; then
3574 if test x${enable_version_specific_runtime_libs} = xyes; then
3575 gcc_gxx_include_dir='${libsubdir}/include/c++'
3576 else
3577 libstdcxx_incdir='include/c++/$(version)'
3578 if test x$host != x$target; then
3579 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3581 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3585 gcc_gxx_include_dir_add_sysroot=0
3586 if test "${with_sysroot+set}" = set; then
3587 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3588 if test "${gcc_gxx_without_sysroot}"; then
3589 if test x${with_sysroot} != x/; then
3590 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3592 gcc_gxx_include_dir_add_sysroot=1
3597 # Check whether --with-cpp_install_dir was given.
3598 if test "${with_cpp_install_dir+set}" = set; then :
3599 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3600 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3601 elif test x$withval != xno; then
3602 cpp_install_dir=$withval
3607 # We would like to our source tree to be readonly. However when releases or
3608 # pre-releases are generated, the flex/bison generated files as well as the
3609 # various formats of manuals need to be included along with the rest of the
3610 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3611 # just that.
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3614 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3615 # Check whether --enable-generated-files-in-srcdir was given.
3616 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3617 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3618 else
3619 generated_files_in_srcdir=no
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3624 $as_echo "$generated_files_in_srcdir" >&6; }
3626 if test "$generated_files_in_srcdir" = "yes"; then
3627 GENINSRC=''
3628 else
3629 GENINSRC='#'
3633 # -------------------
3634 # Find default linker
3635 # -------------------
3637 # With GNU ld
3639 # Check whether --with-gnu-ld was given.
3640 if test "${with_gnu_ld+set}" = set; then :
3641 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3642 else
3643 gnu_ld_flag=no
3647 case $target in
3648 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3649 *) ld64_flag=no;;
3650 esac
3652 # With pre-defined ld
3654 # Check whether --with-ld was given.
3655 if test "${with_ld+set}" = set; then :
3656 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3659 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3660 if test ! -x "$DEFAULT_LINKER"; then
3661 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3662 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3663 gnu_ld_flag=yes
3664 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3665 ld64_flag=yes
3668 cat >>confdefs.h <<_ACEOF
3669 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3670 _ACEOF
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3675 $as_echo_n "checking whether a default linker was specified... " >&6; }
3676 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3677 if test x"$gnu_ld_flag" = x"no"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3679 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3682 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3689 # With demangler in GNU ld
3691 # Check whether --with-demangler-in-ld was given.
3692 if test "${with_demangler_in_ld+set}" = set; then :
3693 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3694 else
3695 demangler_in_ld=yes
3699 # ----------------------
3700 # Find default assembler
3701 # ----------------------
3703 # With GNU as
3705 # Check whether --with-gnu-as was given.
3706 if test "${with_gnu_as+set}" = set; then :
3707 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3708 else
3709 gas_flag=no
3714 # Check whether --with-as was given.
3715 if test "${with_as+set}" = set; then :
3716 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3719 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3720 if test ! -x "$DEFAULT_ASSEMBLER"; then
3721 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3722 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3723 gas_flag=yes
3726 cat >>confdefs.h <<_ACEOF
3727 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3728 _ACEOF
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3733 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3734 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3735 if test x"$gas_flag" = x"no"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3737 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3740 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3742 else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3747 # ---------------
3748 # Find C compiler
3749 # ---------------
3751 # If a non-executable a.out is present (e.g. created by GNU as above even if
3752 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3753 # file, even when creating an executable, so an execution test fails.
3754 # Remove possible default executable files to avoid this.
3756 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3757 # Autoconf includes it.
3758 rm -f a.out a.exe b.out
3760 # Find the native compiler
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 if test -n "$ac_tool_prefix"; then
3767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3768 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if test "${ac_cv_prog_CC+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3788 done
3789 done
3790 IFS=$as_save_IFS
3794 CC=$ac_cv_prog_CC
3795 if test -n "$CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3798 else
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3805 if test -z "$ac_cv_prog_CC"; then
3806 ac_ct_CC=$CC
3807 # Extract the first word of "gcc", so it can be a program name with args.
3808 set dummy gcc; ac_word=$2
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 $as_echo_n "checking for $ac_word... " >&6; }
3811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 if test -n "$ac_ct_CC"; then
3815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3824 ac_cv_prog_ac_ct_CC="gcc"
3825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3830 IFS=$as_save_IFS
3834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3835 if test -n "$ac_ct_CC"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3837 $as_echo "$ac_ct_CC" >&6; }
3838 else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3843 if test "x$ac_ct_CC" = x; then
3844 CC=""
3845 else
3846 case $cross_compiling:$ac_tool_warned in
3847 yes:)
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3850 ac_tool_warned=yes ;;
3851 esac
3852 CC=$ac_ct_CC
3854 else
3855 CC="$ac_cv_prog_CC"
3858 if test -z "$CC"; then
3859 if test -n "$ac_tool_prefix"; then
3860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3861 set dummy ${ac_tool_prefix}cc; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if test "${ac_cv_prog_CC+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 if test -n "$CC"; then
3868 ac_cv_prog_CC="$CC" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_CC="${ac_tool_prefix}cc"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3881 done
3882 done
3883 IFS=$as_save_IFS
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890 $as_echo "$CC" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3899 if test -z "$CC"; then
3900 # Extract the first word of "cc", so it can be a program name with args.
3901 set dummy cc; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if test "${ac_cv_prog_CC+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3909 else
3910 ac_prog_rejected=no
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3919 ac_prog_rejected=yes
3920 continue
3922 ac_cv_prog_CC="cc"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3926 done
3927 done
3928 IFS=$as_save_IFS
3930 if test $ac_prog_rejected = yes; then
3931 # We found a bogon in the path, so make sure we never use it.
3932 set dummy $ac_cv_prog_CC
3933 shift
3934 if test $# != 0; then
3935 # We chose a different compiler from the bogus one.
3936 # However, it has the same basename, so the bogon will be chosen
3937 # first if we set CC to just the basename; use the full file name.
3938 shift
3939 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947 $as_echo "$CC" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3955 if test -z "$CC"; then
3956 if test -n "$ac_tool_prefix"; then
3957 for ac_prog in cl.exe
3959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_CC+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 if test -n "$CC"; then
3967 ac_cv_prog_CC="$CC" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3980 done
3981 done
3982 IFS=$as_save_IFS
3986 CC=$ac_cv_prog_CC
3987 if test -n "$CC"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3989 $as_echo "$CC" >&6; }
3990 else
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3996 test -n "$CC" && break
3997 done
3999 if test -z "$CC"; then
4000 ac_ct_CC=$CC
4001 for ac_prog in cl.exe
4003 # Extract the first word of "$ac_prog", so it can be a program name with args.
4004 set dummy $ac_prog; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -n "$ac_ct_CC"; then
4011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4020 ac_cv_prog_ac_ct_CC="$ac_prog"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4024 done
4025 done
4026 IFS=$as_save_IFS
4030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4031 if test -n "$ac_ct_CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4033 $as_echo "$ac_ct_CC" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4040 test -n "$ac_ct_CC" && break
4041 done
4043 if test "x$ac_ct_CC" = x; then
4044 CC=""
4045 else
4046 case $cross_compiling:$ac_tool_warned in
4047 yes:)
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4050 ac_tool_warned=yes ;;
4051 esac
4052 CC=$ac_ct_CC
4059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error "no acceptable C compiler found in \$PATH
4062 See \`config.log' for more details." "$LINENO" 5; }
4064 # Provide some information about the compiler.
4065 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4066 set X $ac_compile
4067 ac_compiler=$2
4068 for ac_option in --version -v -V -qversion; do
4069 { { ac_try="$ac_compiler $ac_option >&5"
4070 case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075 $as_echo "$ac_try_echo"; } >&5
4076 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4077 ac_status=$?
4078 if test -s conftest.err; then
4079 sed '10a\
4080 ... rest of stderr output deleted ...
4081 10q' conftest.err >conftest.er1
4082 cat conftest.er1 >&5
4083 rm -f conftest.er1 conftest.err
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }
4087 done
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4093 main ()
4097 return 0;
4099 _ACEOF
4100 ac_clean_files_save=$ac_clean_files
4101 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4102 # Try to create an executable without -o first, disregard a.out.
4103 # It will help us diagnose broken compilers, and finding out an intuition
4104 # of exeext.
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4106 $as_echo_n "checking for C compiler default output file name... " >&6; }
4107 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4109 # The possible output files:
4110 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4112 ac_rmfiles=
4113 for ac_file in $ac_files
4115 case $ac_file in
4116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4117 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4118 esac
4119 done
4120 rm -f $ac_rmfiles
4122 if { { ac_try="$ac_link_default"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_link_default") 2>&5
4130 ac_status=$?
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }; then :
4133 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4134 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4135 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4136 # so that the user can short-circuit this test for compilers unknown to
4137 # Autoconf.
4138 for ac_file in $ac_files ''
4140 test -f "$ac_file" || continue
4141 case $ac_file in
4142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4144 [ab].out )
4145 # We found the default executable, but exeext='' is most
4146 # certainly right.
4147 break;;
4148 *.* )
4149 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4150 then :; else
4151 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4153 # We set ac_cv_exeext here because the later test for it is not
4154 # safe: cross compilers may not add the suffix if given an `-o'
4155 # argument, so we may need to know it at that point already.
4156 # Even if this section looks crufty: it has the advantage of
4157 # actually working.
4158 break;;
4160 break;;
4161 esac
4162 done
4163 test "$ac_cv_exeext" = no && ac_cv_exeext=
4165 else
4166 ac_file=''
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4169 $as_echo "$ac_file" >&6; }
4170 if test -z "$ac_file"; then :
4171 $as_echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176 { as_fn_set_status 77
4177 as_fn_error "C compiler cannot create executables
4178 See \`config.log' for more details." "$LINENO" 5; }; }
4180 ac_exeext=$ac_cv_exeext
4182 # Check that the compiler produces executables we can run. If not, either
4183 # the compiler is broken, or we cross compile.
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4185 $as_echo_n "checking whether the C compiler works... " >&6; }
4186 # If not cross compiling, check that we can run a simple program.
4187 if test "$cross_compiling" != yes; then
4188 if { ac_try='./$ac_file'
4189 { { case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192 esac
4193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4194 $as_echo "$ac_try_echo"; } >&5
4195 (eval "$ac_try") 2>&5
4196 ac_status=$?
4197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198 test $ac_status = 0; }; }; then
4199 cross_compiling=no
4200 else
4201 if test "$cross_compiling" = maybe; then
4202 cross_compiling=yes
4203 else
4204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206 as_fn_error "cannot run C compiled programs.
4207 If you meant to cross compile, use \`--host'.
4208 See \`config.log' for more details." "$LINENO" 5; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213 $as_echo "yes" >&6; }
4215 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4216 ac_clean_files=$ac_clean_files_save
4217 # Check that the compiler produces executables we can run. If not, either
4218 # the compiler is broken, or we cross compile.
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4220 $as_echo_n "checking whether we are cross compiling... " >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4222 $as_echo "$cross_compiling" >&6; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4225 $as_echo_n "checking for suffix of executables... " >&6; }
4226 if { { ac_try="$ac_link"
4227 case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 $as_echo "$ac_try_echo"; } >&5
4233 (eval "$ac_link") 2>&5
4234 ac_status=$?
4235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }; then :
4237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4238 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4239 # work properly (i.e., refer to `conftest.exe'), while it won't with
4240 # `rm'.
4241 for ac_file in conftest.exe conftest conftest.*; do
4242 test -f "$ac_file" || continue
4243 case $ac_file in
4244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4246 break;;
4247 * ) break;;
4248 esac
4249 done
4250 else
4251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4253 as_fn_error "cannot compute suffix of executables: cannot compile and link
4254 See \`config.log' for more details." "$LINENO" 5; }
4256 rm -f conftest$ac_cv_exeext
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4258 $as_echo "$ac_cv_exeext" >&6; }
4260 rm -f conftest.$ac_ext
4261 EXEEXT=$ac_cv_exeext
4262 ac_exeext=$EXEEXT
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4264 $as_echo_n "checking for suffix of object files... " >&6; }
4265 if test "${ac_cv_objext+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4272 main ()
4276 return 0;
4278 _ACEOF
4279 rm -f conftest.o conftest.obj
4280 if { { ac_try="$ac_compile"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_compile") 2>&5
4288 ac_status=$?
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; }; then :
4291 for ac_file in conftest.o conftest.obj conftest.*; do
4292 test -f "$ac_file" || continue;
4293 case $ac_file in
4294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4296 break;;
4297 esac
4298 done
4299 else
4300 $as_echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 as_fn_error "cannot compute suffix of object files: cannot compile
4306 See \`config.log' for more details." "$LINENO" 5; }
4308 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4311 $as_echo "$ac_cv_objext" >&6; }
4312 OBJEXT=$ac_cv_objext
4313 ac_objext=$OBJEXT
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4315 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4316 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4323 main ()
4325 #ifndef __GNUC__
4326 choke me
4327 #endif
4330 return 0;
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"; then :
4334 ac_compiler_gnu=yes
4335 else
4336 ac_compiler_gnu=no
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4343 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4344 if test $ac_compiler_gnu = yes; then
4345 GCC=yes
4346 else
4347 GCC=
4349 ac_test_CFLAGS=${CFLAGS+set}
4350 ac_save_CFLAGS=$CFLAGS
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4352 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4353 if test "${ac_cv_prog_cc_g+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 ac_save_c_werror_flag=$ac_c_werror_flag
4357 ac_c_werror_flag=yes
4358 ac_cv_prog_cc_g=no
4359 CFLAGS="-g"
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4364 main ()
4368 return 0;
4370 _ACEOF
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_cv_prog_cc_g=yes
4373 else
4374 CFLAGS=""
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4379 main ()
4383 return 0;
4385 _ACEOF
4386 if ac_fn_c_try_compile "$LINENO"; then :
4388 else
4389 ac_c_werror_flag=$ac_save_c_werror_flag
4390 CFLAGS="-g"
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4395 main ()
4399 return 0;
4401 _ACEOF
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403 ac_cv_prog_cc_g=yes
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 ac_c_werror_flag=$ac_save_c_werror_flag
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4413 $as_echo "$ac_cv_prog_cc_g" >&6; }
4414 if test "$ac_test_CFLAGS" = set; then
4415 CFLAGS=$ac_save_CFLAGS
4416 elif test $ac_cv_prog_cc_g = yes; then
4417 if test "$GCC" = yes; then
4418 CFLAGS="-g -O2"
4419 else
4420 CFLAGS="-g"
4422 else
4423 if test "$GCC" = yes; then
4424 CFLAGS="-O2"
4425 else
4426 CFLAGS=
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4430 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4431 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 ac_cv_prog_cc_c89=no
4435 ac_save_CC=$CC
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #include <stdarg.h>
4439 #include <stdio.h>
4440 #include <sys/types.h>
4441 #include <sys/stat.h>
4442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4443 struct buf { int x; };
4444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4445 static char *e (p, i)
4446 char **p;
4447 int i;
4449 return p[i];
4451 static char *f (char * (*g) (char **, int), char **p, ...)
4453 char *s;
4454 va_list v;
4455 va_start (v,p);
4456 s = g (p, va_arg (v,int));
4457 va_end (v);
4458 return s;
4461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4462 function prototypes and stuff, but not '\xHH' hex character constants.
4463 These don't provoke an error unfortunately, instead are silently treated
4464 as 'x'. The following induces an error, until -std is added to get
4465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4466 array size at least. It's necessary to write '\x00'==0 to get something
4467 that's true only with -std. */
4468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4471 inside strings and character constants. */
4472 #define FOO(x) 'x'
4473 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4475 int test (int i, double x);
4476 struct s1 {int (*f) (int a);};
4477 struct s2 {int (*f) (double a);};
4478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4479 int argc;
4480 char **argv;
4482 main ()
4484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4486 return 0;
4488 _ACEOF
4489 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4490 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4492 CC="$ac_save_CC $ac_arg"
4493 if ac_fn_c_try_compile "$LINENO"; then :
4494 ac_cv_prog_cc_c89=$ac_arg
4496 rm -f core conftest.err conftest.$ac_objext
4497 test "x$ac_cv_prog_cc_c89" != "xno" && break
4498 done
4499 rm -f conftest.$ac_ext
4500 CC=$ac_save_CC
4503 # AC_CACHE_VAL
4504 case "x$ac_cv_prog_cc_c89" in
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4507 $as_echo "none needed" >&6; } ;;
4508 xno)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4510 $as_echo "unsupported" >&6; } ;;
4512 CC="$CC $ac_cv_prog_cc_c89"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4514 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4515 esac
4516 if test "x$ac_cv_prog_cc_c89" != xno; then :
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 ac_ext=cpp
4527 ac_cpp='$CXXCPP $CPPFLAGS'
4528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4531 if test -z "$CXX"; then
4532 if test -n "$CCC"; then
4533 CXX=$CCC
4534 else
4535 if test -n "$ac_tool_prefix"; then
4536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_CXX+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$CXX"; then
4546 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 CXX=$ac_cv_prog_CXX
4566 if test -n "$CXX"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4568 $as_echo "$CXX" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$CXX" && break
4576 done
4578 if test -z "$CXX"; then
4579 ac_ct_CXX=$CXX
4580 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy $ac_prog; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test -n "$ac_ct_CXX"; then
4590 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_ac_ct_CXX="$ac_prog"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4603 done
4604 done
4605 IFS=$as_save_IFS
4609 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4610 if test -n "$ac_ct_CXX"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4612 $as_echo "$ac_ct_CXX" >&6; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4619 test -n "$ac_ct_CXX" && break
4620 done
4622 if test "x$ac_ct_CXX" = x; then
4623 CXX="g++"
4624 else
4625 case $cross_compiling:$ac_tool_warned in
4626 yes:)
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629 ac_tool_warned=yes ;;
4630 esac
4631 CXX=$ac_ct_CXX
4637 # Provide some information about the compiler.
4638 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4639 set X $ac_compile
4640 ac_compiler=$2
4641 for ac_option in --version -v -V -qversion; do
4642 { { ac_try="$ac_compiler $ac_option >&5"
4643 case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4648 $as_echo "$ac_try_echo"; } >&5
4649 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4650 ac_status=$?
4651 if test -s conftest.err; then
4652 sed '10a\
4653 ... rest of stderr output deleted ...
4654 10q' conftest.err >conftest.er1
4655 cat conftest.er1 >&5
4656 rm -f conftest.er1 conftest.err
4658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }
4660 done
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4663 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4664 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4671 main ()
4673 #ifndef __GNUC__
4674 choke me
4675 #endif
4678 return 0;
4680 _ACEOF
4681 if ac_fn_cxx_try_compile "$LINENO"; then :
4682 ac_compiler_gnu=yes
4683 else
4684 ac_compiler_gnu=no
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4691 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4692 if test $ac_compiler_gnu = yes; then
4693 GXX=yes
4694 else
4695 GXX=
4697 ac_test_CXXFLAGS=${CXXFLAGS+set}
4698 ac_save_CXXFLAGS=$CXXFLAGS
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4700 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4701 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4705 ac_cxx_werror_flag=yes
4706 ac_cv_prog_cxx_g=no
4707 CXXFLAGS="-g"
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4712 main ()
4716 return 0;
4718 _ACEOF
4719 if ac_fn_cxx_try_compile "$LINENO"; then :
4720 ac_cv_prog_cxx_g=yes
4721 else
4722 CXXFLAGS=""
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4727 main ()
4731 return 0;
4733 _ACEOF
4734 if ac_fn_cxx_try_compile "$LINENO"; then :
4736 else
4737 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4738 CXXFLAGS="-g"
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4743 main ()
4747 return 0;
4749 _ACEOF
4750 if ac_fn_cxx_try_compile "$LINENO"; then :
4751 ac_cv_prog_cxx_g=yes
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4761 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4762 if test "$ac_test_CXXFLAGS" = set; then
4763 CXXFLAGS=$ac_save_CXXFLAGS
4764 elif test $ac_cv_prog_cxx_g = yes; then
4765 if test "$GXX" = yes; then
4766 CXXFLAGS="-g -O2"
4767 else
4768 CXXFLAGS="-g"
4770 else
4771 if test "$GXX" = yes; then
4772 CXXFLAGS="-O2"
4773 else
4774 CXXFLAGS=
4777 ac_ext=c
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 if test -n "$ac_tool_prefix"; then
4787 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4788 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$GNATBIND"; then
4795 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 GNATBIND=$ac_cv_prog_GNATBIND
4815 if test -n "$GNATBIND"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4817 $as_echo "$GNATBIND" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4825 if test -z "$ac_cv_prog_GNATBIND"; then
4826 ac_ct_GNATBIND=$GNATBIND
4827 # Extract the first word of "gnatbind", so it can be a program name with args.
4828 set dummy gnatbind; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$ac_ct_GNATBIND"; then
4835 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4854 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4855 if test -n "$ac_ct_GNATBIND"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4857 $as_echo "$ac_ct_GNATBIND" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4863 if test "x$ac_ct_GNATBIND" = x; then
4864 GNATBIND="no"
4865 else
4866 case $cross_compiling:$ac_tool_warned in
4867 yes:)
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870 ac_tool_warned=yes ;;
4871 esac
4872 GNATBIND=$ac_ct_GNATBIND
4874 else
4875 GNATBIND="$ac_cv_prog_GNATBIND"
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$GNATMAKE"; then
4887 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4902 IFS=$as_save_IFS
4906 GNATMAKE=$ac_cv_prog_GNATMAKE
4907 if test -n "$GNATMAKE"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4909 $as_echo "$GNATMAKE" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4917 if test -z "$ac_cv_prog_GNATMAKE"; then
4918 ac_ct_GNATMAKE=$GNATMAKE
4919 # Extract the first word of "gnatmake", so it can be a program name with args.
4920 set dummy gnatmake; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$ac_ct_GNATMAKE"; then
4927 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4947 if test -n "$ac_ct_GNATMAKE"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4949 $as_echo "$ac_ct_GNATMAKE" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4955 if test "x$ac_ct_GNATMAKE" = x; then
4956 GNATMAKE="no"
4957 else
4958 case $cross_compiling:$ac_tool_warned in
4959 yes:)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned=yes ;;
4963 esac
4964 GNATMAKE=$ac_ct_GNATMAKE
4966 else
4967 GNATMAKE="$ac_cv_prog_GNATMAKE"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4971 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4972 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 cat >conftest.adb <<EOF
4976 procedure conftest is begin null; end conftest;
4978 acx_cv_cc_gcc_supports_ada=no
4979 # There is a bug in old released versions of GCC which causes the
4980 # driver to exit successfully when the appropriate language module
4981 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4982 # Therefore we must check for the error message as well as an
4983 # unsuccessful exit.
4984 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4985 # given a .adb file, but produce no object file. So we must check
4986 # if an object file was really produced to guard against this.
4987 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4988 if test x"$errors" = x && test -f conftest.$ac_objext; then
4989 acx_cv_cc_gcc_supports_ada=yes
4991 rm -f conftest.*
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4994 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4996 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4997 have_gnat=yes
4998 else
4999 have_gnat=no
5003 # Do configure tests with the C++ compiler, since that's what we build with.
5004 ac_ext=cpp
5005 ac_cpp='$CXXCPP $CPPFLAGS'
5006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5011 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5012 # optimizations to be activated explicitly by the toplevel.
5013 case "$CC" in
5014 */prev-gcc/xgcc*) ;;
5015 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5016 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5017 esac
5021 # Determine PICFLAG for target gnatlib.
5026 case "${target}" in
5027 # PIC is the default on some targets or must not be used.
5028 *-*-darwin*)
5029 # For darwin, common symbols are not allowed in MH_DYLIB files
5030 case "${CFLAGS}" in
5031 # If we are using a compiler supporting mdynamic-no-pic
5032 # and the option has been tested as safe to add, then cancel
5033 # it here, since the code generated is incompatible with shared
5034 # libs.
5035 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5036 *) PICFLAG_FOR_TARGET=-fno-common ;;
5037 esac
5039 alpha*-dec-osf5*)
5040 # PIC is the default.
5042 hppa*64*-*-hpux*)
5043 # PIC is the default for 64-bit PA HP-UX.
5045 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5047 i[34567]86-*-mingw* | x86_64-*-mingw*)
5049 i[34567]86-*-interix[3-9]*)
5050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5051 # Instead, we relocate shared libraries at runtime.
5053 i[34567]86-*-nto-qnx*)
5054 # QNX uses GNU C++, but need to define -shared option too, otherwise
5055 # it will coredump.
5056 PICFLAG_FOR_TARGET='-fPIC -shared'
5058 i[34567]86-pc-msdosdjgpp*)
5059 # DJGPP does not support shared libraries at all.
5061 ia64*-*-hpux*)
5062 # On IA64 HP-UX, PIC is the default but the pic flag
5063 # sets the default TLS model and affects inlining.
5064 PICFLAG_FOR_TARGET=-fPIC
5066 mips-sgi-irix6*)
5067 # PIC is the default.
5069 rs6000-ibm-aix* | powerpc-ibm-aix*)
5070 # All AIX code is PIC.
5073 # Some targets support both -fPIC and -fpic, but prefer the latter.
5074 # FIXME: Why?
5075 i[34567]86-*-* | x86_64-*-*)
5076 PICFLAG_FOR_TARGET=-fpic
5078 # FIXME: Override -fPIC default in libgcc only?
5079 sh-*-linux* | sh[2346lbe]*-*-linux*)
5080 PICFLAG_FOR_TARGET=-fpic
5082 # FIXME: Simplify to sh*-*-netbsd*?
5083 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5084 sh64-*-netbsd* | sh64l*-*-netbsd*)
5085 PICFLAG_FOR_TARGET=-fpic
5087 # Default to -fPIC unless specified otherwise.
5089 PICFLAG_FOR_TARGET=-fPIC
5091 esac
5093 # If the user explicitly uses -fpic/-fPIC, keep that.
5094 case "${CFLAGS_FOR_TARGET}" in
5095 *-fpic*)
5096 PICFLAG_FOR_TARGET=-fpic
5098 *-fPIC*)
5099 PICFLAG_FOR_TARGET=-fPIC
5101 esac
5105 # -------------------------
5106 # Check C compiler features
5107 # -------------------------
5110 ac_ext=cpp
5111 ac_cpp='$CXXCPP $CPPFLAGS'
5112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5116 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5117 if test -z "$CXXCPP"; then
5118 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 # Double quotes because CXXCPP needs to be expanded
5122 for CXXCPP in "$CXX -E" "/lib/cpp"
5124 ac_preproc_ok=false
5125 for ac_cxx_preproc_warn_flag in '' yes
5127 # Use a header file that comes with gcc, so configuring glibc
5128 # with a fresh cross-compiler works.
5129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130 # <limits.h> exists even on freestanding compilers.
5131 # On the NeXT, cc -E runs the code through the compiler's parser,
5132 # not just through cpp. "Syntax error" is here to catch this case.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 #ifdef __STDC__
5136 # include <limits.h>
5137 #else
5138 # include <assert.h>
5139 #endif
5140 Syntax error
5141 _ACEOF
5142 if ac_fn_cxx_try_cpp "$LINENO"; then :
5144 else
5145 # Broken: fails on valid input.
5146 continue
5148 rm -f conftest.err conftest.$ac_ext
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <ac_nonexistent.h>
5155 _ACEOF
5156 if ac_fn_cxx_try_cpp "$LINENO"; then :
5157 # Broken: success on invalid input.
5158 continue
5159 else
5160 # Passes both tests.
5161 ac_preproc_ok=:
5162 break
5164 rm -f conftest.err conftest.$ac_ext
5166 done
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then :
5170 break
5173 done
5174 ac_cv_prog_CXXCPP=$CXXCPP
5177 CXXCPP=$ac_cv_prog_CXXCPP
5178 else
5179 ac_cv_prog_CXXCPP=$CXXCPP
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5182 $as_echo "$CXXCPP" >&6; }
5183 ac_preproc_ok=false
5184 for ac_cxx_preproc_warn_flag in '' yes
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 #ifdef __STDC__
5195 # include <limits.h>
5196 #else
5197 # include <assert.h>
5198 #endif
5199 Syntax error
5200 _ACEOF
5201 if ac_fn_cxx_try_cpp "$LINENO"; then :
5203 else
5204 # Broken: fails on valid input.
5205 continue
5207 rm -f conftest.err conftest.$ac_ext
5209 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how.
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <ac_nonexistent.h>
5214 _ACEOF
5215 if ac_fn_cxx_try_cpp "$LINENO"; then :
5216 # Broken: success on invalid input.
5217 continue
5218 else
5219 # Passes both tests.
5220 ac_preproc_ok=:
5221 break
5223 rm -f conftest.err conftest.$ac_ext
5225 done
5226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.err conftest.$ac_ext
5228 if $ac_preproc_ok; then :
5230 else
5231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5233 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5234 See \`config.log' for more details." "$LINENO" 5; }
5237 ac_ext=cpp
5238 ac_cpp='$CXXCPP $CPPFLAGS'
5239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5245 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5246 if test "${ac_cv_path_GREP+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 if test -z "$GREP"; then
5250 ac_path_GREP_found=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_prog in grep ggrep; do
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5260 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5261 # Check for GNU ac_path_GREP and select it if it is found.
5262 # Check for GNU $ac_path_GREP
5263 case `"$ac_path_GREP" --version 2>&1` in
5264 *GNU*)
5265 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5267 ac_count=0
5268 $as_echo_n 0123456789 >"conftest.in"
5269 while :
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'GREP' >> "conftest.nl"
5275 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277 as_fn_arith $ac_count + 1 && ac_count=$as_val
5278 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_GREP="$ac_path_GREP"
5281 ac_path_GREP_max=$ac_count
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5285 done
5286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287 esac
5289 $ac_path_GREP_found && break 3
5290 done
5291 done
5292 done
5293 IFS=$as_save_IFS
5294 if test -z "$ac_cv_path_GREP"; then
5295 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5297 else
5298 ac_cv_path_GREP=$GREP
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5303 $as_echo "$ac_cv_path_GREP" >&6; }
5304 GREP="$ac_cv_path_GREP"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5308 $as_echo_n "checking for egrep... " >&6; }
5309 if test "${ac_cv_path_EGREP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5313 then ac_cv_path_EGREP="$GREP -E"
5314 else
5315 if test -z "$EGREP"; then
5316 ac_path_EGREP_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_prog in egrep; do
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5326 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5327 # Check for GNU ac_path_EGREP and select it if it is found.
5328 # Check for GNU $ac_path_EGREP
5329 case `"$ac_path_EGREP" --version 2>&1` in
5330 *GNU*)
5331 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5333 ac_count=0
5334 $as_echo_n 0123456789 >"conftest.in"
5335 while :
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo 'EGREP' >> "conftest.nl"
5341 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343 as_fn_arith $ac_count + 1 && ac_count=$as_val
5344 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_EGREP="$ac_path_EGREP"
5347 ac_path_EGREP_max=$ac_count
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
5351 done
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353 esac
5355 $ac_path_EGREP_found && break 3
5356 done
5357 done
5358 done
5359 IFS=$as_save_IFS
5360 if test -z "$ac_cv_path_EGREP"; then
5361 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5363 else
5364 ac_cv_path_EGREP=$EGREP
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5370 $as_echo "$ac_cv_path_EGREP" >&6; }
5371 EGREP="$ac_cv_path_EGREP"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5375 $as_echo_n "checking for ANSI C header files... " >&6; }
5376 if test "${ac_cv_header_stdc+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <stdlib.h>
5382 #include <stdarg.h>
5383 #include <string.h>
5384 #include <float.h>
5387 main ()
5391 return 0;
5393 _ACEOF
5394 if ac_fn_cxx_try_compile "$LINENO"; then :
5395 ac_cv_header_stdc=yes
5396 else
5397 ac_cv_header_stdc=no
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 if test $ac_cv_header_stdc = yes; then
5402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <string.h>
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "memchr" >/dev/null 2>&1; then :
5411 else
5412 ac_cv_header_stdc=no
5414 rm -f conftest*
5418 if test $ac_cv_header_stdc = yes; then
5419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <stdlib.h>
5424 _ACEOF
5425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "free" >/dev/null 2>&1; then :
5428 else
5429 ac_cv_header_stdc=no
5431 rm -f conftest*
5435 if test $ac_cv_header_stdc = yes; then
5436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5437 if test "$cross_compiling" = yes; then :
5439 else
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #include <ctype.h>
5443 #include <stdlib.h>
5444 #if ((' ' & 0x0FF) == 0x020)
5445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5447 #else
5448 # define ISLOWER(c) \
5449 (('a' <= (c) && (c) <= 'i') \
5450 || ('j' <= (c) && (c) <= 'r') \
5451 || ('s' <= (c) && (c) <= 'z'))
5452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5453 #endif
5455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5457 main ()
5459 int i;
5460 for (i = 0; i < 256; i++)
5461 if (XOR (islower (i), ISLOWER (i))
5462 || toupper (i) != TOUPPER (i))
5463 return 2;
5464 return 0;
5466 _ACEOF
5467 if ac_fn_cxx_try_run "$LINENO"; then :
5469 else
5470 ac_cv_header_stdc=no
5472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5473 conftest.$ac_objext conftest.beam conftest.$ac_ext
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5479 $as_echo "$ac_cv_header_stdc" >&6; }
5480 if test $ac_cv_header_stdc = yes; then
5482 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5486 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5487 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5488 inttypes.h stdint.h unistd.h
5489 do :
5490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5493 eval as_val=\$$as_ac_Header
5494 if test "x$as_val" = x""yes; then :
5495 cat >>confdefs.h <<_ACEOF
5496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5497 _ACEOF
5501 done
5505 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5506 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5507 MINIX=yes
5508 else
5509 MINIX=
5513 if test "$MINIX" = yes; then
5515 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5518 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5521 $as_echo "#define _MINIX 1" >>confdefs.h
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5527 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5528 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5534 # define __EXTENSIONS__ 1
5535 $ac_includes_default
5537 main ()
5541 return 0;
5543 _ACEOF
5544 if ac_fn_cxx_try_compile "$LINENO"; then :
5545 ac_cv_safe_to_define___extensions__=yes
5546 else
5547 ac_cv_safe_to_define___extensions__=no
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5552 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5553 test $ac_cv_safe_to_define___extensions__ = yes &&
5554 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5556 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5558 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5560 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5562 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5565 ac_ext=c
5566 ac_cpp='$CPP $CPPFLAGS'
5567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5571 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5572 # On Suns, sometimes $CPP names a directory.
5573 if test -n "$CPP" && test -d "$CPP"; then
5574 CPP=
5576 if test -z "$CPP"; then
5577 if test "${ac_cv_prog_CPP+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 # Double quotes because CPP needs to be expanded
5581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5583 ac_preproc_ok=false
5584 for ac_c_preproc_warn_flag in '' yes
5586 # Use a header file that comes with gcc, so configuring glibc
5587 # with a fresh cross-compiler works.
5588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5589 # <limits.h> exists even on freestanding compilers.
5590 # On the NeXT, cc -E runs the code through the compiler's parser,
5591 # not just through cpp. "Syntax error" is here to catch this case.
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #ifdef __STDC__
5595 # include <limits.h>
5596 #else
5597 # include <assert.h>
5598 #endif
5599 Syntax error
5600 _ACEOF
5601 if ac_fn_c_try_cpp "$LINENO"; then :
5603 else
5604 # Broken: fails on valid input.
5605 continue
5607 rm -f conftest.err conftest.$ac_ext
5609 # OK, works on sane cases. Now check whether nonexistent headers
5610 # can be detected and how.
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <ac_nonexistent.h>
5614 _ACEOF
5615 if ac_fn_c_try_cpp "$LINENO"; then :
5616 # Broken: success on invalid input.
5617 continue
5618 else
5619 # Passes both tests.
5620 ac_preproc_ok=:
5621 break
5623 rm -f conftest.err conftest.$ac_ext
5625 done
5626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5627 rm -f conftest.err conftest.$ac_ext
5628 if $ac_preproc_ok; then :
5629 break
5632 done
5633 ac_cv_prog_CPP=$CPP
5636 CPP=$ac_cv_prog_CPP
5637 else
5638 ac_cv_prog_CPP=$CPP
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5641 $as_echo "$CPP" >&6; }
5642 ac_preproc_ok=false
5643 for ac_c_preproc_warn_flag in '' yes
5645 # Use a header file that comes with gcc, so configuring glibc
5646 # with a fresh cross-compiler works.
5647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5648 # <limits.h> exists even on freestanding compilers.
5649 # On the NeXT, cc -E runs the code through the compiler's parser,
5650 # not just through cpp. "Syntax error" is here to catch this case.
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #ifdef __STDC__
5654 # include <limits.h>
5655 #else
5656 # include <assert.h>
5657 #endif
5658 Syntax error
5659 _ACEOF
5660 if ac_fn_c_try_cpp "$LINENO"; then :
5662 else
5663 # Broken: fails on valid input.
5664 continue
5666 rm -f conftest.err conftest.$ac_ext
5668 # OK, works on sane cases. Now check whether nonexistent headers
5669 # can be detected and how.
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 #include <ac_nonexistent.h>
5673 _ACEOF
5674 if ac_fn_c_try_cpp "$LINENO"; then :
5675 # Broken: success on invalid input.
5676 continue
5677 else
5678 # Passes both tests.
5679 ac_preproc_ok=:
5680 break
5682 rm -f conftest.err conftest.$ac_ext
5684 done
5685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5686 rm -f conftest.err conftest.$ac_ext
5687 if $ac_preproc_ok; then :
5689 else
5690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5692 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5693 See \`config.log' for more details." "$LINENO" 5; }
5696 ac_ext=cpp
5697 ac_cpp='$CXXCPP $CPPFLAGS'
5698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5703 $as_echo_n "checking for inline... " >&6; }
5704 if test "${ac_cv_c_inline+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 ac_cv_c_inline=no
5708 for ac_kw in inline __inline__ __inline; do
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #ifndef __cplusplus
5712 typedef int foo_t;
5713 static $ac_kw foo_t static_foo () {return 0; }
5714 $ac_kw foo_t foo () {return 0; }
5715 #endif
5717 _ACEOF
5718 if ac_fn_cxx_try_compile "$LINENO"; then :
5719 ac_cv_c_inline=$ac_kw
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 test "$ac_cv_c_inline" != no && break
5723 done
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5727 $as_echo "$ac_cv_c_inline" >&6; }
5729 case $ac_cv_c_inline in
5730 inline | yes) ;;
5732 case $ac_cv_c_inline in
5733 no) ac_val=;;
5734 *) ac_val=$ac_cv_c_inline;;
5735 esac
5736 cat >>confdefs.h <<_ACEOF
5737 #ifndef __cplusplus
5738 #define inline $ac_val
5739 #endif
5740 _ACEOF
5742 esac
5745 # Check whether --enable-largefile was given.
5746 if test "${enable_largefile+set}" = set; then :
5747 enableval=$enable_largefile;
5750 if test "$enable_largefile" != no; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5753 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5754 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 ac_cv_sys_largefile_CC=no
5758 if test "$GCC" != yes; then
5759 ac_save_CC=$CC
5760 while :; do
5761 # IRIX 6.2 and later do not support large files by default,
5762 # so use the C compiler's -n32 option if that helps.
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <sys/types.h>
5766 /* Check that off_t can represent 2**63 - 1 correctly.
5767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5768 since some C++ compilers masquerading as C compilers
5769 incorrectly reject 9223372036854775807. */
5770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5772 && LARGE_OFF_T % 2147483647 == 1)
5773 ? 1 : -1];
5775 main ()
5779 return 0;
5781 _ACEOF
5782 if ac_fn_cxx_try_compile "$LINENO"; then :
5783 break
5785 rm -f core conftest.err conftest.$ac_objext
5786 CC="$CC -n32"
5787 if ac_fn_cxx_try_compile "$LINENO"; then :
5788 ac_cv_sys_largefile_CC=' -n32'; break
5790 rm -f core conftest.err conftest.$ac_objext
5791 break
5792 done
5793 CC=$ac_save_CC
5794 rm -f conftest.$ac_ext
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5798 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5799 if test "$ac_cv_sys_largefile_CC" != no; then
5800 CC=$CC$ac_cv_sys_largefile_CC
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5804 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5805 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 while :; do
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5819 ? 1 : -1];
5821 main ()
5825 return 0;
5827 _ACEOF
5828 if ac_fn_cxx_try_compile "$LINENO"; then :
5829 ac_cv_sys_file_offset_bits=no; break
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #define _FILE_OFFSET_BITS 64
5835 #include <sys/types.h>
5836 /* Check that off_t can represent 2**63 - 1 correctly.
5837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5838 since some C++ compilers masquerading as C compilers
5839 incorrectly reject 9223372036854775807. */
5840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5842 && LARGE_OFF_T % 2147483647 == 1)
5843 ? 1 : -1];
5845 main ()
5849 return 0;
5851 _ACEOF
5852 if ac_fn_cxx_try_compile "$LINENO"; then :
5853 ac_cv_sys_file_offset_bits=64; break
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 ac_cv_sys_file_offset_bits=unknown
5857 break
5858 done
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5861 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5862 case $ac_cv_sys_file_offset_bits in #(
5863 no | unknown) ;;
5865 cat >>confdefs.h <<_ACEOF
5866 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5867 _ACEOF
5869 esac
5870 rm -rf conftest*
5871 if test $ac_cv_sys_file_offset_bits = unknown; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5873 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5874 if test "${ac_cv_sys_large_files+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 while :; do
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5888 ? 1 : -1];
5890 main ()
5894 return 0;
5896 _ACEOF
5897 if ac_fn_cxx_try_compile "$LINENO"; then :
5898 ac_cv_sys_large_files=no; break
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 #define _LARGE_FILES 1
5904 #include <sys/types.h>
5905 /* Check that off_t can represent 2**63 - 1 correctly.
5906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5907 since some C++ compilers masquerading as C compilers
5908 incorrectly reject 9223372036854775807. */
5909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5911 && LARGE_OFF_T % 2147483647 == 1)
5912 ? 1 : -1];
5914 main ()
5918 return 0;
5920 _ACEOF
5921 if ac_fn_cxx_try_compile "$LINENO"; then :
5922 ac_cv_sys_large_files=1; break
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925 ac_cv_sys_large_files=unknown
5926 break
5927 done
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5930 $as_echo "$ac_cv_sys_large_files" >&6; }
5931 case $ac_cv_sys_large_files in #(
5932 no | unknown) ;;
5934 cat >>confdefs.h <<_ACEOF
5935 #define _LARGE_FILES $ac_cv_sys_large_files
5936 _ACEOF
5938 esac
5939 rm -rf conftest*
5944 # sizeof(char) is 1 by definition.
5945 # The cast to long int works around a bug in the HP C Compiler
5946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5948 # This bug is HP SR number 8606223364.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5950 $as_echo_n "checking size of void *... " >&6; }
5951 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5956 else
5957 if test "$ac_cv_type_void_p" = yes; then
5958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { as_fn_set_status 77
5961 as_fn_error "cannot compute sizeof (void *)
5962 See \`config.log' for more details." "$LINENO" 5; }; }
5963 else
5964 ac_cv_sizeof_void_p=0
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5970 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5974 cat >>confdefs.h <<_ACEOF
5975 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5976 _ACEOF
5979 # The cast to long int works around a bug in the HP C Compiler
5980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5982 # This bug is HP SR number 8606223364.
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5984 $as_echo_n "checking size of short... " >&6; }
5985 if test "${ac_cv_sizeof_short+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5990 else
5991 if test "$ac_cv_type_short" = yes; then
5992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5994 { as_fn_set_status 77
5995 as_fn_error "cannot compute sizeof (short)
5996 See \`config.log' for more details." "$LINENO" 5; }; }
5997 else
5998 ac_cv_sizeof_short=0
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6004 $as_echo "$ac_cv_sizeof_short" >&6; }
6008 cat >>confdefs.h <<_ACEOF
6009 #define SIZEOF_SHORT $ac_cv_sizeof_short
6010 _ACEOF
6013 # The cast to long int works around a bug in the HP C Compiler
6014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6016 # This bug is HP SR number 8606223364.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6018 $as_echo_n "checking size of int... " >&6; }
6019 if test "${ac_cv_sizeof_int+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6024 else
6025 if test "$ac_cv_type_int" = yes; then
6026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6028 { as_fn_set_status 77
6029 as_fn_error "cannot compute sizeof (int)
6030 See \`config.log' for more details." "$LINENO" 5; }; }
6031 else
6032 ac_cv_sizeof_int=0
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6038 $as_echo "$ac_cv_sizeof_int" >&6; }
6042 cat >>confdefs.h <<_ACEOF
6043 #define SIZEOF_INT $ac_cv_sizeof_int
6044 _ACEOF
6047 # The cast to long int works around a bug in the HP C Compiler
6048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6050 # This bug is HP SR number 8606223364.
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6052 $as_echo_n "checking size of long... " >&6; }
6053 if test "${ac_cv_sizeof_long+set}" = set; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6058 else
6059 if test "$ac_cv_type_long" = yes; then
6060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6062 { as_fn_set_status 77
6063 as_fn_error "cannot compute sizeof (long)
6064 See \`config.log' for more details." "$LINENO" 5; }; }
6065 else
6066 ac_cv_sizeof_long=0
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6072 $as_echo "$ac_cv_sizeof_long" >&6; }
6076 cat >>confdefs.h <<_ACEOF
6077 #define SIZEOF_LONG $ac_cv_sizeof_long
6078 _ACEOF
6081 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6082 if test "x$ac_cv_type_long_long" = x""yes; then :
6084 cat >>confdefs.h <<_ACEOF
6085 #define HAVE_LONG_LONG 1
6086 _ACEOF
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6093 $as_echo_n "checking size of long long... " >&6; }
6094 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6099 else
6100 if test "$ac_cv_type_long_long" = yes; then
6101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6103 { as_fn_set_status 77
6104 as_fn_error "cannot compute sizeof (long long)
6105 See \`config.log' for more details." "$LINENO" 5; }; }
6106 else
6107 ac_cv_sizeof_long_long=0
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6113 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6117 cat >>confdefs.h <<_ACEOF
6118 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6119 _ACEOF
6124 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6125 case $ac_cv_c_int8_t in #(
6126 no|yes) ;; #(
6129 cat >>confdefs.h <<_ACEOF
6130 #define int8_t $ac_cv_c_int8_t
6131 _ACEOF
6133 esac
6135 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6136 case $ac_cv_c_int16_t in #(
6137 no|yes) ;; #(
6140 cat >>confdefs.h <<_ACEOF
6141 #define int16_t $ac_cv_c_int16_t
6142 _ACEOF
6144 esac
6146 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6147 case $ac_cv_c_int32_t in #(
6148 no|yes) ;; #(
6151 cat >>confdefs.h <<_ACEOF
6152 #define int32_t $ac_cv_c_int32_t
6153 _ACEOF
6155 esac
6157 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6158 case $ac_cv_c_int64_t in #(
6159 no|yes) ;; #(
6162 cat >>confdefs.h <<_ACEOF
6163 #define int64_t $ac_cv_c_int64_t
6164 _ACEOF
6166 esac
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6170 $as_echo_n "checking for long long int... " >&6; }
6171 if test "${ac_cv_type_long_long_int+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6177 /* For now, do not test the preprocessor; as of 2007 there are too many
6178 implementations with broken preprocessors. Perhaps this can
6179 be revisited in 2012. In the meantime, code should not expect
6180 #if to work with literals wider than 32 bits. */
6181 /* Test literals. */
6182 long long int ll = 9223372036854775807ll;
6183 long long int nll = -9223372036854775807LL;
6184 unsigned long long int ull = 18446744073709551615ULL;
6185 /* Test constant expressions. */
6186 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6187 ? 1 : -1)];
6188 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6189 ? 1 : -1)];
6190 int i = 63;
6192 main ()
6194 /* Test availability of runtime routines for shift and division. */
6195 long long int llmax = 9223372036854775807ll;
6196 unsigned long long int ullmax = 18446744073709551615ull;
6197 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6198 | (llmax / ll) | (llmax % ll)
6199 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6200 | (ullmax / ull) | (ullmax % ull));
6202 return 0;
6205 _ACEOF
6206 if ac_fn_cxx_try_link "$LINENO"; then :
6207 if test "$cross_compiling" = yes; then :
6208 ac_cv_type_long_long_int=yes
6209 else
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <limits.h>
6213 #ifndef LLONG_MAX
6214 # define HALF \
6215 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6216 # define LLONG_MAX (HALF - 1 + HALF)
6217 #endif
6219 main ()
6221 long long int n = 1;
6222 int i;
6223 for (i = 0; ; i++)
6225 long long int m = n << i;
6226 if (m >> i != n)
6227 return 1;
6228 if (LLONG_MAX / 2 < m)
6229 break;
6231 return 0;
6233 return 0;
6235 _ACEOF
6236 if ac_fn_cxx_try_run "$LINENO"; then :
6237 ac_cv_type_long_long_int=yes
6238 else
6239 ac_cv_type_long_long_int=no
6241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6242 conftest.$ac_objext conftest.beam conftest.$ac_ext
6245 else
6246 ac_cv_type_long_long_int=no
6248 rm -f core conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6252 $as_echo "$ac_cv_type_long_long_int" >&6; }
6253 if test $ac_cv_type_long_long_int = yes; then
6255 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6261 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6262 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6264 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6266 else
6267 test $ac_cv_type_long_long_int = yes \
6268 && ac_type='long long int' \
6269 || ac_type='long int'
6271 cat >>confdefs.h <<_ACEOF
6272 #define intmax_t $ac_type
6273 _ACEOF
6279 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6280 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6282 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6284 else
6285 for ac_type in 'int' 'long int' 'long long int'; do
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 $ac_includes_default
6290 main ()
6292 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6293 test_array [0] = 0
6296 return 0;
6298 _ACEOF
6299 if ac_fn_cxx_try_compile "$LINENO"; then :
6301 cat >>confdefs.h <<_ACEOF
6302 #define intptr_t $ac_type
6303 _ACEOF
6305 ac_type=
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 test -z "$ac_type" && break
6309 done
6313 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6314 case $ac_cv_c_uint8_t in #(
6315 no|yes) ;; #(
6318 $as_echo "#define _UINT8_T 1" >>confdefs.h
6321 cat >>confdefs.h <<_ACEOF
6322 #define uint8_t $ac_cv_c_uint8_t
6323 _ACEOF
6325 esac
6327 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6328 case $ac_cv_c_uint16_t in #(
6329 no|yes) ;; #(
6333 cat >>confdefs.h <<_ACEOF
6334 #define uint16_t $ac_cv_c_uint16_t
6335 _ACEOF
6337 esac
6339 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6340 case $ac_cv_c_uint32_t in #(
6341 no|yes) ;; #(
6344 $as_echo "#define _UINT32_T 1" >>confdefs.h
6347 cat >>confdefs.h <<_ACEOF
6348 #define uint32_t $ac_cv_c_uint32_t
6349 _ACEOF
6351 esac
6353 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6354 case $ac_cv_c_uint64_t in #(
6355 no|yes) ;; #(
6358 $as_echo "#define _UINT64_T 1" >>confdefs.h
6361 cat >>confdefs.h <<_ACEOF
6362 #define uint64_t $ac_cv_c_uint64_t
6363 _ACEOF
6365 esac
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6369 $as_echo_n "checking for unsigned long long int... " >&6; }
6370 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6376 /* For now, do not test the preprocessor; as of 2007 there are too many
6377 implementations with broken preprocessors. Perhaps this can
6378 be revisited in 2012. In the meantime, code should not expect
6379 #if to work with literals wider than 32 bits. */
6380 /* Test literals. */
6381 long long int ll = 9223372036854775807ll;
6382 long long int nll = -9223372036854775807LL;
6383 unsigned long long int ull = 18446744073709551615ULL;
6384 /* Test constant expressions. */
6385 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6386 ? 1 : -1)];
6387 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6388 ? 1 : -1)];
6389 int i = 63;
6391 main ()
6393 /* Test availability of runtime routines for shift and division. */
6394 long long int llmax = 9223372036854775807ll;
6395 unsigned long long int ullmax = 18446744073709551615ull;
6396 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6397 | (llmax / ll) | (llmax % ll)
6398 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6399 | (ullmax / ull) | (ullmax % ull));
6401 return 0;
6404 _ACEOF
6405 if ac_fn_cxx_try_link "$LINENO"; then :
6406 ac_cv_type_unsigned_long_long_int=yes
6407 else
6408 ac_cv_type_unsigned_long_long_int=no
6410 rm -f core conftest.err conftest.$ac_objext \
6411 conftest$ac_exeext conftest.$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6414 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6415 if test $ac_cv_type_unsigned_long_long_int = yes; then
6417 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6423 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6424 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6426 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6428 else
6429 test $ac_cv_type_unsigned_long_long_int = yes \
6430 && ac_type='unsigned long long int' \
6431 || ac_type='unsigned long int'
6433 cat >>confdefs.h <<_ACEOF
6434 #define uintmax_t $ac_type
6435 _ACEOF
6441 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6442 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6444 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6446 else
6447 for ac_type in 'unsigned int' 'unsigned long int' \
6448 'unsigned long long int'; do
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 $ac_includes_default
6453 main ()
6455 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6456 test_array [0] = 0
6459 return 0;
6461 _ACEOF
6462 if ac_fn_cxx_try_compile "$LINENO"; then :
6464 cat >>confdefs.h <<_ACEOF
6465 #define uintptr_t $ac_type
6466 _ACEOF
6468 ac_type=
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 test -z "$ac_type" && break
6472 done
6488 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6489 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6492 # check what underlying integer type int64_t uses
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6494 $as_echo_n "checking for int64_t underlying type... " >&6; }
6495 if test "${ac_cv_int64_t_type+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6502 #ifdef HAVE_STDINT_H
6503 #include <stdint.h>
6504 #endif
6505 template <typename T> struct X { };
6506 template <>
6507 struct X<long> { typedef long t; };
6510 main ()
6512 X<int64_t>::t x;
6514 return 0;
6516 _ACEOF
6517 if ac_fn_cxx_try_compile "$LINENO"; then :
6518 ac_cv_int64_t_type=long
6519 else
6520 ac_cv_int64_t_type="long long"
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6525 $as_echo "$ac_cv_int64_t_type" >&6; }
6526 if test "$ac_cv_int64_t_type" = "long"; then
6528 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6530 else
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6534 #ifdef HAVE_STDINT_H
6535 #include <stdint.h>
6536 #endif
6537 template <typename T> struct X { };
6538 template <>
6539 struct X<long long> { typedef long long t; };
6542 main ()
6544 X<int64_t>::t x;
6546 return 0;
6548 _ACEOF
6549 if ac_fn_cxx_try_compile "$LINENO"; then :
6551 else
6552 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6558 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6559 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6566 #include <utility>
6569 main ()
6571 int a, b; std::swap(a,b);
6573 return 0;
6575 _ACEOF
6576 if ac_fn_cxx_try_compile "$LINENO"; then :
6577 ac_cv_std_swap_in_utility=yes
6578 else
6579 ac_cv_std_swap_in_utility=no
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6584 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6585 if test $ac_cv_std_swap_in_utility = yes; then
6587 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6591 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6592 # If the host compiler is affected by the bug, and we build with optimization
6593 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6594 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6595 # Since there is no reliable feature check for the presence of this bug,
6596 # we simply use a GCC version number check. (This should never trigger for
6597 # stages 2 or 3 of a native bootstrap.)
6598 aliasing_flags=
6599 if test "$GCC" = yes; then
6600 saved_CXXFLAGS="$CXXFLAGS"
6602 # The following test compilation will succeed if and only if $CXX accepts
6603 # -fno-strict-aliasing *and* is older than GCC 4.3.
6604 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6606 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6610 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6611 #error compiler not affected by placement new aliasing bug
6612 #endif
6614 _ACEOF
6615 if ac_fn_cxx_try_compile "$LINENO"; then :
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6617 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 CXXFLAGS="$saved_CXXFLAGS"
6630 # ---------------------
6631 # Warnings and checking
6632 # ---------------------
6634 # Check $CC warning features (if it's GCC).
6635 # We want to use -pedantic, but we don't want warnings about
6636 # * 'long long'
6637 # * variadic macros
6638 # * overlong strings
6639 # * C++11 narrowing conversions in { }
6640 # So, we only use -pedantic if we can disable those warnings.
6642 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6643 # Check whether --enable-build-format-warnings was given.
6644 if test "${enable_build_format_warnings+set}" = set; then :
6645 enableval=$enable_build_format_warnings;
6646 else
6647 enable_build_format_warnings=yes
6650 if test $enable_build_format_warnings = no; then :
6651 wf_opt=-Wno-format
6652 else
6653 wf_opt=
6655 ac_ext=cpp
6656 ac_cpp='$CXXCPP $CPPFLAGS'
6657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6661 loose_warn=
6662 save_CXXFLAGS="$CXXFLAGS"
6663 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6664 # Do the check with the no- prefix removed since gcc silently
6665 # accepts any -Wno-* option on purpose
6666 case $real_option in
6667 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6668 *) option=$real_option ;;
6669 esac
6670 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6673 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6674 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 CXXFLAGS="$option"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6682 main ()
6686 return 0;
6688 _ACEOF
6689 if ac_fn_cxx_try_compile "$LINENO"; then :
6690 eval "$as_acx_Woption=yes"
6691 else
6692 eval "$as_acx_Woption=no"
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 eval ac_res=\$$as_acx_Woption
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699 $as_echo "$ac_res" >&6; }
6700 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6701 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6703 done
6704 CXXFLAGS="$save_CXXFLAGS"
6705 ac_ext=cpp
6706 ac_cpp='$CXXCPP $CPPFLAGS'
6707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6713 ac_ext=c
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6719 c_loose_warn=
6720 save_CFLAGS="$CFLAGS"
6721 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6722 # Do the check with the no- prefix removed since gcc silently
6723 # accepts any -Wno-* option on purpose
6724 case $real_option in
6725 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6726 *) option=$real_option ;;
6727 esac
6728 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6731 $as_echo_n "checking whether $CC supports $option... " >&6; }
6732 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 CFLAGS="$option"
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6740 main ()
6744 return 0;
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748 eval "$as_acx_Woption=yes"
6749 else
6750 eval "$as_acx_Woption=no"
6752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 eval ac_res=\$$as_acx_Woption
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6757 $as_echo "$ac_res" >&6; }
6758 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6759 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6761 done
6762 CFLAGS="$save_CFLAGS"
6763 ac_ext=cpp
6764 ac_cpp='$CXXCPP $CPPFLAGS'
6765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6770 ac_ext=cpp
6771 ac_cpp='$CXXCPP $CPPFLAGS'
6772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6776 strict_warn=
6777 save_CXXFLAGS="$CXXFLAGS"
6778 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6779 # Do the check with the no- prefix removed since gcc silently
6780 # accepts any -Wno-* option on purpose
6781 case $real_option in
6782 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6783 *) option=$real_option ;;
6784 esac
6785 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6788 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6789 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 CXXFLAGS="$option"
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6797 main ()
6801 return 0;
6803 _ACEOF
6804 if ac_fn_cxx_try_compile "$LINENO"; then :
6805 eval "$as_acx_Woption=yes"
6806 else
6807 eval "$as_acx_Woption=no"
6809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 eval ac_res=\$$as_acx_Woption
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6814 $as_echo "$ac_res" >&6; }
6815 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6816 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6818 done
6819 CXXFLAGS="$save_CXXFLAGS"
6820 ac_ext=cpp
6821 ac_cpp='$CXXCPP $CPPFLAGS'
6822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827 ac_ext=c
6828 ac_cpp='$CPP $CPPFLAGS'
6829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6833 c_strict_warn=
6834 save_CFLAGS="$CFLAGS"
6835 for real_option in -Wold-style-definition -Wc++-compat; do
6836 # Do the check with the no- prefix removed since gcc silently
6837 # accepts any -Wno-* option on purpose
6838 case $real_option in
6839 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6840 *) option=$real_option ;;
6841 esac
6842 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6845 $as_echo_n "checking whether $CC supports $option... " >&6; }
6846 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 CFLAGS="$option"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6854 main ()
6858 return 0;
6860 _ACEOF
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 eval "$as_acx_Woption=yes"
6863 else
6864 eval "$as_acx_Woption=no"
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 eval ac_res=\$$as_acx_Woption
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6871 $as_echo "$ac_res" >&6; }
6872 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6873 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6875 done
6876 CFLAGS="$save_CFLAGS"
6877 ac_ext=cpp
6878 ac_cpp='$CXXCPP $CPPFLAGS'
6879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6884 ac_ext=cpp
6885 ac_cpp='$CXXCPP $CPPFLAGS'
6886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6890 # Do the check with the no- prefix removed from the warning options
6891 # since gcc silently accepts any -Wno-* option on purpose
6892 if test "$GXX" = yes; then :
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6894 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6895 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 save_CXXFLAGS="$CXXFLAGS"
6899 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6904 main ()
6908 return 0;
6910 _ACEOF
6911 if ac_fn_cxx_try_compile "$LINENO"; then :
6912 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6913 else
6914 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 CXXFLAGS="$save_CXXFLAGS"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6920 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6921 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6922 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6926 ac_ext=cpp
6927 ac_cpp='$CXXCPP $CPPFLAGS'
6928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6933 ac_ext=cpp
6934 ac_cpp='$CXXCPP $CPPFLAGS'
6935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6939 # Check whether --enable-werror-always was given.
6940 if test "${enable_werror_always+set}" = set; then :
6941 enableval=$enable_werror_always;
6942 else
6943 enable_werror_always=no
6946 if test $enable_werror_always = yes; then :
6947 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6950 ac_ext=cpp
6951 ac_cpp='$CXXCPP $CPPFLAGS'
6952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6958 # The above macros do nothing if the compiler is not GCC. However, the
6959 # Makefile has more goo to add other flags, so these variables are used
6960 # to enable warnings only for GCC.
6961 warn_cflags=
6962 warn_cxxflags=
6963 if test "x$GCC" = "xyes"; then
6964 warn_cflags='$(GCC_WARN_CFLAGS)'
6965 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6970 # Disable exceptions and RTTI if building with g++
6971 ac_ext=c
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977 noexception_flags=
6978 save_CFLAGS="$CFLAGS"
6979 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6980 # Do the check with the no- prefix removed since gcc silently
6981 # accepts any -Wno-* option on purpose
6982 case $real_option in
6983 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6984 *) option=$real_option ;;
6985 esac
6986 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6989 $as_echo_n "checking whether $CC supports $option... " >&6; }
6990 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 CFLAGS="$option"
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6998 main ()
7002 return 0;
7004 _ACEOF
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006 eval "$as_acx_Woption=yes"
7007 else
7008 eval "$as_acx_Woption=no"
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 eval ac_res=\$$as_acx_Woption
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7015 $as_echo "$ac_res" >&6; }
7016 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7017 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7019 done
7020 CFLAGS="$save_CFLAGS"
7021 ac_ext=cpp
7022 ac_cpp='$CXXCPP $CPPFLAGS'
7023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7029 # Enable expensive internal checks
7030 is_release=
7031 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7032 is_release=yes
7035 # Check whether --enable-checking was given.
7036 if test "${enable_checking+set}" = set; then :
7037 enableval=$enable_checking; ac_checking_flags="${enableval}"
7038 else
7040 # Determine the default checks.
7041 if test x$is_release = x ; then
7042 ac_checking_flags=yes,extra
7043 else
7044 ac_checking_flags=release
7048 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7049 for check in release $ac_checking_flags
7051 case $check in
7052 # these set all the flags to specific states
7053 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7054 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7055 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7056 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7057 ac_tree_checking=1 ; ac_valgrind_checking= ;
7058 ac_types_checking=1 ;;
7059 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7060 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7061 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7062 ac_rtlflag_checking= ; ac_runtime_checking= ;
7063 ac_tree_checking= ; ac_valgrind_checking= ;
7064 ac_types_checking= ;;
7065 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7066 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7067 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7068 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7069 ac_tree_checking=1 ; ac_valgrind_checking= ;
7070 ac_types_checking=1 ;;
7071 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7072 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7073 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7074 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7075 ac_tree_checking= ; ac_valgrind_checking= ;
7076 ac_types_checking= ;;
7077 # these enable particular checks
7078 assert) ac_assert_checking=1 ;;
7079 df) ac_df_checking=1 ;;
7080 extra) ac_extra_checking=1 ;;
7081 fold) ac_fold_checking=1 ;;
7082 gc) ac_gc_checking=1 ;;
7083 gcac) ac_gc_always_collect=1 ;;
7084 gimple) ac_gimple_checking=1 ;;
7085 misc) ac_checking=1 ;;
7086 rtl) ac_rtl_checking=1 ;;
7087 rtlflag) ac_rtlflag_checking=1 ;;
7088 runtime) ac_runtime_checking=1 ;;
7089 tree) ac_tree_checking=1 ;;
7090 types) ac_types_checking=1 ;;
7091 valgrind) ac_valgrind_checking=1 ;;
7092 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7093 esac
7094 done
7095 IFS="$ac_save_IFS"
7097 nocommon_flag=""
7098 if test x$ac_checking != x ; then
7100 $as_echo "#define CHECKING_P 1" >>confdefs.h
7102 nocommon_flag=-fno-common
7103 else
7104 $as_echo "#define CHECKING_P 0" >>confdefs.h
7108 if test x$ac_extra_checking != x ; then
7110 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7112 else
7113 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7116 if test x$ac_df_checking != x ; then
7118 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7121 if test x$ac_assert_checking != x ; then
7123 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7126 if test x$ac_gimple_checking != x ; then
7128 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7132 if test x$ac_runtime_checking != x ; then
7134 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7137 if test x$ac_tree_checking != x ; then
7139 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7141 TREECHECKING=yes
7143 if test x$ac_types_checking != x ; then
7145 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7149 if test x$ac_rtl_checking != x ; then
7151 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7154 if test x$ac_rtlflag_checking != x ; then
7156 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7159 if test x$ac_gc_checking != x ; then
7161 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7164 if test x$ac_gc_always_collect != x ; then
7166 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7169 if test x$ac_fold_checking != x ; then
7171 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7174 valgrind_path_defines=
7175 valgrind_command=
7177 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7178 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7179 have_valgrind_h=yes
7180 else
7181 have_valgrind_h=no
7186 # It is certainly possible that there's valgrind but no valgrind.h.
7187 # GCC relies on making annotations so we must have both.
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7189 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <valgrind/memcheck.h>
7193 #ifndef VALGRIND_DISCARD
7194 #error VALGRIND_DISCARD not defined
7195 #endif
7196 _ACEOF
7197 if ac_fn_cxx_try_cpp "$LINENO"; then :
7198 gcc_cv_header_valgrind_memcheck_h=yes
7199 else
7200 gcc_cv_header_valgrind_memcheck_h=no
7202 rm -f conftest.err conftest.$ac_ext
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7204 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7206 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #include <memcheck.h>
7210 #ifndef VALGRIND_DISCARD
7211 #error VALGRIND_DISCARD not defined
7212 #endif
7213 _ACEOF
7214 if ac_fn_cxx_try_cpp "$LINENO"; then :
7215 gcc_cv_header_memcheck_h=yes
7216 else
7217 gcc_cv_header_memcheck_h=no
7219 rm -f conftest.err conftest.$ac_ext
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7221 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7222 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7224 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7227 if test $gcc_cv_header_memcheck_h = yes; then
7229 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7233 if test x$ac_valgrind_checking != x ; then
7235 # Prepare PATH_SEPARATOR.
7236 # The user is always right.
7237 if test "${PATH_SEPARATOR+set}" != set; then
7238 echo "#! /bin/sh" >conf$$.sh
7239 echo "exit 0" >>conf$$.sh
7240 chmod +x conf$$.sh
7241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7242 PATH_SEPARATOR=';'
7243 else
7244 PATH_SEPARATOR=:
7246 rm -f conf$$.sh
7249 # Find out how to test for executable files. Don't use a zero-byte file,
7250 # as systems may use methods other than mode bits to determine executability.
7251 cat >conf$$.file <<_ASEOF
7252 #! /bin/sh
7253 exit 0
7254 _ASEOF
7255 chmod +x conf$$.file
7256 if test -x conf$$.file >/dev/null 2>&1; then
7257 ac_executable_p="test -x"
7258 else
7259 ac_executable_p="test -f"
7261 rm -f conf$$.file
7263 # Extract the first word of "valgrind", so it can be a program name with args.
7264 set dummy valgrind; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 case "$valgrind_path" in
7271 [\\/]* | ?:[\\/]*)
7272 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7275 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7276 for ac_dir in $PATH; do
7277 IFS="$ac_save_IFS"
7278 test -z "$ac_dir" && ac_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7281 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7282 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7283 break 2
7286 done
7287 done
7288 IFS="$ac_save_IFS"
7290 esac
7292 valgrind_path="$ac_cv_path_valgrind_path"
7293 if test -n "$valgrind_path"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7295 $as_echo "$valgrind_path" >&6; }
7296 else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7301 if test "x$valgrind_path" = "x" \
7302 || (test $have_valgrind_h = no \
7303 && test $gcc_cv_header_memcheck_h = no \
7304 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7305 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7307 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7308 valgrind_command="$valgrind_path -q"
7310 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7316 # Enable code coverage collection
7317 # Check whether --enable-coverage was given.
7318 if test "${enable_coverage+set}" = set; then :
7319 enableval=$enable_coverage; case "${enableval}" in
7320 yes|noopt)
7321 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7323 opt)
7324 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7327 # a.k.a. --disable-coverage
7328 coverage_flags=""
7331 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7333 esac
7334 else
7335 coverage_flags=""
7340 # Check whether --enable-gather-detailed-mem-stats was given.
7341 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7342 enableval=$enable_gather_detailed_mem_stats;
7343 else
7344 enable_gather_detailed_mem_stats=no
7347 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7349 cat >>confdefs.h <<_ACEOF
7350 #define GATHER_STATISTICS $gather_stats
7351 _ACEOF
7354 # Check whether --enable-valgrind-annotations was given.
7355 if test "${enable_valgrind_annotations+set}" = set; then :
7356 enableval=$enable_valgrind_annotations;
7357 else
7358 enable_valgrind_annotations=no
7361 if test x$enable_valgrind_annotations != xno \
7362 || test x$ac_valgrind_checking != x; then
7363 if (test $have_valgrind_h = no \
7364 && test $gcc_cv_header_memcheck_h = no \
7365 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7366 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7369 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7373 # -------------------------------
7374 # Miscenalleous configure options
7375 # -------------------------------
7377 # With stabs
7379 # Check whether --with-stabs was given.
7380 if test "${with_stabs+set}" = set; then :
7381 withval=$with_stabs; stabs="$with_stabs"
7382 else
7383 stabs=no
7387 # Determine whether or not multilibs are enabled.
7388 # Check whether --enable-multilib was given.
7389 if test "${enable_multilib+set}" = set; then :
7390 enableval=$enable_multilib;
7391 else
7392 enable_multilib=yes
7397 # Determine whether or not multiarch is enabled.
7398 # Check whether --enable-multiarch was given.
7399 if test "${enable_multiarch+set}" = set; then :
7400 enableval=$enable_multiarch; case "${enableval}" in
7401 yes|no|auto) enable_multiarch=$enableval;;
7402 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7403 esac
7404 else
7405 enable_multiarch=auto
7408 if test x${enable_multiarch} = xauto; then
7409 if test x${with_native_system_header_dir} != x; then
7410 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7411 enable_multiarch=no
7413 if test x$host != x$target && test "x$with_sysroot" = x; then
7414 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7415 enable_multiarch=no
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7419 $as_echo_n "checking for multiarch configuration... " >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7422 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7424 # needed for setting the multiarch name for soft-float/hard-float ABIs
7428 # Enable __cxa_atexit for C++.
7429 # Check whether --enable-__cxa_atexit was given.
7430 if test "${enable___cxa_atexit+set}" = set; then :
7431 enableval=$enable___cxa_atexit;
7435 # Enable C extension for decimal float if target supports it.
7437 # Check whether --enable-decimal-float was given.
7438 if test "${enable_decimal_float+set}" = set; then :
7439 enableval=$enable_decimal_float;
7440 case $enable_decimal_float in
7441 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7442 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7443 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7444 esac
7446 else
7448 case $target in
7449 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7450 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7451 i?86*-*-mingw* | x86_64*-*-mingw* | \
7452 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7453 enable_decimal_float=yes
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7457 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7458 enable_decimal_float=no
7460 esac
7465 # x86's use BID format instead of DPD
7466 case x$enable_decimal_float in
7467 xyes)
7468 case $target in
7469 i?86*-*-* | x86_64*-*-*)
7470 enable_decimal_float=bid
7473 enable_decimal_float=dpd
7475 esac
7476 default_decimal_float=$enable_decimal_float
7478 xno)
7479 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7480 # dependency on libdecnumber.
7481 default_decimal_float=dpd
7483 esac
7488 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7490 cat >>confdefs.h <<_ACEOF
7491 #define ENABLE_DECIMAL_FLOAT $dfp
7492 _ACEOF
7495 # Use default_decimal_float for dependency.
7496 enable_decimal_float=$default_decimal_float
7498 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7500 cat >>confdefs.h <<_ACEOF
7501 #define ENABLE_DECIMAL_BID_FORMAT $bid
7502 _ACEOF
7505 # Enable C extension for fixed-point arithmetic.
7506 # Check whether --enable-fixed-point was given.
7507 if test "${enable_fixed_point+set}" = set; then :
7508 enableval=$enable_fixed_point;
7509 else
7511 case $target in
7512 arm*)
7513 enable_fixed_point=yes
7516 mips*-*-*)
7517 enable_fixed_point=yes
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7521 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7522 enable_fixed_point=no
7524 esac
7530 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7532 cat >>confdefs.h <<_ACEOF
7533 #define ENABLE_FIXED_POINT $fixedpoint
7534 _ACEOF
7537 # Enable threads
7538 # Pass with no value to take the default
7539 # Pass with a value to specify a thread package
7540 # Check whether --enable-threads was given.
7541 if test "${enable_threads+set}" = set; then :
7542 enableval=$enable_threads;
7543 else
7544 enable_threads=''
7548 # Check whether --enable-tls was given.
7549 if test "${enable_tls+set}" = set; then :
7550 enableval=$enable_tls;
7551 case $enable_tls in
7552 yes | no) ;;
7553 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7554 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7555 esac
7557 else
7558 enable_tls=''
7562 # Check whether --enable-vtable-verify was given.
7563 if test "${enable_vtable_verify+set}" = set; then :
7564 enableval=$enable_vtable_verify;
7565 else
7566 enable_vtable_verify=no
7569 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7571 cat >>confdefs.h <<_ACEOF
7572 #define ENABLE_VTABLE_VERIFY $vtable_verify
7573 _ACEOF
7576 # Check whether --enable-objc-gc was given.
7577 if test "${enable_objc_gc+set}" = set; then :
7578 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7579 objc_boehm_gc=''
7580 else
7581 objc_boehm_gc=1
7583 else
7584 objc_boehm_gc=''
7589 # Check whether --with-dwarf2 was given.
7590 if test "${with_dwarf2+set}" = set; then :
7591 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7592 else
7593 dwarf2=no
7597 # Check whether --enable-shared was given.
7598 if test "${enable_shared+set}" = set; then :
7599 enableval=$enable_shared;
7600 case $enable_shared in
7601 yes | no) ;;
7603 enable_shared=no
7604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7605 for pkg in $enableval; do
7606 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7607 enable_shared=yes
7609 done
7610 IFS="$ac_save_ifs"
7612 esac
7614 else
7615 enable_shared=yes
7621 # Check whether --with-specs was given.
7622 if test "${with_specs+set}" = set; then :
7623 withval=$with_specs; CONFIGURE_SPECS=$withval
7624 else
7625 CONFIGURE_SPECS=
7633 # Check whether --with-pkgversion was given.
7634 if test "${with_pkgversion+set}" = set; then :
7635 withval=$with_pkgversion; case "$withval" in
7636 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7637 no) PKGVERSION= ;;
7638 *) PKGVERSION="($withval) " ;;
7639 esac
7640 else
7641 PKGVERSION="(GCC) "
7649 # Check whether --with-bugurl was given.
7650 if test "${with_bugurl+set}" = set; then :
7651 withval=$with_bugurl; case "$withval" in
7652 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7653 no) BUGURL=
7655 *) BUGURL="$withval"
7657 esac
7658 else
7659 BUGURL="https://gcc.gnu.org/bugs/"
7663 case ${BUGURL} in
7665 REPORT_BUGS_TO=
7666 REPORT_BUGS_TEXI=
7669 REPORT_BUGS_TO="<$BUGURL>"
7670 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7672 esac;
7677 # Sanity check enable_languages in case someone does not run the toplevel
7678 # configure # script.
7679 # Check whether --enable-languages was given.
7680 if test "${enable_languages+set}" = set; then :
7681 enableval=$enable_languages; case ,${enable_languages}, in
7682 ,,|,yes,)
7683 # go safe -- we cannot be much sure without the toplevel
7684 # configure's
7685 # analysis of which target libs are present and usable
7686 enable_languages=c
7688 *,all,*)
7689 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7691 *,c,*)
7694 enable_languages=c,${enable_languages}
7696 esac
7697 else
7698 enable_languages=c
7702 if test x"$enable_as_accelerator_for" != x; then
7704 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7706 enable_as_accelerator=yes
7707 case "${target}" in
7708 *-intelmicemul-*)
7709 # In this case we expect offload compiler to be built as native, so we
7710 # need to rename the driver to avoid clashes with host's drivers.
7711 program_transform_name="s&^&${target}-&" ;;
7712 esac
7713 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7714 program_transform_name=`echo $program_transform_name | sed $sedscript`
7715 accel_dir_suffix=/accel/${target_noncanonical}
7716 real_target_noncanonical=${enable_as_accelerator_for}
7722 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7723 tgt=`echo $tgt | sed 's/=.*//'`
7725 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7726 enable_hsa=1
7727 else
7728 enable_offloading=1
7731 if test x"$offload_targets" = x; then
7732 offload_targets=$tgt
7733 else
7734 offload_targets="$offload_targets,$tgt"
7736 done
7738 cat >>confdefs.h <<_ACEOF
7739 #define OFFLOAD_TARGETS "$offload_targets"
7740 _ACEOF
7742 if test x"$enable_offloading" != x; then
7744 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7746 else
7748 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7752 if test x"$enable_hsa" = x1 ; then
7754 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7759 # Check whether --with-multilib-list was given.
7760 if test "${with_multilib_list+set}" = set; then :
7761 withval=$with_multilib_list; :
7762 else
7763 with_multilib_list=default
7767 # -------------------------
7768 # Checks for other programs
7769 # -------------------------
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7772 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7773 set x ${MAKE-make}
7774 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7775 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat >conftest.make <<\_ACEOF
7779 SHELL = /bin/sh
7780 all:
7781 @echo '@@@%%%=$(MAKE)=@@@%%%'
7782 _ACEOF
7783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7784 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7785 *@@@%%%=?*=@@@%%%*)
7786 eval ac_cv_prog_make_${ac_make}_set=yes;;
7788 eval ac_cv_prog_make_${ac_make}_set=no;;
7789 esac
7790 rm -f conftest.make
7792 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794 $as_echo "yes" >&6; }
7795 SET_MAKE=
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 SET_MAKE="MAKE=${MAKE-make}"
7803 # Find some useful tools
7804 for ac_prog in gawk mawk nawk awk
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807 set dummy $ac_prog; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_AWK+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 if test -n "$AWK"; then
7814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_AWK="$ac_prog"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7827 done
7828 done
7829 IFS=$as_save_IFS
7833 AWK=$ac_cv_prog_AWK
7834 if test -n "$AWK"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7836 $as_echo "$AWK" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7843 test -n "$AWK" && break
7844 done
7846 # We need awk to create options.c and options.h.
7847 # Bail out if it's missing.
7848 case ${AWK} in
7849 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7850 esac
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7853 $as_echo_n "checking whether ln -s works... " >&6; }
7854 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 rm -f conftestdata_t
7858 echo >conftestdata_f
7859 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7860 then
7861 gcc_cv_prog_LN_S="ln -s"
7862 else
7863 if ln conftestdata_f conftestdata_t 2>/dev/null
7864 then
7865 gcc_cv_prog_LN_S=ln
7866 else
7867 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7868 then
7869 gcc_cv_prog_LN_S="cp -p"
7870 else
7871 gcc_cv_prog_LN_S=cp
7875 rm -f conftestdata_f conftestdata_t
7878 LN_S="$gcc_cv_prog_LN_S"
7879 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7881 $as_echo "yes" >&6; }
7882 else
7883 if test "$gcc_cv_prog_LN_S" = "ln"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7885 $as_echo "no, using ln" >&6; }
7886 else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7888 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7893 $as_echo_n "checking whether ln works... " >&6; }
7894 if test "${acx_cv_prog_LN+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 rm -f conftestdata_t
7898 echo >conftestdata_f
7899 if ln conftestdata_f conftestdata_t 2>/dev/null
7900 then
7901 acx_cv_prog_LN=ln
7902 else
7903 acx_cv_prog_LN=no
7905 rm -f conftestdata_f conftestdata_t
7908 if test $acx_cv_prog_LN = no; then
7909 LN="$LN_S"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7911 $as_echo "no, using $LN" >&6; }
7912 else
7913 LN="$acx_cv_prog_LN"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915 $as_echo "yes" >&6; }
7918 if test -n "$ac_tool_prefix"; then
7919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$RANLIB"; then
7927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7942 IFS=$as_save_IFS
7946 RANLIB=$ac_cv_prog_RANLIB
7947 if test -n "$RANLIB"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7949 $as_echo "$RANLIB" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7957 if test -z "$ac_cv_prog_RANLIB"; then
7958 ac_ct_RANLIB=$RANLIB
7959 # Extract the first word of "ranlib", so it can be a program name with args.
7960 set dummy ranlib; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test -n "$ac_ct_RANLIB"; then
7967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_ac_ct_RANLIB="ranlib"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7980 done
7981 done
7982 IFS=$as_save_IFS
7986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7987 if test -n "$ac_ct_RANLIB"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7989 $as_echo "$ac_ct_RANLIB" >&6; }
7990 else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7995 if test "x$ac_ct_RANLIB" = x; then
7996 RANLIB=":"
7997 else
7998 case $cross_compiling:$ac_tool_warned in
7999 yes:)
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8002 ac_tool_warned=yes ;;
8003 esac
8004 RANLIB=$ac_ct_RANLIB
8006 else
8007 RANLIB="$ac_cv_prog_RANLIB"
8010 ranlib_flags=""
8013 # Find a good install program. We prefer a C program (faster),
8014 # so one script is as good as another. But avoid the broken or
8015 # incompatible versions:
8016 # SysV /etc/install, /usr/sbin/install
8017 # SunOS /usr/etc/install
8018 # IRIX /sbin/install
8019 # AIX /bin/install
8020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8022 # ./install, which can be erroneously created by make from ./install.sh.
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8024 $as_echo_n "checking for a BSD compatible install... " >&6; }
8025 if test -z "$INSTALL"; then
8026 if test "${ac_cv_path_install+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8030 for ac_dir in $PATH; do
8031 # Account for people who put trailing slashes in PATH elements.
8032 case "$ac_dir/" in
8033 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8035 # OSF1 and SCO ODT 3.0 have their own names for install.
8036 for ac_prog in ginstall scoinst install; do
8037 if test -f $ac_dir/$ac_prog; then
8038 if test $ac_prog = install &&
8039 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8040 # AIX install. It has an incompatible calling convention.
8041 # OSF/1 installbsd also uses dspmsg, but is usable.
8043 else
8044 ac_cv_path_install="$ac_dir/$ac_prog -c"
8045 break 2
8048 done
8050 esac
8051 done
8052 IFS="$ac_save_IFS"
8055 if test "${ac_cv_path_install+set}" = set; then
8056 INSTALL="$ac_cv_path_install"
8057 else
8058 # As a last resort, use the slow shell script. We don't cache a
8059 # path for INSTALL within a source directory, because that will
8060 # break other packages using the cache if that directory is
8061 # removed, or if the path is relative.
8062 INSTALL="$ac_install_sh"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8066 $as_echo "$INSTALL" >&6; }
8068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8069 # It thinks the first close brace ends the variable substitution.
8070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8072 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8075 # See if cmp has --ignore-initial.
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8077 $as_echo_n "checking for cmp's capabilities... " >&6; }
8078 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 echo abfoo >t1
8082 echo cdfoo >t2
8083 gcc_cv_prog_cmp_skip=slowcompare
8084 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8085 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8087 else
8088 gcc_cv_prog_cmp_skip=gnucompare
8091 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8092 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8093 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8095 else
8096 gcc_cv_prog_cmp_skip=fastcompare
8100 rm t1 t2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8104 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8105 make_compare_target=$gcc_cv_prog_cmp_skip
8109 # See if we have the mktemp command.
8110 # Extract the first word of "mktemp", so it can be a program name with args.
8111 set dummy mktemp; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 if test -n "$have_mktemp_command"; then
8118 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_prog_have_mktemp_command="yes"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8131 done
8132 done
8133 IFS=$as_save_IFS
8135 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8138 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8139 if test -n "$have_mktemp_command"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8141 $as_echo "$have_mktemp_command" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 # See if makeinfo has been installed and is modern enough
8150 # that we can use it.
8152 # Extract the first word of "makeinfo", so it can be a program name with args.
8153 set dummy makeinfo; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 if test -n "$MAKEINFO"; then
8160 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_MAKEINFO="makeinfo"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8179 MAKEINFO=$ac_cv_prog_MAKEINFO
8180 if test -n "$MAKEINFO"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8182 $as_echo "$MAKEINFO" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8189 if test -n "$MAKEINFO"; then
8190 # Found it, now check the version.
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8192 $as_echo_n "checking for modern makeinfo... " >&6; }
8193 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8197 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8199 case $ac_prog_version in
8200 '') gcc_cv_prog_makeinfo_modern=no;;
8201 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8202 *) gcc_cv_prog_makeinfo_modern=no;;
8203 esac
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8207 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8208 else
8209 gcc_cv_prog_makeinfo_modern=no
8211 if test $gcc_cv_prog_makeinfo_modern = no; then
8212 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8215 if test $gcc_cv_prog_makeinfo_modern = no; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8217 *** Makeinfo is missing or too old.
8218 *** Info documentation will not be built." >&5
8219 $as_echo "$as_me: WARNING:
8220 *** Makeinfo is missing or too old.
8221 *** Info documentation will not be built." >&2;}
8222 BUILD_INFO=
8223 else
8224 BUILD_INFO=info
8228 # Is pod2man recent enough to regenerate manpages?
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8230 $as_echo_n "checking for recent Pod::Man... " >&6; }
8231 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 $as_echo "yes" >&6; }
8234 GENERATED_MANPAGES=generated-manpages
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 GENERATED_MANPAGES=
8242 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8244 # How about lex?
8245 for ac_prog in flex
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy $ac_prog; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_FLEX+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$FLEX"; then
8255 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_FLEX="$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8274 FLEX=$ac_cv_prog_FLEX
8275 if test -n "$FLEX"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8277 $as_echo "$FLEX" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8284 test -n "$FLEX" && break
8285 done
8286 test -n "$FLEX" || FLEX="$MISSING flex"
8289 # Bison?
8290 for ac_prog in bison
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy $ac_prog; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if test "${ac_cv_prog_BISON+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 if test -n "$BISON"; then
8300 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8301 else
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_prog_BISON="$ac_prog"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8313 done
8314 done
8315 IFS=$as_save_IFS
8319 BISON=$ac_cv_prog_BISON
8320 if test -n "$BISON"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8322 $as_echo "$BISON" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8329 test -n "$BISON" && break
8330 done
8331 test -n "$BISON" || BISON="$MISSING bison"
8334 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8335 # check for build == host before using them.
8337 # NM
8338 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8339 && test -d ../binutils ; then
8340 NM='${objdir}/../binutils/nm-new'
8341 else
8342 # Extract the first word of "nm", so it can be a program name with args.
8343 set dummy nm; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_NM+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$NM"; then
8350 ac_cv_prog_NM="$NM" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_NM="nm"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8363 done
8364 done
8365 IFS=$as_save_IFS
8367 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8370 NM=$ac_cv_prog_NM
8371 if test -n "$NM"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8373 $as_echo "$NM" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8382 # AR
8383 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8384 && test -d ../binutils ; then
8385 AR='${objdir}/../binutils/ar'
8386 else
8387 # Extract the first word of "ar", so it can be a program name with args.
8388 set dummy ar; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if test "${ac_cv_prog_AR+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 if test -n "$AR"; then
8395 ac_cv_prog_AR="$AR" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8404 ac_cv_prog_AR="ar"
8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8408 done
8409 done
8410 IFS=$as_save_IFS
8412 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8415 AR=$ac_cv_prog_AR
8416 if test -n "$AR"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8418 $as_echo "$AR" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8427 # The jit documentation looks better if built with sphinx, but can be
8428 # built with texinfo if sphinx is not available.
8429 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8430 # Extract the first word of "sphinx-build", so it can be a program name with args.
8431 set dummy sphinx-build; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 if test -n "$doc_build_sys"; then
8438 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447 ac_cv_prog_doc_build_sys="sphinx"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449 break 2
8451 done
8452 done
8453 IFS=$as_save_IFS
8455 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8458 doc_build_sys=$ac_cv_prog_doc_build_sys
8459 if test -n "$doc_build_sys"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8461 $as_echo "$doc_build_sys" >&6; }
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8469 # --------------------
8470 # Checks for C headers
8471 # --------------------
8473 # Need to reject headers which give warnings, so that the -Werror bootstrap
8474 # works later. *sigh* This needs to come before all header checks.
8476 ac_c_preproc_warn_flag=yes
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8479 $as_echo_n "checking for ANSI C header files... " >&6; }
8480 if test "${ac_cv_header_stdc+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 #include <stdlib.h>
8486 #include <stdarg.h>
8487 #include <string.h>
8488 #include <float.h>
8491 main ()
8495 return 0;
8497 _ACEOF
8498 if ac_fn_cxx_try_compile "$LINENO"; then :
8499 ac_cv_header_stdc=yes
8500 else
8501 ac_cv_header_stdc=no
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 if test $ac_cv_header_stdc = yes; then
8506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 #include <string.h>
8511 _ACEOF
8512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8513 $EGREP "memchr" >/dev/null 2>&1; then :
8515 else
8516 ac_cv_header_stdc=no
8518 rm -f conftest*
8522 if test $ac_cv_header_stdc = yes; then
8523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 #include <stdlib.h>
8528 _ACEOF
8529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8530 $EGREP "free" >/dev/null 2>&1; then :
8532 else
8533 ac_cv_header_stdc=no
8535 rm -f conftest*
8539 if test $ac_cv_header_stdc = yes; then
8540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8541 if test "$cross_compiling" = yes; then :
8543 else
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 #include <ctype.h>
8547 #include <stdlib.h>
8548 #if ((' ' & 0x0FF) == 0x020)
8549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8551 #else
8552 # define ISLOWER(c) \
8553 (('a' <= (c) && (c) <= 'i') \
8554 || ('j' <= (c) && (c) <= 'r') \
8555 || ('s' <= (c) && (c) <= 'z'))
8556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8557 #endif
8559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8561 main ()
8563 int i;
8564 for (i = 0; i < 256; i++)
8565 if (XOR (islower (i), ISLOWER (i))
8566 || toupper (i) != TOUPPER (i))
8567 return 2;
8568 return 0;
8570 _ACEOF
8571 if ac_fn_cxx_try_run "$LINENO"; then :
8573 else
8574 ac_cv_header_stdc=no
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577 conftest.$ac_objext conftest.beam conftest.$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8583 $as_echo "$ac_cv_header_stdc" >&6; }
8584 if test $ac_cv_header_stdc = yes; then
8586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8591 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8592 if test "${ac_cv_header_time+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #include <sys/types.h>
8598 #include <sys/time.h>
8599 #include <time.h>
8602 main ()
8604 if ((struct tm *) 0)
8605 return 0;
8607 return 0;
8609 _ACEOF
8610 if ac_fn_cxx_try_compile "$LINENO"; then :
8611 ac_cv_header_time=yes
8612 else
8613 ac_cv_header_time=no
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8618 $as_echo "$ac_cv_header_time" >&6; }
8619 if test $ac_cv_header_time = yes; then
8621 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8626 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8627 if test "${gcc_cv_header_string+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8632 #include <string.h>
8633 #include <strings.h>
8635 main ()
8639 return 0;
8641 _ACEOF
8642 if ac_fn_cxx_try_compile "$LINENO"; then :
8643 gcc_cv_header_string=yes
8644 else
8645 gcc_cv_header_string=no
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8650 $as_echo "$gcc_cv_header_string" >&6; }
8651 if test $gcc_cv_header_string = yes; then
8653 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8658 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8659 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 #include <sys/types.h>
8665 #include <sys/wait.h>
8666 #ifndef WEXITSTATUS
8667 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8668 #endif
8669 #ifndef WIFEXITED
8670 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8671 #endif
8674 main ()
8676 int s;
8677 wait (&s);
8678 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8680 return 0;
8682 _ACEOF
8683 if ac_fn_cxx_try_compile "$LINENO"; then :
8684 ac_cv_header_sys_wait_h=yes
8685 else
8686 ac_cv_header_sys_wait_h=no
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8691 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8692 if test $ac_cv_header_sys_wait_h = yes; then
8694 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8699 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8700 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 #include <sys/types.h>
8706 #include <termios.h>
8707 #ifdef TIOCGWINSZ
8709 #endif
8711 _ACEOF
8712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713 $EGREP "yes" >/dev/null 2>&1; then :
8714 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8715 else
8716 ac_cv_sys_tiocgwinsz_in_termios_h=no
8718 rm -f conftest*
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8722 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8724 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8726 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8727 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <sys/types.h>
8733 #include <sys/ioctl.h>
8734 #ifdef TIOCGWINSZ
8736 #endif
8738 _ACEOF
8739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8740 $EGREP "yes" >/dev/null 2>&1; then :
8741 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8742 else
8743 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8745 rm -f conftest*
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8749 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8751 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8753 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8758 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8759 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8760 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8761 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8762 do :
8763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8764 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8765 eval as_val=\$$as_ac_Header
8766 if test "x$as_val" = x""yes; then :
8767 cat >>confdefs.h <<_ACEOF
8768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8769 _ACEOF
8772 done
8775 # Check for thread headers.
8776 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8777 if test "x$ac_cv_header_thread_h" = x""yes; then :
8778 have_thread_h=yes
8779 else
8780 have_thread_h=
8783 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8784 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8785 have_pthread_h=yes
8786 else
8787 have_pthread_h=
8791 # These tests can't be done till we know if we have limits.h.
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8793 $as_echo_n "checking for CHAR_BIT... " >&6; }
8794 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 #ifdef HAVE_LIMITS_H
8800 #include <limits.h>
8801 #endif
8802 #ifdef CHAR_BIT
8803 found
8804 #endif
8805 _ACEOF
8806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8807 $EGREP "found" >/dev/null 2>&1; then :
8808 gcc_cv_decl_char_bit=yes
8809 else
8810 gcc_cv_decl_char_bit=no
8812 rm -f conftest*
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8817 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8818 if test $gcc_cv_decl_char_bit = no; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8820 $as_echo_n "checking number of bits in a byte... " >&6; }
8821 if test "${gcc_cv_c_nbby+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8825 gcc_cv_c_nbby=
8826 while test $i -lt 65; do
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8831 main ()
8833 switch(0) {
8834 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8835 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8838 return 0;
8840 _ACEOF
8841 if ac_fn_cxx_try_compile "$LINENO"; then :
8842 gcc_cv_c_nbby=$i; break
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 i=`expr $i + 1`
8846 done
8847 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8851 $as_echo "$gcc_cv_c_nbby" >&6; }
8852 if test $gcc_cv_c_nbby = failed; then
8853 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8854 else
8856 cat >>confdefs.h <<_ACEOF
8857 #define CHAR_BIT $gcc_cv_c_nbby
8858 _ACEOF
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8863 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8864 if test "${ac_cv_c_bigendian+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 ac_cv_c_bigendian=unknown
8868 # See if we're dealing with a universal compiler.
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #ifndef __APPLE_CC__
8872 not a universal capable compiler
8873 #endif
8874 typedef int dummy;
8876 _ACEOF
8877 if ac_fn_cxx_try_compile "$LINENO"; then :
8879 # Check for potential -arch flags. It is not universal unless
8880 # there are at least two -arch flags with different values.
8881 ac_arch=
8882 ac_prev=
8883 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8884 if test -n "$ac_prev"; then
8885 case $ac_word in
8886 i?86 | x86_64 | ppc | ppc64)
8887 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8888 ac_arch=$ac_word
8889 else
8890 ac_cv_c_bigendian=universal
8891 break
8894 esac
8895 ac_prev=
8896 elif test "x$ac_word" = "x-arch"; then
8897 ac_prev=arch
8899 done
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 if test $ac_cv_c_bigendian = unknown; then
8903 # See if sys/param.h defines the BYTE_ORDER macro.
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #include <sys/types.h>
8907 #include <sys/param.h>
8910 main ()
8912 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8913 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8914 && LITTLE_ENDIAN)
8915 bogus endian macros
8916 #endif
8919 return 0;
8921 _ACEOF
8922 if ac_fn_cxx_try_compile "$LINENO"; then :
8923 # It does; now see whether it defined to BIG_ENDIAN or not.
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 #include <sys/param.h>
8930 main ()
8932 #if BYTE_ORDER != BIG_ENDIAN
8933 not big endian
8934 #endif
8937 return 0;
8939 _ACEOF
8940 if ac_fn_cxx_try_compile "$LINENO"; then :
8941 ac_cv_c_bigendian=yes
8942 else
8943 ac_cv_c_bigendian=no
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 if test $ac_cv_c_bigendian = unknown; then
8950 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 #include <limits.h>
8956 main ()
8958 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8959 bogus endian macros
8960 #endif
8963 return 0;
8965 _ACEOF
8966 if ac_fn_cxx_try_compile "$LINENO"; then :
8967 # It does; now see whether it defined to _BIG_ENDIAN or not.
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 #include <limits.h>
8973 main ()
8975 #ifndef _BIG_ENDIAN
8976 not big endian
8977 #endif
8980 return 0;
8982 _ACEOF
8983 if ac_fn_cxx_try_compile "$LINENO"; then :
8984 ac_cv_c_bigendian=yes
8985 else
8986 ac_cv_c_bigendian=no
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 if test $ac_cv_c_bigendian = unknown; then
8993 # Compile a test program.
8994 if test "$cross_compiling" = yes; then :
8995 # Try to guess by grepping values from an object file.
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 short int ascii_mm[] =
8999 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9000 short int ascii_ii[] =
9001 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9002 int use_ascii (int i) {
9003 return ascii_mm[i] + ascii_ii[i];
9005 short int ebcdic_ii[] =
9006 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9007 short int ebcdic_mm[] =
9008 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9009 int use_ebcdic (int i) {
9010 return ebcdic_mm[i] + ebcdic_ii[i];
9012 extern int foo;
9015 main ()
9017 return use_ascii (foo) == use_ebcdic (foo);
9019 return 0;
9021 _ACEOF
9022 if ac_fn_cxx_try_compile "$LINENO"; then :
9023 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9024 ac_cv_c_bigendian=yes
9026 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9027 if test "$ac_cv_c_bigendian" = unknown; then
9028 ac_cv_c_bigendian=no
9029 else
9030 # finding both strings is unlikely to happen, but who knows?
9031 ac_cv_c_bigendian=unknown
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 else
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 $ac_includes_default
9041 main ()
9044 /* Are we little or big endian? From Harbison&Steele. */
9045 union
9047 long int l;
9048 char c[sizeof (long int)];
9049 } u;
9050 u.l = 1;
9051 return u.c[sizeof (long int) - 1] == 1;
9054 return 0;
9056 _ACEOF
9057 if ac_fn_cxx_try_run "$LINENO"; then :
9058 ac_cv_c_bigendian=no
9059 else
9060 ac_cv_c_bigendian=yes
9062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9063 conftest.$ac_objext conftest.beam conftest.$ac_ext
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9069 $as_echo "$ac_cv_c_bigendian" >&6; }
9070 case $ac_cv_c_bigendian in #(
9071 yes)
9072 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9073 ;; #(
9075 ;; #(
9076 universal)
9078 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9080 ;; #(
9082 as_fn_error "unknown endianness
9083 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9084 esac
9087 # ----------------------
9088 # Checks for C++ headers
9089 # ----------------------
9091 ac_ext=cpp
9092 ac_cpp='$CXXCPP $CPPFLAGS'
9093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9097 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9098 if test -z "$CXXCPP"; then
9099 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 # Double quotes because CXXCPP needs to be expanded
9103 for CXXCPP in "$CXX -E" "/lib/cpp"
9105 ac_preproc_ok=false
9106 for ac_cxx_preproc_warn_flag in '' yes
9108 # Use a header file that comes with gcc, so configuring glibc
9109 # with a fresh cross-compiler works.
9110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9111 # <limits.h> exists even on freestanding compilers.
9112 # On the NeXT, cc -E runs the code through the compiler's parser,
9113 # not just through cpp. "Syntax error" is here to catch this case.
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 #ifdef __STDC__
9117 # include <limits.h>
9118 #else
9119 # include <assert.h>
9120 #endif
9121 Syntax error
9122 _ACEOF
9123 if ac_fn_cxx_try_cpp "$LINENO"; then :
9125 else
9126 # Broken: fails on valid input.
9127 continue
9129 rm -f conftest.err conftest.$ac_ext
9131 # OK, works on sane cases. Now check whether nonexistent headers
9132 # can be detected and how.
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <ac_nonexistent.h>
9136 _ACEOF
9137 if ac_fn_cxx_try_cpp "$LINENO"; then :
9138 # Broken: success on invalid input.
9139 continue
9140 else
9141 # Passes both tests.
9142 ac_preproc_ok=:
9143 break
9145 rm -f conftest.err conftest.$ac_ext
9147 done
9148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9149 rm -f conftest.err conftest.$ac_ext
9150 if $ac_preproc_ok; then :
9151 break
9154 done
9155 ac_cv_prog_CXXCPP=$CXXCPP
9158 CXXCPP=$ac_cv_prog_CXXCPP
9159 else
9160 ac_cv_prog_CXXCPP=$CXXCPP
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9163 $as_echo "$CXXCPP" >&6; }
9164 ac_preproc_ok=false
9165 for ac_cxx_preproc_warn_flag in '' yes
9167 # Use a header file that comes with gcc, so configuring glibc
9168 # with a fresh cross-compiler works.
9169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9170 # <limits.h> exists even on freestanding compilers.
9171 # On the NeXT, cc -E runs the code through the compiler's parser,
9172 # not just through cpp. "Syntax error" is here to catch this case.
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 #ifdef __STDC__
9176 # include <limits.h>
9177 #else
9178 # include <assert.h>
9179 #endif
9180 Syntax error
9181 _ACEOF
9182 if ac_fn_cxx_try_cpp "$LINENO"; then :
9184 else
9185 # Broken: fails on valid input.
9186 continue
9188 rm -f conftest.err conftest.$ac_ext
9190 # OK, works on sane cases. Now check whether nonexistent headers
9191 # can be detected and how.
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 #include <ac_nonexistent.h>
9195 _ACEOF
9196 if ac_fn_cxx_try_cpp "$LINENO"; then :
9197 # Broken: success on invalid input.
9198 continue
9199 else
9200 # Passes both tests.
9201 ac_preproc_ok=:
9202 break
9204 rm -f conftest.err conftest.$ac_ext
9206 done
9207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9208 rm -f conftest.err conftest.$ac_ext
9209 if $ac_preproc_ok; then :
9211 else
9212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9215 See \`config.log' for more details." >&5
9216 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9217 See \`config.log' for more details." >&2;}; }
9220 ac_ext=cpp
9221 ac_cpp='$CXXCPP $CPPFLAGS'
9222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9227 for ac_header in unordered_map
9228 do :
9229 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9230 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9231 cat >>confdefs.h <<_ACEOF
9232 #define HAVE_UNORDERED_MAP 1
9233 _ACEOF
9236 done
9238 for ac_header in tr1/unordered_map
9239 do :
9240 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9241 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9242 cat >>confdefs.h <<_ACEOF
9243 #define HAVE_TR1_UNORDERED_MAP 1
9244 _ACEOF
9247 done
9249 for ac_header in ext/hash_map
9250 do :
9251 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9252 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9253 cat >>confdefs.h <<_ACEOF
9254 #define HAVE_EXT_HASH_MAP 1
9255 _ACEOF
9258 done
9261 # --------
9262 # Dependency checking.
9263 # --------
9265 rm -rf .tst 2>/dev/null
9266 mkdir .tst 2>/dev/null
9267 if test -d .tst; then
9268 am__leading_dot=.
9269 else
9270 am__leading_dot=_
9272 rmdir .tst 2>/dev/null
9274 DEPDIR="${am__leading_dot}deps"
9276 ac_config_commands="$ac_config_commands depdir"
9279 ac_config_commands="$ac_config_commands gccdepdir"
9282 depcc="$CXX" am_compiler_list=
9284 am_depcomp=$ac_aux_dir/depcomp
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9286 $as_echo_n "checking dependency style of $depcc... " >&6; }
9287 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 if test -f "$am_depcomp"; then
9291 # We make a subdir and do the tests there. Otherwise we can end up
9292 # making bogus files that we don't know about and never remove. For
9293 # instance it was reported that on HP-UX the gcc test will end up
9294 # making a dummy file named `D' -- because `-MD' means `put the output
9295 # in D'.
9296 mkdir conftest.dir
9297 # Copy depcomp to subdir because otherwise we won't find it if we're
9298 # using a relative directory.
9299 cp "$am_depcomp" conftest.dir
9300 cd conftest.dir
9301 # We will build objects and dependencies in a subdirectory because
9302 # it helps to detect inapplicable dependency modes. For instance
9303 # both Tru64's cc and ICC support -MD to output dependencies as a
9304 # side effect of compilation, but ICC will put the dependencies in
9305 # the current directory while Tru64 will put them in the object
9306 # directory.
9307 mkdir sub
9309 am_cv_CXX_dependencies_compiler_type=none
9310 if test "$am_compiler_list" = ""; then
9311 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9313 for depmode in $am_compiler_list; do
9314 if test $depmode = none; then break; fi
9316 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9317 # Setup a source with many dependencies, because some compilers
9318 # like to wrap large dependency lists on column 80 (with \), and
9319 # we should not choose a depcomp mode which is confused by this.
9321 # We need to recreate these files for each test, as the compiler may
9322 # overwrite some of them when testing with obscure command lines.
9323 # This happens at least with the AIX C compiler.
9324 : > sub/conftest.c
9325 for i in 1 2 3 4 5 6; do
9326 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9327 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9328 # Solaris 8's {/usr,}/bin/sh.
9329 touch sub/conftst$i.h
9330 done
9331 echo "include sub/conftest.Po" > confmf
9333 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9334 # mode. It turns out that the SunPro C++ compiler does not properly
9335 # handle `-M -o', and we need to detect this.
9336 depcmd="depmode=$depmode \
9337 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9339 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9340 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9341 if env $depcmd > conftest.err 2>&1 &&
9342 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9343 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9344 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9345 # icc doesn't choke on unknown options, it will just issue warnings
9346 # or remarks (even with -Werror). So we grep stderr for any message
9347 # that says an option was ignored or not supported.
9348 # When given -MP, icc 7.0 and 7.1 complain thusly:
9349 # icc: Command line warning: ignoring option '-M'; no argument required
9350 # The diagnosis changed in icc 8.0:
9351 # icc: Command line remark: option '-MP' not supported
9352 if (grep 'ignoring option' conftest.err ||
9353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9354 am_cv_CXX_dependencies_compiler_type=$depmode
9355 $as_echo "$as_me:$LINENO: success" >&5
9356 break
9359 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9360 sed -e 's/^/| /' < conftest.err >&5
9361 done
9363 cd ..
9364 rm -rf conftest.dir
9365 else
9366 am_cv_CXX_dependencies_compiler_type=none
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9371 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9372 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9373 then as_fn_error "no usable dependency style found" "$LINENO" 5
9374 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9379 # --------
9380 # UNSORTED
9381 # --------
9384 # These libraries may be used by collect2.
9385 # We may need a special search path to get them linked.
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9387 $as_echo_n "checking for collect2 libraries... " >&6; }
9388 if test "${gcc_cv_collect2_libs+set}" = set; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 save_LIBS="$LIBS"
9392 for libs in '' -lld -lmld \
9393 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9394 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9396 LIBS="$libs"
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 char ldopen ();
9408 main ()
9410 return ldopen ();
9412 return 0;
9414 _ACEOF
9415 if ac_fn_cxx_try_link "$LINENO"; then :
9416 gcc_cv_collect2_libs="$libs"; break
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 done
9421 LIBS="$save_LIBS"
9422 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9425 $as_echo "$gcc_cv_collect2_libs" >&6; }
9426 case $gcc_cv_collect2_libs in
9427 "none required") ;;
9428 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9429 esac
9432 # When building Ada code on Alpha, we need exc_resume which is usually in
9433 # -lexc. So test for it.
9434 save_LIBS="$LIBS"
9435 LIBS=
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9437 $as_echo_n "checking for library containing exc_resume... " >&6; }
9438 if test "${ac_cv_search_exc_resume+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 ac_func_search_save_LIBS=$LIBS
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 char exc_resume ();
9453 main ()
9455 return exc_resume ();
9457 return 0;
9459 _ACEOF
9460 for ac_lib in '' exc; do
9461 if test -z "$ac_lib"; then
9462 ac_res="none required"
9463 else
9464 ac_res=-l$ac_lib
9465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9467 if ac_fn_cxx_try_link "$LINENO"; then :
9468 ac_cv_search_exc_resume=$ac_res
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext
9472 if test "${ac_cv_search_exc_resume+set}" = set; then :
9473 break
9475 done
9476 if test "${ac_cv_search_exc_resume+set}" = set; then :
9478 else
9479 ac_cv_search_exc_resume=no
9481 rm conftest.$ac_ext
9482 LIBS=$ac_func_search_save_LIBS
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9485 $as_echo "$ac_cv_search_exc_resume" >&6; }
9486 ac_res=$ac_cv_search_exc_resume
9487 if test "$ac_res" != no; then :
9488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9492 GNAT_LIBEXC="$LIBS"
9493 LIBS="$save_LIBS"
9496 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9497 save_LIBS="$LIBS"
9498 LIBS=
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9500 $as_echo_n "checking for library containing kstat_open... " >&6; }
9501 if test "${ac_cv_search_kstat_open+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 ac_func_search_save_LIBS=$LIBS
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9508 /* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9511 #ifdef __cplusplus
9512 extern "C"
9513 #endif
9514 char kstat_open ();
9516 main ()
9518 return kstat_open ();
9520 return 0;
9522 _ACEOF
9523 for ac_lib in '' kstat; do
9524 if test -z "$ac_lib"; then
9525 ac_res="none required"
9526 else
9527 ac_res=-l$ac_lib
9528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9530 if ac_fn_cxx_try_link "$LINENO"; then :
9531 ac_cv_search_kstat_open=$ac_res
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext
9535 if test "${ac_cv_search_kstat_open+set}" = set; then :
9536 break
9538 done
9539 if test "${ac_cv_search_kstat_open+set}" = set; then :
9541 else
9542 ac_cv_search_kstat_open=no
9544 rm conftest.$ac_ext
9545 LIBS=$ac_func_search_save_LIBS
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9548 $as_echo "$ac_cv_search_kstat_open" >&6; }
9549 ac_res=$ac_cv_search_kstat_open
9550 if test "$ac_res" != no; then :
9551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9555 EXTRA_GCC_LIBS="$LIBS"
9556 LIBS="$save_LIBS"
9559 # Some systems put ldexp and frexp in libm instead of libc; assume
9560 # they're both in the same place. jcf-dump needs them.
9561 save_LIBS="$LIBS"
9562 LIBS=
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9564 $as_echo_n "checking for library containing ldexp... " >&6; }
9565 if test "${ac_cv_search_ldexp+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 ac_func_search_save_LIBS=$LIBS
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 char ldexp ();
9580 main ()
9582 return ldexp ();
9584 return 0;
9586 _ACEOF
9587 for ac_lib in '' m; do
9588 if test -z "$ac_lib"; then
9589 ac_res="none required"
9590 else
9591 ac_res=-l$ac_lib
9592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9594 if ac_fn_cxx_try_link "$LINENO"; then :
9595 ac_cv_search_ldexp=$ac_res
9597 rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext
9599 if test "${ac_cv_search_ldexp+set}" = set; then :
9600 break
9602 done
9603 if test "${ac_cv_search_ldexp+set}" = set; then :
9605 else
9606 ac_cv_search_ldexp=no
9608 rm conftest.$ac_ext
9609 LIBS=$ac_func_search_save_LIBS
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9612 $as_echo "$ac_cv_search_ldexp" >&6; }
9613 ac_res=$ac_cv_search_ldexp
9614 if test "$ac_res" != no; then :
9615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9619 LDEXP_LIB="$LIBS"
9620 LIBS="$save_LIBS"
9623 # Use <inttypes.h> only if it exists,
9624 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9625 # PRId64
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9627 $as_echo_n "checking for inttypes.h... " >&6; }
9628 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 #define __STDC_FORMAT_MACROS
9634 #include <sys/types.h>
9635 #include <inttypes.h>
9637 main ()
9639 intmax_t i = -1;
9640 #ifndef PRId64
9641 choke me
9642 #endif
9644 return 0;
9646 _ACEOF
9647 if ac_fn_cxx_try_compile "$LINENO"; then :
9648 gcc_cv_header_inttypes_h=yes
9649 else
9650 gcc_cv_header_inttypes_h=no
9652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9656 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9657 if test $gcc_cv_header_inttypes_h = yes; then
9659 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9665 for ac_func in times clock kill getrlimit setrlimit atoq \
9666 popen sysconf strsignal getrusage nl_langinfo \
9667 gettimeofday mbstowcs wcswidth mmap setlocale \
9668 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
9669 do :
9670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9671 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9672 eval as_val=\$$as_ac_var
9673 if test "x$as_val" = x""yes; then :
9674 cat >>confdefs.h <<_ACEOF
9675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9676 _ACEOF
9679 done
9682 if test x$ac_cv_func_mbstowcs = xyes; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9684 $as_echo_n "checking whether mbstowcs works... " >&6; }
9685 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 if test "$cross_compiling" = yes; then :
9689 gcc_cv_func_mbstowcs_works=yes
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 #include <stdlib.h>
9694 int main()
9696 mbstowcs(0, "", 0);
9697 return 0;
9699 _ACEOF
9700 if ac_fn_cxx_try_run "$LINENO"; then :
9701 gcc_cv_func_mbstowcs_works=yes
9702 else
9703 gcc_cv_func_mbstowcs_works=no
9705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9706 conftest.$ac_objext conftest.beam conftest.$ac_ext
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9711 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9712 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9714 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9719 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9720 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9722 else
9724 cat >>confdefs.h <<_ACEOF
9725 #define ssize_t int
9726 _ACEOF
9730 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9731 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9733 else
9735 cat >>confdefs.h <<_ACEOF
9736 #define caddr_t char *
9737 _ACEOF
9743 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9744 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9745 gcc_header_sys_mman_h=yes
9746 else
9747 gcc_header_sys_mman_h=no
9750 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9751 if test "x$ac_cv_func_mmap" = x""yes; then :
9752 gcc_func_mmap=yes
9753 else
9754 gcc_func_mmap=no
9757 if test "$gcc_header_sys_mman_h" != yes \
9758 || test "$gcc_func_mmap" != yes; then
9759 gcc_cv_func_mmap_file=no
9760 gcc_cv_func_mmap_dev_zero=no
9761 gcc_cv_func_mmap_anon=no
9762 else
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9764 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9765 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 # Add a system to this blacklist if
9769 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9770 # memory area containing the same data that you'd get if you applied
9771 # read() to the same fd. The only system known to have a problem here
9772 # is VMS, where text files have record structure.
9773 case "$host_os" in
9774 *vms* | ultrix*)
9775 gcc_cv_func_mmap_file=no ;;
9777 gcc_cv_func_mmap_file=yes;;
9778 esac
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9781 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9783 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9784 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 # Add a system to this blacklist if it has mmap() but /dev/zero
9788 # does not exist, or if mmapping /dev/zero does not give anonymous
9789 # zeroed pages with both the following properties:
9790 # 1. If you map N consecutive pages in with one call, and then
9791 # unmap any subset of those pages, the pages that were not
9792 # explicitly unmapped remain accessible.
9793 # 2. If you map two adjacent blocks of memory and then unmap them
9794 # both at once, they must both go away.
9795 # Systems known to be in this category are Windows (all variants),
9796 # VMS, and Darwin.
9797 case "$host_os" in
9798 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9799 gcc_cv_func_mmap_dev_zero=no ;;
9801 gcc_cv_func_mmap_dev_zero=yes;;
9802 esac
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9805 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9807 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9809 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9810 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9812 else
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9815 #include <sys/types.h>
9816 #include <sys/mman.h>
9817 #include <unistd.h>
9819 #ifndef MAP_ANONYMOUS
9820 #define MAP_ANONYMOUS MAP_ANON
9821 #endif
9824 main ()
9826 int n = MAP_ANONYMOUS;
9828 return 0;
9830 _ACEOF
9831 if ac_fn_cxx_try_compile "$LINENO"; then :
9832 gcc_cv_decl_map_anon=yes
9833 else
9834 gcc_cv_decl_map_anon=no
9836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9839 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9841 if test $gcc_cv_decl_map_anon = no; then
9842 gcc_cv_func_mmap_anon=no
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9845 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9846 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9850 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9851 # doesn't give anonymous zeroed pages with the same properties listed
9852 # above for use of /dev/zero.
9853 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9854 case "$host_os" in
9855 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9856 gcc_cv_func_mmap_anon=no ;;
9858 gcc_cv_func_mmap_anon=yes;;
9859 esac
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9862 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9866 if test $gcc_cv_func_mmap_file = yes; then
9868 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9871 if test $gcc_cv_func_mmap_dev_zero = yes; then
9873 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9876 if test $gcc_cv_func_mmap_anon = yes; then
9878 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9883 case "${host}" in
9884 *-*-*vms*)
9885 # Under VMS, vfork works very differently than on Unix. The standard test
9886 # won't work, and it isn't easily adaptable. It makes more sense to
9887 # just force it.
9888 ac_cv_func_vfork_works=yes
9890 esac
9891 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9892 if test "x$ac_cv_type_pid_t" = x""yes; then :
9894 else
9896 cat >>confdefs.h <<_ACEOF
9897 #define pid_t int
9898 _ACEOF
9902 for ac_header in vfork.h
9903 do :
9904 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9905 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9906 cat >>confdefs.h <<_ACEOF
9907 #define HAVE_VFORK_H 1
9908 _ACEOF
9911 done
9913 for ac_func in fork vfork
9914 do :
9915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9916 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9917 eval as_val=\$$as_ac_var
9918 if test "x$as_val" = x""yes; then :
9919 cat >>confdefs.h <<_ACEOF
9920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9921 _ACEOF
9924 done
9926 if test "x$ac_cv_func_fork" = xyes; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9928 $as_echo_n "checking for working fork... " >&6; }
9929 if test "${ac_cv_func_fork_works+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 if test "$cross_compiling" = yes; then :
9933 ac_cv_func_fork_works=cross
9934 else
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 $ac_includes_default
9939 main ()
9942 /* By Ruediger Kuhlmann. */
9943 return fork () < 0;
9946 return 0;
9948 _ACEOF
9949 if ac_fn_cxx_try_run "$LINENO"; then :
9950 ac_cv_func_fork_works=yes
9951 else
9952 ac_cv_func_fork_works=no
9954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9955 conftest.$ac_objext conftest.beam conftest.$ac_ext
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9960 $as_echo "$ac_cv_func_fork_works" >&6; }
9962 else
9963 ac_cv_func_fork_works=$ac_cv_func_fork
9965 if test "x$ac_cv_func_fork_works" = xcross; then
9966 case $host in
9967 *-*-amigaos* | *-*-msdosdjgpp*)
9968 # Override, as these systems have only a dummy fork() stub
9969 ac_cv_func_fork_works=no
9972 ac_cv_func_fork_works=yes
9974 esac
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9976 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9978 ac_cv_func_vfork_works=$ac_cv_func_vfork
9979 if test "x$ac_cv_func_vfork" = xyes; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9981 $as_echo_n "checking for working vfork... " >&6; }
9982 if test "${ac_cv_func_vfork_works+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 if test "$cross_compiling" = yes; then :
9986 ac_cv_func_vfork_works=cross
9987 else
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 /* Thanks to Paul Eggert for this test. */
9991 $ac_includes_default
9992 #include <sys/wait.h>
9993 #ifdef HAVE_VFORK_H
9994 # include <vfork.h>
9995 #endif
9996 /* On some sparc systems, changes by the child to local and incoming
9997 argument registers are propagated back to the parent. The compiler
9998 is told about this with #include <vfork.h>, but some compilers
9999 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10000 static variable whose address is put into a register that is
10001 clobbered by the vfork. */
10002 static void
10003 #ifdef __cplusplus
10004 sparc_address_test (int arg)
10005 # else
10006 sparc_address_test (arg) int arg;
10007 #endif
10009 static pid_t child;
10010 if (!child) {
10011 child = vfork ();
10012 if (child < 0) {
10013 perror ("vfork");
10014 _exit(2);
10016 if (!child) {
10017 arg = getpid();
10018 write(-1, "", 0);
10019 _exit (arg);
10025 main ()
10027 pid_t parent = getpid ();
10028 pid_t child;
10030 sparc_address_test (0);
10032 child = vfork ();
10034 if (child == 0) {
10035 /* Here is another test for sparc vfork register problems. This
10036 test uses lots of local variables, at least as many local
10037 variables as main has allocated so far including compiler
10038 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10039 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10040 reuse the register of parent for one of the local variables,
10041 since it will think that parent can't possibly be used any more
10042 in this routine. Assigning to the local variable will thus
10043 munge parent in the parent process. */
10044 pid_t
10045 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10046 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10047 /* Convince the compiler that p..p7 are live; otherwise, it might
10048 use the same hardware register for all 8 local variables. */
10049 if (p != p1 || p != p2 || p != p3 || p != p4
10050 || p != p5 || p != p6 || p != p7)
10051 _exit(1);
10053 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10054 from child file descriptors. If the child closes a descriptor
10055 before it execs or exits, this munges the parent's descriptor
10056 as well. Test for this by closing stdout in the child. */
10057 _exit(close(fileno(stdout)) != 0);
10058 } else {
10059 int status;
10060 struct stat st;
10062 while (wait(&status) != child)
10064 return (
10065 /* Was there some problem with vforking? */
10066 child < 0
10068 /* Did the child fail? (This shouldn't happen.) */
10069 || status
10071 /* Did the vfork/compiler bug occur? */
10072 || parent != getpid()
10074 /* Did the file descriptor bug occur? */
10075 || fstat(fileno(stdout), &st) != 0
10079 _ACEOF
10080 if ac_fn_cxx_try_run "$LINENO"; then :
10081 ac_cv_func_vfork_works=yes
10082 else
10083 ac_cv_func_vfork_works=no
10085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10086 conftest.$ac_objext conftest.beam conftest.$ac_ext
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10091 $as_echo "$ac_cv_func_vfork_works" >&6; }
10094 if test "x$ac_cv_func_fork_works" = xcross; then
10095 ac_cv_func_vfork_works=$ac_cv_func_vfork
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10097 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10100 if test "x$ac_cv_func_vfork_works" = xyes; then
10102 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10104 else
10106 $as_echo "#define vfork fork" >>confdefs.h
10109 if test "x$ac_cv_func_fork_works" = xyes; then
10111 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10117 if test "X$prefix" = "XNONE"; then
10118 acl_final_prefix="$ac_default_prefix"
10119 else
10120 acl_final_prefix="$prefix"
10122 if test "X$exec_prefix" = "XNONE"; then
10123 acl_final_exec_prefix='${prefix}'
10124 else
10125 acl_final_exec_prefix="$exec_prefix"
10127 acl_save_prefix="$prefix"
10128 prefix="$acl_final_prefix"
10129 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10130 prefix="$acl_save_prefix"
10133 # Check whether --with-gnu-ld was given.
10134 if test "${with_gnu_ld+set}" = set; then :
10135 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10136 else
10137 with_gnu_ld=no
10140 # Prepare PATH_SEPARATOR.
10141 # The user is always right.
10142 if test "${PATH_SEPARATOR+set}" != set; then
10143 echo "#! /bin/sh" >conf$$.sh
10144 echo "exit 0" >>conf$$.sh
10145 chmod +x conf$$.sh
10146 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10147 PATH_SEPARATOR=';'
10148 else
10149 PATH_SEPARATOR=:
10151 rm -f conf$$.sh
10153 ac_prog=ld
10154 if test "$GCC" = yes; then
10155 # Check if gcc -print-prog-name=ld gives a path.
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10157 $as_echo_n "checking for ld used by GCC... " >&6; }
10158 case $host in
10159 *-*-mingw*)
10160 # gcc leaves a trailing carriage return which upsets mingw
10161 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10163 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10164 esac
10165 case $ac_prog in
10166 # Accept absolute paths.
10167 [\\/]* | [A-Za-z]:[\\/]*)
10168 re_direlt='/[^/][^/]*/\.\./'
10169 # Canonicalize the path of ld
10170 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10171 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10172 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10173 done
10174 test -z "$LD" && LD="$ac_prog"
10177 # If it fails, then pretend we aren't using GCC.
10178 ac_prog=ld
10181 # If it is relative, then search for the first ld in PATH.
10182 with_gnu_ld=unknown
10184 esac
10185 elif test "$with_gnu_ld" = yes; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10187 $as_echo_n "checking for GNU ld... " >&6; }
10188 else
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10190 $as_echo_n "checking for non-GNU ld... " >&6; }
10192 if test "${acl_cv_path_LD+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 if test -z "$LD"; then
10196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10197 for ac_dir in $PATH; do
10198 test -z "$ac_dir" && ac_dir=.
10199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10200 acl_cv_path_LD="$ac_dir/$ac_prog"
10201 # Check to see if the program is GNU ld. I'd rather use --version,
10202 # but apparently some GNU ld's only accept -v.
10203 # Break only if it was the GNU/non-GNU ld that we prefer.
10204 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10205 test "$with_gnu_ld" != no && break
10206 else
10207 test "$with_gnu_ld" != yes && break
10210 done
10211 IFS="$ac_save_ifs"
10212 else
10213 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10217 LD="$acl_cv_path_LD"
10218 if test -n "$LD"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10220 $as_echo "$LD" >&6; }
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10225 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10227 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10228 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10232 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10233 acl_cv_prog_gnu_ld=yes
10234 else
10235 acl_cv_prog_gnu_ld=no
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10239 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10240 with_gnu_ld=$acl_cv_prog_gnu_ld
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10245 $as_echo_n "checking for shared library run path origin... " >&6; }
10246 if test "${acl_cv_rpath+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10250 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10251 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10252 . ./conftest.sh
10253 rm -f ./conftest.sh
10254 acl_cv_rpath=done
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10258 $as_echo "$acl_cv_rpath" >&6; }
10259 wl="$acl_cv_wl"
10260 libext="$acl_cv_libext"
10261 shlibext="$acl_cv_shlibext"
10262 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10263 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10264 hardcode_direct="$acl_cv_hardcode_direct"
10265 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10266 # Check whether --enable-rpath was given.
10267 if test "${enable_rpath+set}" = set; then :
10268 enableval=$enable_rpath; :
10269 else
10270 enable_rpath=yes
10280 use_additional=yes
10282 acl_save_prefix="$prefix"
10283 prefix="$acl_final_prefix"
10284 acl_save_exec_prefix="$exec_prefix"
10285 exec_prefix="$acl_final_exec_prefix"
10287 eval additional_includedir=\"$includedir\"
10288 eval additional_libdir=\"$libdir\"
10290 exec_prefix="$acl_save_exec_prefix"
10291 prefix="$acl_save_prefix"
10294 # Check whether --with-libiconv-prefix was given.
10295 if test "${with_libiconv_prefix+set}" = set; then :
10296 withval=$with_libiconv_prefix;
10297 if test "X$withval" = "Xno"; then
10298 use_additional=no
10299 else
10300 if test "X$withval" = "X"; then
10302 acl_save_prefix="$prefix"
10303 prefix="$acl_final_prefix"
10304 acl_save_exec_prefix="$exec_prefix"
10305 exec_prefix="$acl_final_exec_prefix"
10307 eval additional_includedir=\"$includedir\"
10308 eval additional_libdir=\"$libdir\"
10310 exec_prefix="$acl_save_exec_prefix"
10311 prefix="$acl_save_prefix"
10313 else
10314 additional_includedir="$withval/include"
10315 additional_libdir="$withval/lib"
10321 LIBICONV=
10322 LTLIBICONV=
10323 INCICONV=
10324 rpathdirs=
10325 ltrpathdirs=
10326 names_already_handled=
10327 names_next_round='iconv '
10328 while test -n "$names_next_round"; do
10329 names_this_round="$names_next_round"
10330 names_next_round=
10331 for name in $names_this_round; do
10332 already_handled=
10333 for n in $names_already_handled; do
10334 if test "$n" = "$name"; then
10335 already_handled=yes
10336 break
10338 done
10339 if test -z "$already_handled"; then
10340 names_already_handled="$names_already_handled $name"
10341 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10342 eval value=\"\$HAVE_LIB$uppername\"
10343 if test -n "$value"; then
10344 if test "$value" = yes; then
10345 eval value=\"\$LIB$uppername\"
10346 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10347 eval value=\"\$LTLIB$uppername\"
10348 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10349 else
10352 else
10353 found_dir=
10354 found_la=
10355 found_so=
10356 found_a=
10357 if test $use_additional = yes; then
10358 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10359 found_dir="$additional_libdir"
10360 found_so="$additional_libdir/lib$name.$shlibext"
10361 if test -f "$additional_libdir/lib$name.la"; then
10362 found_la="$additional_libdir/lib$name.la"
10364 else
10365 if test -f "$additional_libdir/lib$name.$libext"; then
10366 found_dir="$additional_libdir"
10367 found_a="$additional_libdir/lib$name.$libext"
10368 if test -f "$additional_libdir/lib$name.la"; then
10369 found_la="$additional_libdir/lib$name.la"
10374 if test "X$found_dir" = "X"; then
10375 for x in $LDFLAGS $LTLIBICONV; do
10377 acl_save_prefix="$prefix"
10378 prefix="$acl_final_prefix"
10379 acl_save_exec_prefix="$exec_prefix"
10380 exec_prefix="$acl_final_exec_prefix"
10381 eval x=\"$x\"
10382 exec_prefix="$acl_save_exec_prefix"
10383 prefix="$acl_save_prefix"
10385 case "$x" in
10386 -L*)
10387 dir=`echo "X$x" | sed -e 's/^X-L//'`
10388 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10389 found_dir="$dir"
10390 found_so="$dir/lib$name.$shlibext"
10391 if test -f "$dir/lib$name.la"; then
10392 found_la="$dir/lib$name.la"
10394 else
10395 if test -f "$dir/lib$name.$libext"; then
10396 found_dir="$dir"
10397 found_a="$dir/lib$name.$libext"
10398 if test -f "$dir/lib$name.la"; then
10399 found_la="$dir/lib$name.la"
10404 esac
10405 if test "X$found_dir" != "X"; then
10406 break
10408 done
10410 if test "X$found_dir" != "X"; then
10411 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10412 if test "X$found_so" != "X"; then
10413 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10415 else
10416 haveit=
10417 for x in $ltrpathdirs; do
10418 if test "X$x" = "X$found_dir"; then
10419 haveit=yes
10420 break
10422 done
10423 if test -z "$haveit"; then
10424 ltrpathdirs="$ltrpathdirs $found_dir"
10426 if test "$hardcode_direct" = yes; then
10427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10428 else
10429 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10431 haveit=
10432 for x in $rpathdirs; do
10433 if test "X$x" = "X$found_dir"; then
10434 haveit=yes
10435 break
10437 done
10438 if test -z "$haveit"; then
10439 rpathdirs="$rpathdirs $found_dir"
10441 else
10442 haveit=
10443 for x in $LDFLAGS $LIBICONV; do
10445 acl_save_prefix="$prefix"
10446 prefix="$acl_final_prefix"
10447 acl_save_exec_prefix="$exec_prefix"
10448 exec_prefix="$acl_final_exec_prefix"
10449 eval x=\"$x\"
10450 exec_prefix="$acl_save_exec_prefix"
10451 prefix="$acl_save_prefix"
10453 if test "X$x" = "X-L$found_dir"; then
10454 haveit=yes
10455 break
10457 done
10458 if test -z "$haveit"; then
10459 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10461 if test "$hardcode_minus_L" != no; then
10462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10463 else
10464 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10469 else
10470 if test "X$found_a" != "X"; then
10471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10472 else
10473 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10476 additional_includedir=
10477 case "$found_dir" in
10478 */lib | */lib/)
10479 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10480 additional_includedir="$basedir/include"
10482 esac
10483 if test "X$additional_includedir" != "X"; then
10484 if test "X$additional_includedir" != "X/usr/include"; then
10485 haveit=
10486 if test "X$additional_includedir" = "X/usr/local/include"; then
10487 if test -n "$GCC"; then
10488 case $host_os in
10489 linux*) haveit=yes;;
10490 esac
10493 if test -z "$haveit"; then
10494 for x in $CPPFLAGS $INCICONV; do
10496 acl_save_prefix="$prefix"
10497 prefix="$acl_final_prefix"
10498 acl_save_exec_prefix="$exec_prefix"
10499 exec_prefix="$acl_final_exec_prefix"
10500 eval x=\"$x\"
10501 exec_prefix="$acl_save_exec_prefix"
10502 prefix="$acl_save_prefix"
10504 if test "X$x" = "X-I$additional_includedir"; then
10505 haveit=yes
10506 break
10508 done
10509 if test -z "$haveit"; then
10510 if test -d "$additional_includedir"; then
10511 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10517 if test -n "$found_la"; then
10518 save_libdir="$libdir"
10519 case "$found_la" in
10520 */* | *\\*) . "$found_la" ;;
10521 *) . "./$found_la" ;;
10522 esac
10523 libdir="$save_libdir"
10524 for dep in $dependency_libs; do
10525 case "$dep" in
10526 -L*)
10527 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10528 if test "X$additional_libdir" != "X/usr/lib"; then
10529 haveit=
10530 if test "X$additional_libdir" = "X/usr/local/lib"; then
10531 if test -n "$GCC"; then
10532 case $host_os in
10533 linux*) haveit=yes;;
10534 esac
10537 if test -z "$haveit"; then
10538 haveit=
10539 for x in $LDFLAGS $LIBICONV; do
10541 acl_save_prefix="$prefix"
10542 prefix="$acl_final_prefix"
10543 acl_save_exec_prefix="$exec_prefix"
10544 exec_prefix="$acl_final_exec_prefix"
10545 eval x=\"$x\"
10546 exec_prefix="$acl_save_exec_prefix"
10547 prefix="$acl_save_prefix"
10549 if test "X$x" = "X-L$additional_libdir"; then
10550 haveit=yes
10551 break
10553 done
10554 if test -z "$haveit"; then
10555 if test -d "$additional_libdir"; then
10556 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10559 haveit=
10560 for x in $LDFLAGS $LTLIBICONV; do
10562 acl_save_prefix="$prefix"
10563 prefix="$acl_final_prefix"
10564 acl_save_exec_prefix="$exec_prefix"
10565 exec_prefix="$acl_final_exec_prefix"
10566 eval x=\"$x\"
10567 exec_prefix="$acl_save_exec_prefix"
10568 prefix="$acl_save_prefix"
10570 if test "X$x" = "X-L$additional_libdir"; then
10571 haveit=yes
10572 break
10574 done
10575 if test -z "$haveit"; then
10576 if test -d "$additional_libdir"; then
10577 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10583 -R*)
10584 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10585 if test "$enable_rpath" != no; then
10586 haveit=
10587 for x in $rpathdirs; do
10588 if test "X$x" = "X$dir"; then
10589 haveit=yes
10590 break
10592 done
10593 if test -z "$haveit"; then
10594 rpathdirs="$rpathdirs $dir"
10596 haveit=
10597 for x in $ltrpathdirs; do
10598 if test "X$x" = "X$dir"; then
10599 haveit=yes
10600 break
10602 done
10603 if test -z "$haveit"; then
10604 ltrpathdirs="$ltrpathdirs $dir"
10608 -l*)
10609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10611 *.la)
10612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10615 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10618 esac
10619 done
10621 else
10622 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10627 done
10628 done
10629 if test "X$rpathdirs" != "X"; then
10630 if test -n "$hardcode_libdir_separator"; then
10631 alldirs=
10632 for found_dir in $rpathdirs; do
10633 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10634 done
10635 acl_save_libdir="$libdir"
10636 libdir="$alldirs"
10637 eval flag=\"$hardcode_libdir_flag_spec\"
10638 libdir="$acl_save_libdir"
10639 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10640 else
10641 for found_dir in $rpathdirs; do
10642 acl_save_libdir="$libdir"
10643 libdir="$found_dir"
10644 eval flag=\"$hardcode_libdir_flag_spec\"
10645 libdir="$acl_save_libdir"
10646 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10647 done
10650 if test "X$ltrpathdirs" != "X"; then
10651 for found_dir in $ltrpathdirs; do
10652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10653 done
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10663 $as_echo_n "checking for iconv... " >&6; }
10664 if test "${am_cv_func_iconv+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10668 am_cv_func_iconv="no, consider installing GNU libiconv"
10669 am_cv_lib_iconv=no
10670 am_save_CPPFLAGS="$CPPFLAGS"
10671 CPPFLAGS="$CPPFLAGS $INCICONV"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 #include <stdlib.h>
10675 #include <iconv.h>
10677 main ()
10679 iconv_t cd = iconv_open("","");
10680 iconv(cd,NULL,NULL,NULL,NULL);
10681 iconv_close(cd);
10683 return 0;
10685 _ACEOF
10686 if ac_fn_cxx_try_link "$LINENO"; then :
10687 am_cv_func_iconv=yes
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 CPPFLAGS="$am_save_CPPFLAGS"
10693 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10694 for _libs in .libs _libs; do
10695 am_save_CPPFLAGS="$CPPFLAGS"
10696 am_save_LIBS="$LIBS"
10697 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10698 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10701 #include <stdlib.h>
10702 #include <iconv.h>
10704 main ()
10706 iconv_t cd = iconv_open("","");
10707 iconv(cd,NULL,NULL,NULL,NULL);
10708 iconv_close(cd);
10710 return 0;
10712 _ACEOF
10713 if ac_fn_cxx_try_link "$LINENO"; then :
10714 INCICONV="-I../libiconv/include"
10715 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10716 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10717 am_cv_lib_iconv=yes
10718 am_cv_func_iconv=yes
10720 rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 CPPFLAGS="$am_save_CPPFLAGS"
10723 LIBS="$am_save_LIBS"
10724 if test "$am_cv_func_iconv" = "yes"; then
10725 break
10727 done
10730 if test "$am_cv_func_iconv" != yes; then
10731 am_save_CPPFLAGS="$CPPFLAGS"
10732 am_save_LIBS="$LIBS"
10733 CPPFLAGS="$LIBS $INCICONV"
10734 LIBS="$LIBS $LIBICONV"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 #include <stdlib.h>
10738 #include <iconv.h>
10740 main ()
10742 iconv_t cd = iconv_open("","");
10743 iconv(cd,NULL,NULL,NULL,NULL);
10744 iconv_close(cd);
10746 return 0;
10748 _ACEOF
10749 if ac_fn_cxx_try_link "$LINENO"; then :
10750 am_cv_lib_iconv=yes
10751 am_cv_func_iconv=yes
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 CPPFLAGS="$am_save_CPPFLAGS"
10756 LIBS="$am_save_LIBS"
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10761 $as_echo "$am_cv_func_iconv" >&6; }
10762 if test "$am_cv_func_iconv" = yes; then
10764 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10767 if test "$am_cv_lib_iconv" = yes; then
10769 for element in $INCICONV; do
10770 haveit=
10771 for x in $CPPFLAGS; do
10773 acl_save_prefix="$prefix"
10774 prefix="$acl_final_prefix"
10775 acl_save_exec_prefix="$exec_prefix"
10776 exec_prefix="$acl_final_exec_prefix"
10777 eval x=\"$x\"
10778 exec_prefix="$acl_save_exec_prefix"
10779 prefix="$acl_save_prefix"
10781 if test "X$x" = "X$element"; then
10782 haveit=yes
10783 break
10785 done
10786 if test -z "$haveit"; then
10787 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10789 done
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10792 $as_echo_n "checking how to link with libiconv... " >&6; }
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10794 $as_echo "$LIBICONV" >&6; }
10795 else
10796 LIBICONV=
10797 LTLIBICONV=
10802 if test "$am_cv_func_iconv" = yes; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10804 $as_echo_n "checking for iconv declaration... " >&6; }
10805 if test "${am_cv_proto_iconv+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10812 #include <stdlib.h>
10813 #include <iconv.h>
10814 extern
10815 #ifdef __cplusplus
10817 #endif
10818 #if defined(__STDC__) || defined(__cplusplus)
10819 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10820 #else
10821 size_t iconv();
10822 #endif
10825 main ()
10829 return 0;
10831 _ACEOF
10832 if ac_fn_cxx_try_compile "$LINENO"; then :
10833 am_cv_proto_iconv_arg1=""
10834 else
10835 am_cv_proto_iconv_arg1="const"
10837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838 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);"
10841 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10843 }$am_cv_proto_iconv" >&5
10844 $as_echo "${ac_t:-
10845 }$am_cv_proto_iconv" >&6; }
10847 cat >>confdefs.h <<_ACEOF
10848 #define ICONV_CONST $am_cv_proto_iconv_arg1
10849 _ACEOF
10854 # Until we have in-tree GNU iconv:
10855 LIBICONV_DEP=
10856 if test -f "$LTLIBICONV"; then
10857 LIBICONV_DEP=$LTLIBICONV
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10863 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10864 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10869 #include <locale.h>
10871 main ()
10873 return LC_MESSAGES
10875 return 0;
10877 _ACEOF
10878 if ac_fn_cxx_try_link "$LINENO"; then :
10879 am_cv_val_LC_MESSAGES=yes
10880 else
10881 am_cv_val_LC_MESSAGES=no
10883 rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10887 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10888 if test $am_cv_val_LC_MESSAGES = yes; then
10890 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10897 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10898 if test "${am_cv_langinfo_codeset+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903 #include <langinfo.h>
10905 main ()
10907 char* cs = nl_langinfo(CODESET);
10909 return 0;
10911 _ACEOF
10912 if ac_fn_cxx_try_link "$LINENO"; then :
10913 am_cv_langinfo_codeset=yes
10914 else
10915 am_cv_langinfo_codeset=no
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10922 $as_echo "$am_cv_langinfo_codeset" >&6; }
10923 if test $am_cv_langinfo_codeset = yes; then
10925 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10930 # We will need to find libiberty.h and ansidecl.h
10931 saved_CFLAGS="$CFLAGS"
10932 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10933 saved_CXXFLAGS="$CXXFLAGS"
10934 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10936 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10937 # normal autoconf function for these. But force definition of
10938 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10939 # basename handling in libiberty.h.
10940 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10941 #undef HAVE_DECL_BASENAME
10942 #define HAVE_DECL_BASENAME 1
10943 #include \"ansidecl.h\"
10944 #include \"system.h\"
10946 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10947 ac_have_decl=1
10948 else
10949 ac_have_decl=0
10952 cat >>confdefs.h <<_ACEOF
10953 #define HAVE_DECL_BASENAME $ac_have_decl
10954 _ACEOF
10955 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10956 #undef HAVE_DECL_BASENAME
10957 #define HAVE_DECL_BASENAME 1
10958 #include \"ansidecl.h\"
10959 #include \"system.h\"
10961 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10962 ac_have_decl=1
10963 else
10964 ac_have_decl=0
10967 cat >>confdefs.h <<_ACEOF
10968 #define HAVE_DECL_STRSTR $ac_have_decl
10969 _ACEOF
10972 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10973 madvise stpcpy strnlen strsignal strverscmp \
10974 strtol strtoul strtoll strtoull setenv unsetenv \
10975 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10976 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
10978 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10980 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10981 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 #undef $ac_tr_decl
10987 #define $ac_tr_decl 1
10989 #include "ansidecl.h"
10990 #include "system.h"
10993 main ()
10995 #ifndef $ac_func
10996 char *(*pfn) = (char *(*)) $ac_func ;
10997 #endif
10999 return 0;
11001 _ACEOF
11002 if ac_fn_cxx_try_compile "$LINENO"; then :
11003 eval "gcc_cv_have_decl_$ac_func=yes"
11004 else
11005 eval "gcc_cv_have_decl_$ac_func=no"
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11012 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11013 #define $ac_tr_decl 1
11014 _ACEOF
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11019 #define $ac_tr_decl 0
11020 _ACEOF
11024 done
11027 for ac_func in getrlimit setrlimit getrusage
11029 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11031 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11032 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037 #undef $ac_tr_decl
11038 #define $ac_tr_decl 1
11040 #include "ansidecl.h"
11041 #include "system.h"
11042 #ifdef HAVE_SYS_RESOURCE_H
11043 #include <sys/resource.h>
11044 #endif
11048 main ()
11050 #ifndef $ac_func
11051 char *(*pfn) = (char *(*)) $ac_func ;
11052 #endif
11054 return 0;
11056 _ACEOF
11057 if ac_fn_cxx_try_compile "$LINENO"; then :
11058 eval "gcc_cv_have_decl_$ac_func=yes"
11059 else
11060 eval "gcc_cv_have_decl_$ac_func=no"
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11067 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11068 #define $ac_tr_decl 1
11069 _ACEOF
11071 else
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11074 #define $ac_tr_decl 0
11075 _ACEOF
11079 done
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11085 #include "ansidecl.h"
11086 #include "system.h"
11087 #ifdef HAVE_SYS_RESOURCE_H
11088 #include <sys/resource.h>
11089 #endif
11092 main ()
11094 rlim_t l = 0;
11096 return 0;
11098 _ACEOF
11099 if ac_fn_cxx_try_compile "$LINENO"; then :
11101 else
11103 $as_echo "#define rlim_t long" >>confdefs.h
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11108 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11109 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11110 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11111 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11112 for ac_func in ldgetname
11114 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11116 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11117 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122 #undef $ac_tr_decl
11123 #define $ac_tr_decl 1
11125 #include "ansidecl.h"
11126 #include "system.h"
11127 #ifdef HAVE_LDFCN_H
11128 #undef FREAD
11129 #undef FWRITE
11130 #include <ldfcn.h>
11131 #endif
11135 main ()
11137 #ifndef $ac_func
11138 char *(*pfn) = (char *(*)) $ac_func ;
11139 #endif
11141 return 0;
11143 _ACEOF
11144 if ac_fn_cxx_try_compile "$LINENO"; then :
11145 eval "gcc_cv_have_decl_$ac_func=yes"
11146 else
11147 eval "gcc_cv_have_decl_$ac_func=no"
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11154 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11155 #define $ac_tr_decl 1
11156 _ACEOF
11158 else
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11161 #define $ac_tr_decl 0
11162 _ACEOF
11166 done
11169 for ac_func in times
11171 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11173 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11174 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11179 #undef $ac_tr_decl
11180 #define $ac_tr_decl 1
11182 #include "ansidecl.h"
11183 #include "system.h"
11184 #ifdef HAVE_SYS_TIMES_H
11185 #include <sys/times.h>
11186 #endif
11190 main ()
11192 #ifndef $ac_func
11193 char *(*pfn) = (char *(*)) $ac_func ;
11194 #endif
11196 return 0;
11198 _ACEOF
11199 if ac_fn_cxx_try_compile "$LINENO"; then :
11200 eval "gcc_cv_have_decl_$ac_func=yes"
11201 else
11202 eval "gcc_cv_have_decl_$ac_func=no"
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11210 #define $ac_tr_decl 1
11211 _ACEOF
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11216 #define $ac_tr_decl 0
11217 _ACEOF
11221 done
11224 for ac_func in sigaltstack
11226 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11228 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11229 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234 #undef $ac_tr_decl
11235 #define $ac_tr_decl 1
11237 #include "ansidecl.h"
11238 #include "system.h"
11239 #include <signal.h>
11243 main ()
11245 #ifndef $ac_func
11246 char *(*pfn) = (char *(*)) $ac_func ;
11247 #endif
11249 return 0;
11251 _ACEOF
11252 if ac_fn_cxx_try_compile "$LINENO"; then :
11253 eval "gcc_cv_have_decl_$ac_func=yes"
11254 else
11255 eval "gcc_cv_have_decl_$ac_func=no"
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11263 #define $ac_tr_decl 1
11264 _ACEOF
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11269 #define $ac_tr_decl 0
11270 _ACEOF
11274 done
11277 # More time-related stuff.
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11279 $as_echo_n "checking for struct tms... " >&6; }
11280 if test "${ac_cv_struct_tms+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 #include "ansidecl.h"
11288 #include "system.h"
11289 #ifdef HAVE_SYS_TIMES_H
11290 #include <sys/times.h>
11291 #endif
11294 main ()
11296 struct tms tms;
11298 return 0;
11300 _ACEOF
11301 if ac_fn_cxx_try_compile "$LINENO"; then :
11302 ac_cv_struct_tms=yes
11303 else
11304 ac_cv_struct_tms=no
11306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11309 $as_echo "$ac_cv_struct_tms" >&6; }
11310 if test $ac_cv_struct_tms = yes; then
11312 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11316 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11317 # revisit after autoconf 2.50.
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11319 $as_echo_n "checking for clock_t... " >&6; }
11320 if test "${gcc_cv_type_clock_t+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11327 #include "ansidecl.h"
11328 #include "system.h"
11331 main ()
11333 clock_t x;
11335 return 0;
11337 _ACEOF
11338 if ac_fn_cxx_try_compile "$LINENO"; then :
11339 gcc_cv_type_clock_t=yes
11340 else
11341 gcc_cv_type_clock_t=no
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11346 $as_echo "$gcc_cv_type_clock_t" >&6; }
11347 if test $gcc_cv_type_clock_t = yes; then
11349 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11353 # Check if F_SETLKW is supported by fcntl.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11355 $as_echo_n "checking for F_SETLKW... " >&6; }
11356 if test "${ac_cv_f_setlkw+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11363 #include <fcntl.h>
11365 main ()
11368 struct flock fl;
11369 fl.l_whence = 0;
11370 fl.l_start = 0;
11371 fl.l_len = 0;
11372 fl.l_pid = 0;
11373 return fcntl (1, F_SETLKW, &fl);
11375 return 0;
11377 _ACEOF
11378 if ac_fn_cxx_try_compile "$LINENO"; then :
11379 ac_cv_f_setlkw=yes
11380 else
11381 ac_cv_f_setlkw=no
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11386 $as_echo "$ac_cv_f_setlkw" >&6; }
11387 if test $ac_cv_f_setlkw = yes; then
11389 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11393 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11394 CFLAGS="$saved_CFLAGS"
11395 CXXFLAGS="$saved_CXXFLAGS"
11397 # mkdir takes a single argument on some systems.
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11399 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11400 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 #include <sys/types.h>
11407 #ifdef HAVE_SYS_STAT_H
11408 # include <sys/stat.h>
11409 #endif
11410 #ifdef HAVE_UNISTD_H
11411 # include <unistd.h>
11412 #endif
11413 #ifdef HAVE_DIRECT_H
11414 # include <direct.h>
11415 #endif
11417 main ()
11419 mkdir ("foo", 0);
11421 return 0;
11423 _ACEOF
11424 if ac_fn_cxx_try_compile "$LINENO"; then :
11425 gcc_cv_mkdir_takes_one_arg=no
11426 else
11427 gcc_cv_mkdir_takes_one_arg=yes
11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11432 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11433 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11435 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11440 # File extensions
11441 manext='.1'
11442 objext='.o'
11446 # With Setjmp/Longjmp based exception handling.
11447 # Check whether --enable-sjlj-exceptions was given.
11448 if test "${enable_sjlj_exceptions+set}" = set; then :
11449 enableval=$enable_sjlj_exceptions; case $target in
11450 *-*-hpux10*)
11451 if test $enableval != yes; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11453 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11454 enableval=yes
11457 esac
11458 force_sjlj_exceptions=yes
11459 else
11460 case $target in
11461 *-*-hpux10*)
11462 force_sjlj_exceptions=yes
11463 enableval=yes
11465 lm32*-*-*)
11466 force_sjlj_exceptions=yes
11467 enableval=yes
11470 force_sjlj_exceptions=no
11472 esac
11475 if test $force_sjlj_exceptions = yes; then
11476 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11478 cat >>confdefs.h <<_ACEOF
11479 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11480 _ACEOF
11484 # --------------------------------------------------------
11485 # Build, host, and target specific configuration fragments
11486 # --------------------------------------------------------
11488 # Collect build-machine-specific information.
11489 . ${srcdir}/config.build
11491 # Collect host-machine-specific information.
11492 . ${srcdir}/config.host
11494 target_gtfiles=
11496 # Collect target-machine-specific information.
11497 . ${srcdir}/config.gcc
11499 extra_objs="${host_extra_objs} ${extra_objs}"
11500 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11502 # Default the target-machine variables that were not explicitly set.
11503 if test x"$tm_file" = x
11504 then tm_file=$cpu_type/$cpu_type.h; fi
11506 if test x"$extra_headers" = x
11507 then extra_headers=; fi
11509 if test x$md_file = x
11510 then md_file=$cpu_type/$cpu_type.md; fi
11512 if test x$out_file = x
11513 then out_file=$cpu_type/$cpu_type.c; fi
11515 if test x"$tmake_file" = x
11516 then tmake_file=$cpu_type/t-$cpu_type
11519 # Support --enable-initfini-array.
11520 if test x$enable_initfini_array != xno; then
11521 tm_file="${tm_file} initfini-array.h"
11524 if test x"$dwarf2" = xyes
11525 then tm_file="$tm_file tm-dwarf2.h"
11528 # Say what files are being used for the output code and MD file.
11529 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11530 echo "Using \`$srcdir/config/$md_file' as machine description file."
11532 # If any of the xm_file variables contain nonexistent files, warn
11533 # about them and drop them.
11536 for x in $build_xm_file; do
11537 if test -f $srcdir/config/$x
11538 then bx="$bx $x"
11539 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11540 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11542 done
11543 build_xm_file="$bx"
11546 for x in $host_xm_file; do
11547 if test -f $srcdir/config/$x
11548 then hx="$hx $x"
11549 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11550 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11552 done
11553 host_xm_file="$hx"
11556 for x in $xm_file; do
11557 if test -f $srcdir/config/$x
11558 then tx="$tx $x"
11559 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11560 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11562 done
11563 xm_file="$tx"
11565 count=a
11566 for f in $tm_file; do
11567 count=${count}x
11568 done
11569 if test $count = ax; then
11570 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11571 else
11572 echo "Using the following target machine macro files:"
11573 for f in $tm_file; do
11574 echo " $srcdir/config/$f"
11575 done
11578 if test x$use_long_long_for_widest_fast_int = xyes; then
11580 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11584 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_GNU_LD $gnu_ld_bool
11588 _ACEOF
11591 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_GNU_AS $gnu_as_bool
11595 _ACEOF
11598 count=a
11599 for f in $host_xm_file; do
11600 count=${count}x
11601 done
11602 if test $count = a; then
11604 elif test $count = ax; then
11605 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11606 else
11607 echo "Using the following host machine macro files:"
11608 for f in $host_xm_file; do
11609 echo " $srcdir/config/$f"
11610 done
11612 echo "Using ${out_host_hook_obj} for host machine hooks."
11614 if test "$host_xm_file" != "$build_xm_file"; then
11615 count=a
11616 for f in $build_xm_file; do
11617 count=${count}x
11618 done
11619 if test $count = a; then
11621 elif test $count = ax; then
11622 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11623 else
11624 echo "Using the following build machine macro files:"
11625 for f in $build_xm_file; do
11626 echo " $srcdir/config/$f"
11627 done
11631 if test -n "$configured_native_system_header_dir"; then
11632 native_system_header_dir=$configured_native_system_header_dir
11634 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11637 case ${host} in
11638 powerpc*-*-darwin*)
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11640 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11641 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11647 #include <sys/cdefs.h>
11648 #include <sys/signal.h>
11649 #include <ucontext.h>
11650 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11652 _ACEOF
11653 if ac_fn_cxx_try_compile "$LINENO"; then :
11654 gcc_cv_mcontext_underscores=no
11655 else
11656 gcc_cv_mcontext_underscores=yes
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11661 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11662 if test $gcc_cv_mcontext_underscores = yes; then
11664 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11668 esac
11670 # ---------
11671 # Threading
11672 # ---------
11674 # Check if a valid thread package
11675 case ${enable_threads} in
11676 "" | no)
11677 # No threads
11678 target_thread_file='single'
11680 yes)
11681 # default
11682 target_thread_file='single'
11684 aix | dce | lynx | mipssde | posix | rtems | \
11685 single | tpf | vxworks | win32)
11686 target_thread_file=${enable_threads}
11689 echo "${enable_threads} is an unknown thread package" 1>&2
11690 exit 1
11692 esac
11694 if test x${thread_file} = x; then
11695 # No thread file set by target-specific clauses in config.gcc,
11696 # so use file chosen by default logic above
11697 thread_file=${target_thread_file}
11700 # --------
11701 # UNSORTED
11702 # --------
11704 use_cxa_atexit=no
11705 if test x$enable___cxa_atexit = xyes || \
11706 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11707 if test x$host = x$target; then
11708 case $host in
11709 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11710 # keyed to flag_use_cxa_atexit
11711 *-*-mingw32*)
11712 use_cxa_atexit=yes
11714 powerpc-ibm-aix*)
11715 use_cxa_atexit=yes
11718 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11719 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11720 use_cxa_atexit=yes
11721 else
11722 echo "__cxa_atexit can't be enabled on this target"
11726 esac
11727 else
11728 # We can't check for __cxa_atexit when building a cross, so assume
11729 # it is available
11730 use_cxa_atexit=yes
11732 if test x$use_cxa_atexit = xyes; then
11734 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11739 # Look for a file containing extra machine modes.
11740 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11741 extra_modes_file='$(srcdir)'/config/${extra_modes}
11744 cat >>confdefs.h <<_ACEOF
11745 #define EXTRA_MODES_FILE "config/$extra_modes"
11746 _ACEOF
11750 # Convert extra_options into a form suitable for Makefile use.
11751 extra_opt_files=
11752 all_opt_files=
11753 for f in $extra_options; do
11754 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11755 all_opt_files="$all_opt_files $srcdir/config/$f"
11756 done
11759 # auto-host.h is the file containing items generated by autoconf and is
11760 # the first file included by config.h.
11761 # If host=build, it is correct to have bconfig include auto-host.h
11762 # as well. If host!=build, we are in error and need to do more
11763 # work to find out the build config parameters.
11764 if test x$host = x$build
11765 then
11766 build_auto=auto-host.h
11767 else
11768 # We create a subdir, then run autoconf in the subdir.
11769 # To prevent recursion we set host and build for the new
11770 # invocation of configure to the build for this invocation
11771 # of configure.
11772 tempdir=build.$$
11773 rm -rf $tempdir
11774 mkdir $tempdir
11775 cd $tempdir
11776 case ${srcdir} in
11777 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11778 *) realsrcdir=../${srcdir};;
11779 esac
11780 # Clearing GMPINC is necessary to prevent host headers being
11781 # used by the build compiler. Defining GENERATOR_FILE stops
11782 # system.h from including gmp.h.
11783 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11784 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11785 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11786 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11787 ${realsrcdir}/configure \
11788 --enable-languages=${enable_languages-all} \
11789 --target=$target_alias --host=$build_alias --build=$build_alias
11791 # We just finished tests for the build machine, so rename
11792 # the file auto-build.h in the gcc directory.
11793 mv auto-host.h ../auto-build.h
11794 cd ..
11795 rm -rf $tempdir
11796 build_auto=auto-build.h
11800 tm_file="${tm_file} defaults.h"
11801 tm_p_file="${tm_p_file} tm-preds.h"
11802 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11803 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11804 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11805 # put this back in temporarily.
11806 xm_file="auto-host.h ansidecl.h ${xm_file}"
11808 # --------
11809 # UNSORTED
11810 # --------
11812 # Compile in configure arguments.
11813 if test -f configargs.h ; then
11814 # Being re-configured.
11815 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11816 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11817 else
11818 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11821 # Double all backslashes and backslash all quotes to turn
11822 # gcc_config_arguments into a C string.
11823 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11824 $gcc_config_arguments
11826 gcc_config_arguments_str=`cat conftest.out`
11827 rm -f conftest.out
11829 cat > configargs.h <<EOF
11830 /* Generated automatically. */
11831 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11832 static const char thread_model[] = "$thread_file";
11834 static const struct {
11835 const char *name, *value;
11836 } configure_default_options[] = $configure_default_options;
11839 gcc_BASEVER=`cat $srcdir/BASE-VER`
11840 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11841 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11842 if test -f $srcdir/REVISION ; then
11843 gcc_REVISION=`cat $srcdir/REVISION`
11844 else
11845 gcc_REVISION=""
11847 cat > plugin-version.h <<EOF
11848 #include "configargs.h"
11850 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11851 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11852 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11853 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11855 static char basever[] = "$gcc_BASEVER";
11856 static char datestamp[] = "$gcc_DATESTAMP";
11857 static char devphase[] = "$gcc_DEVPHASE";
11858 static char revision[] = "$gcc_REVISION";
11860 /* FIXME plugins: We should make the version information more precise.
11861 One way to do is to add a checksum. */
11863 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11864 devphase, revision,
11865 configuration_arguments};
11868 # Determine what GCC version number to use in filesystem paths.
11870 get_gcc_base_ver="cat"
11872 # Check whether --with-gcc-major-version-only was given.
11873 if test "${with_gcc_major_version_only+set}" = set; then :
11874 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11875 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11883 # Internationalization
11884 # If we haven't got the data from the intl directory,
11885 # assume NLS is disabled.
11886 USE_NLS=no
11887 LIBINTL=
11888 LIBINTL_DEP=
11889 INCINTL=
11890 XGETTEXT=
11891 GMSGFMT=
11892 POSUB=
11894 if test -f ../intl/config.intl; then
11895 . ../intl/config.intl
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11898 $as_echo_n "checking whether NLS is requested... " >&6; }
11899 if test x"$USE_NLS" != xyes; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904 $as_echo "yes" >&6; }
11906 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11910 $as_echo_n "checking for catalogs to be installed... " >&6; }
11911 # Look for .po and .gmo files in the source directory.
11912 CATALOGS=
11913 XLINGUAS=
11914 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11915 # If there aren't any .gmo files the shell will give us the
11916 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11917 # weeded out.
11918 case "$cat" in *\**)
11919 continue;;
11920 esac
11921 # The quadruple backslash is collapsed to a double backslash
11922 # by the backticks, then collapsed again by the double quotes,
11923 # leaving us with one backslash in the sed expression (right
11924 # before the dot that mustn't act as a wildcard).
11925 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11926 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11927 # The user is allowed to set LINGUAS to a list of languages to
11928 # install catalogs for. If it's empty that means "all of them."
11929 if test "x$LINGUAS" = x; then
11930 CATALOGS="$CATALOGS $cat"
11931 XLINGUAS="$XLINGUAS $lang"
11932 else
11933 case "$LINGUAS" in *$lang*)
11934 CATALOGS="$CATALOGS $cat"
11935 XLINGUAS="$XLINGUAS $lang"
11937 esac
11939 done
11940 LINGUAS="$XLINGUAS"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11942 $as_echo "$LINGUAS" >&6; }
11945 DATADIRNAME=share
11947 INSTOBJEXT=.mo
11949 GENCAT=gencat
11951 CATOBJEXT=.gmo
11955 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11956 # -liconv on the link line twice.
11957 case "$LIBINTL" in *$LIBICONV*)
11958 LIBICONV= ;;
11959 esac
11961 # Check whether --enable-secureplt was given.
11962 if test "${enable_secureplt+set}" = set; then :
11963 enableval=$enable_secureplt;
11967 # Check whether --enable-leading-mingw64-underscores was given.
11968 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11969 enableval=$enable_leading_mingw64_underscores;
11972 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11974 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11978 # Check whether --enable-cld was given.
11979 if test "${enable_cld+set}" = set; then :
11980 enableval=$enable_cld;
11981 else
11982 enable_cld=no
11986 # Check whether --enable-frame-pointer was given.
11987 if test "${enable_frame_pointer+set}" = set; then :
11988 enableval=$enable_frame_pointer;
11989 else
11991 case $target_os in
11992 linux* | darwin[8912]*)
11993 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11994 # DWARF2.
11995 enable_frame_pointer=no
11998 enable_frame_pointer=yes
12000 esac
12005 # Windows32 Registry support for specifying GCC installation paths.
12006 # Check whether --enable-win32-registry was given.
12007 if test "${enable_win32_registry+set}" = set; then :
12008 enableval=$enable_win32_registry;
12012 case $host_os in
12013 win32 | pe | cygwin* | mingw32*)
12014 if test "x$enable_win32_registry" != xno; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12016 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12017 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 ac_func_search_save_LIBS=$LIBS
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char RegOpenKeyExA ();
12032 main ()
12034 return RegOpenKeyExA ();
12036 return 0;
12038 _ACEOF
12039 for ac_lib in '' advapi32; do
12040 if test -z "$ac_lib"; then
12041 ac_res="none required"
12042 else
12043 ac_res=-l$ac_lib
12044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12046 if ac_fn_cxx_try_link "$LINENO"; then :
12047 ac_cv_search_RegOpenKeyExA=$ac_res
12049 rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext
12051 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12052 break
12054 done
12055 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12057 else
12058 ac_cv_search_RegOpenKeyExA=no
12060 rm conftest.$ac_ext
12061 LIBS=$ac_func_search_save_LIBS
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12064 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12065 ac_res=$ac_cv_search_RegOpenKeyExA
12066 if test "$ac_res" != no; then :
12067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12069 else
12070 enable_win32_registry=no
12075 if test "x$enable_win32_registry" != xno; then
12077 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12080 if test "x$enable_win32_registry" != xyes \
12081 && test "x$enable_win32_registry" != x; then
12083 cat >>confdefs.h <<_ACEOF
12084 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12085 _ACEOF
12090 esac
12092 # Get an absolute path to the GCC top-level source directory
12093 holddir=`${PWDCMD-pwd}`
12094 cd $srcdir
12095 topdir=`${PWDCMD-pwd}`
12096 cd $holddir
12098 # Conditionalize the makefile for this host machine.
12099 xmake_file=
12100 for f in ${host_xmake_file}
12102 if test -f ${srcdir}/config/$f
12103 then
12104 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12106 done
12108 # Conditionalize the makefile for this target machine.
12109 tmake_file_=
12110 for f in ${tmake_file}
12112 if test -f ${srcdir}/config/$f
12113 then
12114 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12116 done
12117 tmake_file="${tmake_file_}"
12119 out_object_file=`basename $out_file .c`.o
12120 common_out_object_file=`basename $common_out_file .c`.o
12122 tm_file_list="options.h"
12123 tm_include_list="options.h insn-constants.h"
12124 for f in $tm_file; do
12125 case $f in
12126 ./* )
12127 f=`echo $f | sed 's/^..//'`
12128 tm_file_list="${tm_file_list} $f"
12129 tm_include_list="${tm_include_list} $f"
12131 defaults.h )
12132 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12133 tm_include_list="${tm_include_list} $f"
12136 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12137 tm_include_list="${tm_include_list} config/$f"
12139 esac
12140 done
12142 tm_p_file_list=
12143 tm_p_include_list=
12144 for f in $tm_p_file; do
12145 case $f in
12146 tm-preds.h )
12147 tm_p_file_list="${tm_p_file_list} $f"
12148 tm_p_include_list="${tm_p_include_list} $f"
12151 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12152 tm_p_include_list="${tm_p_include_list} config/$f"
12153 esac
12154 done
12156 xm_file_list=
12157 xm_include_list=
12158 for f in $xm_file; do
12159 case $f in
12160 ansidecl.h )
12161 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12162 xm_include_list="${xm_include_list} $f"
12164 auto-host.h )
12165 xm_file_list="${xm_file_list} $f"
12166 xm_include_list="${xm_include_list} $f"
12169 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12170 xm_include_list="${xm_include_list} config/$f"
12172 esac
12173 done
12175 host_xm_file_list=
12176 host_xm_include_list=
12177 for f in $host_xm_file; do
12178 case $f in
12179 ansidecl.h )
12180 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12181 host_xm_include_list="${host_xm_include_list} $f"
12183 auto-host.h )
12184 host_xm_file_list="${host_xm_file_list} $f"
12185 host_xm_include_list="${host_xm_include_list} $f"
12188 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12189 host_xm_include_list="${host_xm_include_list} config/$f"
12191 esac
12192 done
12194 build_xm_file_list=
12195 for f in $build_xm_file; do
12196 case $f in
12197 ansidecl.h )
12198 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12199 build_xm_include_list="${build_xm_include_list} $f"
12201 auto-build.h | auto-host.h )
12202 build_xm_file_list="${build_xm_file_list} $f"
12203 build_xm_include_list="${build_xm_include_list} $f"
12206 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12207 build_xm_include_list="${build_xm_include_list} config/$f"
12209 esac
12210 done
12212 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12213 # cross-compiler which does not use the native headers and libraries.
12214 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12215 CROSS=
12216 ALL=all.internal
12217 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12218 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12220 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12221 test x$build != x$host || test "x$with_build_sysroot" != x; then
12222 if test "x$with_build_sysroot" != x; then
12223 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12224 else
12225 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12228 if test x$host != x$target
12229 then
12230 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12231 ALL=all.cross
12232 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12233 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12234 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12237 if test "x$with_build_sysroot" != "x"; then
12238 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12239 elif test "x$with_sysroot" = x; then
12240 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12241 elif test "x$with_sysroot" = xyes; then
12242 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12243 else
12244 target_header_dir="${with_sysroot}${native_system_header_dir}"
12246 else
12247 target_header_dir=${native_system_header_dir}
12250 # If this is a cross-compiler that does not
12251 # have its own set of headers then define
12252 # inhibit_libc
12254 # If this is using newlib, without having the headers available now,
12255 # then define inhibit_libc in LIBGCC2_CFLAGS.
12256 # This prevents libgcc2 from containing any code which requires libc
12257 # support.
12258 : ${inhibit_libc=false}
12259 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12260 test x$with_newlib = xyes ; } &&
12261 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12262 inhibit_libc=true
12266 # When building gcc with a cross-compiler, we need to adjust things so
12267 # that the generator programs are still built with the native compiler.
12268 # Also, we cannot run fixincludes.
12270 # These are the normal (build=host) settings:
12271 CC_FOR_BUILD='$(CC)'
12272 CXX_FOR_BUILD='$(CXX)'
12273 BUILD_CFLAGS='$(ALL_CFLAGS)'
12274 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12275 BUILD_LDFLAGS='$(LDFLAGS)'
12276 STMP_FIXINC=stmp-fixinc
12278 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12279 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12281 # And these apply if build != host, or we are generating coverage data
12282 if test x$build != x$host || test "x$coverage_flags" != x
12283 then
12284 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12285 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12286 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12288 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12289 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12290 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12291 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12296 # Expand extra_headers to include complete path.
12297 # This substitutes for lots of t-* files.
12298 extra_headers_list=
12299 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12300 for file in ${extra_headers} ; do
12301 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12302 done
12304 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12305 if test x"$use_gcc_tgmath" = xyes
12306 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12309 # Define collect2 in Makefile.
12310 case $host_can_use_collect2 in
12311 no) collect2= ;;
12312 *) collect2='collect2$(exeext)' ;;
12313 esac
12316 # Add a definition of USE_COLLECT2 if system wants one.
12317 case $use_collect2 in
12318 no) use_collect2= ;;
12319 "") ;;
12321 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12322 xm_defines="${xm_defines} USE_COLLECT2"
12323 case $host_can_use_collect2 in
12325 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12327 esac
12329 esac
12332 cat >>confdefs.h <<_ACEOF
12333 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12334 _ACEOF
12337 # ---------------------------
12338 # Assembler & linker features
12339 # ---------------------------
12341 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12342 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12343 # However when ld-new is first executed from the build tree, libtool will
12344 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12345 # to the build tree. While doing this we need to use the previous-stage
12346 # linker, or we have an infinite loop. The presence of a shell script as
12347 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12348 # the gcc/collect-ld script. So we need to know how libtool works, or
12349 # exec-tool will fail.
12352 case `pwd` in
12353 *\ * | *\ *)
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12355 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12356 esac
12360 macro_version='2.2.7a'
12361 macro_revision='1.3134'
12375 ltmain="$ac_aux_dir/ltmain.sh"
12377 # Backslashify metacharacters that are still active within
12378 # double-quoted strings.
12379 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12381 # Same as above, but do not quote variable references.
12382 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12384 # Sed substitution to delay expansion of an escaped shell variable in a
12385 # double_quote_subst'ed string.
12386 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12388 # Sed substitution to delay expansion of an escaped single quote.
12389 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12391 # Sed substitution to avoid accidental globbing in evaled expressions
12392 no_glob_subst='s/\*/\\\*/g'
12394 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12395 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12396 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12399 $as_echo_n "checking how to print strings... " >&6; }
12400 # Test print first, because it will be a builtin if present.
12401 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12402 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12403 ECHO='print -r --'
12404 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12405 ECHO='printf %s\n'
12406 else
12407 # Use this function as a fallback that always works.
12408 func_fallback_echo ()
12410 eval 'cat <<_LTECHO_EOF
12412 _LTECHO_EOF'
12414 ECHO='func_fallback_echo'
12417 # func_echo_all arg...
12418 # Invoke $ECHO with all args, space-separated.
12419 func_echo_all ()
12421 $ECHO ""
12424 case "$ECHO" in
12425 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12426 $as_echo "printf" >&6; } ;;
12427 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12428 $as_echo "print -r" >&6; } ;;
12429 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12430 $as_echo "cat" >&6; } ;;
12431 esac
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12447 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12448 if test "${ac_cv_path_SED+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12452 for ac_i in 1 2 3 4 5 6 7; do
12453 ac_script="$ac_script$as_nl$ac_script"
12454 done
12455 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12456 { ac_script=; unset ac_script;}
12457 if test -z "$SED"; then
12458 ac_path_SED_found=false
12459 # Loop through the user's path and test for each of PROGNAME-LIST
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_prog in sed gsed; do
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12468 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12469 # Check for GNU ac_path_SED and select it if it is found.
12470 # Check for GNU $ac_path_SED
12471 case `"$ac_path_SED" --version 2>&1` in
12472 *GNU*)
12473 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12475 ac_count=0
12476 $as_echo_n 0123456789 >"conftest.in"
12477 while :
12479 cat "conftest.in" "conftest.in" >"conftest.tmp"
12480 mv "conftest.tmp" "conftest.in"
12481 cp "conftest.in" "conftest.nl"
12482 $as_echo '' >> "conftest.nl"
12483 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12485 as_fn_arith $ac_count + 1 && ac_count=$as_val
12486 if test $ac_count -gt ${ac_path_SED_max-0}; then
12487 # Best one so far, save it but keep looking for a better one
12488 ac_cv_path_SED="$ac_path_SED"
12489 ac_path_SED_max=$ac_count
12491 # 10*(2^10) chars as input seems more than enough
12492 test $ac_count -gt 10 && break
12493 done
12494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12495 esac
12497 $ac_path_SED_found && break 3
12498 done
12499 done
12500 done
12501 IFS=$as_save_IFS
12502 if test -z "$ac_cv_path_SED"; then
12503 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12505 else
12506 ac_cv_path_SED=$SED
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12511 $as_echo "$ac_cv_path_SED" >&6; }
12512 SED="$ac_cv_path_SED"
12513 rm -f conftest.sed
12515 test -z "$SED" && SED=sed
12516 Xsed="$SED -e 1s/^X//"
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12529 $as_echo_n "checking for fgrep... " >&6; }
12530 if test "${ac_cv_path_FGREP+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12534 then ac_cv_path_FGREP="$GREP -F"
12535 else
12536 if test -z "$FGREP"; then
12537 ac_path_FGREP_found=false
12538 # Loop through the user's path and test for each of PROGNAME-LIST
12539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12542 IFS=$as_save_IFS
12543 test -z "$as_dir" && as_dir=.
12544 for ac_prog in fgrep; do
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12547 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12548 # Check for GNU ac_path_FGREP and select it if it is found.
12549 # Check for GNU $ac_path_FGREP
12550 case `"$ac_path_FGREP" --version 2>&1` in
12551 *GNU*)
12552 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12554 ac_count=0
12555 $as_echo_n 0123456789 >"conftest.in"
12556 while :
12558 cat "conftest.in" "conftest.in" >"conftest.tmp"
12559 mv "conftest.tmp" "conftest.in"
12560 cp "conftest.in" "conftest.nl"
12561 $as_echo 'FGREP' >> "conftest.nl"
12562 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12564 as_fn_arith $ac_count + 1 && ac_count=$as_val
12565 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12566 # Best one so far, save it but keep looking for a better one
12567 ac_cv_path_FGREP="$ac_path_FGREP"
12568 ac_path_FGREP_max=$ac_count
12570 # 10*(2^10) chars as input seems more than enough
12571 test $ac_count -gt 10 && break
12572 done
12573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12574 esac
12576 $ac_path_FGREP_found && break 3
12577 done
12578 done
12579 done
12580 IFS=$as_save_IFS
12581 if test -z "$ac_cv_path_FGREP"; then
12582 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12584 else
12585 ac_cv_path_FGREP=$FGREP
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12591 $as_echo "$ac_cv_path_FGREP" >&6; }
12592 FGREP="$ac_cv_path_FGREP"
12595 test -z "$GREP" && GREP=grep
12615 # Check whether --with-gnu-ld was given.
12616 if test "${with_gnu_ld+set}" = set; then :
12617 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12618 else
12619 with_gnu_ld=no
12622 ac_prog=ld
12623 if test "$GCC" = yes; then
12624 # Check if gcc -print-prog-name=ld gives a path.
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12626 $as_echo_n "checking for ld used by $CC... " >&6; }
12627 case $host in
12628 *-*-mingw*)
12629 # gcc leaves a trailing carriage return which upsets mingw
12630 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12632 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12633 esac
12634 case $ac_prog in
12635 # Accept absolute paths.
12636 [\\/]* | ?:[\\/]*)
12637 re_direlt='/[^/][^/]*/\.\./'
12638 # Canonicalize the pathname of ld
12639 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12640 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12641 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12642 done
12643 test -z "$LD" && LD="$ac_prog"
12646 # If it fails, then pretend we aren't using GCC.
12647 ac_prog=ld
12650 # If it is relative, then search for the first ld in PATH.
12651 with_gnu_ld=unknown
12653 esac
12654 elif test "$with_gnu_ld" = yes; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12656 $as_echo_n "checking for GNU ld... " >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12659 $as_echo_n "checking for non-GNU ld... " >&6; }
12661 if test "${lt_cv_path_LD+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 if test -z "$LD"; then
12665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12666 for ac_dir in $PATH; do
12667 IFS="$lt_save_ifs"
12668 test -z "$ac_dir" && ac_dir=.
12669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12670 lt_cv_path_LD="$ac_dir/$ac_prog"
12671 # Check to see if the program is GNU ld. I'd rather use --version,
12672 # but apparently some variants of GNU ld only accept -v.
12673 # Break only if it was the GNU/non-GNU ld that we prefer.
12674 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12675 *GNU* | *'with BFD'*)
12676 test "$with_gnu_ld" != no && break
12679 test "$with_gnu_ld" != yes && break
12681 esac
12683 done
12684 IFS="$lt_save_ifs"
12685 else
12686 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12690 LD="$lt_cv_path_LD"
12691 if test -n "$LD"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12693 $as_echo "$LD" >&6; }
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12698 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12700 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12701 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12705 case `$LD -v 2>&1 </dev/null` in
12706 *GNU* | *'with BFD'*)
12707 lt_cv_prog_gnu_ld=yes
12710 lt_cv_prog_gnu_ld=no
12712 esac
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12715 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12716 with_gnu_ld=$lt_cv_prog_gnu_ld
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12727 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12728 if test "${lt_cv_path_NM+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 if test -n "$NM"; then
12732 # Let the user override the test.
12733 lt_cv_path_NM="$NM"
12734 else
12735 lt_nm_to_check="${ac_tool_prefix}nm"
12736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12737 lt_nm_to_check="$lt_nm_to_check nm"
12739 for lt_tmp_nm in $lt_nm_to_check; do
12740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12741 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12742 IFS="$lt_save_ifs"
12743 test -z "$ac_dir" && ac_dir=.
12744 tmp_nm="$ac_dir/$lt_tmp_nm"
12745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12746 # Check to see if the nm accepts a BSD-compat flag.
12747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12748 # nm: unknown option "B" ignored
12749 # Tru64's nm complains that /dev/null is an invalid object file
12750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12751 */dev/null* | *'Invalid file or object type'*)
12752 lt_cv_path_NM="$tmp_nm -B"
12753 break
12756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12757 */dev/null*)
12758 lt_cv_path_NM="$tmp_nm -p"
12759 break
12762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12763 continue # so that we can try to find one that supports BSD flags
12765 esac
12767 esac
12769 done
12770 IFS="$lt_save_ifs"
12771 done
12772 : ${lt_cv_path_NM=no}
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12776 $as_echo "$lt_cv_path_NM" >&6; }
12777 if test "$lt_cv_path_NM" != "no"; then
12778 NM="$lt_cv_path_NM"
12779 else
12780 # Didn't find any BSD compatible name lister, look for dumpbin.
12781 if test -n "$DUMPBIN"; then :
12782 # Let the user override the test.
12783 else
12784 if test -n "$ac_tool_prefix"; then
12785 for ac_prog in dumpbin "link -dump"
12787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790 $as_echo_n "checking for $ac_word... " >&6; }
12791 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 if test -n "$DUMPBIN"; then
12795 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12796 else
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12800 IFS=$as_save_IFS
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12804 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 break 2
12808 done
12809 done
12810 IFS=$as_save_IFS
12814 DUMPBIN=$ac_cv_prog_DUMPBIN
12815 if test -n "$DUMPBIN"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12817 $as_echo "$DUMPBIN" >&6; }
12818 else
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12824 test -n "$DUMPBIN" && break
12825 done
12827 if test -z "$DUMPBIN"; then
12828 ac_ct_DUMPBIN=$DUMPBIN
12829 for ac_prog in dumpbin "link -dump"
12831 # Extract the first word of "$ac_prog", so it can be a program name with args.
12832 set dummy $ac_prog; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 if test -n "$ac_ct_DUMPBIN"; then
12839 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12852 done
12853 done
12854 IFS=$as_save_IFS
12858 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12859 if test -n "$ac_ct_DUMPBIN"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12861 $as_echo "$ac_ct_DUMPBIN" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12868 test -n "$ac_ct_DUMPBIN" && break
12869 done
12871 if test "x$ac_ct_DUMPBIN" = x; then
12872 DUMPBIN=":"
12873 else
12874 case $cross_compiling:$ac_tool_warned in
12875 yes:)
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12878 ac_tool_warned=yes ;;
12879 esac
12880 DUMPBIN=$ac_ct_DUMPBIN
12884 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12885 *COFF*)
12886 DUMPBIN="$DUMPBIN -symbols"
12889 DUMPBIN=:
12891 esac
12894 if test "$DUMPBIN" != ":"; then
12895 NM="$DUMPBIN"
12898 test -z "$NM" && NM=nm
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12906 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12907 if test "${lt_cv_nm_interface+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 lt_cv_nm_interface="BSD nm"
12911 echo "int some_variable = 0;" > conftest.$ac_ext
12912 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12913 (eval "$ac_compile" 2>conftest.err)
12914 cat conftest.err >&5
12915 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12916 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12917 cat conftest.err >&5
12918 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12919 cat conftest.out >&5
12920 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12921 lt_cv_nm_interface="MS dumpbin"
12923 rm -f conftest*
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12926 $as_echo "$lt_cv_nm_interface" >&6; }
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12929 $as_echo_n "checking whether ln -s works... " >&6; }
12930 LN_S=$as_ln_s
12931 if test "$LN_S" = "ln -s"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12933 $as_echo "yes" >&6; }
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12936 $as_echo "no, using $LN_S" >&6; }
12939 # find the maximum length of command line arguments
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12941 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12942 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12946 teststring="ABCD"
12948 case $build_os in
12949 msdosdjgpp*)
12950 # On DJGPP, this test can blow up pretty badly due to problems in libc
12951 # (any single argument exceeding 2000 bytes causes a buffer overrun
12952 # during glob expansion). Even if it were fixed, the result of this
12953 # check would be larger than it should be.
12954 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12957 gnu*)
12958 # Under GNU Hurd, this test is not required because there is
12959 # no limit to the length of command line arguments.
12960 # Libtool will interpret -1 as no limit whatsoever
12961 lt_cv_sys_max_cmd_len=-1;
12964 cygwin* | mingw* | cegcc*)
12965 # On Win9x/ME, this test blows up -- it succeeds, but takes
12966 # about 5 minutes as the teststring grows exponentially.
12967 # Worse, since 9x/ME are not pre-emptively multitasking,
12968 # you end up with a "frozen" computer, even though with patience
12969 # the test eventually succeeds (with a max line length of 256k).
12970 # Instead, let's just punt: use the minimum linelength reported by
12971 # all of the supported platforms: 8192 (on NT/2K/XP).
12972 lt_cv_sys_max_cmd_len=8192;
12975 mint*)
12976 # On MiNT this can take a long time and run out of memory.
12977 lt_cv_sys_max_cmd_len=8192;
12980 amigaos*)
12981 # On AmigaOS with pdksh, this test takes hours, literally.
12982 # So we just punt and use a minimum line length of 8192.
12983 lt_cv_sys_max_cmd_len=8192;
12986 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12987 # This has been around since 386BSD, at least. Likely further.
12988 if test -x /sbin/sysctl; then
12989 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12990 elif test -x /usr/sbin/sysctl; then
12991 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12992 else
12993 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12995 # And add a safety zone
12996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13000 interix*)
13001 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13002 lt_cv_sys_max_cmd_len=196608
13005 osf*)
13006 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13007 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13008 # nice to cause kernel panics so lets avoid the loop below.
13009 # First set a reasonable default.
13010 lt_cv_sys_max_cmd_len=16384
13012 if test -x /sbin/sysconfig; then
13013 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13014 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13015 esac
13018 sco3.2v5*)
13019 lt_cv_sys_max_cmd_len=102400
13021 sysv5* | sco5v6* | sysv4.2uw2*)
13022 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13023 if test -n "$kargmax"; then
13024 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13025 else
13026 lt_cv_sys_max_cmd_len=32768
13030 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13031 if test -n "$lt_cv_sys_max_cmd_len"; then
13032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13034 else
13035 # Make teststring a little bigger before we do anything with it.
13036 # a 1K string should be a reasonable start.
13037 for i in 1 2 3 4 5 6 7 8 ; do
13038 teststring=$teststring$teststring
13039 done
13040 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13041 # If test is not a shell built-in, we'll probably end up computing a
13042 # maximum length that is only half of the actual maximum length, but
13043 # we can't tell.
13044 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13045 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13046 test $i != 17 # 1/2 MB should be enough
13048 i=`expr $i + 1`
13049 teststring=$teststring$teststring
13050 done
13051 # Only check the string length outside the loop.
13052 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13053 teststring=
13054 # Add a significant safety factor because C++ compilers can tack on
13055 # massive amounts of additional arguments before passing them to the
13056 # linker. It appears as though 1/2 is a usable value.
13057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13060 esac
13064 if test -n $lt_cv_sys_max_cmd_len ; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13066 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13069 $as_echo "none" >&6; }
13071 max_cmd_len=$lt_cv_sys_max_cmd_len
13078 : ${CP="cp -f"}
13079 : ${MV="mv -f"}
13080 : ${RM="rm -f"}
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13083 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13084 # Try some XSI features
13085 xsi_shell=no
13086 ( _lt_dummy="a/b/c"
13087 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13088 = c,a/b,, \
13089 && eval 'test $(( 1 + 1 )) -eq 2 \
13090 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13091 && xsi_shell=yes
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13093 $as_echo "$xsi_shell" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13097 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13098 lt_shell_append=no
13099 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13100 >/dev/null 2>&1 \
13101 && lt_shell_append=yes
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13103 $as_echo "$lt_shell_append" >&6; }
13106 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13107 lt_unset=unset
13108 else
13109 lt_unset=false
13116 # test EBCDIC or ASCII
13117 case `echo X|tr X '\101'` in
13118 A) # ASCII based system
13119 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13120 lt_SP2NL='tr \040 \012'
13121 lt_NL2SP='tr \015\012 \040\040'
13123 *) # EBCDIC based system
13124 lt_SP2NL='tr \100 \n'
13125 lt_NL2SP='tr \r\n \100\100'
13127 esac
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13138 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13139 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 lt_cv_ld_reload_flag='-r'
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13145 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13146 reload_flag=$lt_cv_ld_reload_flag
13147 case $reload_flag in
13148 "" | " "*) ;;
13149 *) reload_flag=" $reload_flag" ;;
13150 esac
13151 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13152 case $host_os in
13153 darwin*)
13154 if test "$GCC" = yes; then
13155 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13156 else
13157 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13160 esac
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 if test -n "$OBJDUMP"; then
13179 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13180 else
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13184 IFS=$as_save_IFS
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13190 break 2
13192 done
13193 done
13194 IFS=$as_save_IFS
13198 OBJDUMP=$ac_cv_prog_OBJDUMP
13199 if test -n "$OBJDUMP"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13201 $as_echo "$OBJDUMP" >&6; }
13202 else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13204 $as_echo "no" >&6; }
13209 if test -z "$ac_cv_prog_OBJDUMP"; then
13210 ac_ct_OBJDUMP=$OBJDUMP
13211 # Extract the first word of "objdump", so it can be a program name with args.
13212 set dummy objdump; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 if test -n "$ac_ct_OBJDUMP"; then
13219 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13220 else
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13228 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 break 2
13232 done
13233 done
13234 IFS=$as_save_IFS
13238 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13239 if test -n "$ac_ct_OBJDUMP"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13241 $as_echo "$ac_ct_OBJDUMP" >&6; }
13242 else
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13247 if test "x$ac_ct_OBJDUMP" = x; then
13248 OBJDUMP="false"
13249 else
13250 case $cross_compiling:$ac_tool_warned in
13251 yes:)
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254 ac_tool_warned=yes ;;
13255 esac
13256 OBJDUMP=$ac_ct_OBJDUMP
13258 else
13259 OBJDUMP="$ac_cv_prog_OBJDUMP"
13262 test -z "$OBJDUMP" && OBJDUMP=objdump
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13273 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13274 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 lt_cv_file_magic_cmd='$MAGIC_CMD'
13278 lt_cv_file_magic_test_file=
13279 lt_cv_deplibs_check_method='unknown'
13280 # Need to set the preceding variable on all platforms that support
13281 # interlibrary dependencies.
13282 # 'none' -- dependencies not supported.
13283 # `unknown' -- same as none, but documents that we really don't know.
13284 # 'pass_all' -- all dependencies passed with no checks.
13285 # 'test_compile' -- check by making test program.
13286 # 'file_magic [[regex]]' -- check by looking for files in library path
13287 # which responds to the $file_magic_cmd with a given extended regex.
13288 # If you have `file' or equivalent on your system and you're not sure
13289 # whether `pass_all' will *always* work, you probably want this one.
13291 case $host_os in
13292 aix[4-9]*)
13293 lt_cv_deplibs_check_method=pass_all
13296 beos*)
13297 lt_cv_deplibs_check_method=pass_all
13300 bsdi[45]*)
13301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13302 lt_cv_file_magic_cmd='/usr/bin/file -L'
13303 lt_cv_file_magic_test_file=/shlib/libc.so
13306 cygwin*)
13307 # func_win32_libid is a shell function defined in ltmain.sh
13308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13309 lt_cv_file_magic_cmd='func_win32_libid'
13312 mingw* | pw32*)
13313 # Base MSYS/MinGW do not provide the 'file' command needed by
13314 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13315 # unless we find 'file', for example because we are cross-compiling.
13316 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13317 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13318 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13319 lt_cv_file_magic_cmd='func_win32_libid'
13320 else
13321 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13322 lt_cv_file_magic_cmd='$OBJDUMP -f'
13326 cegcc*)
13327 # use the weaker test based on 'objdump'. See mingw*.
13328 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13329 lt_cv_file_magic_cmd='$OBJDUMP -f'
13332 darwin* | rhapsody*)
13333 lt_cv_deplibs_check_method=pass_all
13336 freebsd* | dragonfly*)
13337 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13338 case $host_cpu in
13339 i*86 )
13340 # Not sure whether the presence of OpenBSD here was a mistake.
13341 # Let's accept both of them until this is cleared up.
13342 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13343 lt_cv_file_magic_cmd=/usr/bin/file
13344 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13346 esac
13347 else
13348 lt_cv_deplibs_check_method=pass_all
13352 gnu*)
13353 lt_cv_deplibs_check_method=pass_all
13356 haiku*)
13357 lt_cv_deplibs_check_method=pass_all
13360 hpux10.20* | hpux11*)
13361 lt_cv_file_magic_cmd=/usr/bin/file
13362 case $host_cpu in
13363 ia64*)
13364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13367 hppa*64*)
13368 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]'
13369 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13373 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13375 esac
13378 interix[3-9]*)
13379 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13383 irix5* | irix6* | nonstopux*)
13384 case $LD in
13385 *-32|*"-32 ") libmagic=32-bit;;
13386 *-n32|*"-n32 ") libmagic=N32;;
13387 *-64|*"-64 ") libmagic=64-bit;;
13388 *) libmagic=never-match;;
13389 esac
13390 lt_cv_deplibs_check_method=pass_all
13393 # This must be Linux ELF.
13394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13395 lt_cv_deplibs_check_method=pass_all
13398 netbsd*)
13399 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13401 else
13402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13406 newos6*)
13407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13408 lt_cv_file_magic_cmd=/usr/bin/file
13409 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13412 *nto* | *qnx*)
13413 lt_cv_deplibs_check_method=pass_all
13416 openbsd*)
13417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13419 else
13420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13424 osf3* | osf4* | osf5*)
13425 lt_cv_deplibs_check_method=pass_all
13428 rdos*)
13429 lt_cv_deplibs_check_method=pass_all
13432 solaris*)
13433 lt_cv_deplibs_check_method=pass_all
13436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13437 lt_cv_deplibs_check_method=pass_all
13440 sysv4 | sysv4.3*)
13441 case $host_vendor in
13442 motorola)
13443 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]'
13444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13446 ncr)
13447 lt_cv_deplibs_check_method=pass_all
13449 sequent)
13450 lt_cv_file_magic_cmd='/bin/file'
13451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13453 sni)
13454 lt_cv_file_magic_cmd='/bin/file'
13455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13456 lt_cv_file_magic_test_file=/lib/libc.so
13458 siemens)
13459 lt_cv_deplibs_check_method=pass_all
13462 lt_cv_deplibs_check_method=pass_all
13464 esac
13467 tpf*)
13468 lt_cv_deplibs_check_method=pass_all
13470 esac
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13474 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13475 file_magic_cmd=$lt_cv_file_magic_cmd
13476 deplibs_check_method=$lt_cv_deplibs_check_method
13477 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13490 if test -n "$ac_tool_prefix"; then
13491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13492 set dummy ${ac_tool_prefix}ar; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if test "${ac_cv_prog_AR+set}" = set; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 if test -n "$AR"; then
13499 ac_cv_prog_AR="$AR" # Let the user override the test.
13500 else
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13508 ac_cv_prog_AR="${ac_tool_prefix}ar"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510 break 2
13512 done
13513 done
13514 IFS=$as_save_IFS
13518 AR=$ac_cv_prog_AR
13519 if test -n "$AR"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13521 $as_echo "$AR" >&6; }
13522 else
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13529 if test -z "$ac_cv_prog_AR"; then
13530 ac_ct_AR=$AR
13531 # Extract the first word of "ar", so it can be a program name with args.
13532 set dummy ar; ac_word=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534 $as_echo_n "checking for $ac_word... " >&6; }
13535 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 if test -n "$ac_ct_AR"; then
13539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13540 else
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542 for as_dir in $PATH
13544 IFS=$as_save_IFS
13545 test -z "$as_dir" && as_dir=.
13546 for ac_exec_ext in '' $ac_executable_extensions; do
13547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13548 ac_cv_prog_ac_ct_AR="ar"
13549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13550 break 2
13552 done
13553 done
13554 IFS=$as_save_IFS
13558 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13559 if test -n "$ac_ct_AR"; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13561 $as_echo "$ac_ct_AR" >&6; }
13562 else
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564 $as_echo "no" >&6; }
13567 if test "x$ac_ct_AR" = x; then
13568 AR="false"
13569 else
13570 case $cross_compiling:$ac_tool_warned in
13571 yes:)
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13574 ac_tool_warned=yes ;;
13575 esac
13576 AR=$ac_ct_AR
13578 else
13579 AR="$ac_cv_prog_AR"
13582 test -z "$AR" && AR=ar
13583 test -z "$AR_FLAGS" && AR_FLAGS=cru
13595 if test -n "$ac_tool_prefix"; then
13596 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13597 set dummy ${ac_tool_prefix}strip; ac_word=$2
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; }
13600 if test "${ac_cv_prog_STRIP+set}" = set; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 if test -n "$STRIP"; then
13604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13605 else
13606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607 for as_dir in $PATH
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13613 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13615 break 2
13617 done
13618 done
13619 IFS=$as_save_IFS
13623 STRIP=$ac_cv_prog_STRIP
13624 if test -n "$STRIP"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13626 $as_echo "$STRIP" >&6; }
13627 else
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13634 if test -z "$ac_cv_prog_STRIP"; then
13635 ac_ct_STRIP=$STRIP
13636 # Extract the first word of "strip", so it can be a program name with args.
13637 set dummy strip; ac_word=$2
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13639 $as_echo_n "checking for $ac_word... " >&6; }
13640 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 if test -n "$ac_ct_STRIP"; then
13644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13645 else
13646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647 for as_dir in $PATH
13649 IFS=$as_save_IFS
13650 test -z "$as_dir" && as_dir=.
13651 for ac_exec_ext in '' $ac_executable_extensions; do
13652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13653 ac_cv_prog_ac_ct_STRIP="strip"
13654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13655 break 2
13657 done
13658 done
13659 IFS=$as_save_IFS
13663 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13664 if test -n "$ac_ct_STRIP"; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13666 $as_echo "$ac_ct_STRIP" >&6; }
13667 else
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 $as_echo "no" >&6; }
13672 if test "x$ac_ct_STRIP" = x; then
13673 STRIP=":"
13674 else
13675 case $cross_compiling:$ac_tool_warned in
13676 yes:)
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13679 ac_tool_warned=yes ;;
13680 esac
13681 STRIP=$ac_ct_STRIP
13683 else
13684 STRIP="$ac_cv_prog_STRIP"
13687 test -z "$STRIP" && STRIP=:
13694 if test -n "$ac_tool_prefix"; then
13695 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 if test -n "$RANLIB"; then
13703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13716 done
13717 done
13718 IFS=$as_save_IFS
13722 RANLIB=$ac_cv_prog_RANLIB
13723 if test -n "$RANLIB"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13725 $as_echo "$RANLIB" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13733 if test -z "$ac_cv_prog_RANLIB"; then
13734 ac_ct_RANLIB=$RANLIB
13735 # Extract the first word of "ranlib", so it can be a program name with args.
13736 set dummy ranlib; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 if test -n "$ac_ct_RANLIB"; then
13743 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13744 else
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13752 ac_cv_prog_ac_ct_RANLIB="ranlib"
13753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13756 done
13757 done
13758 IFS=$as_save_IFS
13762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13763 if test -n "$ac_ct_RANLIB"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13765 $as_echo "$ac_ct_RANLIB" >&6; }
13766 else
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 $as_echo "no" >&6; }
13771 if test "x$ac_ct_RANLIB" = x; then
13772 RANLIB=":"
13773 else
13774 case $cross_compiling:$ac_tool_warned in
13775 yes:)
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13778 ac_tool_warned=yes ;;
13779 esac
13780 RANLIB=$ac_ct_RANLIB
13782 else
13783 RANLIB="$ac_cv_prog_RANLIB"
13786 test -z "$RANLIB" && RANLIB=:
13793 # Determine commands to create old-style static archives.
13794 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13795 old_postinstall_cmds='chmod 644 $oldlib'
13796 old_postuninstall_cmds=
13798 if test -n "$RANLIB"; then
13799 case $host_os in
13800 openbsd*)
13801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13806 esac
13807 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13810 case $host_os in
13811 darwin*)
13812 lock_old_archive_extraction=yes ;;
13814 lock_old_archive_extraction=no ;;
13815 esac
13855 # If no C compiler was specified, use CC.
13856 LTCC=${LTCC-"$CC"}
13858 # If no C compiler flags were specified, use CFLAGS.
13859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13861 # Allow CC to be a program name with arguments.
13862 compiler=$CC
13865 # Check for command to grab the raw symbol name followed by C symbol from nm.
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13867 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13868 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13872 # These are sane defaults that work on at least a few old systems.
13873 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13875 # Character class describing NM global symbol codes.
13876 symcode='[BCDEGRST]'
13878 # Regexp to match symbols that can be accessed directly from C.
13879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13881 # Define system-specific variables.
13882 case $host_os in
13883 aix*)
13884 symcode='[BCDT]'
13886 cygwin* | mingw* | pw32* | cegcc*)
13887 symcode='[ABCDGISTW]'
13889 hpux*)
13890 if test "$host_cpu" = ia64; then
13891 symcode='[ABCDEGRST]'
13894 irix* | nonstopux*)
13895 symcode='[BCDEGRST]'
13897 osf*)
13898 symcode='[BCDEGQRST]'
13900 solaris*)
13901 symcode='[BDRT]'
13903 sco3.2v5*)
13904 symcode='[DT]'
13906 sysv4.2uw2*)
13907 symcode='[DT]'
13909 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13910 symcode='[ABDT]'
13912 sysv4)
13913 symcode='[DFNSTU]'
13915 esac
13917 # If we're using GNU nm, then use its standard symbol codes.
13918 case `$NM -V 2>&1` in
13919 *GNU* | *'with BFD'*)
13920 symcode='[ABCDGIRSTW]' ;;
13921 esac
13923 # Transform an extracted symbol line into a proper C declaration.
13924 # Some systems (esp. on ia64) link data and code symbols differently,
13925 # so use this general approach.
13926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13928 # Transform an extracted symbol line into symbol name and symbol address
13929 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13930 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'"
13932 # Handle CRLF in mingw tool chain
13933 opt_cr=
13934 case $build_os in
13935 mingw*)
13936 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13938 esac
13940 # Try without a prefix underscore, then with it.
13941 for ac_symprfx in "" "_"; do
13943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13944 symxfrm="\\1 $ac_symprfx\\2 \\2"
13946 # Write the raw and C identifiers.
13947 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13948 # Fake it for dumpbin and say T for any non-static function
13949 # and D for any global variable.
13950 # Also find C++ and __fastcall symbols from MSVC++,
13951 # which start with @ or ?.
13952 lt_cv_sys_global_symbol_pipe="$AWK '"\
13953 " {last_section=section; section=\$ 3};"\
13954 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13955 " \$ 0!~/External *\|/{next};"\
13956 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13957 " {if(hide[section]) next};"\
13958 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13959 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13960 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13961 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13962 " ' prfx=^$ac_symprfx"
13963 else
13964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13967 # Check to see that the pipe works correctly.
13968 pipe_works=no
13970 rm -f conftest*
13971 cat > conftest.$ac_ext <<_LT_EOF
13972 #ifdef __cplusplus
13973 extern "C" {
13974 #endif
13975 char nm_test_var;
13976 void nm_test_func(void);
13977 void nm_test_func(void){}
13978 #ifdef __cplusplus
13980 #endif
13981 int main(){nm_test_var='a';nm_test_func();return(0);}
13982 _LT_EOF
13984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13985 (eval $ac_compile) 2>&5
13986 ac_status=$?
13987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13988 test $ac_status = 0; }; then
13989 # Now try to grab the symbols.
13990 nlist=conftest.nm
13991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13992 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13993 ac_status=$?
13994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13995 test $ac_status = 0; } && test -s "$nlist"; then
13996 # Try sorting and uniquifying the output.
13997 if sort "$nlist" | uniq > "$nlist"T; then
13998 mv -f "$nlist"T "$nlist"
13999 else
14000 rm -f "$nlist"T
14003 # Make sure that we snagged all the symbols we need.
14004 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14005 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14006 cat <<_LT_EOF > conftest.$ac_ext
14007 #ifdef __cplusplus
14008 extern "C" {
14009 #endif
14011 _LT_EOF
14012 # Now generate the symbol file.
14013 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14015 cat <<_LT_EOF >> conftest.$ac_ext
14017 /* The mapping between symbol names and symbols. */
14018 const struct {
14019 const char *name;
14020 void *address;
14022 lt__PROGRAM__LTX_preloaded_symbols[] =
14024 { "@PROGRAM@", (void *) 0 },
14025 _LT_EOF
14026 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14027 cat <<\_LT_EOF >> conftest.$ac_ext
14028 {0, (void *) 0}
14031 /* This works around a problem in FreeBSD linker */
14032 #ifdef FREEBSD_WORKAROUND
14033 static const void *lt_preloaded_setup() {
14034 return lt__PROGRAM__LTX_preloaded_symbols;
14036 #endif
14038 #ifdef __cplusplus
14040 #endif
14041 _LT_EOF
14042 # Now try linking the two files.
14043 mv conftest.$ac_objext conftstm.$ac_objext
14044 lt_save_LIBS="$LIBS"
14045 lt_save_CFLAGS="$CFLAGS"
14046 LIBS="conftstm.$ac_objext"
14047 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14049 (eval $ac_link) 2>&5
14050 ac_status=$?
14051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14052 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14053 pipe_works=yes
14055 LIBS="$lt_save_LIBS"
14056 CFLAGS="$lt_save_CFLAGS"
14057 else
14058 echo "cannot find nm_test_func in $nlist" >&5
14060 else
14061 echo "cannot find nm_test_var in $nlist" >&5
14063 else
14064 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14066 else
14067 echo "$progname: failed program was:" >&5
14068 cat conftest.$ac_ext >&5
14070 rm -rf conftest* conftst*
14072 # Do not use the global_symbol_pipe unless it works.
14073 if test "$pipe_works" = yes; then
14074 break
14075 else
14076 lt_cv_sys_global_symbol_pipe=
14078 done
14082 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14083 lt_cv_sys_global_symbol_to_cdecl=
14085 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14087 $as_echo "failed" >&6; }
14088 else
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14090 $as_echo "ok" >&6; }
14114 # Check whether --enable-libtool-lock was given.
14115 if test "${enable_libtool_lock+set}" = set; then :
14116 enableval=$enable_libtool_lock;
14119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14121 # Some flags need to be propagated to the compiler or linker for good
14122 # libtool support.
14123 case $host in
14124 ia64-*-hpux*)
14125 # Find out which ABI we are using.
14126 echo 'int i;' > conftest.$ac_ext
14127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14128 (eval $ac_compile) 2>&5
14129 ac_status=$?
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; }; then
14132 case `/usr/bin/file conftest.$ac_objext` in
14133 *ELF-32*)
14134 HPUX_IA64_MODE="32"
14136 *ELF-64*)
14137 HPUX_IA64_MODE="64"
14139 esac
14141 rm -rf conftest*
14143 *-*-irix6*)
14144 # Find out which ABI we are using.
14145 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14147 (eval $ac_compile) 2>&5
14148 ac_status=$?
14149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14150 test $ac_status = 0; }; then
14151 if test "$lt_cv_prog_gnu_ld" = yes; then
14152 case `/usr/bin/file conftest.$ac_objext` in
14153 *32-bit*)
14154 LD="${LD-ld} -melf32bsmip"
14156 *N32*)
14157 LD="${LD-ld} -melf32bmipn32"
14159 *64-bit*)
14160 LD="${LD-ld} -melf64bmip"
14162 esac
14163 else
14164 case `/usr/bin/file conftest.$ac_objext` in
14165 *32-bit*)
14166 LD="${LD-ld} -32"
14168 *N32*)
14169 LD="${LD-ld} -n32"
14171 *64-bit*)
14172 LD="${LD-ld} -64"
14174 esac
14177 rm -rf conftest*
14180 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14181 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14182 # Find out which ABI we are using.
14183 echo 'int i;' > conftest.$ac_ext
14184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185 (eval $ac_compile) 2>&5
14186 ac_status=$?
14187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14188 test $ac_status = 0; }; then
14189 case `/usr/bin/file conftest.o` in
14190 *32-bit*)
14191 case $host in
14192 x86_64-*kfreebsd*-gnu)
14193 LD="${LD-ld} -m elf_i386_fbsd"
14195 x86_64-*linux*)
14196 case `/usr/bin/file conftest.o` in
14197 *x86-64*)
14198 LD="${LD-ld} -m elf32_x86_64"
14201 LD="${LD-ld} -m elf_i386"
14203 esac
14205 powerpc64le-*linux*)
14206 LD="${LD-ld} -m elf32lppclinux"
14208 powerpc64-*linux*)
14209 LD="${LD-ld} -m elf32ppclinux"
14211 s390x-*linux*)
14212 LD="${LD-ld} -m elf_s390"
14214 sparc64-*linux*)
14215 LD="${LD-ld} -m elf32_sparc"
14217 esac
14219 *64-bit*)
14220 case $host in
14221 x86_64-*kfreebsd*-gnu)
14222 LD="${LD-ld} -m elf_x86_64_fbsd"
14224 x86_64-*linux*)
14225 LD="${LD-ld} -m elf_x86_64"
14227 powerpcle-*linux*)
14228 LD="${LD-ld} -m elf64lppc"
14230 powerpc-*linux*)
14231 LD="${LD-ld} -m elf64ppc"
14233 s390*-*linux*|s390*-*tpf*)
14234 LD="${LD-ld} -m elf64_s390"
14236 sparc*-*linux*)
14237 LD="${LD-ld} -m elf64_sparc"
14239 esac
14241 esac
14243 rm -rf conftest*
14246 *-*-sco3.2v5*)
14247 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14248 SAVE_CFLAGS="$CFLAGS"
14249 CFLAGS="$CFLAGS -belf"
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14251 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14252 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 ac_ext=c
14256 ac_cpp='$CPP $CPPFLAGS'
14257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14265 main ()
14269 return 0;
14271 _ACEOF
14272 if ac_fn_c_try_link "$LINENO"; then :
14273 lt_cv_cc_needs_belf=yes
14274 else
14275 lt_cv_cc_needs_belf=no
14277 rm -f core conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14279 ac_ext=c
14280 ac_cpp='$CPP $CPPFLAGS'
14281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14287 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14288 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14289 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14290 CFLAGS="$SAVE_CFLAGS"
14293 sparc*-*solaris*)
14294 # Find out which ABI we are using.
14295 echo 'int i;' > conftest.$ac_ext
14296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14297 (eval $ac_compile) 2>&5
14298 ac_status=$?
14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14300 test $ac_status = 0; }; then
14301 case `/usr/bin/file conftest.o` in
14302 *64-bit*)
14303 case $lt_cv_prog_gnu_ld in
14304 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14306 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14307 LD="${LD-ld} -64"
14310 esac
14312 esac
14314 rm -rf conftest*
14316 esac
14318 need_locks="$enable_libtool_lock"
14321 case $host_os in
14322 rhapsody* | darwin*)
14323 if test -n "$ac_tool_prefix"; then
14324 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14327 $as_echo_n "checking for $ac_word... " >&6; }
14328 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 if test -n "$DSYMUTIL"; then
14332 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14333 else
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14345 done
14346 done
14347 IFS=$as_save_IFS
14351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14352 if test -n "$DSYMUTIL"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14354 $as_echo "$DSYMUTIL" >&6; }
14355 else
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14362 if test -z "$ac_cv_prog_DSYMUTIL"; then
14363 ac_ct_DSYMUTIL=$DSYMUTIL
14364 # Extract the first word of "dsymutil", so it can be a program name with args.
14365 set dummy dsymutil; ac_word=$2
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14367 $as_echo_n "checking for $ac_word... " >&6; }
14368 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 if test -n "$ac_ct_DSYMUTIL"; then
14372 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14373 else
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14383 break 2
14385 done
14386 done
14387 IFS=$as_save_IFS
14391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14392 if test -n "$ac_ct_DSYMUTIL"; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14395 else
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397 $as_echo "no" >&6; }
14400 if test "x$ac_ct_DSYMUTIL" = x; then
14401 DSYMUTIL=":"
14402 else
14403 case $cross_compiling:$ac_tool_warned in
14404 yes:)
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14407 ac_tool_warned=yes ;;
14408 esac
14409 DSYMUTIL=$ac_ct_DSYMUTIL
14411 else
14412 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14415 if test -n "$ac_tool_prefix"; then
14416 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419 $as_echo_n "checking for $ac_word... " >&6; }
14420 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 if test -n "$NMEDIT"; then
14424 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14425 else
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14429 IFS=$as_save_IFS
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14433 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435 break 2
14437 done
14438 done
14439 IFS=$as_save_IFS
14443 NMEDIT=$ac_cv_prog_NMEDIT
14444 if test -n "$NMEDIT"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14446 $as_echo "$NMEDIT" >&6; }
14447 else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 $as_echo "no" >&6; }
14454 if test -z "$ac_cv_prog_NMEDIT"; then
14455 ac_ct_NMEDIT=$NMEDIT
14456 # Extract the first word of "nmedit", so it can be a program name with args.
14457 set dummy nmedit; ac_word=$2
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14459 $as_echo_n "checking for $ac_word... " >&6; }
14460 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 if test -n "$ac_ct_NMEDIT"; then
14464 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14465 else
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $PATH
14469 IFS=$as_save_IFS
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14473 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14475 break 2
14477 done
14478 done
14479 IFS=$as_save_IFS
14483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14484 if test -n "$ac_ct_NMEDIT"; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14486 $as_echo "$ac_ct_NMEDIT" >&6; }
14487 else
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489 $as_echo "no" >&6; }
14492 if test "x$ac_ct_NMEDIT" = x; then
14493 NMEDIT=":"
14494 else
14495 case $cross_compiling:$ac_tool_warned in
14496 yes:)
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14499 ac_tool_warned=yes ;;
14500 esac
14501 NMEDIT=$ac_ct_NMEDIT
14503 else
14504 NMEDIT="$ac_cv_prog_NMEDIT"
14507 if test -n "$ac_tool_prefix"; then
14508 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14511 $as_echo_n "checking for $ac_word... " >&6; }
14512 if test "${ac_cv_prog_LIPO+set}" = set; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 if test -n "$LIPO"; then
14516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14517 else
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14521 IFS=$as_save_IFS
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
14524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14525 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14527 break 2
14529 done
14530 done
14531 IFS=$as_save_IFS
14535 LIPO=$ac_cv_prog_LIPO
14536 if test -n "$LIPO"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14538 $as_echo "$LIPO" >&6; }
14539 else
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541 $as_echo "no" >&6; }
14546 if test -z "$ac_cv_prog_LIPO"; then
14547 ac_ct_LIPO=$LIPO
14548 # Extract the first word of "lipo", so it can be a program name with args.
14549 set dummy lipo; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14551 $as_echo_n "checking for $ac_word... " >&6; }
14552 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 if test -n "$ac_ct_LIPO"; then
14556 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14557 else
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14561 IFS=$as_save_IFS
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14565 ac_cv_prog_ac_ct_LIPO="lipo"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14567 break 2
14569 done
14570 done
14571 IFS=$as_save_IFS
14575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14576 if test -n "$ac_ct_LIPO"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14578 $as_echo "$ac_ct_LIPO" >&6; }
14579 else
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14584 if test "x$ac_ct_LIPO" = x; then
14585 LIPO=":"
14586 else
14587 case $cross_compiling:$ac_tool_warned in
14588 yes:)
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14591 ac_tool_warned=yes ;;
14592 esac
14593 LIPO=$ac_ct_LIPO
14595 else
14596 LIPO="$ac_cv_prog_LIPO"
14599 if test -n "$ac_tool_prefix"; then
14600 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14601 set dummy ${ac_tool_prefix}otool; ac_word=$2
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14603 $as_echo_n "checking for $ac_word... " >&6; }
14604 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 if test -n "$OTOOL"; then
14608 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14609 else
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14613 IFS=$as_save_IFS
14614 test -z "$as_dir" && as_dir=.
14615 for ac_exec_ext in '' $ac_executable_extensions; do
14616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14617 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14619 break 2
14621 done
14622 done
14623 IFS=$as_save_IFS
14627 OTOOL=$ac_cv_prog_OTOOL
14628 if test -n "$OTOOL"; then
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14630 $as_echo "$OTOOL" >&6; }
14631 else
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14633 $as_echo "no" >&6; }
14638 if test -z "$ac_cv_prog_OTOOL"; then
14639 ac_ct_OTOOL=$OTOOL
14640 # Extract the first word of "otool", so it can be a program name with args.
14641 set dummy otool; ac_word=$2
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643 $as_echo_n "checking for $ac_word... " >&6; }
14644 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 if test -n "$ac_ct_OTOOL"; then
14648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14649 else
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14653 IFS=$as_save_IFS
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14657 ac_cv_prog_ac_ct_OTOOL="otool"
14658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659 break 2
14661 done
14662 done
14663 IFS=$as_save_IFS
14667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14668 if test -n "$ac_ct_OTOOL"; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14670 $as_echo "$ac_ct_OTOOL" >&6; }
14671 else
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673 $as_echo "no" >&6; }
14676 if test "x$ac_ct_OTOOL" = x; then
14677 OTOOL=":"
14678 else
14679 case $cross_compiling:$ac_tool_warned in
14680 yes:)
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14683 ac_tool_warned=yes ;;
14684 esac
14685 OTOOL=$ac_ct_OTOOL
14687 else
14688 OTOOL="$ac_cv_prog_OTOOL"
14691 if test -n "$ac_tool_prefix"; then
14692 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14695 $as_echo_n "checking for $ac_word... " >&6; }
14696 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14697 $as_echo_n "(cached) " >&6
14698 else
14699 if test -n "$OTOOL64"; then
14700 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14701 else
14702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14703 for as_dir in $PATH
14705 IFS=$as_save_IFS
14706 test -z "$as_dir" && as_dir=.
14707 for ac_exec_ext in '' $ac_executable_extensions; do
14708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14709 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14711 break 2
14713 done
14714 done
14715 IFS=$as_save_IFS
14719 OTOOL64=$ac_cv_prog_OTOOL64
14720 if test -n "$OTOOL64"; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14722 $as_echo "$OTOOL64" >&6; }
14723 else
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14725 $as_echo "no" >&6; }
14730 if test -z "$ac_cv_prog_OTOOL64"; then
14731 ac_ct_OTOOL64=$OTOOL64
14732 # Extract the first word of "otool64", so it can be a program name with args.
14733 set dummy otool64; ac_word=$2
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14735 $as_echo_n "checking for $ac_word... " >&6; }
14736 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 if test -n "$ac_ct_OTOOL64"; then
14740 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14741 else
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14745 IFS=$as_save_IFS
14746 test -z "$as_dir" && as_dir=.
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14749 ac_cv_prog_ac_ct_OTOOL64="otool64"
14750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14751 break 2
14753 done
14754 done
14755 IFS=$as_save_IFS
14759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14760 if test -n "$ac_ct_OTOOL64"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14762 $as_echo "$ac_ct_OTOOL64" >&6; }
14763 else
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 $as_echo "no" >&6; }
14768 if test "x$ac_ct_OTOOL64" = x; then
14769 OTOOL64=":"
14770 else
14771 case $cross_compiling:$ac_tool_warned in
14772 yes:)
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14775 ac_tool_warned=yes ;;
14776 esac
14777 OTOOL64=$ac_ct_OTOOL64
14779 else
14780 OTOOL64="$ac_cv_prog_OTOOL64"
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14810 $as_echo_n "checking for -single_module linker flag... " >&6; }
14811 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 lt_cv_apple_cc_single_mod=no
14815 if test -z "${LT_MULTI_MODULE}"; then
14816 # By default we will add the -single_module flag. You can override
14817 # by either setting the environment variable LT_MULTI_MODULE
14818 # non-empty at configure time, or by adding -multi_module to the
14819 # link flags.
14820 rm -rf libconftest.dylib*
14821 echo "int foo(void){return 1;}" > conftest.c
14822 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14823 -dynamiclib -Wl,-single_module conftest.c" >&5
14824 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14825 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14826 _lt_result=$?
14827 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14828 lt_cv_apple_cc_single_mod=yes
14829 else
14830 cat conftest.err >&5
14832 rm -rf libconftest.dylib*
14833 rm -f conftest.*
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14837 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14839 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14840 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843 lt_cv_ld_exported_symbols_list=no
14844 save_LDFLAGS=$LDFLAGS
14845 echo "_main" > conftest.sym
14846 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14851 main ()
14855 return 0;
14857 _ACEOF
14858 if ac_fn_c_try_link "$LINENO"; then :
14859 lt_cv_ld_exported_symbols_list=yes
14860 else
14861 lt_cv_ld_exported_symbols_list=no
14863 rm -f core conftest.err conftest.$ac_objext \
14864 conftest$ac_exeext conftest.$ac_ext
14865 LDFLAGS="$save_LDFLAGS"
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14869 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14871 $as_echo_n "checking for -force_load linker flag... " >&6; }
14872 if test "${lt_cv_ld_force_load+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 lt_cv_ld_force_load=no
14876 cat > conftest.c << _LT_EOF
14877 int forced_loaded() { return 2;}
14878 _LT_EOF
14879 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14880 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14881 echo "$AR cru libconftest.a conftest.o" >&5
14882 $AR cru libconftest.a conftest.o 2>&5
14883 cat > conftest.c << _LT_EOF
14884 int main() { return 0;}
14885 _LT_EOF
14886 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14887 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14888 _lt_result=$?
14889 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14890 lt_cv_ld_force_load=yes
14891 else
14892 cat conftest.err >&5
14894 rm -f conftest.err libconftest.a conftest conftest.c
14895 rm -rf conftest.dSYM
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14899 $as_echo "$lt_cv_ld_force_load" >&6; }
14900 case $host_os in
14901 rhapsody* | darwin1.[012])
14902 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14903 darwin1.*)
14904 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14905 darwin*) # darwin 5.x on
14906 # if running on 10.5 or later, the deployment target defaults
14907 # to the OS version, if on x86, and 10.4, the deployment
14908 # target defaults to 10.4. Don't you love it?
14909 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14910 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14911 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14912 10.[012][,.]*)
14913 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14914 10.*)
14915 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14916 esac
14918 esac
14919 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14920 _lt_dar_single_mod='$single_module'
14922 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14923 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14924 else
14925 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14927 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14928 _lt_dsymutil='~$DSYMUTIL $lib || :'
14929 else
14930 _lt_dsymutil=
14933 esac
14936 for ac_header in dlfcn.h
14937 do :
14938 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14939 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14940 cat >>confdefs.h <<_ACEOF
14941 #define HAVE_DLFCN_H 1
14942 _ACEOF
14945 done
14951 # Set options
14955 enable_dlopen=no
14958 enable_win32_dll=no
14961 # Check whether --enable-shared was given.
14962 if test "${enable_shared+set}" = set; then :
14963 enableval=$enable_shared; p=${PACKAGE-default}
14964 case $enableval in
14965 yes) enable_shared=yes ;;
14966 no) enable_shared=no ;;
14968 enable_shared=no
14969 # Look at the argument we got. We use all the common list separators.
14970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14971 for pkg in $enableval; do
14972 IFS="$lt_save_ifs"
14973 if test "X$pkg" = "X$p"; then
14974 enable_shared=yes
14976 done
14977 IFS="$lt_save_ifs"
14979 esac
14980 else
14981 enable_shared=yes
14992 # Check whether --enable-static was given.
14993 if test "${enable_static+set}" = set; then :
14994 enableval=$enable_static; p=${PACKAGE-default}
14995 case $enableval in
14996 yes) enable_static=yes ;;
14997 no) enable_static=no ;;
14999 enable_static=no
15000 # Look at the argument we got. We use all the common list separators.
15001 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15002 for pkg in $enableval; do
15003 IFS="$lt_save_ifs"
15004 if test "X$pkg" = "X$p"; then
15005 enable_static=yes
15007 done
15008 IFS="$lt_save_ifs"
15010 esac
15011 else
15012 enable_static=yes
15024 # Check whether --with-pic was given.
15025 if test "${with_pic+set}" = set; then :
15026 withval=$with_pic; pic_mode="$withval"
15027 else
15028 pic_mode=default
15032 test -z "$pic_mode" && pic_mode=default
15040 # Check whether --enable-fast-install was given.
15041 if test "${enable_fast_install+set}" = set; then :
15042 enableval=$enable_fast_install; p=${PACKAGE-default}
15043 case $enableval in
15044 yes) enable_fast_install=yes ;;
15045 no) enable_fast_install=no ;;
15047 enable_fast_install=no
15048 # Look at the argument we got. We use all the common list separators.
15049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15050 for pkg in $enableval; do
15051 IFS="$lt_save_ifs"
15052 if test "X$pkg" = "X$p"; then
15053 enable_fast_install=yes
15055 done
15056 IFS="$lt_save_ifs"
15058 esac
15059 else
15060 enable_fast_install=yes
15073 # This can be used to rebuild libtool when needed
15074 LIBTOOL_DEPS="$ltmain"
15076 # Always use our own libtool.
15077 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15104 test -z "$LN_S" && LN_S="ln -s"
15119 if test -n "${ZSH_VERSION+set}" ; then
15120 setopt NO_GLOB_SUBST
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15124 $as_echo_n "checking for objdir... " >&6; }
15125 if test "${lt_cv_objdir+set}" = set; then :
15126 $as_echo_n "(cached) " >&6
15127 else
15128 rm -f .libs 2>/dev/null
15129 mkdir .libs 2>/dev/null
15130 if test -d .libs; then
15131 lt_cv_objdir=.libs
15132 else
15133 # MS-DOS does not allow filenames that begin with a dot.
15134 lt_cv_objdir=_libs
15136 rmdir .libs 2>/dev/null
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15139 $as_echo "$lt_cv_objdir" >&6; }
15140 objdir=$lt_cv_objdir
15146 cat >>confdefs.h <<_ACEOF
15147 #define LT_OBJDIR "$lt_cv_objdir/"
15148 _ACEOF
15153 case $host_os in
15154 aix3*)
15155 # AIX sometimes has problems with the GCC collect2 program. For some
15156 # reason, if we set the COLLECT_NAMES environment variable, the problems
15157 # vanish in a puff of smoke.
15158 if test "X${COLLECT_NAMES+set}" != Xset; then
15159 COLLECT_NAMES=
15160 export COLLECT_NAMES
15163 esac
15165 # Global variables:
15166 ofile=libtool
15167 can_build_shared=yes
15169 # All known linkers require a `.a' archive for static linking (except MSVC,
15170 # which needs '.lib').
15171 libext=a
15173 with_gnu_ld="$lt_cv_prog_gnu_ld"
15175 old_CC="$CC"
15176 old_CFLAGS="$CFLAGS"
15178 # Set sane defaults for various variables
15179 test -z "$CC" && CC=cc
15180 test -z "$LTCC" && LTCC=$CC
15181 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15182 test -z "$LD" && LD=ld
15183 test -z "$ac_objext" && ac_objext=o
15185 for cc_temp in $compiler""; do
15186 case $cc_temp in
15187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15189 \-*) ;;
15190 *) break;;
15191 esac
15192 done
15193 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15196 # Only perform the check for file, if the check method requires it
15197 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15198 case $deplibs_check_method in
15199 file_magic*)
15200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15202 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 case $MAGIC_CMD in
15207 [\\/*] | ?:[\\/]*)
15208 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15211 lt_save_MAGIC_CMD="$MAGIC_CMD"
15212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15213 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15214 for ac_dir in $ac_dummy; do
15215 IFS="$lt_save_ifs"
15216 test -z "$ac_dir" && ac_dir=.
15217 if test -f $ac_dir/${ac_tool_prefix}file; then
15218 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15219 if test -n "$file_magic_test_file"; then
15220 case $deplibs_check_method in
15221 "file_magic "*)
15222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15225 $EGREP "$file_magic_regex" > /dev/null; then
15227 else
15228 cat <<_LT_EOF 1>&2
15230 *** Warning: the command libtool uses to detect shared libraries,
15231 *** $file_magic_cmd, produces output that libtool cannot recognize.
15232 *** The result is that libtool may fail to recognize shared libraries
15233 *** as such. This will affect the creation of libtool libraries that
15234 *** depend on shared libraries, but programs linked with such libtool
15235 *** libraries will work regardless of this problem. Nevertheless, you
15236 *** may want to report the problem to your system manager and/or to
15237 *** bug-libtool@gnu.org
15239 _LT_EOF
15240 fi ;;
15241 esac
15243 break
15245 done
15246 IFS="$lt_save_ifs"
15247 MAGIC_CMD="$lt_save_MAGIC_CMD"
15249 esac
15252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15253 if test -n "$MAGIC_CMD"; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15255 $as_echo "$MAGIC_CMD" >&6; }
15256 else
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15258 $as_echo "no" >&6; }
15265 if test -z "$lt_cv_path_MAGIC_CMD"; then
15266 if test -n "$ac_tool_prefix"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15268 $as_echo_n "checking for file... " >&6; }
15269 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15270 $as_echo_n "(cached) " >&6
15271 else
15272 case $MAGIC_CMD in
15273 [\\/*] | ?:[\\/]*)
15274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15277 lt_save_MAGIC_CMD="$MAGIC_CMD"
15278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15280 for ac_dir in $ac_dummy; do
15281 IFS="$lt_save_ifs"
15282 test -z "$ac_dir" && ac_dir=.
15283 if test -f $ac_dir/file; then
15284 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15285 if test -n "$file_magic_test_file"; then
15286 case $deplibs_check_method in
15287 "file_magic "*)
15288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15291 $EGREP "$file_magic_regex" > /dev/null; then
15293 else
15294 cat <<_LT_EOF 1>&2
15296 *** Warning: the command libtool uses to detect shared libraries,
15297 *** $file_magic_cmd, produces output that libtool cannot recognize.
15298 *** The result is that libtool may fail to recognize shared libraries
15299 *** as such. This will affect the creation of libtool libraries that
15300 *** depend on shared libraries, but programs linked with such libtool
15301 *** libraries will work regardless of this problem. Nevertheless, you
15302 *** may want to report the problem to your system manager and/or to
15303 *** bug-libtool@gnu.org
15305 _LT_EOF
15306 fi ;;
15307 esac
15309 break
15311 done
15312 IFS="$lt_save_ifs"
15313 MAGIC_CMD="$lt_save_MAGIC_CMD"
15315 esac
15318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15319 if test -n "$MAGIC_CMD"; then
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15321 $as_echo "$MAGIC_CMD" >&6; }
15322 else
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324 $as_echo "no" >&6; }
15328 else
15329 MAGIC_CMD=:
15335 esac
15337 # Use C for the default configuration in the libtool script
15339 lt_save_CC="$CC"
15340 ac_ext=c
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15347 # Source file extension for C test sources.
15348 ac_ext=c
15350 # Object file extension for compiled C test sources.
15351 objext=o
15352 objext=$objext
15354 # Code to be used in simple compile tests
15355 lt_simple_compile_test_code="int some_variable = 0;"
15357 # Code to be used in simple link tests
15358 lt_simple_link_test_code='int main(){return(0);}'
15366 # If no C compiler was specified, use CC.
15367 LTCC=${LTCC-"$CC"}
15369 # If no C compiler flags were specified, use CFLAGS.
15370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15372 # Allow CC to be a program name with arguments.
15373 compiler=$CC
15375 # Save the default compiler, since it gets overwritten when the other
15376 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15377 compiler_DEFAULT=$CC
15379 # save warnings/boilerplate of simple test code
15380 ac_outfile=conftest.$ac_objext
15381 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15382 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15383 _lt_compiler_boilerplate=`cat conftest.err`
15384 $RM conftest*
15386 ac_outfile=conftest.$ac_objext
15387 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15388 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15389 _lt_linker_boilerplate=`cat conftest.err`
15390 $RM -r conftest*
15393 ## CAVEAT EMPTOR:
15394 ## There is no encapsulation within the following macros, do not change
15395 ## the running order or otherwise move them around unless you know exactly
15396 ## what you are doing...
15397 if test -n "$compiler"; then
15399 lt_prog_compiler_no_builtin_flag=
15401 if test "$GCC" = yes; then
15402 case $cc_basename in
15403 nvcc*)
15404 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15406 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15407 esac
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15410 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15412 $as_echo_n "(cached) " >&6
15413 else
15414 lt_cv_prog_compiler_rtti_exceptions=no
15415 ac_outfile=conftest.$ac_objext
15416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15417 lt_compiler_flag="-fno-rtti -fno-exceptions"
15418 # Insert the option either (1) after the last *FLAGS variable, or
15419 # (2) before a word containing "conftest.", or (3) at the end.
15420 # Note that $ac_compile itself does not contain backslashes and begins
15421 # with a dollar sign (not a hyphen), so the echo should work correctly.
15422 # The option is referenced via a variable to avoid confusing sed.
15423 lt_compile=`echo "$ac_compile" | $SED \
15424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15426 -e 's:$: $lt_compiler_flag:'`
15427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15428 (eval "$lt_compile" 2>conftest.err)
15429 ac_status=$?
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 if (exit $ac_status) && test -s "$ac_outfile"; then
15433 # The compiler can only warn and ignore the option if not recognized
15434 # So say no if there are warnings other than the usual output.
15435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15438 lt_cv_prog_compiler_rtti_exceptions=yes
15441 $RM conftest*
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15445 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15448 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15449 else
15460 lt_prog_compiler_wl=
15461 lt_prog_compiler_pic=
15462 lt_prog_compiler_static=
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15465 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15467 if test "$GCC" = yes; then
15468 lt_prog_compiler_wl='-Wl,'
15469 lt_prog_compiler_static='-static'
15471 case $host_os in
15472 aix*)
15473 # All AIX code is PIC.
15474 if test "$host_cpu" = ia64; then
15475 # AIX 5 now supports IA64 processor
15476 lt_prog_compiler_static='-Bstatic'
15478 lt_prog_compiler_pic='-fPIC'
15481 amigaos*)
15482 case $host_cpu in
15483 powerpc)
15484 # see comment about AmigaOS4 .so support
15485 lt_prog_compiler_pic='-fPIC'
15487 m68k)
15488 # FIXME: we need at least 68020 code to build shared libraries, but
15489 # adding the `-m68020' flag to GCC prevents building anything better,
15490 # like `-m68040'.
15491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15493 esac
15496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15497 # PIC is the default for these OSes.
15500 mingw* | cygwin* | pw32* | os2* | cegcc*)
15501 # This hack is so that the source file can tell whether it is being
15502 # built for inclusion in a dll (and should export symbols for example).
15503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15504 # (--disable-auto-import) libraries
15505 lt_prog_compiler_pic='-DDLL_EXPORT'
15508 darwin* | rhapsody*)
15509 # PIC is the default on this platform
15510 # Common symbols not allowed in MH_DYLIB files
15511 lt_prog_compiler_pic='-fno-common'
15514 haiku*)
15515 # PIC is the default for Haiku.
15516 # The "-static" flag exists, but is broken.
15517 lt_prog_compiler_static=
15520 hpux*)
15521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15523 # sets the default TLS model and affects inlining.
15524 case $host_cpu in
15525 hppa*64*)
15526 # +Z the default
15529 lt_prog_compiler_pic='-fPIC'
15531 esac
15534 interix[3-9]*)
15535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15536 # Instead, we relocate shared libraries at runtime.
15539 msdosdjgpp*)
15540 # Just because we use GCC doesn't mean we suddenly get shared libraries
15541 # on systems that don't support them.
15542 lt_prog_compiler_can_build_shared=no
15543 enable_shared=no
15546 *nto* | *qnx*)
15547 # QNX uses GNU C++, but need to define -shared option too, otherwise
15548 # it will coredump.
15549 lt_prog_compiler_pic='-fPIC -shared'
15552 sysv4*MP*)
15553 if test -d /usr/nec; then
15554 lt_prog_compiler_pic=-Kconform_pic
15559 lt_prog_compiler_pic='-fPIC'
15561 esac
15563 case $cc_basename in
15564 nvcc*) # Cuda Compiler Driver 2.2
15565 lt_prog_compiler_wl='-Xlinker '
15566 lt_prog_compiler_pic='-Xcompiler -fPIC'
15568 esac
15569 else
15570 # PORTME Check for flag to pass linker flags through the system compiler.
15571 case $host_os in
15572 aix*)
15573 lt_prog_compiler_wl='-Wl,'
15574 if test "$host_cpu" = ia64; then
15575 # AIX 5 now supports IA64 processor
15576 lt_prog_compiler_static='-Bstatic'
15577 else
15578 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15582 mingw* | cygwin* | pw32* | os2* | cegcc*)
15583 # This hack is so that the source file can tell whether it is being
15584 # built for inclusion in a dll (and should export symbols for example).
15585 lt_prog_compiler_pic='-DDLL_EXPORT'
15588 hpux9* | hpux10* | hpux11*)
15589 lt_prog_compiler_wl='-Wl,'
15590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15591 # not for PA HP-UX.
15592 case $host_cpu in
15593 hppa*64*|ia64*)
15594 # +Z the default
15597 lt_prog_compiler_pic='+Z'
15599 esac
15600 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15601 lt_prog_compiler_static='${wl}-a ${wl}archive'
15604 irix5* | irix6* | nonstopux*)
15605 lt_prog_compiler_wl='-Wl,'
15606 # PIC (with -KPIC) is the default.
15607 lt_prog_compiler_static='-non_shared'
15610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15611 case $cc_basename in
15612 # old Intel for x86_64 which still supported -KPIC.
15613 ecc*)
15614 lt_prog_compiler_wl='-Wl,'
15615 lt_prog_compiler_pic='-KPIC'
15616 lt_prog_compiler_static='-static'
15618 # icc used to be incompatible with GCC.
15619 # ICC 10 doesn't accept -KPIC any more.
15620 icc* | ifort*)
15621 lt_prog_compiler_wl='-Wl,'
15622 lt_prog_compiler_pic='-fPIC'
15623 lt_prog_compiler_static='-static'
15625 # Lahey Fortran 8.1.
15626 lf95*)
15627 lt_prog_compiler_wl='-Wl,'
15628 lt_prog_compiler_pic='--shared'
15629 lt_prog_compiler_static='--static'
15631 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15632 # Portland Group compilers (*not* the Pentium gcc compiler,
15633 # which looks to be a dead project)
15634 lt_prog_compiler_wl='-Wl,'
15635 lt_prog_compiler_pic='-fpic'
15636 lt_prog_compiler_static='-Bstatic'
15638 ccc*)
15639 lt_prog_compiler_wl='-Wl,'
15640 # All Alpha code is PIC.
15641 lt_prog_compiler_static='-non_shared'
15643 xl* | bgxl* | bgf* | mpixl*)
15644 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='-qpic'
15647 lt_prog_compiler_static='-qstaticlink'
15650 case `$CC -V 2>&1 | sed 5q` in
15651 *Sun\ F* | *Sun*Fortran*)
15652 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-Bstatic'
15655 lt_prog_compiler_wl=''
15657 *Sun\ C*)
15658 # Sun C 5.9
15659 lt_prog_compiler_pic='-KPIC'
15660 lt_prog_compiler_static='-Bstatic'
15661 lt_prog_compiler_wl='-Wl,'
15663 esac
15665 esac
15668 newsos6)
15669 lt_prog_compiler_pic='-KPIC'
15670 lt_prog_compiler_static='-Bstatic'
15673 *nto* | *qnx*)
15674 # QNX uses GNU C++, but need to define -shared option too, otherwise
15675 # it will coredump.
15676 lt_prog_compiler_pic='-fPIC -shared'
15679 osf3* | osf4* | osf5*)
15680 lt_prog_compiler_wl='-Wl,'
15681 # All OSF/1 code is PIC.
15682 lt_prog_compiler_static='-non_shared'
15685 rdos*)
15686 lt_prog_compiler_static='-non_shared'
15689 solaris*)
15690 lt_prog_compiler_pic='-KPIC'
15691 lt_prog_compiler_static='-Bstatic'
15692 case $cc_basename in
15693 f77* | f90* | f95*)
15694 lt_prog_compiler_wl='-Qoption ld ';;
15696 lt_prog_compiler_wl='-Wl,';;
15697 esac
15700 sunos4*)
15701 lt_prog_compiler_wl='-Qoption ld '
15702 lt_prog_compiler_pic='-PIC'
15703 lt_prog_compiler_static='-Bstatic'
15706 sysv4 | sysv4.2uw2* | sysv4.3*)
15707 lt_prog_compiler_wl='-Wl,'
15708 lt_prog_compiler_pic='-KPIC'
15709 lt_prog_compiler_static='-Bstatic'
15712 sysv4*MP*)
15713 if test -d /usr/nec ;then
15714 lt_prog_compiler_pic='-Kconform_pic'
15715 lt_prog_compiler_static='-Bstatic'
15719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15720 lt_prog_compiler_wl='-Wl,'
15721 lt_prog_compiler_pic='-KPIC'
15722 lt_prog_compiler_static='-Bstatic'
15725 unicos*)
15726 lt_prog_compiler_wl='-Wl,'
15727 lt_prog_compiler_can_build_shared=no
15730 uts4*)
15731 lt_prog_compiler_pic='-pic'
15732 lt_prog_compiler_static='-Bstatic'
15736 lt_prog_compiler_can_build_shared=no
15738 esac
15741 case $host_os in
15742 # For platforms which do not support PIC, -DPIC is meaningless:
15743 *djgpp*)
15744 lt_prog_compiler_pic=
15747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15749 esac
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15751 $as_echo "$lt_prog_compiler_pic" >&6; }
15759 # Check to make sure the PIC flag actually works.
15761 if test -n "$lt_prog_compiler_pic"; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15763 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15764 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15765 $as_echo_n "(cached) " >&6
15766 else
15767 lt_cv_prog_compiler_pic_works=no
15768 ac_outfile=conftest.$ac_objext
15769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15770 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15771 # Insert the option either (1) after the last *FLAGS variable, or
15772 # (2) before a word containing "conftest.", or (3) at the end.
15773 # Note that $ac_compile itself does not contain backslashes and begins
15774 # with a dollar sign (not a hyphen), so the echo should work correctly.
15775 # The option is referenced via a variable to avoid confusing sed.
15776 lt_compile=`echo "$ac_compile" | $SED \
15777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15779 -e 's:$: $lt_compiler_flag:'`
15780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15781 (eval "$lt_compile" 2>conftest.err)
15782 ac_status=$?
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 if (exit $ac_status) && test -s "$ac_outfile"; then
15786 # The compiler can only warn and ignore the option if not recognized
15787 # So say no if there are warnings other than the usual output.
15788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15791 lt_cv_prog_compiler_pic_works=yes
15794 $RM conftest*
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15798 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15800 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15801 case $lt_prog_compiler_pic in
15802 "" | " "*) ;;
15803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15804 esac
15805 else
15806 lt_prog_compiler_pic=
15807 lt_prog_compiler_can_build_shared=no
15818 # Check to make sure the static flag actually works.
15820 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15822 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15823 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15824 $as_echo_n "(cached) " >&6
15825 else
15826 lt_cv_prog_compiler_static_works=no
15827 save_LDFLAGS="$LDFLAGS"
15828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15831 # The linker can only warn and ignore the option if not recognized
15832 # So say no if there are warnings
15833 if test -s conftest.err; then
15834 # Append any errors to the config.log.
15835 cat conftest.err 1>&5
15836 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15838 if diff conftest.exp conftest.er2 >/dev/null; then
15839 lt_cv_prog_compiler_static_works=yes
15841 else
15842 lt_cv_prog_compiler_static_works=yes
15845 $RM -r conftest*
15846 LDFLAGS="$save_LDFLAGS"
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15850 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15852 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15854 else
15855 lt_prog_compiler_static=
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15865 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15866 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15867 $as_echo_n "(cached) " >&6
15868 else
15869 lt_cv_prog_compiler_c_o=no
15870 $RM -r conftest 2>/dev/null
15871 mkdir conftest
15872 cd conftest
15873 mkdir out
15874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15876 lt_compiler_flag="-o out/conftest2.$ac_objext"
15877 # Insert the option either (1) after the last *FLAGS variable, or
15878 # (2) before a word containing "conftest.", or (3) at the end.
15879 # Note that $ac_compile itself does not contain backslashes and begins
15880 # with a dollar sign (not a hyphen), so the echo should work correctly.
15881 lt_compile=`echo "$ac_compile" | $SED \
15882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15884 -e 's:$: $lt_compiler_flag:'`
15885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15886 (eval "$lt_compile" 2>out/conftest.err)
15887 ac_status=$?
15888 cat out/conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15891 then
15892 # The compiler can only warn and ignore the option if not recognized
15893 # So say no if there are warnings
15894 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15897 lt_cv_prog_compiler_c_o=yes
15900 chmod u+w . 2>&5
15901 $RM conftest*
15902 # SGI C++ compiler will create directory out/ii_files/ for
15903 # template instantiation
15904 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15905 $RM out/* && rmdir out
15906 cd ..
15907 $RM -r conftest
15908 $RM conftest*
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15912 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15920 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15921 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15922 $as_echo_n "(cached) " >&6
15923 else
15924 lt_cv_prog_compiler_c_o=no
15925 $RM -r conftest 2>/dev/null
15926 mkdir conftest
15927 cd conftest
15928 mkdir out
15929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15931 lt_compiler_flag="-o out/conftest2.$ac_objext"
15932 # Insert the option either (1) after the last *FLAGS variable, or
15933 # (2) before a word containing "conftest.", or (3) at the end.
15934 # Note that $ac_compile itself does not contain backslashes and begins
15935 # with a dollar sign (not a hyphen), so the echo should work correctly.
15936 lt_compile=`echo "$ac_compile" | $SED \
15937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15939 -e 's:$: $lt_compiler_flag:'`
15940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15941 (eval "$lt_compile" 2>out/conftest.err)
15942 ac_status=$?
15943 cat out/conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15946 then
15947 # The compiler can only warn and ignore the option if not recognized
15948 # So say no if there are warnings
15949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15952 lt_cv_prog_compiler_c_o=yes
15955 chmod u+w . 2>&5
15956 $RM conftest*
15957 # SGI C++ compiler will create directory out/ii_files/ for
15958 # template instantiation
15959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15960 $RM out/* && rmdir out
15961 cd ..
15962 $RM -r conftest
15963 $RM conftest*
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15967 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15972 hard_links="nottested"
15973 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15974 # do not overwrite the value of need_locks provided by the user
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15976 $as_echo_n "checking if we can lock with hard links... " >&6; }
15977 hard_links=yes
15978 $RM conftest*
15979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15980 touch conftest.a
15981 ln conftest.a conftest.b 2>&5 || hard_links=no
15982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15984 $as_echo "$hard_links" >&6; }
15985 if test "$hard_links" = no; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15987 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15988 need_locks=warn
15990 else
15991 need_locks=no
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16000 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16002 runpath_var=
16003 allow_undefined_flag=
16004 always_export_symbols=no
16005 archive_cmds=
16006 archive_expsym_cmds=
16007 compiler_needs_object=no
16008 enable_shared_with_static_runtimes=no
16009 export_dynamic_flag_spec=
16010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16011 hardcode_automatic=no
16012 hardcode_direct=no
16013 hardcode_direct_absolute=no
16014 hardcode_libdir_flag_spec=
16015 hardcode_libdir_flag_spec_ld=
16016 hardcode_libdir_separator=
16017 hardcode_minus_L=no
16018 hardcode_shlibpath_var=unsupported
16019 inherit_rpath=no
16020 link_all_deplibs=unknown
16021 module_cmds=
16022 module_expsym_cmds=
16023 old_archive_from_new_cmds=
16024 old_archive_from_expsyms_cmds=
16025 thread_safe_flag_spec=
16026 whole_archive_flag_spec=
16027 # include_expsyms should be a list of space-separated symbols to be *always*
16028 # included in the symbol list
16029 include_expsyms=
16030 # exclude_expsyms can be an extended regexp of symbols to exclude
16031 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16032 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16033 # as well as any symbol that contains `d'.
16034 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16036 # platforms (ab)use it in PIC code, but their linkers get confused if
16037 # the symbol is explicitly referenced. Since portable code cannot
16038 # rely on this symbol name, it's probably fine to never include it in
16039 # preloaded symbol tables.
16040 # Exclude shared library initialization/finalization symbols.
16041 extract_expsyms_cmds=
16043 case $host_os in
16044 cygwin* | mingw* | pw32* | cegcc*)
16045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16046 # When not using gcc, we currently assume that we are using
16047 # Microsoft Visual C++.
16048 if test "$GCC" != yes; then
16049 with_gnu_ld=no
16052 interix*)
16053 # we just hope/assume this is gcc and not c89 (= MSVC++)
16054 with_gnu_ld=yes
16056 openbsd*)
16057 with_gnu_ld=no
16059 esac
16061 ld_shlibs=yes
16063 # On some targets, GNU ld is compatible enough with the native linker
16064 # that we're better off using the native interface for both.
16065 lt_use_gnu_ld_interface=no
16066 if test "$with_gnu_ld" = yes; then
16067 case $host_os in
16068 aix*)
16069 # The AIX port of GNU ld has always aspired to compatibility
16070 # with the native linker. However, as the warning in the GNU ld
16071 # block says, versions before 2.19.5* couldn't really create working
16072 # shared libraries, regardless of the interface used.
16073 case `$LD -v 2>&1` in
16074 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16075 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16076 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16078 lt_use_gnu_ld_interface=yes
16080 esac
16083 lt_use_gnu_ld_interface=yes
16085 esac
16088 if test "$lt_use_gnu_ld_interface" = yes; then
16089 # If archive_cmds runs LD, not CC, wlarc should be empty
16090 wlarc='${wl}'
16092 # Set some defaults for GNU ld with shared library support. These
16093 # are reset later if shared libraries are not supported. Putting them
16094 # here allows them to be overridden if necessary.
16095 runpath_var=LD_RUN_PATH
16096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16097 export_dynamic_flag_spec='${wl}--export-dynamic'
16098 # ancient GNU ld didn't support --whole-archive et. al.
16099 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16100 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16101 else
16102 whole_archive_flag_spec=
16104 supports_anon_versioning=no
16105 case `$LD -v 2>&1` in
16106 *GNU\ gold*) supports_anon_versioning=yes ;;
16107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16110 *\ 2.11.*) ;; # other 2.11 versions
16111 *) supports_anon_versioning=yes ;;
16112 esac
16114 # See if GNU ld supports shared libraries.
16115 case $host_os in
16116 aix[3-9]*)
16117 # On AIX/PPC, the GNU linker is very broken
16118 if test "$host_cpu" != ia64; then
16119 ld_shlibs=no
16120 cat <<_LT_EOF 1>&2
16122 *** Warning: the GNU linker, at least up to release 2.19, is reported
16123 *** to be unable to reliably create shared libraries on AIX.
16124 *** Therefore, libtool is disabling shared libraries support. If you
16125 *** really care for shared libraries, you may want to install binutils
16126 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16127 *** You will then need to restart the configuration process.
16129 _LT_EOF
16133 amigaos*)
16134 case $host_cpu in
16135 powerpc)
16136 # see comment about AmigaOS4 .so support
16137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16138 archive_expsym_cmds=''
16140 m68k)
16141 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)'
16142 hardcode_libdir_flag_spec='-L$libdir'
16143 hardcode_minus_L=yes
16145 esac
16148 beos*)
16149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16150 allow_undefined_flag=unsupported
16151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16152 # support --undefined. This deserves some investigation. FIXME
16153 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16154 else
16155 ld_shlibs=no
16159 cygwin* | mingw* | pw32* | cegcc*)
16160 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16161 # as there is no search path for DLLs.
16162 hardcode_libdir_flag_spec='-L$libdir'
16163 export_dynamic_flag_spec='${wl}--export-all-symbols'
16164 allow_undefined_flag=unsupported
16165 always_export_symbols=no
16166 enable_shared_with_static_runtimes=yes
16167 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16169 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16171 # If the export-symbols file already is a .def file (1st line
16172 # is EXPORTS), use it as is; otherwise, prepend...
16173 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16174 cp $export_symbols $output_objdir/$soname.def;
16175 else
16176 echo EXPORTS > $output_objdir/$soname.def;
16177 cat $export_symbols >> $output_objdir/$soname.def;
16179 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16180 else
16181 ld_shlibs=no
16185 haiku*)
16186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16187 link_all_deplibs=yes
16190 interix[3-9]*)
16191 hardcode_direct=no
16192 hardcode_shlibpath_var=no
16193 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16194 export_dynamic_flag_spec='${wl}-E'
16195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16196 # Instead, shared libraries are loaded at an image base (0x10000000 by
16197 # default) and relocated if they conflict, which is a slow very memory
16198 # consuming and fragmenting process. To avoid this, we pick a random,
16199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16201 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16202 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'
16205 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16206 tmp_diet=no
16207 if test "$host_os" = linux-dietlibc; then
16208 case $cc_basename in
16209 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16210 esac
16212 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16213 && test "$tmp_diet" = no
16214 then
16215 tmp_addflag=' $pic_flag'
16216 tmp_sharedflag='-shared'
16217 case $cc_basename,$host_cpu in
16218 pgcc*) # Portland Group C compiler
16219 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'
16220 tmp_addflag=' $pic_flag'
16222 pgf77* | pgf90* | pgf95* | pgfortran*)
16223 # Portland Group f77 and f90 compilers
16224 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'
16225 tmp_addflag=' $pic_flag -Mnomain' ;;
16226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16227 tmp_addflag=' -i_dynamic' ;;
16228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16229 tmp_addflag=' -i_dynamic -nofor_main' ;;
16230 ifc* | ifort*) # Intel Fortran compiler
16231 tmp_addflag=' -nofor_main' ;;
16232 lf95*) # Lahey Fortran 8.1
16233 whole_archive_flag_spec=
16234 tmp_sharedflag='--shared' ;;
16235 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16236 tmp_sharedflag='-qmkshrobj'
16237 tmp_addflag= ;;
16238 nvcc*) # Cuda Compiler Driver 2.2
16239 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'
16240 compiler_needs_object=yes
16242 esac
16243 case `$CC -V 2>&1 | sed 5q` in
16244 *Sun\ C*) # Sun C 5.9
16245 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'
16246 compiler_needs_object=yes
16247 tmp_sharedflag='-G' ;;
16248 *Sun\ F*) # Sun Fortran 8.3
16249 tmp_sharedflag='-G' ;;
16250 esac
16251 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16253 if test "x$supports_anon_versioning" = xyes; then
16254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16256 echo "local: *; };" >> $output_objdir/$libname.ver~
16257 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16260 case $cc_basename in
16261 xlf* | bgf* | bgxlf* | mpixlf*)
16262 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16263 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16264 hardcode_libdir_flag_spec=
16265 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16266 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16267 if test "x$supports_anon_versioning" = xyes; then
16268 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16270 echo "local: *; };" >> $output_objdir/$libname.ver~
16271 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16274 esac
16275 else
16276 ld_shlibs=no
16280 netbsd*)
16281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16282 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16283 wlarc=
16284 else
16285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16290 solaris*)
16291 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16292 ld_shlibs=no
16293 cat <<_LT_EOF 1>&2
16295 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16296 *** create shared libraries on Solaris systems. Therefore, libtool
16297 *** is disabling shared libraries support. We urge you to upgrade GNU
16298 *** binutils to release 2.9.1 or newer. Another option is to modify
16299 *** your PATH or compiler configuration so that the native linker is
16300 *** used, and then restart.
16302 _LT_EOF
16303 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16306 else
16307 ld_shlibs=no
16311 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16312 case `$LD -v 2>&1` in
16313 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16314 ld_shlibs=no
16315 cat <<_LT_EOF 1>&2
16317 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16318 *** reliably create shared libraries on SCO systems. Therefore, libtool
16319 *** is disabling shared libraries support. We urge you to upgrade GNU
16320 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16321 *** your PATH or compiler configuration so that the native linker is
16322 *** used, and then restart.
16324 _LT_EOF
16327 # For security reasons, it is highly recommended that you always
16328 # use absolute paths for naming shared libraries, and exclude the
16329 # DT_RUNPATH tag from executables and libraries. But doing so
16330 # requires that you compile everything twice, which is a pain.
16331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16335 else
16336 ld_shlibs=no
16339 esac
16342 sunos4*)
16343 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16344 wlarc=
16345 hardcode_direct=yes
16346 hardcode_shlibpath_var=no
16350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16353 else
16354 ld_shlibs=no
16357 esac
16359 if test "$ld_shlibs" = no; then
16360 runpath_var=
16361 hardcode_libdir_flag_spec=
16362 export_dynamic_flag_spec=
16363 whole_archive_flag_spec=
16365 else
16366 # PORTME fill in a description of your system's linker (not GNU ld)
16367 case $host_os in
16368 aix3*)
16369 allow_undefined_flag=unsupported
16370 always_export_symbols=yes
16371 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'
16372 # Note: this linker hardcodes the directories in LIBPATH if there
16373 # are no directories specified by -L.
16374 hardcode_minus_L=yes
16375 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16376 # Neither direct hardcoding nor static linking is supported with a
16377 # broken collect2.
16378 hardcode_direct=unsupported
16382 aix[4-9]*)
16383 if test "$host_cpu" = ia64; then
16384 # On IA64, the linker does run time linking by default, so we don't
16385 # have to do anything special.
16386 aix_use_runtimelinking=no
16387 exp_sym_flag='-Bexport'
16388 no_entry_flag=""
16389 else
16390 # If we're using GNU nm, then we don't want the "-C" option.
16391 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16392 # Also, AIX nm treats weak defined symbols like other global
16393 # defined symbols, whereas GNU nm marks them as "W".
16394 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16395 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'
16396 else
16397 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'
16399 aix_use_runtimelinking=no
16401 # Test if we are trying to use run time linking or normal
16402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16403 # need to do runtime linking.
16404 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16405 for ld_flag in $LDFLAGS; do
16406 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16407 aix_use_runtimelinking=yes
16408 break
16410 done
16412 esac
16414 exp_sym_flag='-bexport'
16415 no_entry_flag='-bnoentry'
16418 # When large executables or shared objects are built, AIX ld can
16419 # have problems creating the table of contents. If linking a library
16420 # or program results in "error TOC overflow" add -mminimal-toc to
16421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16424 archive_cmds=''
16425 hardcode_direct=yes
16426 hardcode_direct_absolute=yes
16427 hardcode_libdir_separator=':'
16428 link_all_deplibs=yes
16429 file_list_spec='${wl}-f,'
16431 if test "$GCC" = yes; then
16432 case $host_os in aix4.[012]|aix4.[012].*)
16433 # We only want to do this on AIX 4.2 and lower, the check
16434 # below for broken collect2 doesn't work under 4.3+
16435 collect2name=`${CC} -print-prog-name=collect2`
16436 if test -f "$collect2name" &&
16437 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16438 then
16439 # We have reworked collect2
16441 else
16442 # We have old collect2
16443 hardcode_direct=unsupported
16444 # It fails to find uninstalled libraries when the uninstalled
16445 # path is not listed in the libpath. Setting hardcode_minus_L
16446 # to unsupported forces relinking
16447 hardcode_minus_L=yes
16448 hardcode_libdir_flag_spec='-L$libdir'
16449 hardcode_libdir_separator=
16452 esac
16453 shared_flag='-shared'
16454 if test "$aix_use_runtimelinking" = yes; then
16455 shared_flag="$shared_flag "'${wl}-G'
16457 else
16458 # not using gcc
16459 if test "$host_cpu" = ia64; then
16460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16461 # chokes on -Wl,-G. The following line is correct:
16462 shared_flag='-G'
16463 else
16464 if test "$aix_use_runtimelinking" = yes; then
16465 shared_flag='${wl}-G'
16466 else
16467 shared_flag='${wl}-bM:SRE'
16472 export_dynamic_flag_spec='${wl}-bexpall'
16473 # It seems that -bexpall does not export symbols beginning with
16474 # underscore (_), so it is better to generate a list of symbols to export.
16475 always_export_symbols=yes
16476 if test "$aix_use_runtimelinking" = yes; then
16477 # Warning - without using the other runtime loading flags (-brtl),
16478 # -berok will link without error, but may produce a broken library.
16479 allow_undefined_flag='-berok'
16480 # Determine the default libpath from the value encoded in an
16481 # empty executable.
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16486 main ()
16490 return 0;
16492 _ACEOF
16493 if ac_fn_c_try_link "$LINENO"; then :
16495 lt_aix_libpath_sed='
16496 /Import File Strings/,/^$/ {
16497 /^0/ {
16498 s/^0 *\(.*\)$/\1/
16502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16503 # Check for a 64-bit object if we didn't find anything.
16504 if test -z "$aix_libpath"; then
16505 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16508 rm -f core conftest.err conftest.$ac_objext \
16509 conftest$ac_exeext conftest.$ac_ext
16510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16513 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"
16514 else
16515 if test "$host_cpu" = ia64; then
16516 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16517 allow_undefined_flag="-z nodefs"
16518 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"
16519 else
16520 # Determine the default libpath from the value encoded in an
16521 # empty executable.
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16526 main ()
16530 return 0;
16532 _ACEOF
16533 if ac_fn_c_try_link "$LINENO"; then :
16535 lt_aix_libpath_sed='
16536 /Import File Strings/,/^$/ {
16537 /^0/ {
16538 s/^0 *\(.*\)$/\1/
16542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16543 # Check for a 64-bit object if we didn't find anything.
16544 if test -z "$aix_libpath"; then
16545 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16553 # Warning - without using the other run time loading flags,
16554 # -berok will link without error, but may produce a broken library.
16555 no_undefined_flag=' ${wl}-bernotok'
16556 allow_undefined_flag=' ${wl}-berok'
16557 if test "$with_gnu_ld" = yes; then
16558 # We only use this code for GNU lds that support --whole-archive.
16559 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16560 else
16561 # Exported symbols can be pulled into shared objects from archives
16562 whole_archive_flag_spec='$convenience'
16564 archive_cmds_need_lc=yes
16565 # This is similar to how AIX traditionally builds its shared libraries.
16566 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'
16571 amigaos*)
16572 case $host_cpu in
16573 powerpc)
16574 # see comment about AmigaOS4 .so support
16575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16576 archive_expsym_cmds=''
16578 m68k)
16579 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)'
16580 hardcode_libdir_flag_spec='-L$libdir'
16581 hardcode_minus_L=yes
16583 esac
16586 bsdi[45]*)
16587 export_dynamic_flag_spec=-rdynamic
16590 cygwin* | mingw* | pw32* | cegcc*)
16591 # When not using gcc, we currently assume that we are using
16592 # Microsoft Visual C++.
16593 # hardcode_libdir_flag_spec is actually meaningless, as there is
16594 # no search path for DLLs.
16595 hardcode_libdir_flag_spec=' '
16596 allow_undefined_flag=unsupported
16597 # Tell ltmain to make .lib files, not .a files.
16598 libext=lib
16599 # Tell ltmain to make .dll files, not .so files.
16600 shrext_cmds=".dll"
16601 # FIXME: Setting linknames here is a bad hack.
16602 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16603 # The linker will automatically build a .lib file if we build a DLL.
16604 old_archive_from_new_cmds='true'
16605 # FIXME: Should let the user specify the lib program.
16606 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16607 fix_srcfile_path='`cygpath -w "$srcfile"`'
16608 enable_shared_with_static_runtimes=yes
16611 darwin* | rhapsody*)
16614 archive_cmds_need_lc=no
16615 hardcode_direct=no
16616 hardcode_automatic=yes
16617 hardcode_shlibpath_var=unsupported
16618 if test "$lt_cv_ld_force_load" = "yes"; then
16619 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\"`'
16620 else
16621 whole_archive_flag_spec=''
16623 link_all_deplibs=yes
16624 allow_undefined_flag="$_lt_dar_allow_undefined"
16625 case $cc_basename in
16626 ifort*) _lt_dar_can_shared=yes ;;
16627 *) _lt_dar_can_shared=$GCC ;;
16628 esac
16629 if test "$_lt_dar_can_shared" = "yes"; then
16630 output_verbose_link_cmd=func_echo_all
16631 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16632 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16633 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}"
16634 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}"
16636 else
16637 ld_shlibs=no
16642 dgux*)
16643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_libdir_flag_spec='-L$libdir'
16645 hardcode_shlibpath_var=no
16648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16649 # support. Future versions do this automatically, but an explicit c++rt0.o
16650 # does not break anything, and helps significantly (at the cost of a little
16651 # extra space).
16652 freebsd2.2*)
16653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16654 hardcode_libdir_flag_spec='-R$libdir'
16655 hardcode_direct=yes
16656 hardcode_shlibpath_var=no
16659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16660 freebsd2.*)
16661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_direct=yes
16663 hardcode_minus_L=yes
16664 hardcode_shlibpath_var=no
16667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16668 freebsd* | dragonfly*)
16669 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16670 hardcode_libdir_flag_spec='-R$libdir'
16671 hardcode_direct=yes
16672 hardcode_shlibpath_var=no
16675 hpux9*)
16676 if test "$GCC" = yes; then
16677 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'
16678 else
16679 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'
16681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16682 hardcode_libdir_separator=:
16683 hardcode_direct=yes
16685 # hardcode_minus_L: Not really in the search PATH,
16686 # but as the default location of the library.
16687 hardcode_minus_L=yes
16688 export_dynamic_flag_spec='${wl}-E'
16691 hpux10*)
16692 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16694 else
16695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16697 if test "$with_gnu_ld" = no; then
16698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16699 hardcode_libdir_flag_spec_ld='+b $libdir'
16700 hardcode_libdir_separator=:
16701 hardcode_direct=yes
16702 hardcode_direct_absolute=yes
16703 export_dynamic_flag_spec='${wl}-E'
16704 # hardcode_minus_L: Not really in the search PATH,
16705 # but as the default location of the library.
16706 hardcode_minus_L=yes
16710 hpux11*)
16711 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16712 case $host_cpu in
16713 hppa*64*)
16714 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16716 ia64*)
16717 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16722 esac
16723 else
16724 case $host_cpu in
16725 hppa*64*)
16726 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16728 ia64*)
16729 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16733 # Older versions of the 11.00 compiler do not understand -b yet
16734 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16736 $as_echo_n "checking if $CC understands -b... " >&6; }
16737 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16738 $as_echo_n "(cached) " >&6
16739 else
16740 lt_cv_prog_compiler__b=no
16741 save_LDFLAGS="$LDFLAGS"
16742 LDFLAGS="$LDFLAGS -b"
16743 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16744 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16745 # The linker can only warn and ignore the option if not recognized
16746 # So say no if there are warnings
16747 if test -s conftest.err; then
16748 # Append any errors to the config.log.
16749 cat conftest.err 1>&5
16750 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16752 if diff conftest.exp conftest.er2 >/dev/null; then
16753 lt_cv_prog_compiler__b=yes
16755 else
16756 lt_cv_prog_compiler__b=yes
16759 $RM -r conftest*
16760 LDFLAGS="$save_LDFLAGS"
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16764 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16766 if test x"$lt_cv_prog_compiler__b" = xyes; then
16767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16768 else
16769 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16773 esac
16775 if test "$with_gnu_ld" = no; then
16776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16777 hardcode_libdir_separator=:
16779 case $host_cpu in
16780 hppa*64*|ia64*)
16781 hardcode_direct=no
16782 hardcode_shlibpath_var=no
16785 hardcode_direct=yes
16786 hardcode_direct_absolute=yes
16787 export_dynamic_flag_spec='${wl}-E'
16789 # hardcode_minus_L: Not really in the search PATH,
16790 # but as the default location of the library.
16791 hardcode_minus_L=yes
16793 esac
16797 irix5* | irix6* | nonstopux*)
16798 if test "$GCC" = yes; then
16799 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'
16800 # Try to use the -exported_symbol ld option, if it does not
16801 # work, assume that -exports_file does not work either and
16802 # implicitly export all symbols.
16803 save_LDFLAGS="$LDFLAGS"
16804 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16807 int foo(void) {}
16808 _ACEOF
16809 if ac_fn_c_try_link "$LINENO"; then :
16810 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'
16813 rm -f core conftest.err conftest.$ac_objext \
16814 conftest$ac_exeext conftest.$ac_ext
16815 LDFLAGS="$save_LDFLAGS"
16816 else
16817 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'
16818 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'
16820 archive_cmds_need_lc='no'
16821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16822 hardcode_libdir_separator=:
16823 inherit_rpath=yes
16824 link_all_deplibs=yes
16827 netbsd*)
16828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16830 else
16831 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16833 hardcode_libdir_flag_spec='-R$libdir'
16834 hardcode_direct=yes
16835 hardcode_shlibpath_var=no
16838 newsos6)
16839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840 hardcode_direct=yes
16841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16842 hardcode_libdir_separator=:
16843 hardcode_shlibpath_var=no
16846 *nto* | *qnx*)
16849 openbsd*)
16850 if test -f /usr/libexec/ld.so; then
16851 hardcode_direct=yes
16852 hardcode_shlibpath_var=no
16853 hardcode_direct_absolute=yes
16854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16856 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16858 export_dynamic_flag_spec='${wl}-E'
16859 else
16860 case $host_os in
16861 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16863 hardcode_libdir_flag_spec='-R$libdir'
16866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16869 esac
16871 else
16872 ld_shlibs=no
16876 os2*)
16877 hardcode_libdir_flag_spec='-L$libdir'
16878 hardcode_minus_L=yes
16879 allow_undefined_flag=unsupported
16880 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'
16881 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16884 osf3*)
16885 if test "$GCC" = yes; then
16886 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16887 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'
16888 else
16889 allow_undefined_flag=' -expect_unresolved \*'
16890 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'
16892 archive_cmds_need_lc='no'
16893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16894 hardcode_libdir_separator=:
16897 osf4* | osf5*) # as osf3* with the addition of -msym flag
16898 if test "$GCC" = yes; then
16899 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16900 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'
16901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16902 else
16903 allow_undefined_flag=' -expect_unresolved \*'
16904 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'
16905 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~
16906 $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'
16908 # Both c and cxx compiler support -rpath directly
16909 hardcode_libdir_flag_spec='-rpath $libdir'
16911 archive_cmds_need_lc='no'
16912 hardcode_libdir_separator=:
16915 solaris*)
16916 no_undefined_flag=' -z defs'
16917 if test "$GCC" = yes; then
16918 wlarc='${wl}'
16919 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16921 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16922 else
16923 case `$CC -V 2>&1` in
16924 *"Compilers 5.0"*)
16925 wlarc=''
16926 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16928 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16931 wlarc='${wl}'
16932 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16934 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16936 esac
16938 hardcode_libdir_flag_spec='-R$libdir'
16939 hardcode_shlibpath_var=no
16940 case $host_os in
16941 solaris2.[0-5] | solaris2.[0-5].*) ;;
16943 # The compiler driver will combine and reorder linker options,
16944 # but understands `-z linker_flag'. GCC discards it without `$wl',
16945 # but is careful enough not to reorder.
16946 # Supported since Solaris 2.6 (maybe 2.5.1?)
16947 if test "$GCC" = yes; then
16948 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16949 else
16950 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16953 esac
16954 link_all_deplibs=yes
16957 sunos4*)
16958 if test "x$host_vendor" = xsequent; then
16959 # Use $CC to link under sequent, because it throws in some extra .o
16960 # files that make .init and .fini sections work.
16961 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16962 else
16963 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16965 hardcode_libdir_flag_spec='-L$libdir'
16966 hardcode_direct=yes
16967 hardcode_minus_L=yes
16968 hardcode_shlibpath_var=no
16971 sysv4)
16972 case $host_vendor in
16973 sni)
16974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16975 hardcode_direct=yes # is this really true???
16977 siemens)
16978 ## LD is ld it makes a PLAMLIB
16979 ## CC just makes a GrossModule.
16980 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16981 reload_cmds='$CC -r -o $output$reload_objs'
16982 hardcode_direct=no
16984 motorola)
16985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16988 esac
16989 runpath_var='LD_RUN_PATH'
16990 hardcode_shlibpath_var=no
16993 sysv4.3*)
16994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_shlibpath_var=no
16996 export_dynamic_flag_spec='-Bexport'
16999 sysv4*MP*)
17000 if test -d /usr/nec; then
17001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17002 hardcode_shlibpath_var=no
17003 runpath_var=LD_RUN_PATH
17004 hardcode_runpath_var=yes
17005 ld_shlibs=yes
17009 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17010 no_undefined_flag='${wl}-z,text'
17011 archive_cmds_need_lc=no
17012 hardcode_shlibpath_var=no
17013 runpath_var='LD_RUN_PATH'
17015 if test "$GCC" = yes; then
17016 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17018 else
17019 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17020 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17024 sysv5* | sco3.2v5* | sco5v6*)
17025 # Note: We can NOT use -z defs as we might desire, because we do not
17026 # link with -lc, and that would cause any symbols used from libc to
17027 # always be unresolved, which means just about no library would
17028 # ever link correctly. If we're not using GNU ld we use -z text
17029 # though, which does catch some bad symbols but isn't as heavy-handed
17030 # as -z defs.
17031 no_undefined_flag='${wl}-z,text'
17032 allow_undefined_flag='${wl}-z,nodefs'
17033 archive_cmds_need_lc=no
17034 hardcode_shlibpath_var=no
17035 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17036 hardcode_libdir_separator=':'
17037 link_all_deplibs=yes
17038 export_dynamic_flag_spec='${wl}-Bexport'
17039 runpath_var='LD_RUN_PATH'
17041 if test "$GCC" = yes; then
17042 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044 else
17045 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17046 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050 uts4*)
17051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_libdir_flag_spec='-L$libdir'
17053 hardcode_shlibpath_var=no
17057 ld_shlibs=no
17059 esac
17061 if test x$host_vendor = xsni; then
17062 case $host in
17063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17064 export_dynamic_flag_spec='${wl}-Blargedynsym'
17066 esac
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17071 $as_echo "$ld_shlibs" >&6; }
17072 test "$ld_shlibs" = no && can_build_shared=no
17074 with_gnu_ld=$with_gnu_ld
17091 # Do we need to explicitly link libc?
17093 case "x$archive_cmds_need_lc" in
17094 x|xyes)
17095 # Assume -lc should be added
17096 archive_cmds_need_lc=yes
17098 if test "$enable_shared" = yes && test "$GCC" = yes; then
17099 case $archive_cmds in
17100 *'~'*)
17101 # FIXME: we may have to deal with multi-command sequences.
17103 '$CC '*)
17104 # Test whether the compiler implicitly links with -lc since on some
17105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17106 # to ld, don't add -lc before -lgcc.
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17108 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17109 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17110 $as_echo_n "(cached) " >&6
17111 else
17112 $RM conftest*
17113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17116 (eval $ac_compile) 2>&5
17117 ac_status=$?
17118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17119 test $ac_status = 0; } 2>conftest.err; then
17120 soname=conftest
17121 lib=conftest
17122 libobjs=conftest.$ac_objext
17123 deplibs=
17124 wl=$lt_prog_compiler_wl
17125 pic_flag=$lt_prog_compiler_pic
17126 compiler_flags=-v
17127 linker_flags=-v
17128 verstring=
17129 output_objdir=.
17130 libname=conftest
17131 lt_save_allow_undefined_flag=$allow_undefined_flag
17132 allow_undefined_flag=
17133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17134 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17135 ac_status=$?
17136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17137 test $ac_status = 0; }
17138 then
17139 lt_cv_archive_cmds_need_lc=no
17140 else
17141 lt_cv_archive_cmds_need_lc=yes
17143 allow_undefined_flag=$lt_save_allow_undefined_flag
17144 else
17145 cat conftest.err 1>&5
17147 $RM conftest*
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17151 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17152 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17154 esac
17157 esac
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17316 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17318 if test "$GCC" = yes; then
17319 case $host_os in
17320 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17321 *) lt_awk_arg="/^libraries:/" ;;
17322 esac
17323 case $host_os in
17324 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17325 *) lt_sed_strip_eq="s,=/,/,g" ;;
17326 esac
17327 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17328 case $lt_search_path_spec in
17329 *\;*)
17330 # if the path contains ";" then we assume it to be the separator
17331 # otherwise default to the standard path separator (i.e. ":") - it is
17332 # assumed that no part of a normal pathname contains ";" but that should
17333 # okay in the real world where ";" in dirpaths is itself problematic.
17334 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17337 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17339 esac
17340 # Ok, now we have the path, separated by spaces, we can step through it
17341 # and add multilib dir if necessary.
17342 lt_tmp_lt_search_path_spec=
17343 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17344 for lt_sys_path in $lt_search_path_spec; do
17345 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17346 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17347 else
17348 test -d "$lt_sys_path" && \
17349 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17351 done
17352 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17353 BEGIN {RS=" "; FS="/|\n";} {
17354 lt_foo="";
17355 lt_count=0;
17356 for (lt_i = NF; lt_i > 0; lt_i--) {
17357 if ($lt_i != "" && $lt_i != ".") {
17358 if ($lt_i == "..") {
17359 lt_count++;
17360 } else {
17361 if (lt_count == 0) {
17362 lt_foo="/" $lt_i lt_foo;
17363 } else {
17364 lt_count--;
17369 if (lt_foo != "") { lt_freq[lt_foo]++; }
17370 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17372 # AWK program above erroneously prepends '/' to C:/dos/paths
17373 # for these hosts.
17374 case $host_os in
17375 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17376 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17377 esac
17378 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17379 else
17380 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17382 library_names_spec=
17383 libname_spec='lib$name'
17384 soname_spec=
17385 shrext_cmds=".so"
17386 postinstall_cmds=
17387 postuninstall_cmds=
17388 finish_cmds=
17389 finish_eval=
17390 shlibpath_var=
17391 shlibpath_overrides_runpath=unknown
17392 version_type=none
17393 dynamic_linker="$host_os ld.so"
17394 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17395 need_lib_prefix=unknown
17396 hardcode_into_libs=no
17398 # when you set need_version to no, make sure it does not cause -set_version
17399 # flags to be left without arguments
17400 need_version=unknown
17402 case $host_os in
17403 aix3*)
17404 version_type=linux
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17406 shlibpath_var=LIBPATH
17408 # AIX 3 has no versioning support, so we append a major version to the name.
17409 soname_spec='${libname}${release}${shared_ext}$major'
17412 aix[4-9]*)
17413 version_type=linux
17414 need_lib_prefix=no
17415 need_version=no
17416 hardcode_into_libs=yes
17417 if test "$host_cpu" = ia64; then
17418 # AIX 5 supports IA64
17419 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17420 shlibpath_var=LD_LIBRARY_PATH
17421 else
17422 # With GCC up to 2.95.x, collect2 would create an import file
17423 # for dependence libraries. The import file would start with
17424 # the line `#! .'. This would cause the generated library to
17425 # depend on `.', always an invalid library. This was fixed in
17426 # development snapshots of GCC prior to 3.0.
17427 case $host_os in
17428 aix4 | aix4.[01] | aix4.[01].*)
17429 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17430 echo ' yes '
17431 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17433 else
17434 can_build_shared=no
17437 esac
17438 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17439 # soname into executable. Probably we can add versioning support to
17440 # collect2, so additional links can be useful in future.
17441 if test "$aix_use_runtimelinking" = yes; then
17442 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17443 # instead of lib<name>.a to let people know that these are not
17444 # typical AIX shared libraries.
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 else
17447 # We preserve .a as extension for shared libraries through AIX4.2
17448 # and later when we are not doing run time linking.
17449 library_names_spec='${libname}${release}.a $libname.a'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17452 shlibpath_var=LIBPATH
17456 amigaos*)
17457 case $host_cpu in
17458 powerpc)
17459 # Since July 2007 AmigaOS4 officially supports .so libraries.
17460 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17463 m68k)
17464 library_names_spec='$libname.ixlibrary $libname.a'
17465 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17466 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'
17468 esac
17471 beos*)
17472 library_names_spec='${libname}${shared_ext}'
17473 dynamic_linker="$host_os ld.so"
17474 shlibpath_var=LIBRARY_PATH
17477 bsdi[45]*)
17478 version_type=linux
17479 need_version=no
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17486 # the default ld.so.conf also contains /usr/contrib/lib and
17487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17488 # libtool to hard-code these into programs
17491 cygwin* | mingw* | pw32* | cegcc*)
17492 version_type=windows
17493 shrext_cmds=".dll"
17494 need_version=no
17495 need_lib_prefix=no
17497 case $GCC,$host_os in
17498 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17499 library_names_spec='$libname.dll.a'
17500 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17501 postinstall_cmds='base_file=`basename \${file}`~
17502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17503 dldir=$destdir/`dirname \$dlpath`~
17504 test -d \$dldir || mkdir -p \$dldir~
17505 $install_prog $dir/$dlname \$dldir/$dlname~
17506 chmod a+x \$dldir/$dlname~
17507 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17508 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17511 dlpath=$dir/\$dldll~
17512 $RM \$dlpath'
17513 shlibpath_overrides_runpath=yes
17515 case $host_os in
17516 cygwin*)
17517 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17518 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17520 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17522 mingw* | cegcc*)
17523 # MinGW DLLs use traditional 'lib' prefix
17524 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17526 pw32*)
17527 # pw32 DLLs use 'pw' prefix rather than 'lib'
17528 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17530 esac
17534 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17536 esac
17537 dynamic_linker='Win32 ld.exe'
17538 # FIXME: first we should search . and the directory the executable is in
17539 shlibpath_var=PATH
17542 darwin* | rhapsody*)
17543 dynamic_linker="$host_os dyld"
17544 version_type=darwin
17545 need_lib_prefix=no
17546 need_version=no
17547 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17548 soname_spec='${libname}${release}${major}$shared_ext'
17549 shlibpath_overrides_runpath=yes
17550 shlibpath_var=DYLD_LIBRARY_PATH
17551 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17557 dgux*)
17558 version_type=linux
17559 need_lib_prefix=no
17560 need_version=no
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17566 freebsd* | dragonfly*)
17567 # DragonFly does not have aout. When/if they implement a new
17568 # versioning mechanism, adjust this.
17569 if test -x /usr/bin/objformat; then
17570 objformat=`/usr/bin/objformat`
17571 else
17572 case $host_os in
17573 freebsd[23].*) objformat=aout ;;
17574 *) objformat=elf ;;
17575 esac
17577 version_type=freebsd-$objformat
17578 case $version_type in
17579 freebsd-elf*)
17580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17581 need_version=no
17582 need_lib_prefix=no
17584 freebsd-*)
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17586 need_version=yes
17588 esac
17589 shlibpath_var=LD_LIBRARY_PATH
17590 case $host_os in
17591 freebsd2.*)
17592 shlibpath_overrides_runpath=yes
17594 freebsd3.[01]* | freebsdelf3.[01]*)
17595 shlibpath_overrides_runpath=yes
17596 hardcode_into_libs=yes
17598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17600 shlibpath_overrides_runpath=no
17601 hardcode_into_libs=yes
17603 *) # from 4.6 on, and DragonFly
17604 shlibpath_overrides_runpath=yes
17605 hardcode_into_libs=yes
17607 esac
17610 gnu*)
17611 version_type=linux
17612 need_lib_prefix=no
17613 need_version=no
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 shlibpath_var=LD_LIBRARY_PATH
17617 hardcode_into_libs=yes
17620 haiku*)
17621 version_type=linux
17622 need_lib_prefix=no
17623 need_version=no
17624 dynamic_linker="$host_os runtime_loader"
17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17626 soname_spec='${libname}${release}${shared_ext}$major'
17627 shlibpath_var=LIBRARY_PATH
17628 shlibpath_overrides_runpath=yes
17629 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17630 hardcode_into_libs=yes
17633 hpux9* | hpux10* | hpux11*)
17634 # Give a soname corresponding to the major version so that dld.sl refuses to
17635 # link against other versions.
17636 version_type=sunos
17637 need_lib_prefix=no
17638 need_version=no
17639 case $host_cpu in
17640 ia64*)
17641 shrext_cmds='.so'
17642 hardcode_into_libs=yes
17643 dynamic_linker="$host_os dld.so"
17644 shlibpath_var=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647 soname_spec='${libname}${release}${shared_ext}$major'
17648 if test "X$HPUX_IA64_MODE" = X32; then
17649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17650 else
17651 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17655 hppa*64*)
17656 shrext_cmds='.sl'
17657 hardcode_into_libs=yes
17658 dynamic_linker="$host_os dld.sl"
17659 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17662 soname_spec='${libname}${release}${shared_ext}$major'
17663 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17667 shrext_cmds='.sl'
17668 dynamic_linker="$host_os dld.sl"
17669 shlibpath_var=SHLIB_PATH
17670 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17672 soname_spec='${libname}${release}${shared_ext}$major'
17674 esac
17675 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17676 postinstall_cmds='chmod 555 $lib'
17677 # or fails outright, so override atomically:
17678 install_override_mode=555
17681 interix[3-9]*)
17682 version_type=linux
17683 need_lib_prefix=no
17684 need_version=no
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17688 shlibpath_var=LD_LIBRARY_PATH
17689 shlibpath_overrides_runpath=no
17690 hardcode_into_libs=yes
17693 irix5* | irix6* | nonstopux*)
17694 case $host_os in
17695 nonstopux*) version_type=nonstopux ;;
17697 if test "$lt_cv_prog_gnu_ld" = yes; then
17698 version_type=linux
17699 else
17700 version_type=irix
17701 fi ;;
17702 esac
17703 need_lib_prefix=no
17704 need_version=no
17705 soname_spec='${libname}${release}${shared_ext}$major'
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17707 case $host_os in
17708 irix5* | nonstopux*)
17709 libsuff= shlibsuff=
17712 case $LD in # libtool.m4 will add one of these switches to LD
17713 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17714 libsuff= shlibsuff= libmagic=32-bit;;
17715 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17716 libsuff=32 shlibsuff=N32 libmagic=N32;;
17717 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17718 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17719 *) libsuff= shlibsuff= libmagic=never-match;;
17720 esac
17722 esac
17723 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17724 shlibpath_overrides_runpath=no
17725 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17726 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17727 hardcode_into_libs=yes
17730 # No shared lib support for Linux oldld, aout, or coff.
17731 linux*oldld* | linux*aout* | linux*coff*)
17732 dynamic_linker=no
17735 # This must be Linux ELF.
17736 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17737 version_type=linux
17738 need_lib_prefix=no
17739 need_version=no
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17741 soname_spec='${libname}${release}${shared_ext}$major'
17742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17743 shlibpath_var=LD_LIBRARY_PATH
17744 shlibpath_overrides_runpath=no
17746 # Some binutils ld are patched to set DT_RUNPATH
17747 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17748 $as_echo_n "(cached) " >&6
17749 else
17750 lt_cv_shlibpath_overrides_runpath=no
17751 save_LDFLAGS=$LDFLAGS
17752 save_libdir=$libdir
17753 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17754 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h. */
17759 main ()
17763 return 0;
17765 _ACEOF
17766 if ac_fn_c_try_link "$LINENO"; then :
17767 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17768 lt_cv_shlibpath_overrides_runpath=yes
17771 rm -f core conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17773 LDFLAGS=$save_LDFLAGS
17774 libdir=$save_libdir
17778 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17780 # This implies no fast_install, which is unacceptable.
17781 # Some rework will be needed to allow for fast_install
17782 # before this can be enabled.
17783 hardcode_into_libs=yes
17785 # Append ld.so.conf contents to the search path
17786 if test -f /etc/ld.so.conf; then
17787 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' ' '`
17788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17791 # We used to test for /lib/ld.so.1 and disable shared libraries on
17792 # powerpc, because MkLinux only supported shared libraries with the
17793 # GNU dynamic linker. Since this was broken with cross compilers,
17794 # most powerpc-linux boxes support dynamic linking these days and
17795 # people can always --disable-shared, the test was removed, and we
17796 # assume the GNU/Linux dynamic linker is in use.
17797 dynamic_linker='GNU/Linux ld.so'
17800 netbsd*)
17801 version_type=sunos
17802 need_lib_prefix=no
17803 need_version=no
17804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17807 dynamic_linker='NetBSD (a.out) ld.so'
17808 else
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17810 soname_spec='${libname}${release}${shared_ext}$major'
17811 dynamic_linker='NetBSD ld.elf_so'
17813 shlibpath_var=LD_LIBRARY_PATH
17814 shlibpath_overrides_runpath=yes
17815 hardcode_into_libs=yes
17818 newsos6)
17819 version_type=linux
17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 shlibpath_overrides_runpath=yes
17825 *nto* | *qnx*)
17826 version_type=qnx
17827 need_lib_prefix=no
17828 need_version=no
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 shlibpath_var=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath=no
17833 hardcode_into_libs=yes
17834 dynamic_linker='ldqnx.so'
17837 openbsd*)
17838 version_type=sunos
17839 sys_lib_dlsearch_path_spec="/usr/lib"
17840 need_lib_prefix=no
17841 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17842 case $host_os in
17843 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17844 *) need_version=no ;;
17845 esac
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17850 case $host_os in
17851 openbsd2.[89] | openbsd2.[89].*)
17852 shlibpath_overrides_runpath=no
17855 shlibpath_overrides_runpath=yes
17857 esac
17858 else
17859 shlibpath_overrides_runpath=yes
17863 os2*)
17864 libname_spec='$name'
17865 shrext_cmds=".dll"
17866 need_lib_prefix=no
17867 library_names_spec='$libname${shared_ext} $libname.a'
17868 dynamic_linker='OS/2 ld.exe'
17869 shlibpath_var=LIBPATH
17872 osf3* | osf4* | osf5*)
17873 version_type=osf
17874 need_lib_prefix=no
17875 need_version=no
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 shlibpath_var=LD_LIBRARY_PATH
17879 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17880 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17883 rdos*)
17884 dynamic_linker=no
17887 solaris*)
17888 version_type=linux
17889 need_lib_prefix=no
17890 need_version=no
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17892 soname_spec='${libname}${release}${shared_ext}$major'
17893 shlibpath_var=LD_LIBRARY_PATH
17894 shlibpath_overrides_runpath=yes
17895 hardcode_into_libs=yes
17896 # ldd complains unless libraries are executable
17897 postinstall_cmds='chmod +x $lib'
17900 sunos4*)
17901 version_type=sunos
17902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17904 shlibpath_var=LD_LIBRARY_PATH
17905 shlibpath_overrides_runpath=yes
17906 if test "$with_gnu_ld" = yes; then
17907 need_lib_prefix=no
17909 need_version=yes
17912 sysv4 | sysv4.3*)
17913 version_type=linux
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17915 soname_spec='${libname}${release}${shared_ext}$major'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 case $host_vendor in
17918 sni)
17919 shlibpath_overrides_runpath=no
17920 need_lib_prefix=no
17921 runpath_var=LD_RUN_PATH
17923 siemens)
17924 need_lib_prefix=no
17926 motorola)
17927 need_lib_prefix=no
17928 need_version=no
17929 shlibpath_overrides_runpath=no
17930 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17932 esac
17935 sysv4*MP*)
17936 if test -d /usr/nec ;then
17937 version_type=linux
17938 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17939 soname_spec='$libname${shared_ext}.$major'
17940 shlibpath_var=LD_LIBRARY_PATH
17944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17945 version_type=freebsd-elf
17946 need_lib_prefix=no
17947 need_version=no
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17949 soname_spec='${libname}${release}${shared_ext}$major'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath=yes
17952 hardcode_into_libs=yes
17953 if test "$with_gnu_ld" = yes; then
17954 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17955 else
17956 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17957 case $host_os in
17958 sco3.2v5*)
17959 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17961 esac
17963 sys_lib_dlsearch_path_spec='/usr/lib'
17966 tpf*)
17967 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17968 version_type=linux
17969 need_lib_prefix=no
17970 need_version=no
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 shlibpath_var=LD_LIBRARY_PATH
17973 shlibpath_overrides_runpath=no
17974 hardcode_into_libs=yes
17977 uts4*)
17978 version_type=linux
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17985 dynamic_linker=no
17987 esac
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17989 $as_echo "$dynamic_linker" >&6; }
17990 test "$dynamic_linker" = no && can_build_shared=no
17992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17993 if test "$GCC" = yes; then
17994 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17997 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17998 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18000 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18001 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18096 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18097 hardcode_action=
18098 if test -n "$hardcode_libdir_flag_spec" ||
18099 test -n "$runpath_var" ||
18100 test "X$hardcode_automatic" = "Xyes" ; then
18102 # We can hardcode non-existent directories.
18103 if test "$hardcode_direct" != no &&
18104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18105 # have to relink, otherwise we might link with an installed library
18106 # when we should be linking with a yet-to-be-installed one
18107 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18108 test "$hardcode_minus_L" != no; then
18109 # Linking always hardcodes the temporary library directory.
18110 hardcode_action=relink
18111 else
18112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18113 hardcode_action=immediate
18115 else
18116 # We cannot hardcode anything, or else we can only hardcode existing
18117 # directories.
18118 hardcode_action=unsupported
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18121 $as_echo "$hardcode_action" >&6; }
18123 if test "$hardcode_action" = relink ||
18124 test "$inherit_rpath" = yes; then
18125 # Fast installation is not supported
18126 enable_fast_install=no
18127 elif test "$shlibpath_overrides_runpath" = yes ||
18128 test "$enable_shared" = no; then
18129 # Fast installation is not necessary
18130 enable_fast_install=needless
18138 if test "x$enable_dlopen" != xyes; then
18139 enable_dlopen=unknown
18140 enable_dlopen_self=unknown
18141 enable_dlopen_self_static=unknown
18142 else
18143 lt_cv_dlopen=no
18144 lt_cv_dlopen_libs=
18146 case $host_os in
18147 beos*)
18148 lt_cv_dlopen="load_add_on"
18149 lt_cv_dlopen_libs=
18150 lt_cv_dlopen_self=yes
18153 mingw* | pw32* | cegcc*)
18154 lt_cv_dlopen="LoadLibrary"
18155 lt_cv_dlopen_libs=
18158 cygwin*)
18159 lt_cv_dlopen="dlopen"
18160 lt_cv_dlopen_libs=
18163 darwin*)
18164 # if libdl is installed we need to link against it
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18166 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18167 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18168 $as_echo_n "(cached) " >&6
18169 else
18170 ac_check_lib_save_LIBS=$LIBS
18171 LIBS="-ldl $LIBS"
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18178 #ifdef __cplusplus
18179 extern "C"
18180 #endif
18181 char dlopen ();
18183 main ()
18185 return dlopen ();
18187 return 0;
18189 _ACEOF
18190 if ac_fn_c_try_link "$LINENO"; then :
18191 ac_cv_lib_dl_dlopen=yes
18192 else
18193 ac_cv_lib_dl_dlopen=no
18195 rm -f core conftest.err conftest.$ac_objext \
18196 conftest$ac_exeext conftest.$ac_ext
18197 LIBS=$ac_check_lib_save_LIBS
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18200 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18201 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18203 else
18205 lt_cv_dlopen="dyld"
18206 lt_cv_dlopen_libs=
18207 lt_cv_dlopen_self=yes
18214 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18215 if test "x$ac_cv_func_shl_load" = x""yes; then :
18216 lt_cv_dlopen="shl_load"
18217 else
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18219 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18221 $as_echo_n "(cached) " >&6
18222 else
18223 ac_check_lib_save_LIBS=$LIBS
18224 LIBS="-ldld $LIBS"
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char shl_load ();
18236 main ()
18238 return shl_load ();
18240 return 0;
18242 _ACEOF
18243 if ac_fn_c_try_link "$LINENO"; then :
18244 ac_cv_lib_dld_shl_load=yes
18245 else
18246 ac_cv_lib_dld_shl_load=no
18248 rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext conftest.$ac_ext
18250 LIBS=$ac_check_lib_save_LIBS
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18253 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18254 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18255 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18256 else
18257 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18258 if test "x$ac_cv_func_dlopen" = x""yes; then :
18259 lt_cv_dlopen="dlopen"
18260 else
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18264 $as_echo_n "(cached) " >&6
18265 else
18266 ac_check_lib_save_LIBS=$LIBS
18267 LIBS="-ldl $LIBS"
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18271 /* Override any GCC internal prototype to avoid an error.
18272 Use char because int might match the return type of a GCC
18273 builtin and then its argument prototype would still apply. */
18274 #ifdef __cplusplus
18275 extern "C"
18276 #endif
18277 char dlopen ();
18279 main ()
18281 return dlopen ();
18283 return 0;
18285 _ACEOF
18286 if ac_fn_c_try_link "$LINENO"; then :
18287 ac_cv_lib_dl_dlopen=yes
18288 else
18289 ac_cv_lib_dl_dlopen=no
18291 rm -f core conftest.err conftest.$ac_objext \
18292 conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18297 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18299 else
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18301 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18302 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18303 $as_echo_n "(cached) " >&6
18304 else
18305 ac_check_lib_save_LIBS=$LIBS
18306 LIBS="-lsvld $LIBS"
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18310 /* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18313 #ifdef __cplusplus
18314 extern "C"
18315 #endif
18316 char dlopen ();
18318 main ()
18320 return dlopen ();
18322 return 0;
18324 _ACEOF
18325 if ac_fn_c_try_link "$LINENO"; then :
18326 ac_cv_lib_svld_dlopen=yes
18327 else
18328 ac_cv_lib_svld_dlopen=no
18330 rm -f core conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
18332 LIBS=$ac_check_lib_save_LIBS
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18335 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18336 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18338 else
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18340 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18342 $as_echo_n "(cached) " >&6
18343 else
18344 ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-ldld $LIBS"
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 char dld_link ();
18357 main ()
18359 return dld_link ();
18361 return 0;
18363 _ACEOF
18364 if ac_fn_c_try_link "$LINENO"; then :
18365 ac_cv_lib_dld_dld_link=yes
18366 else
18367 ac_cv_lib_dld_dld_link=no
18369 rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18374 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18375 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18376 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18395 esac
18397 if test "x$lt_cv_dlopen" != xno; then
18398 enable_dlopen=yes
18399 else
18400 enable_dlopen=no
18403 case $lt_cv_dlopen in
18404 dlopen)
18405 save_CPPFLAGS="$CPPFLAGS"
18406 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18408 save_LDFLAGS="$LDFLAGS"
18409 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18411 save_LIBS="$LIBS"
18412 LIBS="$lt_cv_dlopen_libs $LIBS"
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18415 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18416 if test "${lt_cv_dlopen_self+set}" = set; then :
18417 $as_echo_n "(cached) " >&6
18418 else
18419 if test "$cross_compiling" = yes; then :
18420 lt_cv_dlopen_self=cross
18421 else
18422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18423 lt_status=$lt_dlunknown
18424 cat > conftest.$ac_ext <<_LT_EOF
18425 #line 18425 "configure"
18426 #include "confdefs.h"
18428 #if HAVE_DLFCN_H
18429 #include <dlfcn.h>
18430 #endif
18432 #include <stdio.h>
18434 #ifdef RTLD_GLOBAL
18435 # define LT_DLGLOBAL RTLD_GLOBAL
18436 #else
18437 # ifdef DL_GLOBAL
18438 # define LT_DLGLOBAL DL_GLOBAL
18439 # else
18440 # define LT_DLGLOBAL 0
18441 # endif
18442 #endif
18444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18445 find out it does not work in some platform. */
18446 #ifndef LT_DLLAZY_OR_NOW
18447 # ifdef RTLD_LAZY
18448 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18449 # else
18450 # ifdef DL_LAZY
18451 # define LT_DLLAZY_OR_NOW DL_LAZY
18452 # else
18453 # ifdef RTLD_NOW
18454 # define LT_DLLAZY_OR_NOW RTLD_NOW
18455 # else
18456 # ifdef DL_NOW
18457 # define LT_DLLAZY_OR_NOW DL_NOW
18458 # else
18459 # define LT_DLLAZY_OR_NOW 0
18460 # endif
18461 # endif
18462 # endif
18463 # endif
18464 #endif
18466 /* When -fvisbility=hidden is used, assume the code has been annotated
18467 correspondingly for the symbols needed. */
18468 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18469 void fnord () __attribute__((visibility("default")));
18470 #endif
18472 void fnord () { int i=42; }
18473 int main ()
18475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18476 int status = $lt_dlunknown;
18478 if (self)
18480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18481 else
18483 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18484 else puts (dlerror ());
18486 /* dlclose (self); */
18488 else
18489 puts (dlerror ());
18491 return status;
18493 _LT_EOF
18494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18495 (eval $ac_link) 2>&5
18496 ac_status=$?
18497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18498 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18499 (./conftest; exit; ) >&5 2>/dev/null
18500 lt_status=$?
18501 case x$lt_status in
18502 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18503 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18504 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18505 esac
18506 else :
18507 # compilation failed
18508 lt_cv_dlopen_self=no
18511 rm -fr conftest*
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18516 $as_echo "$lt_cv_dlopen_self" >&6; }
18518 if test "x$lt_cv_dlopen_self" = xyes; then
18519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18521 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18522 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18523 $as_echo_n "(cached) " >&6
18524 else
18525 if test "$cross_compiling" = yes; then :
18526 lt_cv_dlopen_self_static=cross
18527 else
18528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18529 lt_status=$lt_dlunknown
18530 cat > conftest.$ac_ext <<_LT_EOF
18531 #line 18531 "configure"
18532 #include "confdefs.h"
18534 #if HAVE_DLFCN_H
18535 #include <dlfcn.h>
18536 #endif
18538 #include <stdio.h>
18540 #ifdef RTLD_GLOBAL
18541 # define LT_DLGLOBAL RTLD_GLOBAL
18542 #else
18543 # ifdef DL_GLOBAL
18544 # define LT_DLGLOBAL DL_GLOBAL
18545 # else
18546 # define LT_DLGLOBAL 0
18547 # endif
18548 #endif
18550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18551 find out it does not work in some platform. */
18552 #ifndef LT_DLLAZY_OR_NOW
18553 # ifdef RTLD_LAZY
18554 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18555 # else
18556 # ifdef DL_LAZY
18557 # define LT_DLLAZY_OR_NOW DL_LAZY
18558 # else
18559 # ifdef RTLD_NOW
18560 # define LT_DLLAZY_OR_NOW RTLD_NOW
18561 # else
18562 # ifdef DL_NOW
18563 # define LT_DLLAZY_OR_NOW DL_NOW
18564 # else
18565 # define LT_DLLAZY_OR_NOW 0
18566 # endif
18567 # endif
18568 # endif
18569 # endif
18570 #endif
18572 /* When -fvisbility=hidden is used, assume the code has been annotated
18573 correspondingly for the symbols needed. */
18574 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18575 void fnord () __attribute__((visibility("default")));
18576 #endif
18578 void fnord () { int i=42; }
18579 int main ()
18581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18582 int status = $lt_dlunknown;
18584 if (self)
18586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18587 else
18589 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18590 else puts (dlerror ());
18592 /* dlclose (self); */
18594 else
18595 puts (dlerror ());
18597 return status;
18599 _LT_EOF
18600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18601 (eval $ac_link) 2>&5
18602 ac_status=$?
18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18605 (./conftest; exit; ) >&5 2>/dev/null
18606 lt_status=$?
18607 case x$lt_status in
18608 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18609 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18610 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18611 esac
18612 else :
18613 # compilation failed
18614 lt_cv_dlopen_self_static=no
18617 rm -fr conftest*
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18622 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18625 CPPFLAGS="$save_CPPFLAGS"
18626 LDFLAGS="$save_LDFLAGS"
18627 LIBS="$save_LIBS"
18629 esac
18631 case $lt_cv_dlopen_self in
18632 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18633 *) enable_dlopen_self=unknown ;;
18634 esac
18636 case $lt_cv_dlopen_self_static in
18637 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18638 *) enable_dlopen_self_static=unknown ;;
18639 esac
18658 striplib=
18659 old_striplib=
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18661 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18662 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18663 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18664 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18666 $as_echo "yes" >&6; }
18667 else
18668 # FIXME - insert some real tests, host_os isn't really good enough
18669 case $host_os in
18670 darwin*)
18671 if test -n "$STRIP" ; then
18672 striplib="$STRIP -x"
18673 old_striplib="$STRIP -S"
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18675 $as_echo "yes" >&6; }
18676 else
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18678 $as_echo "no" >&6; }
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18683 $as_echo "no" >&6; }
18685 esac
18699 # Report which library types will actually be built
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18701 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18703 $as_echo "$can_build_shared" >&6; }
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18706 $as_echo_n "checking whether to build shared libraries... " >&6; }
18707 test "$can_build_shared" = "no" && enable_shared=no
18709 # On AIX, shared libraries and static libraries use the same namespace, and
18710 # are all built from PIC.
18711 case $host_os in
18712 aix3*)
18713 test "$enable_shared" = yes && enable_static=no
18714 if test -n "$RANLIB"; then
18715 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18716 postinstall_cmds='$RANLIB $lib'
18720 aix[4-9]*)
18721 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18722 test "$enable_shared" = yes && enable_static=no
18725 esac
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18727 $as_echo "$enable_shared" >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18730 $as_echo_n "checking whether to build static libraries... " >&6; }
18731 # Make sure either enable_shared or enable_static is yes.
18732 test "$enable_shared" = yes || enable_static=yes
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18734 $as_echo "$enable_static" >&6; }
18740 ac_ext=cpp
18741 ac_cpp='$CXXCPP $CPPFLAGS'
18742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18746 CC="$lt_save_CC"
18748 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18749 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18750 (test "X$CXX" != "Xg++"))) ; then
18751 ac_ext=cpp
18752 ac_cpp='$CXXCPP $CPPFLAGS'
18753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18757 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18758 if test -z "$CXXCPP"; then
18759 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18760 $as_echo_n "(cached) " >&6
18761 else
18762 # Double quotes because CXXCPP needs to be expanded
18763 for CXXCPP in "$CXX -E" "/lib/cpp"
18765 ac_preproc_ok=false
18766 for ac_cxx_preproc_warn_flag in '' yes
18768 # Use a header file that comes with gcc, so configuring glibc
18769 # with a fresh cross-compiler works.
18770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18771 # <limits.h> exists even on freestanding compilers.
18772 # On the NeXT, cc -E runs the code through the compiler's parser,
18773 # not just through cpp. "Syntax error" is here to catch this case.
18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776 #ifdef __STDC__
18777 # include <limits.h>
18778 #else
18779 # include <assert.h>
18780 #endif
18781 Syntax error
18782 _ACEOF
18783 if ac_fn_cxx_try_cpp "$LINENO"; then :
18785 else
18786 # Broken: fails on valid input.
18787 continue
18789 rm -f conftest.err conftest.$ac_ext
18791 # OK, works on sane cases. Now check whether nonexistent headers
18792 # can be detected and how.
18793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18794 /* end confdefs.h. */
18795 #include <ac_nonexistent.h>
18796 _ACEOF
18797 if ac_fn_cxx_try_cpp "$LINENO"; then :
18798 # Broken: success on invalid input.
18799 continue
18800 else
18801 # Passes both tests.
18802 ac_preproc_ok=:
18803 break
18805 rm -f conftest.err conftest.$ac_ext
18807 done
18808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18809 rm -f conftest.err conftest.$ac_ext
18810 if $ac_preproc_ok; then :
18811 break
18814 done
18815 ac_cv_prog_CXXCPP=$CXXCPP
18818 CXXCPP=$ac_cv_prog_CXXCPP
18819 else
18820 ac_cv_prog_CXXCPP=$CXXCPP
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18823 $as_echo "$CXXCPP" >&6; }
18824 ac_preproc_ok=false
18825 for ac_cxx_preproc_warn_flag in '' yes
18827 # Use a header file that comes with gcc, so configuring glibc
18828 # with a fresh cross-compiler works.
18829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18830 # <limits.h> exists even on freestanding compilers.
18831 # On the NeXT, cc -E runs the code through the compiler's parser,
18832 # not just through cpp. "Syntax error" is here to catch this case.
18833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h. */
18835 #ifdef __STDC__
18836 # include <limits.h>
18837 #else
18838 # include <assert.h>
18839 #endif
18840 Syntax error
18841 _ACEOF
18842 if ac_fn_cxx_try_cpp "$LINENO"; then :
18844 else
18845 # Broken: fails on valid input.
18846 continue
18848 rm -f conftest.err conftest.$ac_ext
18850 # OK, works on sane cases. Now check whether nonexistent headers
18851 # can be detected and how.
18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853 /* end confdefs.h. */
18854 #include <ac_nonexistent.h>
18855 _ACEOF
18856 if ac_fn_cxx_try_cpp "$LINENO"; then :
18857 # Broken: success on invalid input.
18858 continue
18859 else
18860 # Passes both tests.
18861 ac_preproc_ok=:
18862 break
18864 rm -f conftest.err conftest.$ac_ext
18866 done
18867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18868 rm -f conftest.err conftest.$ac_ext
18869 if $ac_preproc_ok; then :
18871 else
18872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18874 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18875 See \`config.log' for more details." "$LINENO" 5; }
18878 ac_ext=cpp
18879 ac_cpp='$CXXCPP $CPPFLAGS'
18880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18884 else
18885 _lt_caught_CXX_error=yes
18888 ac_ext=cpp
18889 ac_cpp='$CXXCPP $CPPFLAGS'
18890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18894 archive_cmds_need_lc_CXX=no
18895 allow_undefined_flag_CXX=
18896 always_export_symbols_CXX=no
18897 archive_expsym_cmds_CXX=
18898 compiler_needs_object_CXX=no
18899 export_dynamic_flag_spec_CXX=
18900 hardcode_direct_CXX=no
18901 hardcode_direct_absolute_CXX=no
18902 hardcode_libdir_flag_spec_CXX=
18903 hardcode_libdir_flag_spec_ld_CXX=
18904 hardcode_libdir_separator_CXX=
18905 hardcode_minus_L_CXX=no
18906 hardcode_shlibpath_var_CXX=unsupported
18907 hardcode_automatic_CXX=no
18908 inherit_rpath_CXX=no
18909 module_cmds_CXX=
18910 module_expsym_cmds_CXX=
18911 link_all_deplibs_CXX=unknown
18912 old_archive_cmds_CXX=$old_archive_cmds
18913 reload_flag_CXX=$reload_flag
18914 reload_cmds_CXX=$reload_cmds
18915 no_undefined_flag_CXX=
18916 whole_archive_flag_spec_CXX=
18917 enable_shared_with_static_runtimes_CXX=no
18919 # Source file extension for C++ test sources.
18920 ac_ext=cpp
18922 # Object file extension for compiled C++ test sources.
18923 objext=o
18924 objext_CXX=$objext
18926 # No sense in running all these tests if we already determined that
18927 # the CXX compiler isn't working. Some variables (like enable_shared)
18928 # are currently assumed to apply to all compilers on this platform,
18929 # and will be corrupted by setting them based on a non-working compiler.
18930 if test "$_lt_caught_CXX_error" != yes; then
18931 # Code to be used in simple compile tests
18932 lt_simple_compile_test_code="int some_variable = 0;"
18934 # Code to be used in simple link tests
18935 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18944 # If no C compiler was specified, use CC.
18945 LTCC=${LTCC-"$CC"}
18947 # If no C compiler flags were specified, use CFLAGS.
18948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18950 # Allow CC to be a program name with arguments.
18951 compiler=$CC
18954 # save warnings/boilerplate of simple test code
18955 ac_outfile=conftest.$ac_objext
18956 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18958 _lt_compiler_boilerplate=`cat conftest.err`
18959 $RM conftest*
18961 ac_outfile=conftest.$ac_objext
18962 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18964 _lt_linker_boilerplate=`cat conftest.err`
18965 $RM -r conftest*
18968 # Allow CC to be a program name with arguments.
18969 lt_save_CC=$CC
18970 lt_save_LD=$LD
18971 lt_save_GCC=$GCC
18972 GCC=$GXX
18973 lt_save_with_gnu_ld=$with_gnu_ld
18974 lt_save_path_LD=$lt_cv_path_LD
18975 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18976 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18977 else
18978 $as_unset lt_cv_prog_gnu_ld
18980 if test -n "${lt_cv_path_LDCXX+set}"; then
18981 lt_cv_path_LD=$lt_cv_path_LDCXX
18982 else
18983 $as_unset lt_cv_path_LD
18985 test -z "${LDCXX+set}" || LD=$LDCXX
18986 CC=${CXX-"c++"}
18987 compiler=$CC
18988 compiler_CXX=$CC
18989 for cc_temp in $compiler""; do
18990 case $cc_temp in
18991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18993 \-*) ;;
18994 *) break;;
18995 esac
18996 done
18997 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19000 if test -n "$compiler"; then
19001 # We don't want -fno-exception when compiling C++ code, so set the
19002 # no_builtin_flag separately
19003 if test "$GXX" = yes; then
19004 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19005 else
19006 lt_prog_compiler_no_builtin_flag_CXX=
19009 if test "$GXX" = yes; then
19010 # Set up default GNU C++ configuration
19014 # Check whether --with-gnu-ld was given.
19015 if test "${with_gnu_ld+set}" = set; then :
19016 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19017 else
19018 with_gnu_ld=no
19021 ac_prog=ld
19022 if test "$GCC" = yes; then
19023 # Check if gcc -print-prog-name=ld gives a path.
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19025 $as_echo_n "checking for ld used by $CC... " >&6; }
19026 case $host in
19027 *-*-mingw*)
19028 # gcc leaves a trailing carriage return which upsets mingw
19029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19032 esac
19033 case $ac_prog in
19034 # Accept absolute paths.
19035 [\\/]* | ?:[\\/]*)
19036 re_direlt='/[^/][^/]*/\.\./'
19037 # Canonicalize the pathname of ld
19038 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19039 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19040 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19041 done
19042 test -z "$LD" && LD="$ac_prog"
19045 # If it fails, then pretend we aren't using GCC.
19046 ac_prog=ld
19049 # If it is relative, then search for the first ld in PATH.
19050 with_gnu_ld=unknown
19052 esac
19053 elif test "$with_gnu_ld" = yes; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19055 $as_echo_n "checking for GNU ld... " >&6; }
19056 else
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19058 $as_echo_n "checking for non-GNU ld... " >&6; }
19060 if test "${lt_cv_path_LD+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19062 else
19063 if test -z "$LD"; then
19064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19065 for ac_dir in $PATH; do
19066 IFS="$lt_save_ifs"
19067 test -z "$ac_dir" && ac_dir=.
19068 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19069 lt_cv_path_LD="$ac_dir/$ac_prog"
19070 # Check to see if the program is GNU ld. I'd rather use --version,
19071 # but apparently some variants of GNU ld only accept -v.
19072 # Break only if it was the GNU/non-GNU ld that we prefer.
19073 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19074 *GNU* | *'with BFD'*)
19075 test "$with_gnu_ld" != no && break
19078 test "$with_gnu_ld" != yes && break
19080 esac
19082 done
19083 IFS="$lt_save_ifs"
19084 else
19085 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19089 LD="$lt_cv_path_LD"
19090 if test -n "$LD"; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19092 $as_echo "$LD" >&6; }
19093 else
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19095 $as_echo "no" >&6; }
19097 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19099 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19100 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19101 $as_echo_n "(cached) " >&6
19102 else
19103 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19104 case `$LD -v 2>&1 </dev/null` in
19105 *GNU* | *'with BFD'*)
19106 lt_cv_prog_gnu_ld=yes
19109 lt_cv_prog_gnu_ld=no
19111 esac
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19114 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19115 with_gnu_ld=$lt_cv_prog_gnu_ld
19123 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19124 # archiving commands below assume that GNU ld is being used.
19125 if test "$with_gnu_ld" = yes; then
19126 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19127 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'
19129 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19130 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19132 # If archive_cmds runs LD, not CC, wlarc should be empty
19133 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19134 # investigate it a little bit more. (MM)
19135 wlarc='${wl}'
19137 # ancient GNU ld didn't support --whole-archive et. al.
19138 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19139 $GREP 'no-whole-archive' > /dev/null; then
19140 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19141 else
19142 whole_archive_flag_spec_CXX=
19144 else
19145 with_gnu_ld=no
19146 wlarc=
19148 # A generic and very simple default shared library creation
19149 # command for GNU C++ for the case where it uses the native
19150 # linker, instead of GNU ld. If possible, this setting should
19151 # overridden to take advantage of the native linker features on
19152 # the platform it is being used on.
19153 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19156 # Commands to make compiler produce verbose output that lists
19157 # what "hidden" libraries, object files and flags are used when
19158 # linking a shared library.
19159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19161 else
19162 GXX=no
19163 with_gnu_ld=no
19164 wlarc=
19167 # PORTME: fill in a description of your system's C++ link characteristics
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19169 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19170 ld_shlibs_CXX=yes
19171 case $host_os in
19172 aix3*)
19173 # FIXME: insert proper C++ library support
19174 ld_shlibs_CXX=no
19176 aix[4-9]*)
19177 if test "$host_cpu" = ia64; then
19178 # On IA64, the linker does run time linking by default, so we don't
19179 # have to do anything special.
19180 aix_use_runtimelinking=no
19181 exp_sym_flag='-Bexport'
19182 no_entry_flag=""
19183 else
19184 aix_use_runtimelinking=no
19186 # Test if we are trying to use run time linking or normal
19187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19188 # need to do runtime linking.
19189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19190 for ld_flag in $LDFLAGS; do
19191 case $ld_flag in
19192 *-brtl*)
19193 aix_use_runtimelinking=yes
19194 break
19196 esac
19197 done
19199 esac
19201 exp_sym_flag='-bexport'
19202 no_entry_flag='-bnoentry'
19205 # When large executables or shared objects are built, AIX ld can
19206 # have problems creating the table of contents. If linking a library
19207 # or program results in "error TOC overflow" add -mminimal-toc to
19208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19211 archive_cmds_CXX=''
19212 hardcode_direct_CXX=yes
19213 hardcode_direct_absolute_CXX=yes
19214 hardcode_libdir_separator_CXX=':'
19215 link_all_deplibs_CXX=yes
19216 file_list_spec_CXX='${wl}-f,'
19218 if test "$GXX" = yes; then
19219 case $host_os in aix4.[012]|aix4.[012].*)
19220 # We only want to do this on AIX 4.2 and lower, the check
19221 # below for broken collect2 doesn't work under 4.3+
19222 collect2name=`${CC} -print-prog-name=collect2`
19223 if test -f "$collect2name" &&
19224 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19225 then
19226 # We have reworked collect2
19228 else
19229 # We have old collect2
19230 hardcode_direct_CXX=unsupported
19231 # It fails to find uninstalled libraries when the uninstalled
19232 # path is not listed in the libpath. Setting hardcode_minus_L
19233 # to unsupported forces relinking
19234 hardcode_minus_L_CXX=yes
19235 hardcode_libdir_flag_spec_CXX='-L$libdir'
19236 hardcode_libdir_separator_CXX=
19238 esac
19239 shared_flag='-shared'
19240 if test "$aix_use_runtimelinking" = yes; then
19241 shared_flag="$shared_flag "'${wl}-G'
19243 else
19244 # not using gcc
19245 if test "$host_cpu" = ia64; then
19246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19247 # chokes on -Wl,-G. The following line is correct:
19248 shared_flag='-G'
19249 else
19250 if test "$aix_use_runtimelinking" = yes; then
19251 shared_flag='${wl}-G'
19252 else
19253 shared_flag='${wl}-bM:SRE'
19258 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19259 # It seems that -bexpall does not export symbols beginning with
19260 # underscore (_), so it is better to generate a list of symbols to
19261 # export.
19262 always_export_symbols_CXX=yes
19263 if test "$aix_use_runtimelinking" = yes; then
19264 # Warning - without using the other runtime loading flags (-brtl),
19265 # -berok will link without error, but may produce a broken library.
19266 allow_undefined_flag_CXX='-berok'
19267 # Determine the default libpath from the value encoded in an empty
19268 # executable.
19269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270 /* end confdefs.h. */
19273 main ()
19277 return 0;
19279 _ACEOF
19280 if ac_fn_cxx_try_link "$LINENO"; then :
19282 lt_aix_libpath_sed='
19283 /Import File Strings/,/^$/ {
19284 /^0/ {
19285 s/^0 *\(.*\)$/\1/
19289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19290 # Check for a 64-bit object if we didn't find anything.
19291 if test -z "$aix_libpath"; then
19292 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19295 rm -f core conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
19297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19299 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19301 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"
19302 else
19303 if test "$host_cpu" = ia64; then
19304 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19305 allow_undefined_flag_CXX="-z nodefs"
19306 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"
19307 else
19308 # Determine the default libpath from the value encoded in an
19309 # empty executable.
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19314 main ()
19318 return 0;
19320 _ACEOF
19321 if ac_fn_cxx_try_link "$LINENO"; then :
19323 lt_aix_libpath_sed='
19324 /Import File Strings/,/^$/ {
19325 /^0/ {
19326 s/^0 *\(.*\)$/\1/
19330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19331 # Check for a 64-bit object if we didn't find anything.
19332 if test -z "$aix_libpath"; then
19333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19336 rm -f core conftest.err conftest.$ac_objext \
19337 conftest$ac_exeext conftest.$ac_ext
19338 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19340 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19341 # Warning - without using the other run time loading flags,
19342 # -berok will link without error, but may produce a broken library.
19343 no_undefined_flag_CXX=' ${wl}-bernotok'
19344 allow_undefined_flag_CXX=' ${wl}-berok'
19345 if test "$with_gnu_ld" = yes; then
19346 # We only use this code for GNU lds that support --whole-archive.
19347 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19348 else
19349 # Exported symbols can be pulled into shared objects from archives
19350 whole_archive_flag_spec_CXX='$convenience'
19352 archive_cmds_need_lc_CXX=yes
19353 # This is similar to how AIX traditionally builds its shared
19354 # libraries.
19355 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'
19360 beos*)
19361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19362 allow_undefined_flag_CXX=unsupported
19363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19364 # support --undefined. This deserves some investigation. FIXME
19365 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19366 else
19367 ld_shlibs_CXX=no
19371 chorus*)
19372 case $cc_basename in
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19377 esac
19380 cygwin* | mingw* | pw32* | cegcc*)
19381 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19382 # as there is no search path for DLLs.
19383 hardcode_libdir_flag_spec_CXX='-L$libdir'
19384 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19385 allow_undefined_flag_CXX=unsupported
19386 always_export_symbols_CXX=no
19387 enable_shared_with_static_runtimes_CXX=yes
19389 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19390 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'
19391 # If the export-symbols file already is a .def file (1st line
19392 # is EXPORTS), use it as is; otherwise, prepend...
19393 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19394 cp $export_symbols $output_objdir/$soname.def;
19395 else
19396 echo EXPORTS > $output_objdir/$soname.def;
19397 cat $export_symbols >> $output_objdir/$soname.def;
19399 $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'
19400 else
19401 ld_shlibs_CXX=no
19404 darwin* | rhapsody*)
19407 archive_cmds_need_lc_CXX=no
19408 hardcode_direct_CXX=no
19409 hardcode_automatic_CXX=yes
19410 hardcode_shlibpath_var_CXX=unsupported
19411 if test "$lt_cv_ld_force_load" = "yes"; then
19412 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\"`'
19413 else
19414 whole_archive_flag_spec_CXX=''
19416 link_all_deplibs_CXX=yes
19417 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19418 case $cc_basename in
19419 ifort*) _lt_dar_can_shared=yes ;;
19420 *) _lt_dar_can_shared=$GCC ;;
19421 esac
19422 if test "$_lt_dar_can_shared" = "yes"; then
19423 output_verbose_link_cmd=func_echo_all
19424 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}"
19425 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19426 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}"
19427 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}"
19428 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19429 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}"
19430 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}"
19433 else
19434 ld_shlibs_CXX=no
19439 dgux*)
19440 case $cc_basename in
19441 ec++*)
19442 # FIXME: insert proper C++ library support
19443 ld_shlibs_CXX=no
19445 ghcx*)
19446 # Green Hills C++ Compiler
19447 # FIXME: insert proper C++ library support
19448 ld_shlibs_CXX=no
19451 # FIXME: insert proper C++ library support
19452 ld_shlibs_CXX=no
19454 esac
19457 freebsd2.*)
19458 # C++ shared libraries reported to be fairly broken before
19459 # switch to ELF
19460 ld_shlibs_CXX=no
19463 freebsd-elf*)
19464 archive_cmds_need_lc_CXX=no
19467 freebsd* | dragonfly*)
19468 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19469 # conventions
19470 ld_shlibs_CXX=yes
19473 gnu*)
19476 haiku*)
19477 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19478 link_all_deplibs_CXX=yes
19481 hpux9*)
19482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19483 hardcode_libdir_separator_CXX=:
19484 export_dynamic_flag_spec_CXX='${wl}-E'
19485 hardcode_direct_CXX=yes
19486 hardcode_minus_L_CXX=yes # Not in the search PATH,
19487 # but as the default
19488 # location of the library.
19490 case $cc_basename in
19491 CC*)
19492 # FIXME: insert proper C++ library support
19493 ld_shlibs_CXX=no
19495 aCC*)
19496 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'
19497 # Commands to make compiler produce verbose output that lists
19498 # what "hidden" libraries, object files and flags are used when
19499 # linking a shared library.
19501 # There doesn't appear to be a way to prevent this compiler from
19502 # explicitly linking system object files so we need to strip them
19503 # from the output so that they don't get included in the library
19504 # dependencies.
19505 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"'
19508 if test "$GXX" = yes; then
19509 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'
19510 else
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19515 esac
19518 hpux10*|hpux11*)
19519 if test $with_gnu_ld = no; then
19520 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19521 hardcode_libdir_separator_CXX=:
19523 case $host_cpu in
19524 hppa*64*|ia64*)
19527 export_dynamic_flag_spec_CXX='${wl}-E'
19529 esac
19531 case $host_cpu in
19532 hppa*64*|ia64*)
19533 hardcode_direct_CXX=no
19534 hardcode_shlibpath_var_CXX=no
19537 hardcode_direct_CXX=yes
19538 hardcode_direct_absolute_CXX=yes
19539 hardcode_minus_L_CXX=yes # Not in the search PATH,
19540 # but as the default
19541 # location of the library.
19543 esac
19545 case $cc_basename in
19546 CC*)
19547 # FIXME: insert proper C++ library support
19548 ld_shlibs_CXX=no
19550 aCC*)
19551 case $host_cpu in
19552 hppa*64*)
19553 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19555 ia64*)
19556 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19559 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19561 esac
19562 # Commands to make compiler produce verbose output that lists
19563 # what "hidden" libraries, object files and flags are used when
19564 # linking a shared library.
19566 # There doesn't appear to be a way to prevent this compiler from
19567 # explicitly linking system object files so we need to strip them
19568 # from the output so that they don't get included in the library
19569 # dependencies.
19570 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"'
19573 if test "$GXX" = yes; then
19574 if test $with_gnu_ld = no; then
19575 case $host_cpu in
19576 hppa*64*)
19577 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19579 ia64*)
19580 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19583 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'
19585 esac
19587 else
19588 # FIXME: insert proper C++ library support
19589 ld_shlibs_CXX=no
19592 esac
19595 interix[3-9]*)
19596 hardcode_direct_CXX=no
19597 hardcode_shlibpath_var_CXX=no
19598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19599 export_dynamic_flag_spec_CXX='${wl}-E'
19600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19601 # Instead, shared libraries are loaded at an image base (0x10000000 by
19602 # default) and relocated if they conflict, which is a slow very memory
19603 # consuming and fragmenting process. To avoid this, we pick a random,
19604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19606 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'
19607 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'
19609 irix5* | irix6*)
19610 case $cc_basename in
19611 CC*)
19612 # SGI C++
19613 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'
19615 # Archives containing C++ object files must be created using
19616 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19617 # necessary to make sure instantiated templates are included
19618 # in the archive.
19619 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19622 if test "$GXX" = yes; then
19623 if test "$with_gnu_ld" = no; then
19624 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'
19625 else
19626 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'
19629 link_all_deplibs_CXX=yes
19631 esac
19632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19633 hardcode_libdir_separator_CXX=:
19634 inherit_rpath_CXX=yes
19637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19638 case $cc_basename in
19639 KCC*)
19640 # Kuck and Associates, Inc. (KAI) C++ Compiler
19642 # KCC will only create a shared library if the output file
19643 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19644 # to its proper name (with version) after linking.
19645 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'
19646 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'
19647 # Commands to make compiler produce verbose output that lists
19648 # what "hidden" libraries, object files and flags are used when
19649 # linking a shared library.
19651 # There doesn't appear to be a way to prevent this compiler from
19652 # explicitly linking system object files so we need to strip them
19653 # from the output so that they don't get included in the library
19654 # dependencies.
19655 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"'
19657 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19660 # Archives containing C++ object files must be created using
19661 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19662 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19664 icpc* | ecpc* )
19665 # Intel C++
19666 with_gnu_ld=yes
19667 # version 8.0 and above of icpc choke on multiply defined symbols
19668 # if we add $predep_objects and $postdep_objects, however 7.1 and
19669 # earlier do not add the objects themselves.
19670 case `$CC -V 2>&1` in
19671 *"Version 7."*)
19672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19673 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'
19675 *) # Version 8.0 or newer
19676 tmp_idyn=
19677 case $host_cpu in
19678 ia64*) tmp_idyn=' -i_dynamic';;
19679 esac
19680 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19681 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'
19683 esac
19684 archive_cmds_need_lc_CXX=no
19685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19687 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19689 pgCC* | pgcpp*)
19690 # Portland Group C++ compiler
19691 case `$CC -V` in
19692 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19693 prelink_cmds_CXX='tpldir=Template.dir~
19694 rm -rf $tpldir~
19695 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19696 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19697 old_archive_cmds_CXX='tpldir=Template.dir~
19698 rm -rf $tpldir~
19699 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19700 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19701 $RANLIB $oldlib'
19702 archive_cmds_CXX='tpldir=Template.dir~
19703 rm -rf $tpldir~
19704 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19705 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19706 archive_expsym_cmds_CXX='tpldir=Template.dir~
19707 rm -rf $tpldir~
19708 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19709 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19711 *) # Version 6 and above use weak symbols
19712 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19713 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'
19715 esac
19717 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19719 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'
19721 cxx*)
19722 # Compaq C++
19723 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19724 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'
19726 runpath_var=LD_RUN_PATH
19727 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19728 hardcode_libdir_separator_CXX=:
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19734 # There doesn't appear to be a way to prevent this compiler from
19735 # explicitly linking system object files so we need to strip them
19736 # from the output so that they don't get included in the library
19737 # dependencies.
19738 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'
19740 xl* | mpixl* | bgxl*)
19741 # IBM XL 8.0 on PPC, with GNU ld
19742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19744 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19745 if test "x$supports_anon_versioning" = xyes; then
19746 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19748 echo "local: *; };" >> $output_objdir/$libname.ver~
19749 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19753 case `$CC -V 2>&1 | sed 5q` in
19754 *Sun\ C*)
19755 # Sun C++ 5.9
19756 no_undefined_flag_CXX=' -zdefs'
19757 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19758 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'
19759 hardcode_libdir_flag_spec_CXX='-R$libdir'
19760 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'
19761 compiler_needs_object_CXX=yes
19763 # Not sure whether something based on
19764 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19765 # would be better.
19766 output_verbose_link_cmd='func_echo_all'
19768 # Archives containing C++ object files must be created using
19769 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19770 # necessary to make sure instantiated templates are included
19771 # in the archive.
19772 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19774 esac
19776 esac
19779 lynxos*)
19780 # FIXME: insert proper C++ library support
19781 ld_shlibs_CXX=no
19784 m88k*)
19785 # FIXME: insert proper C++ library support
19786 ld_shlibs_CXX=no
19789 mvs*)
19790 case $cc_basename in
19791 cxx*)
19792 # FIXME: insert proper C++ library support
19793 ld_shlibs_CXX=no
19796 # FIXME: insert proper C++ library support
19797 ld_shlibs_CXX=no
19799 esac
19802 netbsd*)
19803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19804 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19805 wlarc=
19806 hardcode_libdir_flag_spec_CXX='-R$libdir'
19807 hardcode_direct_CXX=yes
19808 hardcode_shlibpath_var_CXX=no
19810 # Workaround some broken pre-1.5 toolchains
19811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19814 *nto* | *qnx*)
19815 ld_shlibs_CXX=yes
19818 openbsd2*)
19819 # C++ shared libraries are fairly broken
19820 ld_shlibs_CXX=no
19823 openbsd*)
19824 if test -f /usr/libexec/ld.so; then
19825 hardcode_direct_CXX=yes
19826 hardcode_shlibpath_var_CXX=no
19827 hardcode_direct_absolute_CXX=yes
19828 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19831 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19832 export_dynamic_flag_spec_CXX='${wl}-E'
19833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19835 output_verbose_link_cmd=func_echo_all
19836 else
19837 ld_shlibs_CXX=no
19841 osf3* | osf4* | osf5*)
19842 case $cc_basename in
19843 KCC*)
19844 # Kuck and Associates, Inc. (KAI) C++ Compiler
19846 # KCC will only create a shared library if the output file
19847 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19848 # to its proper name (with version) after linking.
19849 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'
19851 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19852 hardcode_libdir_separator_CXX=:
19854 # Archives containing C++ object files must be created using
19855 # the KAI C++ compiler.
19856 case $host in
19857 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19858 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19859 esac
19861 RCC*)
19862 # Rational C++ 2.4.1
19863 # FIXME: insert proper C++ library support
19864 ld_shlibs_CXX=no
19866 cxx*)
19867 case $host in
19868 osf3*)
19869 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19870 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'
19871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19874 allow_undefined_flag_CXX=' -expect_unresolved \*'
19875 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'
19876 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19877 echo "-hidden">> $lib.exp~
19878 $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~
19879 $RM $lib.exp'
19880 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19882 esac
19884 hardcode_libdir_separator_CXX=:
19886 # Commands to make compiler produce verbose output that lists
19887 # what "hidden" libraries, object files and flags are used when
19888 # linking a shared library.
19890 # There doesn't appear to be a way to prevent this compiler from
19891 # explicitly linking system object files so we need to strip them
19892 # from the output so that they don't get included in the library
19893 # dependencies.
19894 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"'
19897 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19898 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19899 case $host in
19900 osf3*)
19901 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'
19904 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'
19906 esac
19908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19909 hardcode_libdir_separator_CXX=:
19911 # Commands to make compiler produce verbose output that lists
19912 # what "hidden" libraries, object files and flags are used when
19913 # linking a shared library.
19914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19916 else
19917 # FIXME: insert proper C++ library support
19918 ld_shlibs_CXX=no
19921 esac
19924 psos*)
19925 # FIXME: insert proper C++ library support
19926 ld_shlibs_CXX=no
19929 sunos4*)
19930 case $cc_basename in
19931 CC*)
19932 # Sun C++ 4.x
19933 # FIXME: insert proper C++ library support
19934 ld_shlibs_CXX=no
19936 lcc*)
19937 # Lucid
19938 # FIXME: insert proper C++ library support
19939 ld_shlibs_CXX=no
19942 # FIXME: insert proper C++ library support
19943 ld_shlibs_CXX=no
19945 esac
19948 solaris*)
19949 case $cc_basename in
19950 CC*)
19951 # Sun C++ 4.2, 5.x and Centerline C++
19952 archive_cmds_need_lc_CXX=yes
19953 no_undefined_flag_CXX=' -zdefs'
19954 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19955 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19956 $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'
19958 hardcode_libdir_flag_spec_CXX='-R$libdir'
19959 hardcode_shlibpath_var_CXX=no
19960 case $host_os in
19961 solaris2.[0-5] | solaris2.[0-5].*) ;;
19963 # The compiler driver will combine and reorder linker options,
19964 # but understands `-z linker_flag'.
19965 # Supported since Solaris 2.6 (maybe 2.5.1?)
19966 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19968 esac
19969 link_all_deplibs_CXX=yes
19971 output_verbose_link_cmd='func_echo_all'
19973 # Archives containing C++ object files must be created using
19974 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19975 # necessary to make sure instantiated templates are included
19976 # in the archive.
19977 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19979 gcx*)
19980 # Green Hills C++ Compiler
19981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19983 # The C++ compiler must be used to create the archive.
19984 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19987 # GNU C++ compiler with Solaris linker
19988 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19989 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19990 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19991 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19992 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19993 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19995 # Commands to make compiler produce verbose output that lists
19996 # what "hidden" libraries, object files and flags are used when
19997 # linking a shared library.
19998 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19999 else
20000 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20001 # platform.
20002 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20004 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20006 # Commands to make compiler produce verbose output that lists
20007 # what "hidden" libraries, object files and flags are used when
20008 # linking a shared library.
20009 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20012 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20013 case $host_os in
20014 solaris2.[0-5] | solaris2.[0-5].*) ;;
20016 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20018 esac
20021 esac
20024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20025 no_undefined_flag_CXX='${wl}-z,text'
20026 archive_cmds_need_lc_CXX=no
20027 hardcode_shlibpath_var_CXX=no
20028 runpath_var='LD_RUN_PATH'
20030 case $cc_basename in
20031 CC*)
20032 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20033 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20036 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20037 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20039 esac
20042 sysv5* | sco3.2v5* | sco5v6*)
20043 # Note: We can NOT use -z defs as we might desire, because we do not
20044 # link with -lc, and that would cause any symbols used from libc to
20045 # always be unresolved, which means just about no library would
20046 # ever link correctly. If we're not using GNU ld we use -z text
20047 # though, which does catch some bad symbols but isn't as heavy-handed
20048 # as -z defs.
20049 no_undefined_flag_CXX='${wl}-z,text'
20050 allow_undefined_flag_CXX='${wl}-z,nodefs'
20051 archive_cmds_need_lc_CXX=no
20052 hardcode_shlibpath_var_CXX=no
20053 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20054 hardcode_libdir_separator_CXX=':'
20055 link_all_deplibs_CXX=yes
20056 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20057 runpath_var='LD_RUN_PATH'
20059 case $cc_basename in
20060 CC*)
20061 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20063 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20064 '"$old_archive_cmds_CXX"
20065 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20066 '"$reload_cmds_CXX"
20069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20072 esac
20075 tandem*)
20076 case $cc_basename in
20077 NCC*)
20078 # NonStop-UX NCC 3.20
20079 # FIXME: insert proper C++ library support
20080 ld_shlibs_CXX=no
20083 # FIXME: insert proper C++ library support
20084 ld_shlibs_CXX=no
20086 esac
20089 vxworks*)
20090 # FIXME: insert proper C++ library support
20091 ld_shlibs_CXX=no
20095 # FIXME: insert proper C++ library support
20096 ld_shlibs_CXX=no
20098 esac
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20101 $as_echo "$ld_shlibs_CXX" >&6; }
20102 test "$ld_shlibs_CXX" = no && can_build_shared=no
20104 GCC_CXX="$GXX"
20105 LD_CXX="$LD"
20107 ## CAVEAT EMPTOR:
20108 ## There is no encapsulation within the following macros, do not change
20109 ## the running order or otherwise move them around unless you know exactly
20110 ## what you are doing...
20111 # Dependencies to place before and after the object being linked:
20112 predep_objects_CXX=
20113 postdep_objects_CXX=
20114 predeps_CXX=
20115 postdeps_CXX=
20116 compiler_lib_search_path_CXX=
20118 cat > conftest.$ac_ext <<_LT_EOF
20119 class Foo
20121 public:
20122 Foo (void) { a = 0; }
20123 private:
20124 int a;
20126 _LT_EOF
20128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20129 (eval $ac_compile) 2>&5
20130 ac_status=$?
20131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20132 test $ac_status = 0; }; then
20133 # Parse the compiler output and extract the necessary
20134 # objects, libraries and library flags.
20136 # Sentinel used to keep track of whether or not we are before
20137 # the conftest object file.
20138 pre_test_object_deps_done=no
20140 for p in `eval "$output_verbose_link_cmd"`; do
20141 case $p in
20143 -L* | -R* | -l*)
20144 # Some compilers place space between "-{L,R}" and the path.
20145 # Remove the space.
20146 if test $p = "-L" ||
20147 test $p = "-R"; then
20148 prev=$p
20149 continue
20150 else
20151 prev=
20154 if test "$pre_test_object_deps_done" = no; then
20155 case $p in
20156 -L* | -R*)
20157 # Internal compiler library paths should come after those
20158 # provided the user. The postdeps already come after the
20159 # user supplied libs so there is no need to process them.
20160 if test -z "$compiler_lib_search_path_CXX"; then
20161 compiler_lib_search_path_CXX="${prev}${p}"
20162 else
20163 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20166 # The "-l" case would never come before the object being
20167 # linked, so don't bother handling this case.
20168 esac
20169 else
20170 if test -z "$postdeps_CXX"; then
20171 postdeps_CXX="${prev}${p}"
20172 else
20173 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20178 *.$objext)
20179 # This assumes that the test object file only shows up
20180 # once in the compiler output.
20181 if test "$p" = "conftest.$objext"; then
20182 pre_test_object_deps_done=yes
20183 continue
20186 if test "$pre_test_object_deps_done" = no; then
20187 if test -z "$predep_objects_CXX"; then
20188 predep_objects_CXX="$p"
20189 else
20190 predep_objects_CXX="$predep_objects_CXX $p"
20192 else
20193 if test -z "$postdep_objects_CXX"; then
20194 postdep_objects_CXX="$p"
20195 else
20196 postdep_objects_CXX="$postdep_objects_CXX $p"
20201 *) ;; # Ignore the rest.
20203 esac
20204 done
20206 # Clean up.
20207 rm -f a.out a.exe
20208 else
20209 echo "libtool.m4: error: problem compiling CXX test program"
20212 $RM -f confest.$objext
20214 # PORTME: override above test on systems where it is broken
20215 case $host_os in
20216 interix[3-9]*)
20217 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20218 # hack all around it, let's just trust "g++" to DTRT.
20219 predep_objects_CXX=
20220 postdep_objects_CXX=
20221 postdeps_CXX=
20224 linux*)
20225 case `$CC -V 2>&1 | sed 5q` in
20226 *Sun\ C*)
20227 # Sun C++ 5.9
20229 # The more standards-conforming stlport4 library is
20230 # incompatible with the Cstd library. Avoid specifying
20231 # it if it's in CXXFLAGS. Ignore libCrun as
20232 # -library=stlport4 depends on it.
20233 case " $CXX $CXXFLAGS " in
20234 *" -library=stlport4 "*)
20235 solaris_use_stlport4=yes
20237 esac
20239 if test "$solaris_use_stlport4" != yes; then
20240 postdeps_CXX='-library=Cstd -library=Crun'
20243 esac
20246 solaris*)
20247 case $cc_basename in
20248 CC*)
20249 # The more standards-conforming stlport4 library is
20250 # incompatible with the Cstd library. Avoid specifying
20251 # it if it's in CXXFLAGS. Ignore libCrun as
20252 # -library=stlport4 depends on it.
20253 case " $CXX $CXXFLAGS " in
20254 *" -library=stlport4 "*)
20255 solaris_use_stlport4=yes
20257 esac
20259 # Adding this requires a known-good setup of shared libraries for
20260 # Sun compiler versions before 5.6, else PIC objects from an old
20261 # archive will be linked into the output, leading to subtle bugs.
20262 if test "$solaris_use_stlport4" != yes; then
20263 postdeps_CXX='-library=Cstd -library=Crun'
20266 esac
20268 esac
20271 case " $postdeps_CXX " in
20272 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20273 esac
20274 compiler_lib_search_dirs_CXX=
20275 if test -n "${compiler_lib_search_path_CXX}"; then
20276 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20309 lt_prog_compiler_wl_CXX=
20310 lt_prog_compiler_pic_CXX=
20311 lt_prog_compiler_static_CXX=
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20314 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20316 # C++ specific cases for pic, static, wl, etc.
20317 if test "$GXX" = yes; then
20318 lt_prog_compiler_wl_CXX='-Wl,'
20319 lt_prog_compiler_static_CXX='-static'
20321 case $host_os in
20322 aix*)
20323 # All AIX code is PIC.
20324 if test "$host_cpu" = ia64; then
20325 # AIX 5 now supports IA64 processor
20326 lt_prog_compiler_static_CXX='-Bstatic'
20328 lt_prog_compiler_pic_CXX='-fPIC'
20331 amigaos*)
20332 case $host_cpu in
20333 powerpc)
20334 # see comment about AmigaOS4 .so support
20335 lt_prog_compiler_pic_CXX='-fPIC'
20337 m68k)
20338 # FIXME: we need at least 68020 code to build shared libraries, but
20339 # adding the `-m68020' flag to GCC prevents building anything better,
20340 # like `-m68040'.
20341 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20343 esac
20346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20347 # PIC is the default for these OSes.
20349 mingw* | cygwin* | os2* | pw32* | cegcc*)
20350 # This hack is so that the source file can tell whether it is being
20351 # built for inclusion in a dll (and should export symbols for example).
20352 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20353 # (--disable-auto-import) libraries
20354 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20356 darwin* | rhapsody*)
20357 # PIC is the default on this platform
20358 # Common symbols not allowed in MH_DYLIB files
20359 lt_prog_compiler_pic_CXX='-fno-common'
20361 *djgpp*)
20362 # DJGPP does not support shared libraries at all
20363 lt_prog_compiler_pic_CXX=
20365 haiku*)
20366 # PIC is the default for Haiku.
20367 # The "-static" flag exists, but is broken.
20368 lt_prog_compiler_static_CXX=
20370 interix[3-9]*)
20371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20372 # Instead, we relocate shared libraries at runtime.
20374 sysv4*MP*)
20375 if test -d /usr/nec; then
20376 lt_prog_compiler_pic_CXX=-Kconform_pic
20379 hpux*)
20380 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20381 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20382 # sets the default TLS model and affects inlining.
20383 case $host_cpu in
20384 hppa*64*)
20387 lt_prog_compiler_pic_CXX='-fPIC'
20389 esac
20391 *qnx* | *nto*)
20392 # QNX uses GNU C++, but need to define -shared option too, otherwise
20393 # it will coredump.
20394 lt_prog_compiler_pic_CXX='-fPIC -shared'
20397 lt_prog_compiler_pic_CXX='-fPIC'
20399 esac
20400 else
20401 case $host_os in
20402 aix[4-9]*)
20403 # All AIX code is PIC.
20404 if test "$host_cpu" = ia64; then
20405 # AIX 5 now supports IA64 processor
20406 lt_prog_compiler_static_CXX='-Bstatic'
20407 else
20408 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20411 chorus*)
20412 case $cc_basename in
20413 cxch68*)
20414 # Green Hills C++ Compiler
20415 # _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"
20417 esac
20419 dgux*)
20420 case $cc_basename in
20421 ec++*)
20422 lt_prog_compiler_pic_CXX='-KPIC'
20424 ghcx*)
20425 # Green Hills C++ Compiler
20426 lt_prog_compiler_pic_CXX='-pic'
20430 esac
20432 freebsd* | dragonfly*)
20433 # FreeBSD uses GNU C++
20435 hpux9* | hpux10* | hpux11*)
20436 case $cc_basename in
20437 CC*)
20438 lt_prog_compiler_wl_CXX='-Wl,'
20439 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20440 if test "$host_cpu" != ia64; then
20441 lt_prog_compiler_pic_CXX='+Z'
20444 aCC*)
20445 lt_prog_compiler_wl_CXX='-Wl,'
20446 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20447 case $host_cpu in
20448 hppa*64*|ia64*)
20449 # +Z the default
20452 lt_prog_compiler_pic_CXX='+Z'
20454 esac
20458 esac
20460 interix*)
20461 # This is c89, which is MS Visual C++ (no shared libs)
20462 # Anyone wants to do a port?
20464 irix5* | irix6* | nonstopux*)
20465 case $cc_basename in
20466 CC*)
20467 lt_prog_compiler_wl_CXX='-Wl,'
20468 lt_prog_compiler_static_CXX='-non_shared'
20469 # CC pic flag -KPIC is the default.
20473 esac
20475 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20476 case $cc_basename in
20477 KCC*)
20478 # KAI C++ Compiler
20479 lt_prog_compiler_wl_CXX='--backend -Wl,'
20480 lt_prog_compiler_pic_CXX='-fPIC'
20482 ecpc* )
20483 # old Intel C++ for x86_64 which still supported -KPIC.
20484 lt_prog_compiler_wl_CXX='-Wl,'
20485 lt_prog_compiler_pic_CXX='-KPIC'
20486 lt_prog_compiler_static_CXX='-static'
20488 icpc* )
20489 # Intel C++, used to be incompatible with GCC.
20490 # ICC 10 doesn't accept -KPIC any more.
20491 lt_prog_compiler_wl_CXX='-Wl,'
20492 lt_prog_compiler_pic_CXX='-fPIC'
20493 lt_prog_compiler_static_CXX='-static'
20495 pgCC* | pgcpp*)
20496 # Portland Group C++ compiler
20497 lt_prog_compiler_wl_CXX='-Wl,'
20498 lt_prog_compiler_pic_CXX='-fpic'
20499 lt_prog_compiler_static_CXX='-Bstatic'
20501 cxx*)
20502 # Compaq C++
20503 # Make sure the PIC flag is empty. It appears that all Alpha
20504 # Linux and Compaq Tru64 Unix objects are PIC.
20505 lt_prog_compiler_pic_CXX=
20506 lt_prog_compiler_static_CXX='-non_shared'
20508 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20509 # IBM XL 8.0, 9.0 on PPC and BlueGene
20510 lt_prog_compiler_wl_CXX='-Wl,'
20511 lt_prog_compiler_pic_CXX='-qpic'
20512 lt_prog_compiler_static_CXX='-qstaticlink'
20515 case `$CC -V 2>&1 | sed 5q` in
20516 *Sun\ C*)
20517 # Sun C++ 5.9
20518 lt_prog_compiler_pic_CXX='-KPIC'
20519 lt_prog_compiler_static_CXX='-Bstatic'
20520 lt_prog_compiler_wl_CXX='-Qoption ld '
20522 esac
20524 esac
20526 lynxos*)
20528 m88k*)
20530 mvs*)
20531 case $cc_basename in
20532 cxx*)
20533 lt_prog_compiler_pic_CXX='-W c,exportall'
20537 esac
20539 netbsd*)
20541 *qnx* | *nto*)
20542 # QNX uses GNU C++, but need to define -shared option too, otherwise
20543 # it will coredump.
20544 lt_prog_compiler_pic_CXX='-fPIC -shared'
20546 osf3* | osf4* | osf5*)
20547 case $cc_basename in
20548 KCC*)
20549 lt_prog_compiler_wl_CXX='--backend -Wl,'
20551 RCC*)
20552 # Rational C++ 2.4.1
20553 lt_prog_compiler_pic_CXX='-pic'
20555 cxx*)
20556 # Digital/Compaq C++
20557 lt_prog_compiler_wl_CXX='-Wl,'
20558 # Make sure the PIC flag is empty. It appears that all Alpha
20559 # Linux and Compaq Tru64 Unix objects are PIC.
20560 lt_prog_compiler_pic_CXX=
20561 lt_prog_compiler_static_CXX='-non_shared'
20565 esac
20567 psos*)
20569 solaris*)
20570 case $cc_basename in
20571 CC*)
20572 # Sun C++ 4.2, 5.x and Centerline C++
20573 lt_prog_compiler_pic_CXX='-KPIC'
20574 lt_prog_compiler_static_CXX='-Bstatic'
20575 lt_prog_compiler_wl_CXX='-Qoption ld '
20577 gcx*)
20578 # Green Hills C++ Compiler
20579 lt_prog_compiler_pic_CXX='-PIC'
20583 esac
20585 sunos4*)
20586 case $cc_basename in
20587 CC*)
20588 # Sun C++ 4.x
20589 lt_prog_compiler_pic_CXX='-pic'
20590 lt_prog_compiler_static_CXX='-Bstatic'
20592 lcc*)
20593 # Lucid
20594 lt_prog_compiler_pic_CXX='-pic'
20598 esac
20600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20601 case $cc_basename in
20602 CC*)
20603 lt_prog_compiler_wl_CXX='-Wl,'
20604 lt_prog_compiler_pic_CXX='-KPIC'
20605 lt_prog_compiler_static_CXX='-Bstatic'
20607 esac
20609 tandem*)
20610 case $cc_basename in
20611 NCC*)
20612 # NonStop-UX NCC 3.20
20613 lt_prog_compiler_pic_CXX='-KPIC'
20617 esac
20619 vxworks*)
20622 lt_prog_compiler_can_build_shared_CXX=no
20624 esac
20627 case $host_os in
20628 # For platforms which do not support PIC, -DPIC is meaningless:
20629 *djgpp*)
20630 lt_prog_compiler_pic_CXX=
20633 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20635 esac
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20637 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20642 # Check to make sure the PIC flag actually works.
20644 if test -n "$lt_prog_compiler_pic_CXX"; then
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20646 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20647 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20648 $as_echo_n "(cached) " >&6
20649 else
20650 lt_cv_prog_compiler_pic_works_CXX=no
20651 ac_outfile=conftest.$ac_objext
20652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20653 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20654 # Insert the option either (1) after the last *FLAGS variable, or
20655 # (2) before a word containing "conftest.", or (3) at the end.
20656 # Note that $ac_compile itself does not contain backslashes and begins
20657 # with a dollar sign (not a hyphen), so the echo should work correctly.
20658 # The option is referenced via a variable to avoid confusing sed.
20659 lt_compile=`echo "$ac_compile" | $SED \
20660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20662 -e 's:$: $lt_compiler_flag:'`
20663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20664 (eval "$lt_compile" 2>conftest.err)
20665 ac_status=$?
20666 cat conftest.err >&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 if (exit $ac_status) && test -s "$ac_outfile"; then
20669 # The compiler can only warn and ignore the option if not recognized
20670 # So say no if there are warnings other than the usual output.
20671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20674 lt_cv_prog_compiler_pic_works_CXX=yes
20677 $RM conftest*
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20681 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20683 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20684 case $lt_prog_compiler_pic_CXX in
20685 "" | " "*) ;;
20686 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20687 esac
20688 else
20689 lt_prog_compiler_pic_CXX=
20690 lt_prog_compiler_can_build_shared_CXX=no
20698 # Check to make sure the static flag actually works.
20700 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20702 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20703 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20704 $as_echo_n "(cached) " >&6
20705 else
20706 lt_cv_prog_compiler_static_works_CXX=no
20707 save_LDFLAGS="$LDFLAGS"
20708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20711 # The linker can only warn and ignore the option if not recognized
20712 # So say no if there are warnings
20713 if test -s conftest.err; then
20714 # Append any errors to the config.log.
20715 cat conftest.err 1>&5
20716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20718 if diff conftest.exp conftest.er2 >/dev/null; then
20719 lt_cv_prog_compiler_static_works_CXX=yes
20721 else
20722 lt_cv_prog_compiler_static_works_CXX=yes
20725 $RM -r conftest*
20726 LDFLAGS="$save_LDFLAGS"
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20730 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20732 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20734 else
20735 lt_prog_compiler_static_CXX=
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20743 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20744 $as_echo_n "(cached) " >&6
20745 else
20746 lt_cv_prog_compiler_c_o_CXX=no
20747 $RM -r conftest 2>/dev/null
20748 mkdir conftest
20749 cd conftest
20750 mkdir out
20751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20753 lt_compiler_flag="-o out/conftest2.$ac_objext"
20754 # Insert the option either (1) after the last *FLAGS variable, or
20755 # (2) before a word containing "conftest.", or (3) at the end.
20756 # Note that $ac_compile itself does not contain backslashes and begins
20757 # with a dollar sign (not a hyphen), so the echo should work correctly.
20758 lt_compile=`echo "$ac_compile" | $SED \
20759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20761 -e 's:$: $lt_compiler_flag:'`
20762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20763 (eval "$lt_compile" 2>out/conftest.err)
20764 ac_status=$?
20765 cat out/conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20768 then
20769 # The compiler can only warn and ignore the option if not recognized
20770 # So say no if there are warnings
20771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20774 lt_cv_prog_compiler_c_o_CXX=yes
20777 chmod u+w . 2>&5
20778 $RM conftest*
20779 # SGI C++ compiler will create directory out/ii_files/ for
20780 # template instantiation
20781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20782 $RM out/* && rmdir out
20783 cd ..
20784 $RM -r conftest
20785 $RM conftest*
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20789 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20795 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20796 $as_echo_n "(cached) " >&6
20797 else
20798 lt_cv_prog_compiler_c_o_CXX=no
20799 $RM -r conftest 2>/dev/null
20800 mkdir conftest
20801 cd conftest
20802 mkdir out
20803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20805 lt_compiler_flag="-o out/conftest2.$ac_objext"
20806 # Insert the option either (1) after the last *FLAGS variable, or
20807 # (2) before a word containing "conftest.", or (3) at the end.
20808 # Note that $ac_compile itself does not contain backslashes and begins
20809 # with a dollar sign (not a hyphen), so the echo should work correctly.
20810 lt_compile=`echo "$ac_compile" | $SED \
20811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20813 -e 's:$: $lt_compiler_flag:'`
20814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20815 (eval "$lt_compile" 2>out/conftest.err)
20816 ac_status=$?
20817 cat out/conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20820 then
20821 # The compiler can only warn and ignore the option if not recognized
20822 # So say no if there are warnings
20823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20826 lt_cv_prog_compiler_c_o_CXX=yes
20829 chmod u+w . 2>&5
20830 $RM conftest*
20831 # SGI C++ compiler will create directory out/ii_files/ for
20832 # template instantiation
20833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20834 $RM out/* && rmdir out
20835 cd ..
20836 $RM -r conftest
20837 $RM conftest*
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20841 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20846 hard_links="nottested"
20847 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20848 # do not overwrite the value of need_locks provided by the user
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20850 $as_echo_n "checking if we can lock with hard links... " >&6; }
20851 hard_links=yes
20852 $RM conftest*
20853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20854 touch conftest.a
20855 ln conftest.a conftest.b 2>&5 || hard_links=no
20856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20858 $as_echo "$hard_links" >&6; }
20859 if test "$hard_links" = no; then
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20861 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20862 need_locks=warn
20864 else
20865 need_locks=no
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20871 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20874 case $host_os in
20875 aix[4-9]*)
20876 # If we're using GNU nm, then we don't want the "-C" option.
20877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20878 # Also, AIX nm treats weak defined symbols like other global defined
20879 # symbols, whereas GNU nm marks them as "W".
20880 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20881 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'
20882 else
20883 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'
20886 pw32*)
20887 export_symbols_cmds_CXX="$ltdll_cmds"
20889 cygwin* | mingw* | cegcc*)
20890 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'
20893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20895 esac
20896 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20899 $as_echo "$ld_shlibs_CXX" >&6; }
20900 test "$ld_shlibs_CXX" = no && can_build_shared=no
20902 with_gnu_ld_CXX=$with_gnu_ld
20910 # Do we need to explicitly link libc?
20912 case "x$archive_cmds_need_lc_CXX" in
20913 x|xyes)
20914 # Assume -lc should be added
20915 archive_cmds_need_lc_CXX=yes
20917 if test "$enable_shared" = yes && test "$GCC" = yes; then
20918 case $archive_cmds_CXX in
20919 *'~'*)
20920 # FIXME: we may have to deal with multi-command sequences.
20922 '$CC '*)
20923 # Test whether the compiler implicitly links with -lc since on some
20924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20925 # to ld, don't add -lc before -lgcc.
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20928 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20930 else
20931 $RM conftest*
20932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20935 (eval $ac_compile) 2>&5
20936 ac_status=$?
20937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20938 test $ac_status = 0; } 2>conftest.err; then
20939 soname=conftest
20940 lib=conftest
20941 libobjs=conftest.$ac_objext
20942 deplibs=
20943 wl=$lt_prog_compiler_wl_CXX
20944 pic_flag=$lt_prog_compiler_pic_CXX
20945 compiler_flags=-v
20946 linker_flags=-v
20947 verstring=
20948 output_objdir=.
20949 libname=conftest
20950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20951 allow_undefined_flag_CXX=
20952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20953 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20954 ac_status=$?
20955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20956 test $ac_status = 0; }
20957 then
20958 lt_cv_archive_cmds_need_lc_CXX=no
20959 else
20960 lt_cv_archive_cmds_need_lc_CXX=yes
20962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20963 else
20964 cat conftest.err 1>&5
20966 $RM conftest*
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20970 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20971 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20973 esac
20976 esac
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21044 library_names_spec=
21045 libname_spec='lib$name'
21046 soname_spec=
21047 shrext_cmds=".so"
21048 postinstall_cmds=
21049 postuninstall_cmds=
21050 finish_cmds=
21051 finish_eval=
21052 shlibpath_var=
21053 shlibpath_overrides_runpath=unknown
21054 version_type=none
21055 dynamic_linker="$host_os ld.so"
21056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21057 need_lib_prefix=unknown
21058 hardcode_into_libs=no
21060 # when you set need_version to no, make sure it does not cause -set_version
21061 # flags to be left without arguments
21062 need_version=unknown
21064 case $host_os in
21065 aix3*)
21066 version_type=linux
21067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21068 shlibpath_var=LIBPATH
21070 # AIX 3 has no versioning support, so we append a major version to the name.
21071 soname_spec='${libname}${release}${shared_ext}$major'
21074 aix[4-9]*)
21075 version_type=linux
21076 need_lib_prefix=no
21077 need_version=no
21078 hardcode_into_libs=yes
21079 if test "$host_cpu" = ia64; then
21080 # AIX 5 supports IA64
21081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21082 shlibpath_var=LD_LIBRARY_PATH
21083 else
21084 # With GCC up to 2.95.x, collect2 would create an import file
21085 # for dependence libraries. The import file would start with
21086 # the line `#! .'. This would cause the generated library to
21087 # depend on `.', always an invalid library. This was fixed in
21088 # development snapshots of GCC prior to 3.0.
21089 case $host_os in
21090 aix4 | aix4.[01] | aix4.[01].*)
21091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21092 echo ' yes '
21093 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21095 else
21096 can_build_shared=no
21099 esac
21100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21101 # soname into executable. Probably we can add versioning support to
21102 # collect2, so additional links can be useful in future.
21103 if test "$aix_use_runtimelinking" = yes; then
21104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21105 # instead of lib<name>.a to let people know that these are not
21106 # typical AIX shared libraries.
21107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21108 else
21109 # We preserve .a as extension for shared libraries through AIX4.2
21110 # and later when we are not doing run time linking.
21111 library_names_spec='${libname}${release}.a $libname.a'
21112 soname_spec='${libname}${release}${shared_ext}$major'
21114 shlibpath_var=LIBPATH
21118 amigaos*)
21119 case $host_cpu in
21120 powerpc)
21121 # Since July 2007 AmigaOS4 officially supports .so libraries.
21122 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21125 m68k)
21126 library_names_spec='$libname.ixlibrary $libname.a'
21127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21128 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'
21130 esac
21133 beos*)
21134 library_names_spec='${libname}${shared_ext}'
21135 dynamic_linker="$host_os ld.so"
21136 shlibpath_var=LIBRARY_PATH
21139 bsdi[45]*)
21140 version_type=linux
21141 need_version=no
21142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21143 soname_spec='${libname}${release}${shared_ext}$major'
21144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21145 shlibpath_var=LD_LIBRARY_PATH
21146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21148 # the default ld.so.conf also contains /usr/contrib/lib and
21149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21150 # libtool to hard-code these into programs
21153 cygwin* | mingw* | pw32* | cegcc*)
21154 version_type=windows
21155 shrext_cmds=".dll"
21156 need_version=no
21157 need_lib_prefix=no
21159 case $GCC,$host_os in
21160 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21161 library_names_spec='$libname.dll.a'
21162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21163 postinstall_cmds='base_file=`basename \${file}`~
21164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21165 dldir=$destdir/`dirname \$dlpath`~
21166 test -d \$dldir || mkdir -p \$dldir~
21167 $install_prog $dir/$dlname \$dldir/$dlname~
21168 chmod a+x \$dldir/$dlname~
21169 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21170 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21173 dlpath=$dir/\$dldll~
21174 $RM \$dlpath'
21175 shlibpath_overrides_runpath=yes
21177 case $host_os in
21178 cygwin*)
21179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21183 mingw* | cegcc*)
21184 # MinGW DLLs use traditional 'lib' prefix
21185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21187 pw32*)
21188 # pw32 DLLs use 'pw' prefix rather than 'lib'
21189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21191 esac
21195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21197 esac
21198 dynamic_linker='Win32 ld.exe'
21199 # FIXME: first we should search . and the directory the executable is in
21200 shlibpath_var=PATH
21203 darwin* | rhapsody*)
21204 dynamic_linker="$host_os dyld"
21205 version_type=darwin
21206 need_lib_prefix=no
21207 need_version=no
21208 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21209 soname_spec='${libname}${release}${major}$shared_ext'
21210 shlibpath_overrides_runpath=yes
21211 shlibpath_var=DYLD_LIBRARY_PATH
21212 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21217 dgux*)
21218 version_type=linux
21219 need_lib_prefix=no
21220 need_version=no
21221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21222 soname_spec='${libname}${release}${shared_ext}$major'
21223 shlibpath_var=LD_LIBRARY_PATH
21226 freebsd* | dragonfly*)
21227 # DragonFly does not have aout. When/if they implement a new
21228 # versioning mechanism, adjust this.
21229 if test -x /usr/bin/objformat; then
21230 objformat=`/usr/bin/objformat`
21231 else
21232 case $host_os in
21233 freebsd[23].*) objformat=aout ;;
21234 *) objformat=elf ;;
21235 esac
21237 version_type=freebsd-$objformat
21238 case $version_type in
21239 freebsd-elf*)
21240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21241 need_version=no
21242 need_lib_prefix=no
21244 freebsd-*)
21245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21246 need_version=yes
21248 esac
21249 shlibpath_var=LD_LIBRARY_PATH
21250 case $host_os in
21251 freebsd2.*)
21252 shlibpath_overrides_runpath=yes
21254 freebsd3.[01]* | freebsdelf3.[01]*)
21255 shlibpath_overrides_runpath=yes
21256 hardcode_into_libs=yes
21258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21260 shlibpath_overrides_runpath=no
21261 hardcode_into_libs=yes
21263 *) # from 4.6 on, and DragonFly
21264 shlibpath_overrides_runpath=yes
21265 hardcode_into_libs=yes
21267 esac
21270 gnu*)
21271 version_type=linux
21272 need_lib_prefix=no
21273 need_version=no
21274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21275 soname_spec='${libname}${release}${shared_ext}$major'
21276 shlibpath_var=LD_LIBRARY_PATH
21277 hardcode_into_libs=yes
21280 haiku*)
21281 version_type=linux
21282 need_lib_prefix=no
21283 need_version=no
21284 dynamic_linker="$host_os runtime_loader"
21285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21286 soname_spec='${libname}${release}${shared_ext}$major'
21287 shlibpath_var=LIBRARY_PATH
21288 shlibpath_overrides_runpath=yes
21289 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21290 hardcode_into_libs=yes
21293 hpux9* | hpux10* | hpux11*)
21294 # Give a soname corresponding to the major version so that dld.sl refuses to
21295 # link against other versions.
21296 version_type=sunos
21297 need_lib_prefix=no
21298 need_version=no
21299 case $host_cpu in
21300 ia64*)
21301 shrext_cmds='.so'
21302 hardcode_into_libs=yes
21303 dynamic_linker="$host_os dld.so"
21304 shlibpath_var=LD_LIBRARY_PATH
21305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21307 soname_spec='${libname}${release}${shared_ext}$major'
21308 if test "X$HPUX_IA64_MODE" = X32; then
21309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21310 else
21311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21315 hppa*64*)
21316 shrext_cmds='.sl'
21317 hardcode_into_libs=yes
21318 dynamic_linker="$host_os dld.sl"
21319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21322 soname_spec='${libname}${release}${shared_ext}$major'
21323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21327 shrext_cmds='.sl'
21328 dynamic_linker="$host_os dld.sl"
21329 shlibpath_var=SHLIB_PATH
21330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21332 soname_spec='${libname}${release}${shared_ext}$major'
21334 esac
21335 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21336 postinstall_cmds='chmod 555 $lib'
21337 # or fails outright, so override atomically:
21338 install_override_mode=555
21341 interix[3-9]*)
21342 version_type=linux
21343 need_lib_prefix=no
21344 need_version=no
21345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21346 soname_spec='${libname}${release}${shared_ext}$major'
21347 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21348 shlibpath_var=LD_LIBRARY_PATH
21349 shlibpath_overrides_runpath=no
21350 hardcode_into_libs=yes
21353 irix5* | irix6* | nonstopux*)
21354 case $host_os in
21355 nonstopux*) version_type=nonstopux ;;
21357 if test "$lt_cv_prog_gnu_ld" = yes; then
21358 version_type=linux
21359 else
21360 version_type=irix
21361 fi ;;
21362 esac
21363 need_lib_prefix=no
21364 need_version=no
21365 soname_spec='${libname}${release}${shared_ext}$major'
21366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21367 case $host_os in
21368 irix5* | nonstopux*)
21369 libsuff= shlibsuff=
21372 case $LD in # libtool.m4 will add one of these switches to LD
21373 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21374 libsuff= shlibsuff= libmagic=32-bit;;
21375 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21376 libsuff=32 shlibsuff=N32 libmagic=N32;;
21377 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21378 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21379 *) libsuff= shlibsuff= libmagic=never-match;;
21380 esac
21382 esac
21383 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21384 shlibpath_overrides_runpath=no
21385 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21386 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21387 hardcode_into_libs=yes
21390 # No shared lib support for Linux oldld, aout, or coff.
21391 linux*oldld* | linux*aout* | linux*coff*)
21392 dynamic_linker=no
21395 # This must be Linux ELF.
21396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21397 version_type=linux
21398 need_lib_prefix=no
21399 need_version=no
21400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21401 soname_spec='${libname}${release}${shared_ext}$major'
21402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21403 shlibpath_var=LD_LIBRARY_PATH
21404 shlibpath_overrides_runpath=no
21406 # Some binutils ld are patched to set DT_RUNPATH
21407 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21408 $as_echo_n "(cached) " >&6
21409 else
21410 lt_cv_shlibpath_overrides_runpath=no
21411 save_LDFLAGS=$LDFLAGS
21412 save_libdir=$libdir
21413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21419 main ()
21423 return 0;
21425 _ACEOF
21426 if ac_fn_cxx_try_link "$LINENO"; then :
21427 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21428 lt_cv_shlibpath_overrides_runpath=yes
21431 rm -f core conftest.err conftest.$ac_objext \
21432 conftest$ac_exeext conftest.$ac_ext
21433 LDFLAGS=$save_LDFLAGS
21434 libdir=$save_libdir
21438 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21440 # This implies no fast_install, which is unacceptable.
21441 # Some rework will be needed to allow for fast_install
21442 # before this can be enabled.
21443 hardcode_into_libs=yes
21445 # Append ld.so.conf contents to the search path
21446 if test -f /etc/ld.so.conf; then
21447 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' ' '`
21448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21451 # We used to test for /lib/ld.so.1 and disable shared libraries on
21452 # powerpc, because MkLinux only supported shared libraries with the
21453 # GNU dynamic linker. Since this was broken with cross compilers,
21454 # most powerpc-linux boxes support dynamic linking these days and
21455 # people can always --disable-shared, the test was removed, and we
21456 # assume the GNU/Linux dynamic linker is in use.
21457 dynamic_linker='GNU/Linux ld.so'
21460 netbsd*)
21461 version_type=sunos
21462 need_lib_prefix=no
21463 need_version=no
21464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21467 dynamic_linker='NetBSD (a.out) ld.so'
21468 else
21469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21470 soname_spec='${libname}${release}${shared_ext}$major'
21471 dynamic_linker='NetBSD ld.elf_so'
21473 shlibpath_var=LD_LIBRARY_PATH
21474 shlibpath_overrides_runpath=yes
21475 hardcode_into_libs=yes
21478 newsos6)
21479 version_type=linux
21480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21481 shlibpath_var=LD_LIBRARY_PATH
21482 shlibpath_overrides_runpath=yes
21485 *nto* | *qnx*)
21486 version_type=qnx
21487 need_lib_prefix=no
21488 need_version=no
21489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21490 soname_spec='${libname}${release}${shared_ext}$major'
21491 shlibpath_var=LD_LIBRARY_PATH
21492 shlibpath_overrides_runpath=no
21493 hardcode_into_libs=yes
21494 dynamic_linker='ldqnx.so'
21497 openbsd*)
21498 version_type=sunos
21499 sys_lib_dlsearch_path_spec="/usr/lib"
21500 need_lib_prefix=no
21501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21502 case $host_os in
21503 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21504 *) need_version=no ;;
21505 esac
21506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21508 shlibpath_var=LD_LIBRARY_PATH
21509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21510 case $host_os in
21511 openbsd2.[89] | openbsd2.[89].*)
21512 shlibpath_overrides_runpath=no
21515 shlibpath_overrides_runpath=yes
21517 esac
21518 else
21519 shlibpath_overrides_runpath=yes
21523 os2*)
21524 libname_spec='$name'
21525 shrext_cmds=".dll"
21526 need_lib_prefix=no
21527 library_names_spec='$libname${shared_ext} $libname.a'
21528 dynamic_linker='OS/2 ld.exe'
21529 shlibpath_var=LIBPATH
21532 osf3* | osf4* | osf5*)
21533 version_type=osf
21534 need_lib_prefix=no
21535 need_version=no
21536 soname_spec='${libname}${release}${shared_ext}$major'
21537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21538 shlibpath_var=LD_LIBRARY_PATH
21539 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21540 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21543 rdos*)
21544 dynamic_linker=no
21547 solaris*)
21548 version_type=linux
21549 need_lib_prefix=no
21550 need_version=no
21551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21552 soname_spec='${libname}${release}${shared_ext}$major'
21553 shlibpath_var=LD_LIBRARY_PATH
21554 shlibpath_overrides_runpath=yes
21555 hardcode_into_libs=yes
21556 # ldd complains unless libraries are executable
21557 postinstall_cmds='chmod +x $lib'
21560 sunos4*)
21561 version_type=sunos
21562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21563 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21564 shlibpath_var=LD_LIBRARY_PATH
21565 shlibpath_overrides_runpath=yes
21566 if test "$with_gnu_ld" = yes; then
21567 need_lib_prefix=no
21569 need_version=yes
21572 sysv4 | sysv4.3*)
21573 version_type=linux
21574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21575 soname_spec='${libname}${release}${shared_ext}$major'
21576 shlibpath_var=LD_LIBRARY_PATH
21577 case $host_vendor in
21578 sni)
21579 shlibpath_overrides_runpath=no
21580 need_lib_prefix=no
21581 runpath_var=LD_RUN_PATH
21583 siemens)
21584 need_lib_prefix=no
21586 motorola)
21587 need_lib_prefix=no
21588 need_version=no
21589 shlibpath_overrides_runpath=no
21590 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21592 esac
21595 sysv4*MP*)
21596 if test -d /usr/nec ;then
21597 version_type=linux
21598 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21599 soname_spec='$libname${shared_ext}.$major'
21600 shlibpath_var=LD_LIBRARY_PATH
21604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21605 version_type=freebsd-elf
21606 need_lib_prefix=no
21607 need_version=no
21608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21609 soname_spec='${libname}${release}${shared_ext}$major'
21610 shlibpath_var=LD_LIBRARY_PATH
21611 shlibpath_overrides_runpath=yes
21612 hardcode_into_libs=yes
21613 if test "$with_gnu_ld" = yes; then
21614 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21615 else
21616 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21617 case $host_os in
21618 sco3.2v5*)
21619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21621 esac
21623 sys_lib_dlsearch_path_spec='/usr/lib'
21626 tpf*)
21627 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21628 version_type=linux
21629 need_lib_prefix=no
21630 need_version=no
21631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21632 shlibpath_var=LD_LIBRARY_PATH
21633 shlibpath_overrides_runpath=no
21634 hardcode_into_libs=yes
21637 uts4*)
21638 version_type=linux
21639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640 soname_spec='${libname}${release}${shared_ext}$major'
21641 shlibpath_var=LD_LIBRARY_PATH
21645 dynamic_linker=no
21647 esac
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21649 $as_echo "$dynamic_linker" >&6; }
21650 test "$dynamic_linker" = no && can_build_shared=no
21652 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21653 if test "$GCC" = yes; then
21654 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21657 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21658 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21660 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21661 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21702 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21703 hardcode_action_CXX=
21704 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21705 test -n "$runpath_var_CXX" ||
21706 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21708 # We can hardcode non-existent directories.
21709 if test "$hardcode_direct_CXX" != no &&
21710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21711 # have to relink, otherwise we might link with an installed library
21712 # when we should be linking with a yet-to-be-installed one
21713 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21714 test "$hardcode_minus_L_CXX" != no; then
21715 # Linking always hardcodes the temporary library directory.
21716 hardcode_action_CXX=relink
21717 else
21718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21719 hardcode_action_CXX=immediate
21721 else
21722 # We cannot hardcode anything, or else we can only hardcode existing
21723 # directories.
21724 hardcode_action_CXX=unsupported
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21727 $as_echo "$hardcode_action_CXX" >&6; }
21729 if test "$hardcode_action_CXX" = relink ||
21730 test "$inherit_rpath_CXX" = yes; then
21731 # Fast installation is not supported
21732 enable_fast_install=no
21733 elif test "$shlibpath_overrides_runpath" = yes ||
21734 test "$enable_shared" = no; then
21735 # Fast installation is not necessary
21736 enable_fast_install=needless
21745 fi # test -n "$compiler"
21747 CC=$lt_save_CC
21748 LDCXX=$LD
21749 LD=$lt_save_LD
21750 GCC=$lt_save_GCC
21751 with_gnu_ld=$lt_save_with_gnu_ld
21752 lt_cv_path_LDCXX=$lt_cv_path_LD
21753 lt_cv_path_LD=$lt_save_path_LD
21754 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21755 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21756 fi # test "$_lt_caught_CXX_error" != yes
21758 ac_ext=cpp
21759 ac_cpp='$CXXCPP $CPPFLAGS'
21760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21779 # Only expand once:
21785 # Identify the assembler which will work hand-in-glove with the newly
21786 # built GCC, so that we can examine its features. This is the assembler
21787 # which will be driven by the driver program.
21789 # If build != host, and we aren't building gas in-tree, we identify a
21790 # build->target assembler and hope that it will have the same features
21791 # as the host->target assembler we'll be using.
21792 gcc_cv_gas_major_version=
21793 gcc_cv_gas_minor_version=
21794 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21796 if test "${gcc_cv_as+set}" = set; then :
21798 else
21800 if test -x "$DEFAULT_ASSEMBLER"; then
21801 gcc_cv_as="$DEFAULT_ASSEMBLER"
21802 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21803 && test -f ../gas/Makefile \
21804 && test x$build = x$host; then
21805 gcc_cv_as=../gas/as-new$build_exeext
21806 elif test -x as$build_exeext; then
21807 # Build using assembler in the current directory.
21808 gcc_cv_as=./as$build_exeext
21809 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21810 gcc_cv_as="$AS_FOR_TARGET"
21811 else
21812 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21813 set dummy $AS_FOR_TARGET; ac_word=$2
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21815 $as_echo_n "checking for $ac_word... " >&6; }
21816 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21817 $as_echo_n "(cached) " >&6
21818 else
21819 case $gcc_cv_as in
21820 [\\/]* | ?:[\\/]*)
21821 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21825 for as_dir in $PATH
21827 IFS=$as_save_IFS
21828 test -z "$as_dir" && as_dir=.
21829 for ac_exec_ext in '' $ac_executable_extensions; do
21830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21831 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21833 break 2
21835 done
21836 done
21837 IFS=$as_save_IFS
21840 esac
21842 gcc_cv_as=$ac_cv_path_gcc_cv_as
21843 if test -n "$gcc_cv_as"; then
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21845 $as_echo "$gcc_cv_as" >&6; }
21846 else
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21848 $as_echo "no" >&6; }
21855 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21857 case "$ORIGINAL_AS_FOR_TARGET" in
21858 ./as | ./as$build_exeext) ;;
21859 *) ac_config_files="$ac_config_files as:exec-tool.in"
21861 esac
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21864 $as_echo_n "checking what assembler to use... " >&6; }
21865 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21866 # Single tree build which includes gas. We want to prefer it
21867 # over whatever linker top-level may have detected, since
21868 # we'll use what we're building after installation anyway.
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21870 $as_echo "newly built gas" >&6; }
21871 in_tree_gas=yes
21872 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21873 for f in $gcc_cv_as_bfd_srcdir/configure \
21874 $gcc_cv_as_gas_srcdir/configure \
21875 $gcc_cv_as_gas_srcdir/configure.ac \
21876 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21877 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21878 if test x$gcc_cv_gas_version != x; then
21879 break
21881 done
21882 case $gcc_cv_gas_version in
21883 VERSION=[0-9]*) ;;
21884 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21885 esac
21886 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21887 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21888 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21889 case $gcc_cv_gas_patch_version in
21890 "") gcc_cv_gas_patch_version="0" ;;
21891 esac
21892 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21893 + $gcc_cv_gas_minor_version \) \* 1000 \
21894 + $gcc_cv_gas_patch_version`
21896 in_tree_gas_is_elf=no
21897 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21898 || (grep 'obj_format = multi' ../gas/Makefile \
21899 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21900 then
21901 in_tree_gas_is_elf=yes
21903 else
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21905 $as_echo "$gcc_cv_as" >&6; }
21906 in_tree_gas=no
21909 default_ld=
21910 # Check whether --enable-ld was given.
21911 if test "${enable_ld+set}" = set; then :
21912 enableval=$enable_ld; case "${enableval}" in
21914 default_ld=ld.gold
21916 esac
21920 install_gold_as_default=no
21921 # Check whether --enable-gold was given.
21922 if test "${enable_gold+set}" = set; then :
21923 enableval=$enable_gold; case "${enableval}" in
21924 default)
21925 install_gold_as_default=yes
21927 yes)
21928 if test x${default_ld} != x; then
21929 install_gold_as_default=yes
21935 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21937 esac
21941 # Identify the linker which will work hand-in-glove with the newly
21942 # built GCC, so that we can examine its features. This is the linker
21943 # which will be driven by the driver program.
21945 # If build != host, and we aren't building gas in-tree, we identify a
21946 # build->target linker and hope that it will have the same features
21947 # as the host->target linker we'll be using.
21948 gcc_cv_gld_major_version=
21949 gcc_cv_gld_minor_version=
21950 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21951 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21952 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21954 if test "${gcc_cv_ld+set}" = set; then :
21956 else
21958 if test -x "$DEFAULT_LINKER"; then
21959 gcc_cv_ld="$DEFAULT_LINKER"
21960 elif test $install_gold_as_default = yes \
21961 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21962 && test -f ../gold/Makefile \
21963 && test x$build = x$host; then
21964 gcc_cv_ld=../gold/ld-new$build_exeext
21965 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21966 && test -f ../ld/Makefile \
21967 && test x$build = x$host; then
21968 gcc_cv_ld=../ld/ld-new$build_exeext
21969 elif test -x collect-ld$build_exeext; then
21970 # Build using linker in the current directory.
21971 gcc_cv_ld=./collect-ld$build_exeext
21972 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21973 gcc_cv_ld="$LD_FOR_TARGET"
21974 else
21975 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21976 set dummy $LD_FOR_TARGET; ac_word=$2
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21978 $as_echo_n "checking for $ac_word... " >&6; }
21979 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21981 else
21982 case $gcc_cv_ld in
21983 [\\/]* | ?:[\\/]*)
21984 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21988 for as_dir in $PATH
21990 IFS=$as_save_IFS
21991 test -z "$as_dir" && as_dir=.
21992 for ac_exec_ext in '' $ac_executable_extensions; do
21993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21994 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21996 break 2
21998 done
21999 done
22000 IFS=$as_save_IFS
22003 esac
22005 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22006 if test -n "$gcc_cv_ld"; then
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22008 $as_echo "$gcc_cv_ld" >&6; }
22009 else
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22011 $as_echo "no" >&6; }
22018 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22019 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22020 # if the PLUGIN_LD is set ld-new, just have it as ld
22021 # as that is the installed named.
22022 if test x$PLUGIN_LD_SUFFIX = xld-new \
22023 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22024 PLUGIN_LD_SUFFIX=ld
22027 # Check whether --with-plugin-ld was given.
22028 if test "${with_plugin_ld+set}" = set; then :
22029 withval=$with_plugin_ld; if test x"$withval" != x; then
22030 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22031 PLUGIN_LD_SUFFIX="$withval"
22037 cat >>confdefs.h <<_ACEOF
22038 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22039 _ACEOF
22042 # Check to see if we are using gold instead of ld
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22044 $as_echo_n "checking whether we are using gold... " >&6; }
22045 ld_is_gold=no
22046 if test x$gcc_cv_ld != x; then
22047 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22048 | grep "GNU gold" > /dev/null; then
22049 ld_is_gold=yes
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22053 $as_echo "$ld_is_gold" >&6; }
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22056 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22057 # Check to see if default ld is not gold, but gold is
22058 # available and has support for split stack. If gcc was configured
22059 # with gold then no checking is done.
22061 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22063 # For platforms other than powerpc64*, enable as appropriate.
22065 gold_non_default=no
22066 ld_gold=`which ${gcc_cv_ld}.gold`
22067 # Make sure this gold has minimal split stack support
22068 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22069 ld_vers=`$ld_gold --version | sed 1q`
22070 gold_vers=`echo $ld_vers | sed -n \
22071 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22072 case $target in
22073 # check that the gold version contains the complete split stack support
22074 # on powerpc64 big and little endian
22075 powerpc64*-*-*)
22076 case "$gold_vers" in
22077 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22079 *) gold_non_default=no
22081 esac
22083 esac
22085 if test $gold_non_default = yes; then
22087 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22092 $as_echo "$gold_non_default" >&6; }
22094 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22096 case "$ORIGINAL_LD_FOR_TARGET" in
22097 ./collect-ld | ./collect-ld$build_exeext) ;;
22098 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22100 esac
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22103 $as_echo_n "checking what linker to use... " >&6; }
22104 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22105 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22106 # Single tree build which includes ld. We want to prefer it
22107 # over whatever linker top-level may have detected, since
22108 # we'll use what we're building after installation anyway.
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22110 $as_echo "newly built ld" >&6; }
22111 in_tree_ld=yes
22112 in_tree_ld_is_elf=no
22113 if (grep 'EMUL = .*elf' ../ld/Makefile \
22114 || grep 'EMUL = .*linux' ../ld/Makefile \
22115 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22116 in_tree_ld_is_elf=yes
22117 elif test "$ld_is_gold" = yes; then
22118 in_tree_ld_is_elf=yes
22120 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
22122 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22123 if test x$gcc_cv_gld_version != x; then
22124 break
22126 done
22127 case $gcc_cv_gld_version in
22128 VERSION=[0-9]*) ;;
22129 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22130 esac
22131 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22132 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22133 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22134 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22135 else
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22137 $as_echo "$gcc_cv_ld" >&6; }
22138 in_tree_ld=no
22139 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22140 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22141 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22147 # Figure out what nm we will be using.
22148 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22149 if test "${gcc_cv_nm+set}" = set; then :
22151 else
22153 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22154 && test -f ../binutils/Makefile \
22155 && test x$build = x$host; then
22156 gcc_cv_nm=../binutils/nm-new$build_exeext
22157 elif test -x nm$build_exeext; then
22158 gcc_cv_nm=./nm$build_exeext
22159 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22160 gcc_cv_nm="$NM_FOR_TARGET"
22161 else
22162 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22163 set dummy $NM_FOR_TARGET; ac_word=$2
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22165 $as_echo_n "checking for $ac_word... " >&6; }
22166 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22167 $as_echo_n "(cached) " >&6
22168 else
22169 case $gcc_cv_nm in
22170 [\\/]* | ?:[\\/]*)
22171 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22175 for as_dir in $PATH
22177 IFS=$as_save_IFS
22178 test -z "$as_dir" && as_dir=.
22179 for ac_exec_ext in '' $ac_executable_extensions; do
22180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22181 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22183 break 2
22185 done
22186 done
22187 IFS=$as_save_IFS
22190 esac
22192 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22193 if test -n "$gcc_cv_nm"; then
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22195 $as_echo "$gcc_cv_nm" >&6; }
22196 else
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22198 $as_echo "no" >&6; }
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22206 $as_echo_n "checking what nm to use... " >&6; }
22207 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22208 # Single tree build which includes binutils.
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22210 $as_echo "newly built nm" >&6; }
22211 in_tree_nm=yes
22212 else
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22214 $as_echo "$gcc_cv_nm" >&6; }
22215 in_tree_nm=no
22218 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22220 case "$ORIGINAL_NM_FOR_TARGET" in
22221 ./nm | ./nm$build_exeext) ;;
22222 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22224 esac
22227 # Figure out what objdump we will be using.
22228 if test "${gcc_cv_objdump+set}" = set; then :
22230 else
22232 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22233 && test -f ../binutils/Makefile \
22234 && test x$build = x$host; then
22235 # Single tree build which includes binutils.
22236 gcc_cv_objdump=../binutils/objdump$build_exeext
22237 elif test -x objdump$build_exeext; then
22238 gcc_cv_objdump=./objdump$build_exeext
22239 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22240 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22241 else
22242 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22243 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22245 $as_echo_n "checking for $ac_word... " >&6; }
22246 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22247 $as_echo_n "(cached) " >&6
22248 else
22249 case $gcc_cv_objdump in
22250 [\\/]* | ?:[\\/]*)
22251 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22255 for as_dir in $PATH
22257 IFS=$as_save_IFS
22258 test -z "$as_dir" && as_dir=.
22259 for ac_exec_ext in '' $ac_executable_extensions; do
22260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22261 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22263 break 2
22265 done
22266 done
22267 IFS=$as_save_IFS
22270 esac
22272 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22273 if test -n "$gcc_cv_objdump"; then
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22275 $as_echo "$gcc_cv_objdump" >&6; }
22276 else
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22278 $as_echo "no" >&6; }
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22286 $as_echo_n "checking what objdump to use... " >&6; }
22287 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22288 # Single tree build which includes binutils.
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22290 $as_echo "newly built objdump" >&6; }
22291 elif test x$gcc_cv_objdump = x; then
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22293 $as_echo "not found" >&6; }
22294 else
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22296 $as_echo "$gcc_cv_objdump" >&6; }
22299 # Figure out what readelf we will be using.
22300 if test "${gcc_cv_readelf+set}" = set; then :
22302 else
22304 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22305 && test -f ../binutils/Makefile \
22306 && test x$build = x$host; then
22307 # Single tree build which includes binutils.
22308 gcc_cv_readelf=../binutils/readelf$build_exeext
22309 elif test -x readelf$build_exeext; then
22310 gcc_cv_readelf=./readelf$build_exeext
22311 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22312 gcc_cv_readelf="$READELF_FOR_TARGET"
22313 else
22314 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22315 set dummy $READELF_FOR_TARGET; ac_word=$2
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22317 $as_echo_n "checking for $ac_word... " >&6; }
22318 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22319 $as_echo_n "(cached) " >&6
22320 else
22321 case $gcc_cv_readelf in
22322 [\\/]* | ?:[\\/]*)
22323 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22327 for as_dir in $PATH
22329 IFS=$as_save_IFS
22330 test -z "$as_dir" && as_dir=.
22331 for ac_exec_ext in '' $ac_executable_extensions; do
22332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22333 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22335 break 2
22337 done
22338 done
22339 IFS=$as_save_IFS
22342 esac
22344 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22345 if test -n "$gcc_cv_readelf"; then
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22347 $as_echo "$gcc_cv_readelf" >&6; }
22348 else
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22358 $as_echo_n "checking what readelf to use... " >&6; }
22359 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22360 # Single tree build which includes binutils.
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22362 $as_echo "newly built readelf" >&6; }
22363 elif test x$gcc_cv_readelf = x; then
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22365 $as_echo "not found" >&6; }
22366 else
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22368 $as_echo "$gcc_cv_readelf" >&6; }
22371 # Figure out what assembler alignment features are present.
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22373 $as_echo_n "checking assembler flags... " >&6; }
22374 if test "${gcc_cv_as_flags+set}" = set; then :
22375 $as_echo_n "(cached) " >&6
22376 else
22377 case "$target" in
22378 i[34567]86-*-linux*)
22379 gcc_cv_as_flags=--32
22381 x86_64-*-linux-gnux32)
22382 gcc_cv_as_flags=--x32
22384 x86_64-*-linux*)
22385 gcc_cv_as_flags=--64
22387 powerpc*-*-darwin*)
22388 gcc_cv_as_flags="-arch ppc"
22391 gcc_cv_as_flags=" "
22393 esac
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22396 $as_echo "$gcc_cv_as_flags" >&6; }
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22399 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22400 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22401 $as_echo_n "(cached) " >&6
22402 else
22403 gcc_cv_as_balign_and_p2align=no
22404 if test $in_tree_gas = yes; then
22405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22406 then gcc_cv_as_balign_and_p2align=yes
22408 elif test x$gcc_cv_as != x; then
22409 $as_echo '.balign 4
22410 .p2align 2' > conftest.s
22411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22413 (eval $ac_try) 2>&5
22414 ac_status=$?
22415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22416 test $ac_status = 0; }; }
22417 then
22418 gcc_cv_as_balign_and_p2align=yes
22419 else
22420 echo "configure: failed program was" >&5
22421 cat conftest.s >&5
22423 rm -f conftest.o conftest.s
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22427 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22428 if test $gcc_cv_as_balign_and_p2align = yes; then
22430 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22436 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22437 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22439 else
22440 gcc_cv_as_max_skip_p2align=no
22441 if test $in_tree_gas = yes; then
22442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22443 then gcc_cv_as_max_skip_p2align=yes
22445 elif test x$gcc_cv_as != x; then
22446 $as_echo '.p2align 4,,7' > conftest.s
22447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22449 (eval $ac_try) 2>&5
22450 ac_status=$?
22451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22452 test $ac_status = 0; }; }
22453 then
22454 gcc_cv_as_max_skip_p2align=yes
22455 else
22456 echo "configure: failed program was" >&5
22457 cat conftest.s >&5
22459 rm -f conftest.o conftest.s
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22463 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22464 if test $gcc_cv_as_max_skip_p2align = yes; then
22466 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22472 $as_echo_n "checking assembler for .literal16... " >&6; }
22473 if test "${gcc_cv_as_literal16+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 gcc_cv_as_literal16=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22479 then gcc_cv_as_literal16=yes
22481 elif test x$gcc_cv_as != x; then
22482 $as_echo '.literal16' > conftest.s
22483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22485 (eval $ac_try) 2>&5
22486 ac_status=$?
22487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22488 test $ac_status = 0; }; }
22489 then
22490 gcc_cv_as_literal16=yes
22491 else
22492 echo "configure: failed program was" >&5
22493 cat conftest.s >&5
22495 rm -f conftest.o conftest.s
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22499 $as_echo "$gcc_cv_as_literal16" >&6; }
22500 if test $gcc_cv_as_literal16 = yes; then
22502 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22508 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22509 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22510 $as_echo_n "(cached) " >&6
22511 else
22512 gcc_cv_as_subsection_m1=no
22513 if test $in_tree_gas = yes; then
22514 if test $in_tree_gas_is_elf = yes \
22515 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22516 then gcc_cv_as_subsection_m1=yes
22518 elif test x$gcc_cv_as != x; then
22519 $as_echo 'conftest_label1: .word 0
22520 .subsection -1
22521 conftest_label2: .word 0
22522 .previous' > conftest.s
22523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22526 ac_status=$?
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22529 then
22530 if test x$gcc_cv_nm != x; then
22531 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22532 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22533 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22534 then :
22535 else gcc_cv_as_subsection_m1=yes
22537 rm -f conftest.nm1 conftest.nm2
22539 else
22540 echo "configure: failed program was" >&5
22541 cat conftest.s >&5
22543 rm -f conftest.o conftest.s
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22547 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22548 if test $gcc_cv_as_subsection_m1 = yes; then
22550 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22556 $as_echo_n "checking assembler for .weak... " >&6; }
22557 if test "${gcc_cv_as_weak+set}" = set; then :
22558 $as_echo_n "(cached) " >&6
22559 else
22560 gcc_cv_as_weak=no
22561 if test $in_tree_gas = yes; then
22562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22563 then gcc_cv_as_weak=yes
22565 elif test x$gcc_cv_as != x; then
22566 $as_echo ' .weak foobar' > conftest.s
22567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22569 (eval $ac_try) 2>&5
22570 ac_status=$?
22571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22572 test $ac_status = 0; }; }
22573 then
22574 gcc_cv_as_weak=yes
22575 else
22576 echo "configure: failed program was" >&5
22577 cat conftest.s >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22583 $as_echo "$gcc_cv_as_weak" >&6; }
22584 if test $gcc_cv_as_weak = yes; then
22586 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22592 $as_echo_n "checking assembler for .weakref... " >&6; }
22593 if test "${gcc_cv_as_weakref+set}" = set; then :
22594 $as_echo_n "(cached) " >&6
22595 else
22596 gcc_cv_as_weakref=no
22597 if test $in_tree_gas = yes; then
22598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22599 then gcc_cv_as_weakref=yes
22601 elif test x$gcc_cv_as != x; then
22602 $as_echo ' .weakref foobar, barfnot' > conftest.s
22603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22608 test $ac_status = 0; }; }
22609 then
22610 gcc_cv_as_weakref=yes
22611 else
22612 echo "configure: failed program was" >&5
22613 cat conftest.s >&5
22615 rm -f conftest.o conftest.s
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22619 $as_echo "$gcc_cv_as_weakref" >&6; }
22620 if test $gcc_cv_as_weakref = yes; then
22622 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22628 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22629 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22630 $as_echo_n "(cached) " >&6
22631 else
22632 gcc_cv_as_nsubspa_comdat=no
22633 if test $in_tree_gas = yes; then
22634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22635 then gcc_cv_as_nsubspa_comdat=yes
22637 elif test x$gcc_cv_as != x; then
22638 $as_echo ' .SPACE $TEXT$
22639 .NSUBSPA $CODE$,COMDAT' > conftest.s
22640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22642 (eval $ac_try) 2>&5
22643 ac_status=$?
22644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22645 test $ac_status = 0; }; }
22646 then
22647 gcc_cv_as_nsubspa_comdat=yes
22648 else
22649 echo "configure: failed program was" >&5
22650 cat conftest.s >&5
22652 rm -f conftest.o conftest.s
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22656 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22657 if test $gcc_cv_as_nsubspa_comdat = yes; then
22659 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22664 # .hidden needs to be supported in both the assembler and the linker,
22665 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22666 # This is irritatingly difficult to feature test for; we have to check the
22667 # date string after the version number. If we've got an in-tree
22668 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22669 # to be safe.
22670 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22671 case "${target}" in
22672 *-*-aix*)
22673 conftest_s=' .globl foobar,hidden'
22676 conftest_s=' .hidden foobar
22677 foobar:'
22679 esac
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22681 $as_echo_n "checking assembler for .hidden... " >&6; }
22682 if test "${gcc_cv_as_hidden+set}" = set; then :
22683 $as_echo_n "(cached) " >&6
22684 else
22685 gcc_cv_as_hidden=no
22686 if test $in_tree_gas = yes; then
22687 if test $in_tree_gas_is_elf = yes \
22688 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22689 then gcc_cv_as_hidden=yes
22691 elif test x$gcc_cv_as != x; then
22692 $as_echo "$conftest_s" > conftest.s
22693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22698 test $ac_status = 0; }; }
22699 then
22700 gcc_cv_as_hidden=yes
22701 else
22702 echo "configure: failed program was" >&5
22703 cat conftest.s >&5
22705 rm -f conftest.o conftest.s
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22709 $as_echo "$gcc_cv_as_hidden" >&6; }
22712 case "${target}" in
22713 *-*-darwin*)
22714 # Darwin as has some visibility support, though with a different syntax.
22715 gcc_cv_as_hidden=yes
22717 esac
22719 # gnu_indirect_function type is an extension proposed at
22720 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22721 # selection of function implementation
22722 # Check whether --enable-gnu-indirect-function was given.
22723 if test "${enable_gnu_indirect_function+set}" = set; then :
22724 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22725 yes | no) ;;
22726 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22727 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22728 esac
22729 else
22730 enable_gnu_indirect_function="$default_gnu_indirect_function"
22734 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22736 cat >>confdefs.h <<_ACEOF
22737 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22738 _ACEOF
22742 if test $in_tree_ld != yes ; then
22743 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22744 if echo "$ld_ver" | grep GNU > /dev/null; then
22745 if test x"$ld_is_gold" = xyes; then
22746 # GNU gold --version looks like this:
22748 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22750 # We extract the binutils version which is more familiar and specific
22751 # than the gold version.
22752 ld_vers=`echo $ld_ver | sed -n \
22753 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22754 else
22755 # GNU ld --version looks like this:
22757 # GNU ld (GNU Binutils) 2.21.51.20110225
22758 ld_vers=`echo $ld_ver | sed -n \
22759 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22761 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'`
22762 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22763 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22764 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22765 else
22766 case "${target}" in
22767 *-*-solaris2*)
22768 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22769 # format.
22771 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22772 # /usr/ccs/bin/ld has been configured.
22773 ld_ver=`$gcc_cv_ld -V 2>&1`
22774 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22775 ld_vers=`echo $ld_ver | sed -n \
22776 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22777 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22778 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22781 esac
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22786 $as_echo_n "checking linker for .hidden support... " >&6; }
22787 if test "${gcc_cv_ld_hidden+set}" = set; then :
22788 $as_echo_n "(cached) " >&6
22789 else
22790 if test $in_tree_ld = yes ; then
22791 gcc_cv_ld_hidden=no
22792 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 \
22793 && test $in_tree_ld_is_elf = yes; then
22794 gcc_cv_ld_hidden=yes
22796 else
22797 gcc_cv_ld_hidden=yes
22798 if test x"$ld_is_gold" = xyes; then
22800 elif echo "$ld_ver" | grep GNU > /dev/null; then
22801 case "${target}" in
22802 mmix-knuth-mmixware)
22803 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22804 gcc_cv_ld_hidden=no
22806 esac
22807 if test 0"$ld_date" -lt 20020404; then
22808 if test -n "$ld_date"; then
22809 # If there was date string, but was earlier than 2002-04-04, fail
22810 gcc_cv_ld_hidden=no
22811 elif test -z "$ld_vers"; then
22812 # If there was no date string nor ld version number, something is wrong
22813 gcc_cv_ld_hidden=no
22814 else
22815 test -z "$ld_vers_patch" && ld_vers_patch=0
22816 if test "$ld_vers_major" -lt 2; then
22817 gcc_cv_ld_hidden=no
22818 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22819 gcc_cv_ld_hidden="no"
22820 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22821 gcc_cv_ld_hidden=no
22825 else
22826 case "${target}" in
22827 *-*-aix[789]*)
22828 gcc_cv_ld_hidden=yes
22830 *-*-darwin*)
22831 # Darwin ld has some visibility support.
22832 gcc_cv_ld_hidden=yes
22834 hppa64*-*-hpux* | ia64*-*-hpux*)
22835 gcc_cv_ld_hidden=yes
22837 *-*-solaris2.1[0-9]*)
22838 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22839 # .symbolic was only added in Solaris 9 12/02.
22840 gcc_cv_ld_hidden=yes
22843 gcc_cv_ld_hidden=no
22845 esac
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22850 $as_echo "$gcc_cv_ld_hidden" >&6; }
22851 libgcc_visibility=no
22854 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22855 libgcc_visibility=yes
22857 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22862 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22863 gcc_cv_ld_ro_rw_mix=unknown
22864 if test $in_tree_ld = yes ; then
22865 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 \
22866 && test $in_tree_ld_is_elf = yes; then
22867 gcc_cv_ld_ro_rw_mix=read-write
22869 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22870 echo '.section myfoosect, "a"' > conftest1.s
22871 echo '.section myfoosect, "aw"' > conftest2.s
22872 echo '.byte 1' >> conftest2.s
22873 echo '.section myfoosect, "a"' > conftest3.s
22874 echo '.byte 0' >> conftest3.s
22875 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22876 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22877 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22878 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22879 conftest2.o conftest3.o > /dev/null 2>&1; then
22880 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22881 | sed -e '/myfoosect/!d' -e N`
22882 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22883 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22884 gcc_cv_ld_ro_rw_mix=read-only
22885 else
22886 gcc_cv_ld_ro_rw_mix=read-write
22890 rm -f conftest.* conftest[123].*
22892 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22894 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22898 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22900 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22901 case "${target}" in
22902 *-*-solaris2*)
22904 # Solaris 2 ld -V output looks like this for a regular version:
22906 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22908 # but test versions add stuff at the end:
22910 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22912 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22913 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22914 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22915 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22916 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22917 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22920 esac
22923 # Check whether --enable-initfini-array was given.
22924 if test "${enable_initfini_array+set}" = set; then :
22925 enableval=$enable_initfini_array;
22926 else
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22929 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22930 if test "${gcc_cv_initfini_array+set}" = set; then :
22931 $as_echo_n "(cached) " >&6
22932 else
22933 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22934 case "${target}" in
22935 ia64-*)
22936 if test "$cross_compiling" = yes; then :
22937 gcc_cv_initfini_array=no
22938 else
22939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22940 /* end confdefs.h. */
22942 #ifndef __ELF__
22943 #error Not an ELF OS
22944 #endif
22945 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22946 if it can be used. */
22947 static int x = -1;
22948 int main (void) { return x; }
22949 int foo (void) { x = 0; }
22950 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22952 _ACEOF
22953 if ac_fn_cxx_try_run "$LINENO"; then :
22954 gcc_cv_initfini_array=yes
22955 else
22956 gcc_cv_initfini_array=no
22958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22959 conftest.$ac_objext conftest.beam conftest.$ac_ext
22963 gcc_cv_initfini_array=no
22964 if test $in_tree_ld = yes ; then
22965 if test "$gcc_cv_gld_major_version" -eq 2 \
22966 -a "$gcc_cv_gld_minor_version" -ge 22 \
22967 -o "$gcc_cv_gld_major_version" -gt 2 \
22968 && test $in_tree_ld_is_elf = yes; then
22969 gcc_cv_initfini_array=yes
22971 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22972 case $target:$gas in
22973 *:yes)
22974 sh_flags='"a"'
22975 sh_type='%progbits'
22977 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22978 sh_flags='"a"'
22979 sh_type='@progbits'
22981 sparc*-*-solaris2*:no)
22982 sh_flags='#alloc'
22983 sh_type='#progbits'
22984 sh_quote='"'
22986 esac
22987 case "$target:$gnu_ld" in
22988 *:yes)
22989 cat > conftest.s <<EOF
22990 .section .dtors,$sh_flags,$sh_type
22991 .balign 4
22992 .byte 'A', 'A', 'A', 'A'
22993 .section .ctors,$sh_flags,$sh_type
22994 .balign 4
22995 .byte 'B', 'B', 'B', 'B'
22996 .section .fini_array.65530,$sh_flags,$sh_type
22997 .balign 4
22998 .byte 'C', 'C', 'C', 'C'
22999 .section .init_array.65530,$sh_flags,$sh_type
23000 .balign 4
23001 .byte 'D', 'D', 'D', 'D'
23002 .section .dtors.64528,$sh_flags,$sh_type
23003 .balign 4
23004 .byte 'E', 'E', 'E', 'E'
23005 .section .ctors.64528,$sh_flags,$sh_type
23006 .balign 4
23007 .byte 'F', 'F', 'F', 'F'
23008 .section .fini_array.01005,$sh_flags,$sh_type
23009 .balign 4
23010 .byte 'G', 'G', 'G', 'G'
23011 .section .init_array.01005,$sh_flags,$sh_type
23012 .balign 4
23013 .byte 'H', 'H', 'H', 'H'
23014 .text
23015 .globl _start
23016 _start:
23018 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23019 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23020 && $gcc_cv_objdump -s -j .init_array conftest \
23021 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23022 && $gcc_cv_objdump -s -j .fini_array conftest \
23023 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23024 gcc_cv_initfini_array=yes
23027 *-*-solaris2*:no)
23028 # When Solaris ld added constructor priority support, it was
23029 # decided to only handle .init_array.N/.fini_array.N since
23030 # there was no need for backwards compatibility with
23031 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23032 # sections with correct execution order resp. to
23033 # .init_array/.fini_array, while gld merges them into
23034 # .init_array/.fini_array.
23035 cat > conftest.s <<EOF
23036 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23037 .align 4
23038 .byte 'C', 'C', 'C', 'C'
23039 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23040 .align 4
23041 .byte 'D', 'D', 'D', 'D'
23042 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23043 .align 4
23044 .byte 'G', 'G', 'G', 'G'
23045 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23046 .align 4
23047 .byte 'H', 'H', 'H', 'H'
23048 .text
23049 .globl _start
23050 _start:
23052 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23053 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23054 && $gcc_cv_objdump -s -j .init_array conftest \
23055 | grep HHHHDDDD > /dev/null 2>&1 \
23056 && $gcc_cv_objdump -s -j .fini_array conftest \
23057 | grep GGGGCCCC > /dev/null 2>&1; then
23058 gcc_cv_initfini_array=yes
23061 esac
23062 rm -f conftest conftest.*
23064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23065 /* end confdefs.h. */
23067 #ifndef __ELF__
23068 # error Not an ELF OS
23069 #endif
23070 #include <stdlib.h>
23071 #if defined __GLIBC_PREREQ
23072 # if __GLIBC_PREREQ (2, 4)
23073 # else
23074 # error GLIBC 2.4 required
23075 # endif
23076 #else
23077 # if defined __sun__ && defined __svr4__
23078 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23079 # else
23080 # error The C library not known to support .init_array/.fini_array
23081 # endif
23082 #endif
23084 _ACEOF
23085 if ac_fn_cxx_try_cpp "$LINENO"; then :
23087 else
23088 gcc_cv_initfini_array=no
23090 rm -f conftest.err conftest.$ac_ext;;
23091 esac
23092 else
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23094 $as_echo_n "checking cross compile... guessing... " >&6; }
23095 gcc_cv_initfini_array=no
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23099 $as_echo "$gcc_cv_initfini_array" >&6; }
23100 enable_initfini_array=$gcc_cv_initfini_array
23105 cat >>confdefs.h <<_ACEOF
23106 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23107 _ACEOF
23111 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23113 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23114 if test "${gcc_cv_as_leb128+set}" = set; then :
23115 $as_echo_n "(cached) " >&6
23116 else
23117 gcc_cv_as_leb128=no
23118 if test $in_tree_gas = yes; then
23119 if test $in_tree_gas_is_elf = yes \
23120 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23121 then gcc_cv_as_leb128=yes
23123 elif test x$gcc_cv_as != x; then
23124 $as_echo ' .data
23125 .uleb128 L2 - L1
23127 .uleb128 1280
23128 .sleb128 -1010
23129 L2:' > conftest.s
23130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23135 test $ac_status = 0; }; }
23136 then
23137 # GAS versions before 2.11 do not support uleb128,
23138 # despite appearing to.
23139 # ??? There exists an elf-specific test that will crash
23140 # the assembler. Perhaps it's better to figure out whether
23141 # arbitrary sections are supported and try the test.
23142 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23143 if echo "$as_ver" | grep GNU > /dev/null; then
23144 as_vers=`echo $as_ver | sed -n \
23145 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23146 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23147 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23148 if test $as_major -eq 2 && test $as_minor -lt 11
23149 then :
23150 else gcc_cv_as_leb128=yes
23153 else
23154 echo "configure: failed program was" >&5
23155 cat conftest.s >&5
23157 rm -f conftest.o conftest.s
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23161 $as_echo "$gcc_cv_as_leb128" >&6; }
23162 if test $gcc_cv_as_leb128 = yes; then
23164 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23167 if test $gcc_cv_as_leb128 != yes; then
23169 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23173 # Check if we have assembler support for unwind directives.
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23175 $as_echo_n "checking assembler for cfi directives... " >&6; }
23176 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23177 $as_echo_n "(cached) " >&6
23178 else
23179 gcc_cv_as_cfi_directive=no
23180 if test x$gcc_cv_as != x; then
23181 $as_echo ' .text
23182 .cfi_startproc
23183 .cfi_offset 0, 0
23184 .cfi_same_value 1
23185 .cfi_def_cfa 1, 2
23186 .cfi_escape 1, 2, 3, 4, 5
23187 .cfi_endproc' > conftest.s
23188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23193 test $ac_status = 0; }; }
23194 then
23195 case "$target" in
23196 *-*-solaris*)
23197 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23198 # read-only and read-write sections, we need to make sure that the
23199 # assembler used emits read-write .eh_frame sections.
23200 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23201 if test "x$gcc_cv_objdump" != x; then
23202 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23203 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23204 gcc_cv_as_cfi_directive=no
23205 else
23206 case "$target" in
23207 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23208 # On Solaris/x86, make sure that GCC and assembler agree on using
23209 # read-only .eh_frame sections for 64-bit.
23210 if test x$gas = xyes; then
23211 as_ix86_64_opt="--64"
23212 else
23213 as_ix86_64_opt="-xarch=amd64"
23215 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23216 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23217 sed -e /.eh_frame/!d -e N | \
23218 grep READONLY > /dev/null; then
23219 gcc_cv_as_cfi_directive=yes
23220 else
23221 gcc_cv_as_cfi_directive=no
23225 gcc_cv_as_cfi_directive=yes
23227 esac
23229 else
23230 # no objdump, err on the side of caution
23231 gcc_cv_as_cfi_directive=no
23233 else
23234 gcc_cv_as_cfi_directive=yes
23237 *-*-*)
23238 gcc_cv_as_cfi_directive=yes
23240 esac
23241 else
23242 echo "configure: failed program was" >&5
23243 cat conftest.s >&5
23245 rm -f conftest.o conftest.s
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23249 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23252 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23254 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23255 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23256 $as_echo_n "(cached) " >&6
23257 else
23258 gcc_cv_as_cfi_advance_working=no
23259 if test x$gcc_cv_as != x; then
23260 $as_echo ' .text
23261 .cfi_startproc
23262 .cfi_adjust_cfa_offset 64
23263 .skip 75040, 0
23264 .cfi_adjust_cfa_offset 128
23265 .cfi_endproc' > conftest.s
23266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23272 then
23274 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23275 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23276 gcc_cv_as_cfi_advance_working=yes
23279 else
23280 echo "configure: failed program was" >&5
23281 cat conftest.s >&5
23283 rm -f conftest.o conftest.s
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23287 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23290 else
23291 # no objdump, err on the side of caution
23292 gcc_cv_as_cfi_advance_working=no
23296 cat >>confdefs.h <<_ACEOF
23297 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23298 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23299 _ACEOF
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23304 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23305 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23306 $as_echo_n "(cached) " >&6
23307 else
23308 gcc_cv_as_cfi_personality_directive=no
23309 if test x$gcc_cv_as != x; then
23310 $as_echo ' .text
23311 .cfi_startproc
23312 .cfi_personality 0, symbol
23313 .cfi_endproc' > conftest.s
23314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23316 (eval $ac_try) 2>&5
23317 ac_status=$?
23318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23319 test $ac_status = 0; }; }
23320 then
23321 gcc_cv_as_cfi_personality_directive=yes
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_personality_directive" >&5
23330 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23334 cat >>confdefs.h <<_ACEOF
23335 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23336 then echo 1; else echo 0; fi`
23337 _ACEOF
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23341 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23342 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23343 $as_echo_n "(cached) " >&6
23344 else
23345 gcc_cv_as_cfi_sections_directive=no
23346 if test x$gcc_cv_as != x; then
23347 $as_echo ' .text
23348 .cfi_sections .debug_frame, .eh_frame
23349 .cfi_startproc
23350 .cfi_endproc' > conftest.s
23351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23356 test $ac_status = 0; }; }
23357 then
23358 case $target_os in
23359 win32 | pe | cygwin* | mingw32*)
23360 # Need to check that we generated the correct relocation for the
23361 # .debug_frame section. This was fixed for binutils 2.21.
23362 gcc_cv_as_cfi_sections_directive=no
23363 if test "x$gcc_cv_objdump" != x; then
23364 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23365 grep secrel > /dev/null; then
23366 gcc_cv_as_cfi_sections_directive=yes
23371 gcc_cv_as_cfi_sections_directive=yes
23373 esac
23374 else
23375 echo "configure: failed program was" >&5
23376 cat conftest.s >&5
23378 rm -f conftest.o conftest.s
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23382 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23387 cat >>confdefs.h <<_ACEOF
23388 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23389 then echo 1; else echo 0; fi`
23390 _ACEOF
23393 # GAS versions up to and including 2.11.0 may mis-optimize
23394 # .eh_frame data.
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23396 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23397 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23398 $as_echo_n "(cached) " >&6
23399 else
23400 gcc_cv_as_eh_frame=no
23401 if test $in_tree_gas = yes; then
23402 if test $in_tree_gas_is_elf = yes \
23403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23404 then gcc_cv_as_eh_frame=yes
23406 elif test x$gcc_cv_as != x; then
23407 $as_echo ' .text
23408 .LFB1:
23409 .4byte 0
23410 .L1:
23411 .4byte 0
23412 .LFE1:
23413 .section .eh_frame,"aw",@progbits
23414 __FRAME_BEGIN__:
23415 .4byte .LECIE1-.LSCIE1
23416 .LSCIE1:
23417 .4byte 0x0
23418 .byte 0x1
23419 .ascii "z\0"
23420 .byte 0x1
23421 .byte 0x78
23422 .byte 0x1a
23423 .byte 0x0
23424 .byte 0x4
23425 .4byte 1
23426 .p2align 1
23427 .LECIE1:
23428 .LSFDE1:
23429 .4byte .LEFDE1-.LASFDE1
23430 .LASFDE1:
23431 .4byte .LASFDE1-__FRAME_BEGIN__
23432 .4byte .LFB1
23433 .4byte .LFE1-.LFB1
23434 .byte 0x4
23435 .4byte .LFE1-.LFB1
23436 .byte 0x4
23437 .4byte .L1-.LFB1
23438 .LEFDE1:' > conftest.s
23439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23444 test $ac_status = 0; }; }
23445 then
23446 cat > conftest.lit <<EOF
23447 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23448 0010 01000000 12000000 18000000 00000000 ................
23449 0020 08000000 04080000 0044 .........D
23451 cat > conftest.big <<EOF
23452 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23453 0010 00000001 00000012 00000018 00000000 ................
23454 0020 00000008 04000000 0844 .........D
23456 # If the assembler didn't choke, and we can objdump,
23457 # and we got the correct data, then succeed.
23458 # The text in the here-document typically retains its unix-style line
23459 # endings, while the output of objdump will use host line endings.
23460 # Therefore, use diff -b for the comparisons.
23461 if test x$gcc_cv_objdump != x \
23462 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23463 | tail -3 > conftest.got \
23464 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23465 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23466 then
23467 gcc_cv_as_eh_frame=yes
23468 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23473 test $ac_status = 0; }; }; then
23474 gcc_cv_as_eh_frame=buggy
23475 else
23476 # Uh oh, what do we do now?
23477 gcc_cv_as_eh_frame=no
23479 else
23480 echo "configure: failed program was" >&5
23481 cat conftest.s >&5
23483 rm -f conftest.o conftest.s
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23487 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23491 if test $gcc_cv_as_eh_frame = buggy; then
23493 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23498 $as_echo_n "checking assembler for section merging support... " >&6; }
23499 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23501 else
23502 gcc_cv_as_shf_merge=no
23503 if test $in_tree_gas = yes; then
23504 if test $in_tree_gas_is_elf = yes \
23505 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23506 then gcc_cv_as_shf_merge=yes
23508 elif test x$gcc_cv_as != x; then
23509 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23515 test $ac_status = 0; }; }
23516 then
23517 gcc_cv_as_shf_merge=yes
23518 else
23519 echo "configure: failed program was" >&5
23520 cat conftest.s >&5
23522 rm -f conftest.o conftest.s
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23526 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23529 if test $gcc_cv_as_shf_merge = no; then
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23531 $as_echo_n "checking assembler for section merging support... " >&6; }
23532 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23533 $as_echo_n "(cached) " >&6
23534 else
23535 gcc_cv_as_shf_merge=no
23536 if test $in_tree_gas = yes; then
23537 if test $in_tree_gas_is_elf = yes \
23538 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23539 then gcc_cv_as_shf_merge=yes
23541 elif test x$gcc_cv_as != x; then
23542 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23548 test $ac_status = 0; }; }
23549 then
23550 gcc_cv_as_shf_merge=yes
23551 else
23552 echo "configure: failed program was" >&5
23553 cat conftest.s >&5
23555 rm -f conftest.o conftest.s
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23559 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23564 cat >>confdefs.h <<_ACEOF
23565 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23566 _ACEOF
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23570 $as_echo_n "checking assembler for stabs directive... " >&6; }
23571 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23572 $as_echo_n "(cached) " >&6
23573 else
23574 gcc_cv_as_stabs_directive=no
23575 if test x$gcc_cv_as != x; then
23576 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23579 (eval $ac_try) 2>&5
23580 ac_status=$?
23581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23582 test $ac_status = 0; }; }
23583 then
23584 gcc_cv_as_stabs_directive=yes
23585 else
23586 echo "configure: failed program was" >&5
23587 cat conftest.s >&5
23589 rm -f conftest.o conftest.s
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23593 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23594 if test $gcc_cv_as_stabs_directive = yes; then
23596 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23602 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23603 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23604 $as_echo_n "(cached) " >&6
23605 else
23606 gcc_cv_as_comdat_group=no
23607 if test $in_tree_gas = yes; then
23608 if test $in_tree_gas_is_elf = yes \
23609 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23610 then gcc_cv_as_comdat_group=yes
23612 elif test x$gcc_cv_as != x; then
23613 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23620 then
23621 gcc_cv_as_comdat_group=yes
23622 else
23623 echo "configure: failed program was" >&5
23624 cat conftest.s >&5
23626 rm -f conftest.o conftest.s
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23630 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23633 if test $gcc_cv_as_comdat_group = yes; then
23634 gcc_cv_as_comdat_group_percent=no
23635 gcc_cv_as_comdat_group_group=no
23636 else
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23638 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23639 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23640 $as_echo_n "(cached) " >&6
23641 else
23642 gcc_cv_as_comdat_group_percent=no
23643 if test $in_tree_gas = yes; then
23644 if test $in_tree_gas_is_elf = yes \
23645 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23646 then gcc_cv_as_comdat_group_percent=yes
23648 elif test x$gcc_cv_as != x; then
23649 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23652 (eval $ac_try) 2>&5
23653 ac_status=$?
23654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23655 test $ac_status = 0; }; }
23656 then
23657 gcc_cv_as_comdat_group_percent=yes
23658 else
23659 echo "configure: failed program was" >&5
23660 cat conftest.s >&5
23662 rm -f conftest.o conftest.s
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23666 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23669 if test $gcc_cv_as_comdat_group_percent = yes; then
23670 gcc_cv_as_comdat_group_group=no
23671 else
23672 case "${target}" in
23673 # Sun as uses a completely different syntax.
23674 *-*-solaris2*)
23675 case "${target}" in
23676 sparc*-*-solaris2*)
23677 conftest_s='
23678 .group foo,".text%foo",#comdat
23679 .section ".text%foo", #alloc,#execinstr,#progbits
23680 .globl foo
23681 foo:
23684 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23685 conftest_s='
23686 .group foo,.text%foo,#comdat
23687 .section .text%foo, "ax", @progbits
23688 .globl foo
23689 foo:
23692 esac
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23694 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23695 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23696 $as_echo_n "(cached) " >&6
23697 else
23698 gcc_cv_as_comdat_group_group=no
23699 if test x$gcc_cv_as != x; then
23700 $as_echo "$conftest_s" > conftest.s
23701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23703 (eval $ac_try) 2>&5
23704 ac_status=$?
23705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23706 test $ac_status = 0; }; }
23707 then
23708 gcc_cv_as_comdat_group_group=yes
23709 else
23710 echo "configure: failed program was" >&5
23711 cat conftest.s >&5
23713 rm -f conftest.o conftest.s
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23717 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23721 esac
23722 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23723 gcc_cv_as_comdat_group_group=no
23727 if test x"$ld_is_gold" = xyes; then
23728 comdat_group=yes
23729 elif test $in_tree_ld = yes ; then
23730 comdat_group=no
23731 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 \
23732 && test $in_tree_ld_is_elf = yes; then
23733 comdat_group=yes
23735 elif echo "$ld_ver" | grep GNU > /dev/null; then
23736 comdat_group=yes
23737 if test 0"$ld_date" -lt 20050308; then
23738 if test -n "$ld_date"; then
23739 # If there was date string, but was earlier than 2005-03-08, fail
23740 comdat_group=no
23741 elif test "$ld_vers_major" -lt 2; then
23742 comdat_group=no
23743 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23744 comdat_group=no
23747 else
23748 case "${target}" in
23749 *-*-solaris2.1[1-9]*)
23750 comdat_group=no
23751 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23752 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23753 # version 1.688.
23755 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23756 # least ld version 1.2267.
23757 if test "$ld_vers_major" -gt 1; then
23758 comdat_group=yes
23759 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23760 comdat_group=yes
23761 elif test "$ld_vers_minor" -ge 2267; then
23762 comdat_group=yes
23766 # Assume linkers other than GNU ld don't support COMDAT group.
23767 comdat_group=no
23769 esac
23771 # Allow overriding the automatic COMDAT group tests above.
23772 # Check whether --enable-comdat was given.
23773 if test "${enable_comdat+set}" = set; then :
23774 enableval=$enable_comdat; comdat_group="$enable_comdat"
23777 if test $comdat_group = no; then
23778 gcc_cv_as_comdat_group=no
23779 gcc_cv_as_comdat_group_percent=no
23780 gcc_cv_as_comdat_group_group=no
23783 cat >>confdefs.h <<_ACEOF
23784 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23785 || test $gcc_cv_as_comdat_group_percent = yes \
23786 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23787 _ACEOF
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23791 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23792 if test "${gcc_cv_as_discriminator+set}" = set; then :
23793 $as_echo_n "(cached) " >&6
23794 else
23795 gcc_cv_as_discriminator=no
23796 if test $in_tree_gas = yes; then
23797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23798 then gcc_cv_as_discriminator=yes
23800 elif test x$gcc_cv_as != x; then
23801 $as_echo ' .text
23802 .file 1 "conf.c"
23803 .loc 1 1 0 discriminator 1' > conftest.s
23804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23806 (eval $ac_try) 2>&5
23807 ac_status=$?
23808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23809 test $ac_status = 0; }; }
23810 then
23811 gcc_cv_as_discriminator=yes
23812 else
23813 echo "configure: failed program was" >&5
23814 cat conftest.s >&5
23816 rm -f conftest.o conftest.s
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23820 $as_echo "$gcc_cv_as_discriminator" >&6; }
23821 if test $gcc_cv_as_discriminator = yes; then
23823 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23828 # Thread-local storage - the check is heavily parameterized.
23829 conftest_s=
23830 tls_first_major=
23831 tls_first_minor=
23832 tls_as_opt=
23833 case "$target" in
23834 alpha*-*-*)
23835 conftest_s='
23836 .section ".tdata","awT",@progbits
23837 foo: .long 25
23838 .text
23839 ldq $27,__tls_get_addr($29) !literal!1
23840 lda $16,foo($29) !tlsgd!1
23841 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23842 ldq $27,__tls_get_addr($29) !literal!2
23843 lda $16,foo($29) !tlsldm!2
23844 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23845 ldq $1,foo($29) !gotdtprel
23846 ldah $2,foo($29) !dtprelhi
23847 lda $3,foo($2) !dtprello
23848 lda $4,foo($29) !dtprel
23849 ldq $1,foo($29) !gottprel
23850 ldah $2,foo($29) !tprelhi
23851 lda $3,foo($2) !tprello
23852 lda $4,foo($29) !tprel'
23853 tls_first_major=2
23854 tls_first_minor=13
23855 tls_as_opt=--fatal-warnings
23857 arc*-*-*)
23858 conftest_s='
23859 add_s r0,r0, @foo@tpoff'
23860 tls_first_major=2
23861 tls_first_minor=23
23863 cris-*-*|crisv32-*-*)
23864 conftest_s='
23865 .section ".tdata","awT",@progbits
23866 x: .long 25
23867 .text
23868 move.d x:IE,$r10
23869 nop'
23870 tls_first_major=2
23871 tls_first_minor=20
23872 tls_as_opt=--fatal-warnings
23874 frv*-*-*)
23875 conftest_s='
23876 .section ".tdata","awT",@progbits
23877 x: .long 25
23878 .text
23879 call #gettlsoff(x)'
23880 tls_first_major=2
23881 tls_first_minor=14
23883 hppa*-*-linux*)
23884 conftest_s='
23885 t1: .reg %r20
23886 t2: .reg %r21
23887 gp: .reg %r19
23888 .section ".tdata","awT",@progbits
23889 foo: .long 25
23890 .text
23891 .align 4
23892 addil LT%foo-$tls_gdidx$,gp
23893 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23894 b __tls_get_addr
23896 addil LT%foo-$tls_ldidx$,gp
23897 b __tls_get_addr
23898 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23899 addil LR%foo-$tls_dtpoff$,%ret0
23900 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23901 mfctl %cr27,%t1
23902 addil LT%foo-$tls_ieoff$,gp
23903 ldw RT%foo-$tls_ieoff$(%r1),%t2
23904 add %t1,%t2,%t3
23905 mfctl %cr27,%t1
23906 addil LR%foo-$tls_leoff$,%t1
23907 ldo RR%foo-$tls_leoff$(%r1),%t2'
23908 tls_first_major=2
23909 tls_first_minor=15
23910 tls_as_opt=--fatal-warnings
23912 arm*-*-*)
23913 conftest_s='
23914 .section ".tdata","awT",%progbits
23915 foo: .long 25
23916 .text
23917 .word foo(gottpoff)
23918 .word foo(tpoff)
23919 .word foo(tlsgd)
23920 .word foo(tlsldm)
23921 .word foo(tlsldo)'
23922 tls_first_major=2
23923 tls_first_minor=17
23925 i[34567]86-*-* | x86_64-*-*)
23926 case "$target" in
23927 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23928 on_solaris=yes
23931 on_solaris=no
23933 esac
23934 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23935 conftest_s='
23936 .section .tdata,"awt",@progbits'
23937 tls_first_major=0
23938 tls_first_minor=0
23939 tls_section_flag=t
23941 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23943 else
23944 conftest_s='
23945 .section ".tdata","awT",@progbits'
23946 tls_first_major=2
23947 tls_first_minor=14
23948 tls_section_flag=T
23949 tls_as_opt="--fatal-warnings"
23951 case "$target" in
23952 i[34567]86-*-*)
23953 conftest_s="$conftest_s
23954 foo: .long 25
23955 .text
23956 movl %gs:0, %eax
23957 leal foo@tlsgd(,%ebx,1), %eax
23958 leal foo@tlsldm(%ebx), %eax
23959 leal foo@dtpoff(%eax), %edx
23960 movl foo@gottpoff(%ebx), %eax
23961 subl foo@gottpoff(%ebx), %eax
23962 addl foo@gotntpoff(%ebx), %eax
23963 movl foo@indntpoff, %eax
23964 movl \$foo@tpoff, %eax
23965 subl \$foo@tpoff, %eax
23966 leal foo@ntpoff(%ecx), %eax"
23968 x86_64-*-*)
23969 if test x$on_solaris = xyes; then
23970 case $gas_flag in
23971 yes) tls_as_opt="$tls_as_opt --64" ;;
23972 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23973 esac
23975 conftest_s="$conftest_s
23976 foo: .long 25
23977 .text
23978 movq %fs:0, %rax
23979 leaq foo@tlsgd(%rip), %rdi
23980 leaq foo@tlsld(%rip), %rdi
23981 leaq foo@dtpoff(%rax), %rdx
23982 movq foo@gottpoff(%rip), %rax
23983 movq \$foo@tpoff, %rax"
23985 esac
23987 ia64-*-*)
23988 conftest_s='
23989 .section ".tdata","awT",@progbits
23990 foo: data8 25
23991 .text
23992 addl r16 = @ltoff(@dtpmod(foo#)), gp
23993 addl r17 = @ltoff(@dtprel(foo#)), gp
23994 addl r18 = @ltoff(@tprel(foo#)), gp
23995 addl r19 = @dtprel(foo#), gp
23996 adds r21 = @dtprel(foo#), r13
23997 movl r23 = @dtprel(foo#)
23998 addl r20 = @tprel(foo#), gp
23999 adds r22 = @tprel(foo#), r13
24000 movl r24 = @tprel(foo#)'
24001 tls_first_major=2
24002 tls_first_minor=13
24003 tls_as_opt=--fatal-warnings
24005 microblaze*-*-*)
24006 conftest_s='
24007 .section .tdata,"awT",@progbits
24009 .word 2
24010 .text
24011 addik r5,r20,x@TLSGD
24012 addik r5,r20,x@TLSLDM'
24013 tls_first_major=2
24014 tls_first_minor=20
24015 tls_as_opt='--fatal-warnings'
24017 mips*-*-*)
24018 conftest_s='
24019 .section .tdata,"awT",@progbits
24021 .word 2
24022 .text
24023 addiu $4, $28, %tlsgd(x)
24024 addiu $4, $28, %tlsldm(x)
24025 lui $4, %dtprel_hi(x)
24026 addiu $4, $4, %dtprel_lo(x)
24027 lw $4, %gottprel(x)($28)
24028 lui $4, %tprel_hi(x)
24029 addiu $4, $4, %tprel_lo(x)'
24030 tls_first_major=2
24031 tls_first_minor=16
24032 tls_as_opt='-32 --fatal-warnings'
24034 m68k-*-*)
24035 conftest_s='
24036 .section .tdata,"awT",@progbits
24038 .word 2
24039 .text
24040 foo:
24041 move.l x@TLSGD(%a5),%a0
24042 move.l x@TLSLDM(%a5),%a0
24043 move.l x@TLSLDO(%a5),%a0
24044 move.l x@TLSIE(%a5),%a0
24045 move.l x@TLSLE(%a5),%a0'
24046 tls_first_major=2
24047 tls_first_minor=19
24048 tls_as_opt='--fatal-warnings'
24050 nios2-*-*)
24051 conftest_s='
24052 .section ".tdata","awT",@progbits'
24053 tls_first_major=2
24054 tls_first_minor=23
24055 tls_as_opt="--fatal-warnings"
24057 aarch64*-*-*)
24058 conftest_s='
24059 .section ".tdata","awT",%progbits
24060 foo: .long 25
24061 .text
24062 adrp x0, :tlsgd:x
24063 add x0, x0, #:tlsgd_lo12:x
24064 bl __tls_get_addr
24065 nop'
24066 tls_first_major=2
24067 tls_first_minor=20
24068 tls_as_opt='--fatal-warnings'
24070 powerpc-ibm-aix*)
24071 conftest_s='
24072 .extern __get_tpointer
24073 .toc
24074 LC..1:
24075 .tc a[TC],a[TL]@le
24076 .csect .text[PR]
24077 .tlstest:
24078 lwz 9,LC..1(2)
24079 bla __get_tpointer
24080 lwzx 3,9,3
24081 .globl a
24082 .csect a[TL],4
24084 .space 4'
24085 tls_first_major=0
24086 tls_first_minor=0
24088 powerpc64*-*-*)
24089 conftest_s='
24090 .section ".tdata","awT",@progbits
24091 .align 3
24092 ld0: .space 8
24093 ld1: .space 8
24094 x1: .space 8
24095 x2: .space 8
24096 x3: .space 8
24097 .text
24098 addi 3,2,ld0@got@tlsgd
24099 bl .__tls_get_addr
24101 addi 3,2,ld1@toc
24102 bl .__tls_get_addr
24104 addi 3,2,x1@got@tlsld
24105 bl .__tls_get_addr
24107 addi 9,3,x1@dtprel
24108 bl .__tls_get_addr
24110 addis 9,3,x2@dtprel@ha
24111 addi 9,9,x2@dtprel@l
24112 bl .__tls_get_addr
24114 ld 9,x3@got@dtprel(2)
24115 add 9,9,3
24116 bl .__tls_get_addr
24117 nop'
24118 tls_first_major=2
24119 tls_first_minor=14
24120 tls_as_opt="-a64 --fatal-warnings"
24122 powerpc*-*-*)
24123 conftest_s='
24124 .section ".tdata","awT",@progbits
24125 .align 2
24126 ld0: .space 4
24127 ld1: .space 4
24128 x1: .space 4
24129 x2: .space 4
24130 x3: .space 4
24131 .text
24132 addi 3,31,ld0@got@tlsgd
24133 bl __tls_get_addr
24134 addi 3,31,x1@got@tlsld
24135 bl __tls_get_addr
24136 addi 9,3,x1@dtprel
24137 addis 9,3,x2@dtprel@ha
24138 addi 9,9,x2@dtprel@l
24139 lwz 9,x3@got@tprel(31)
24140 add 9,9,x@tls
24141 addi 9,2,x1@tprel
24142 addis 9,2,x2@tprel@ha
24143 addi 9,9,x2@tprel@l'
24144 tls_first_major=2
24145 tls_first_minor=14
24146 tls_as_opt="-a32 --fatal-warnings"
24148 riscv*-*-*)
24149 conftest_s='
24150 .section .tdata,"awT",@progbits
24151 x: .word 2
24152 .text
24153 la.tls.gd a0,x
24154 call __tls_get_addr'
24155 tls_first_major=2
24156 tls_first_minor=21
24157 tls_as_opt='--fatal-warnings'
24159 s390-*-*)
24160 conftest_s='
24161 .section ".tdata","awT",@progbits
24162 foo: .long 25
24163 .text
24164 .long foo@TLSGD
24165 .long foo@TLSLDM
24166 .long foo@DTPOFF
24167 .long foo@NTPOFF
24168 .long foo@GOTNTPOFF
24169 .long foo@INDNTPOFF
24170 l %r1,foo@GOTNTPOFF(%r12)
24171 l %r1,0(%r1):tls_load:foo
24172 bas %r14,0(%r1,%r13):tls_gdcall:foo
24173 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24174 tls_first_major=2
24175 tls_first_minor=14
24176 tls_as_opt="-m31 --fatal-warnings"
24178 s390x-*-*)
24179 conftest_s='
24180 .section ".tdata","awT",@progbits
24181 foo: .long 25
24182 .text
24183 .quad foo@TLSGD
24184 .quad foo@TLSLDM
24185 .quad foo@DTPOFF
24186 .quad foo@NTPOFF
24187 .quad foo@GOTNTPOFF
24188 lg %r1,foo@GOTNTPOFF(%r12)
24189 larl %r1,foo@INDNTPOFF
24190 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24191 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24192 tls_first_major=2
24193 tls_first_minor=14
24194 tls_as_opt="-m64 -Aesame --fatal-warnings"
24196 sh-*-* | sh[123456789lbe]*-*-*)
24197 conftest_s='
24198 .section ".tdata","awT",@progbits
24199 foo: .long 25
24200 .text
24201 .long foo@TLSGD
24202 .long foo@TLSLDM
24203 .long foo@DTPOFF
24204 .long foo@GOTTPOFF
24205 .long foo@TPOFF'
24206 tls_first_major=2
24207 tls_first_minor=13
24208 tls_as_opt=--fatal-warnings
24210 sparc*-*-*)
24211 case "$target" in
24212 sparc*-sun-solaris2.*)
24213 on_solaris=yes
24216 on_solaris=no
24218 esac
24219 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24220 conftest_s='
24221 .section ".tdata",#alloc,#write,#tls'
24222 tls_first_major=0
24223 tls_first_minor=0
24224 else
24225 conftest_s='
24226 .section ".tdata","awT",@progbits'
24227 tls_first_major=2
24228 tls_first_minor=14
24229 tls_as_opt="-32 --fatal-warnings"
24231 conftest_s="$conftest_s
24232 foo: .long 25
24233 .text
24234 sethi %tgd_hi22(foo), %o0
24235 add %o0, %tgd_lo10(foo), %o1
24236 add %l7, %o1, %o0, %tgd_add(foo)
24237 call __tls_get_addr, %tgd_call(foo)
24238 sethi %tldm_hi22(foo), %l1
24239 add %l1, %tldm_lo10(foo), %l2
24240 add %l7, %l2, %o0, %tldm_add(foo)
24241 call __tls_get_addr, %tldm_call(foo)
24242 sethi %tldo_hix22(foo), %l3
24243 xor %l3, %tldo_lox10(foo), %l4
24244 add %o0, %l4, %l5, %tldo_add(foo)
24245 sethi %tie_hi22(foo), %o3
24246 add %o3, %tie_lo10(foo), %o3
24247 ld [%l7 + %o3], %o2, %tie_ld(foo)
24248 add %g7, %o2, %o4, %tie_add(foo)
24249 sethi %tle_hix22(foo), %l1
24250 xor %l1, %tle_lox10(foo), %o5
24251 ld [%g7 + %o5], %o1"
24253 tilepro*-*-*)
24254 conftest_s='
24255 .section ".tdata","awT",@progbits
24256 foo: .long 25
24257 .text
24258 addli r0, zero, tls_gd(foo)
24259 auli r0, zero, tls_gd_ha16(foo)
24260 addli r0, r0, tls_gd_lo16(foo)
24261 jal __tls_get_addr
24262 addli r0, zero, tls_ie(foo)
24263 auli r0, r0, tls_ie_ha16(foo)
24264 addli r0, r0, tls_ie_lo16(foo)'
24265 tls_first_major=2
24266 tls_first_minor=22
24267 tls_as_opt="--fatal-warnings"
24269 tilegx*-*-*)
24270 conftest_s='
24271 .section ".tdata","awT",@progbits
24272 foo: .long 25
24273 .text
24274 shl16insli r0, zero, hw0_last_tls_gd(foo)
24275 shl16insli r0, zero, hw1_last_tls_gd(foo)
24276 shl16insli r0, r0, hw0_tls_gd(foo)
24277 jal __tls_get_addr
24278 shl16insli r0, zero, hw1_last_tls_ie(foo)
24279 shl16insli r0, r0, hw0_tls_ie(foo)'
24280 tls_first_major=2
24281 tls_first_minor=22
24282 tls_as_opt="--fatal-warnings"
24284 xtensa*-*-*)
24285 conftest_s='
24286 .section ".tdata","awT",@progbits
24287 foo: .long 25
24288 .text
24289 movi a8, foo@TLSFUNC
24290 movi a10, foo@TLSARG
24291 callx8.tls a8, foo@TLSCALL'
24292 tls_first_major=2
24293 tls_first_minor=19
24295 esac
24296 set_have_as_tls=no
24297 if test "x$enable_tls" = xno ; then
24298 : # TLS explicitly disabled.
24299 elif test "x$enable_tls" = xyes ; then
24300 set_have_as_tls=yes # TLS explicitly enabled.
24301 elif test -z "$tls_first_major"; then
24302 : # If we don't have a check, assume no support.
24303 else
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24305 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24306 if test "${gcc_cv_as_tls+set}" = set; then :
24307 $as_echo_n "(cached) " >&6
24308 else
24309 gcc_cv_as_tls=no
24310 if test $in_tree_gas = yes; then
24311 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24312 then gcc_cv_as_tls=yes
24314 elif test x$gcc_cv_as != x; then
24315 $as_echo "$conftest_s" > conftest.s
24316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24318 (eval $ac_try) 2>&5
24319 ac_status=$?
24320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24321 test $ac_status = 0; }; }
24322 then
24323 gcc_cv_as_tls=yes
24324 else
24325 echo "configure: failed program was" >&5
24326 cat conftest.s >&5
24328 rm -f conftest.o conftest.s
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24332 $as_echo "$gcc_cv_as_tls" >&6; }
24333 if test $gcc_cv_as_tls = yes; then
24334 set_have_as_tls=yes
24338 if test $set_have_as_tls = yes ; then
24340 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24344 # Target-specific assembler checks.
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24347 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24348 gcc_cv_ld_static_dynamic=no
24349 gcc_cv_ld_static_option='-Bstatic'
24350 gcc_cv_ld_dynamic_option='-Bdynamic'
24351 if test $in_tree_ld = yes ; then
24352 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
24353 gcc_cv_ld_static_dynamic=yes
24355 elif test x$gcc_cv_ld != x; then
24356 # Check if linker supports -Bstatic/-Bdynamic option
24357 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24358 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24359 gcc_cv_ld_static_dynamic=yes
24360 else
24361 case "$target" in
24362 # AIX ld uses -b flags
24363 *-*-aix4.[23]* | *-*-aix[5-9]*)
24364 gcc_cv_ld_static_dynamic=yes
24365 gcc_cv_ld_static_option="-bstatic"
24366 gcc_cv_ld_dynamic_option="-bdynamic"
24368 # HP-UX ld uses -a flags to select between shared and archive.
24369 *-*-hpux*)
24370 if test x"$gnu_ld" = xno; then
24371 gcc_cv_ld_static_dynamic=yes
24372 gcc_cv_ld_static_option="-aarchive_shared"
24373 gcc_cv_ld_dynamic_option="-adefault"
24376 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24377 *-*-solaris2*)
24378 gcc_cv_ld_static_dynamic=yes
24380 esac
24383 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24385 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24388 cat >>confdefs.h <<_ACEOF
24389 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24390 _ACEOF
24393 cat >>confdefs.h <<_ACEOF
24394 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24395 _ACEOF
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24399 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24401 if test x"$demangler_in_ld" = xyes; then
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24403 $as_echo_n "checking linker --demangle support... " >&6; }
24404 gcc_cv_ld_demangle=no
24405 if test $in_tree_ld = yes; then
24406 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 \
24407 gcc_cv_ld_demangle=yes
24409 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24410 # Check if the GNU linker supports --demangle option
24411 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24412 gcc_cv_ld_demangle=yes
24415 if test x"$gcc_cv_ld_demangle" = xyes; then
24417 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24421 $as_echo "$gcc_cv_ld_demangle" >&6; }
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24425 $as_echo_n "checking linker plugin support... " >&6; }
24426 gcc_cv_lto_plugin=0
24427 if test -f liblto_plugin.la; then
24428 save_ld_ver="$ld_ver"
24429 save_ld_vers_major="$ld_vers_major"
24430 save_ld_vers_minor="$ld_vers_minor"
24431 save_ld_is_gold="$ld_is_gold"
24433 ld_is_gold=no
24435 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24436 ld_ver="GNU ld"
24437 # FIXME: ld_is_gold?
24438 ld_vers_major="$gcc_cv_gld_major_version"
24439 ld_vers_minor="$gcc_cv_gld_minor_version"
24440 else
24441 # Determine plugin linker version.
24442 # FIXME: Partial duplicate from above, generalize.
24443 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24444 if echo "$ld_ver" | grep GNU > /dev/null; then
24445 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24446 ld_is_gold=yes
24447 ld_vers=`echo $ld_ver | sed -n \
24448 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24449 else
24450 ld_vers=`echo $ld_ver | sed -n \
24451 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24453 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24454 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24458 # Determine plugin support.
24459 if echo "$ld_ver" | grep GNU > /dev/null; then
24460 # Require GNU ld or gold 2.21+ for plugin support by default.
24461 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24462 gcc_cv_lto_plugin=2
24463 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24464 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24465 gcc_cv_lto_plugin=1
24469 ld_ver="$save_ld_ver"
24470 ld_vers_major="$save_ld_vers_major"
24471 ld_vers_minor="$save_ld_vers_minor"
24472 ld_is_gold="$save_ld_is_gold"
24475 cat >>confdefs.h <<_ACEOF
24476 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24477 _ACEOF
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24480 $as_echo "$gcc_cv_lto_plugin" >&6; }
24482 # Target OS-specific assembler checks.
24484 case "$target_os" in
24485 darwin*)
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24487 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24488 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491 gcc_cv_as_mmacosx_version_min=no
24492 if test x$gcc_cv_as != x; then
24493 $as_echo '.text' > conftest.s
24494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; }
24500 then
24501 gcc_cv_as_mmacosx_version_min=yes
24502 else
24503 echo "configure: failed program was" >&5
24504 cat conftest.s >&5
24506 rm -f conftest.o conftest.s
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24510 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24511 if test $gcc_cv_as_mmacosx_version_min = yes; then
24513 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24518 esac
24520 # Target CPU-specific assembler checks.
24522 case "$target" in
24523 aarch64*-*-*)
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24525 $as_echo_n "checking assembler for -mabi option... " >&6; }
24526 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24527 $as_echo_n "(cached) " >&6
24528 else
24529 gcc_cv_as_aarch64_mabi=no
24530 if test x$gcc_cv_as != x; then
24531 $as_echo '.text' > conftest.s
24532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }
24538 then
24539 gcc_cv_as_aarch64_mabi=yes
24540 else
24541 echo "configure: failed program was" >&5
24542 cat conftest.s >&5
24544 rm -f conftest.o conftest.s
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24548 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24551 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24553 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24555 else
24556 if test x$with_abi = xilp32; then
24557 as_fn_error "Assembler does not support -mabi=ilp32.\
24558 Upgrade the Assembler." "$LINENO" 5
24560 if test x"$with_multilib_list" = xdefault; then
24561 TM_MULTILIB_CONFIG=lp64
24562 else
24563 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24564 for aarch64_multilib in ${aarch64_multilibs}; do
24565 case ${aarch64_multilib} in
24566 ilp32)
24567 as_fn_error "Assembler does not support -mabi=ilp32.\
24568 Upgrade the Assembler." "$LINENO" 5
24572 esac
24573 done
24576 # Check if we have binutils support for relocations types needed by -fpic
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24578 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24579 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24580 $as_echo_n "(cached) " >&6
24581 else
24582 gcc_cv_as_aarch64_picreloc=no
24583 if test x$gcc_cv_as != x; then
24584 $as_echo '
24585 .text
24586 ldr x0, [x2, #:gotpage_lo15:globalsym]
24587 ' > conftest.s
24588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24590 (eval $ac_try) 2>&5
24591 ac_status=$?
24592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24593 test $ac_status = 0; }; }
24594 then
24595 gcc_cv_as_aarch64_picreloc=yes
24596 else
24597 echo "configure: failed program was" >&5
24598 cat conftest.s >&5
24600 rm -f conftest.o conftest.s
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24604 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24605 if test $gcc_cv_as_aarch64_picreloc = yes; then
24607 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24611 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24612 # Check whether --enable-fix-cortex-a53-835769 was given.
24613 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24614 enableval=$enable_fix_cortex_a53_835769;
24615 case $enableval in
24616 yes)
24617 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24622 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24623 Valid choices are 'yes' and 'no'." "$LINENO" 5
24626 esac
24630 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24631 # Check whether --enable-fix-cortex-a53-843419 was given.
24632 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24633 enableval=$enable_fix_cortex_a53_843419;
24634 case $enableval in
24635 yes)
24636 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24641 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24642 Valid choices are 'yes' and 'no'." "$LINENO" 5
24645 esac
24651 # All TARGET_ABI_OSF targets.
24652 alpha*-*-linux* | alpha*-*-*bsd*)
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24654 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24655 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24657 else
24658 gcc_cv_as_alpha_explicit_relocs=no
24659 if test $in_tree_gas = yes; then
24660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24661 then gcc_cv_as_alpha_explicit_relocs=yes
24663 elif test x$gcc_cv_as != x; then
24664 $as_echo ' .set nomacro
24665 .text
24666 extbl $3, $2, $3 !lituse_bytoff!1
24667 ldq $2, a($29) !literal!1
24668 ldq $4, b($29) !literal!2
24669 ldq_u $3, 0($2) !lituse_base!1
24670 ldq $27, f($29) !literal!5
24671 jsr $26, ($27), f !lituse_jsr!5
24672 ldah $29, 0($26) !gpdisp!3
24673 lda $0, c($29) !gprel
24674 ldah $1, d($29) !gprelhigh
24675 lda $1, d($1) !gprellow
24676 lda $29, 0($29) !gpdisp!3' > conftest.s
24677 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24682 test $ac_status = 0; }; }
24683 then
24684 gcc_cv_as_alpha_explicit_relocs=yes
24685 else
24686 echo "configure: failed program was" >&5
24687 cat conftest.s >&5
24689 rm -f conftest.o conftest.s
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24693 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24694 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24696 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24701 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24702 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24703 $as_echo_n "(cached) " >&6
24704 else
24705 gcc_cv_as_alpha_jsrdirect_relocs=no
24706 if test $in_tree_gas = yes; then
24707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24708 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24710 elif test x$gcc_cv_as != x; then
24711 $as_echo ' .set nomacro
24712 .text
24713 ldq $27, a($29) !literal!1
24714 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24717 (eval $ac_try) 2>&5
24718 ac_status=$?
24719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24720 test $ac_status = 0; }; }
24721 then
24722 gcc_cv_as_alpha_jsrdirect_relocs=yes
24723 else
24724 echo "configure: failed program was" >&5
24725 cat conftest.s >&5
24727 rm -f conftest.o conftest.s
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24731 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24732 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24734 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24740 avr-*-*)
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24742 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24743 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24744 $as_echo_n "(cached) " >&6
24745 else
24746 gcc_cv_as_avr_mlink_relax=no
24747 if test x$gcc_cv_as != x; then
24748 $as_echo '.text' > conftest.s
24749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24751 (eval $ac_try) 2>&5
24752 ac_status=$?
24753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24754 test $ac_status = 0; }; }
24755 then
24756 gcc_cv_as_avr_mlink_relax=yes
24757 else
24758 echo "configure: failed program was" >&5
24759 cat conftest.s >&5
24761 rm -f conftest.o conftest.s
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24765 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24766 if test $gcc_cv_as_avr_mlink_relax = yes; then
24768 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24774 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24775 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 gcc_cv_as_avr_mrmw=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 -mrmw -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_avr_mrmw=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_avr_mrmw" >&5
24797 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24798 if test $gcc_cv_as_avr_mrmw = yes; then
24800 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24806 cris-*-*)
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24808 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24809 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24811 else
24812 gcc_cv_as_cris_no_mul_bug=no
24813 if test $in_tree_gas = yes; then
24814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24815 then gcc_cv_as_cris_no_mul_bug=yes
24817 elif test x$gcc_cv_as != x; then
24818 $as_echo '.text' > conftest.s
24819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -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_cris_no_mul_bug=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_cris_no_mul_bug" >&5
24835 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24836 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24838 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24844 sparc*-*-*)
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24846 $as_echo_n "checking assembler for .register... " >&6; }
24847 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24848 $as_echo_n "(cached) " >&6
24849 else
24850 gcc_cv_as_sparc_register_op=no
24851 if test x$gcc_cv_as != x; then
24852 $as_echo '.register %g2, #scratch' > conftest.s
24853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24858 test $ac_status = 0; }; }
24859 then
24860 gcc_cv_as_sparc_register_op=yes
24861 else
24862 echo "configure: failed program was" >&5
24863 cat conftest.s >&5
24865 rm -f conftest.o conftest.s
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24869 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24870 if test $gcc_cv_as_sparc_register_op = yes; then
24872 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24878 $as_echo_n "checking assembler for -relax option... " >&6; }
24879 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24880 $as_echo_n "(cached) " >&6
24881 else
24882 gcc_cv_as_sparc_relax=no
24883 if test x$gcc_cv_as != x; then
24884 $as_echo '.text' > conftest.s
24885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24890 test $ac_status = 0; }; }
24891 then
24892 gcc_cv_as_sparc_relax=yes
24893 else
24894 echo "configure: failed program was" >&5
24895 cat conftest.s >&5
24897 rm -f conftest.o conftest.s
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24901 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24902 if test $gcc_cv_as_sparc_relax = yes; then
24904 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24910 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24911 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24912 $as_echo_n "(cached) " >&6
24913 else
24914 gcc_cv_as_sparc_gotdata_op=no
24915 if test x$gcc_cv_as != x; then
24916 $as_echo '.text
24917 .align 4
24918 foo:
24920 bar:
24921 sethi %gdop_hix22(foo), %g1
24922 xor %g1, %gdop_lox10(foo), %g1
24923 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24926 (eval $ac_try) 2>&5
24927 ac_status=$?
24928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24929 test $ac_status = 0; }; }
24930 then
24931 if test x$gcc_cv_ld != x \
24932 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24933 if test x$gcc_cv_objdump != x; then
24934 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24935 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24936 gcc_cv_as_sparc_gotdata_op=no
24937 else
24938 gcc_cv_as_sparc_gotdata_op=yes
24942 rm -f conftest
24943 else
24944 echo "configure: failed program was" >&5
24945 cat conftest.s >&5
24947 rm -f conftest.o conftest.s
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24951 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24952 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24954 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24960 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24961 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24964 gcc_cv_as_sparc_ua_pcrel=no
24965 if test x$gcc_cv_as != x; then
24966 $as_echo '.text
24967 foo:
24969 .data
24970 .align 4
24971 .byte 0
24972 .uaword %r_disp32(foo)' > conftest.s
24973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24975 (eval $ac_try) 2>&5
24976 ac_status=$?
24977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24978 test $ac_status = 0; }; }
24979 then
24980 if test x$gcc_cv_ld != x \
24981 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24982 gcc_cv_as_sparc_ua_pcrel=yes
24984 rm -f conftest
24985 else
24986 echo "configure: failed program was" >&5
24987 cat conftest.s >&5
24989 rm -f conftest.o conftest.s
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24993 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24994 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24996 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25000 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25001 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25002 $as_echo_n "(cached) " >&6
25003 else
25004 gcc_cv_as_sparc_ua_pcrel_hidden=no
25005 if test x$gcc_cv_as != x; then
25006 $as_echo '.data
25007 .align 4
25008 .byte 0x31
25009 .uaword %r_disp32(foo)
25010 .byte 0x32, 0x33, 0x34
25011 .global foo
25012 .hidden foo
25013 foo:
25014 .skip 4' > conftest.s
25015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017 (eval $ac_try) 2>&5
25018 ac_status=$?
25019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020 test $ac_status = 0; }; }
25021 then
25022 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25023 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25024 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25025 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25026 if $gcc_cv_objdump -R conftest 2> /dev/null \
25027 | grep 'DISP32' > /dev/null 2>&1; then
25029 else
25030 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25033 rm -f conftest
25034 else
25035 echo "configure: failed program was" >&5
25036 cat conftest.s >&5
25038 rm -f conftest.o conftest.s
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25042 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25043 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25045 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25051 # unaligned pcrel relocs
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25054 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25055 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25057 else
25058 gcc_cv_as_sparc_offsetable_lo10=no
25059 if test x$gcc_cv_as != x; then
25060 $as_echo '.text
25061 or %g1, %lo(ab) + 12, %g1
25062 or %g1, %lo(ab + 12), %g1' > conftest.s
25063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25068 test $ac_status = 0; }; }
25069 then
25070 if test x$gcc_cv_objdump != x \
25071 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25072 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25073 gcc_cv_as_sparc_offsetable_lo10=yes
25075 else
25076 echo "configure: failed program was" >&5
25077 cat conftest.s >&5
25079 rm -f conftest.o conftest.s
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25083 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25084 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25086 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25092 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25093 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25094 $as_echo_n "(cached) " >&6
25095 else
25096 gcc_cv_as_sparc_fmaf=no
25097 if test x$gcc_cv_as != x; then
25098 $as_echo '.text
25099 .register %g2, #scratch
25100 .register %g3, #scratch
25101 .align 4
25102 fmaddd %f0, %f2, %f4, %f6
25103 addxccc %g1, %g2, %g3
25104 fsrl32 %f2, %f4, %f8
25105 fnaddd %f10, %f12, %f14' > conftest.s
25106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25108 (eval $ac_try) 2>&5
25109 ac_status=$?
25110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25111 test $ac_status = 0; }; }
25112 then
25113 gcc_cv_as_sparc_fmaf=yes
25114 else
25115 echo "configure: failed program was" >&5
25116 cat conftest.s >&5
25118 rm -f conftest.o conftest.s
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25122 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25123 if test $gcc_cv_as_sparc_fmaf = yes; then
25125 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25131 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25132 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25133 $as_echo_n "(cached) " >&6
25134 else
25135 gcc_cv_as_sparc_sparc4=no
25136 if test x$gcc_cv_as != x; then
25137 $as_echo '.text
25138 .register %g2, #scratch
25139 .register %g3, #scratch
25140 .align 4
25141 cxbe %g2, %g3, 1f
25142 1: cwbneg %g2, %g3, 1f
25143 1: sha1
25145 aes_kexpand0 %f4, %f6, %f8
25146 des_round %f38, %f40, %f42, %f44
25147 camellia_f %f54, %f56, %f58, %f60
25148 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25151 (eval $ac_try) 2>&5
25152 ac_status=$?
25153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25154 test $ac_status = 0; }; }
25155 then
25156 gcc_cv_as_sparc_sparc4=yes
25157 else
25158 echo "configure: failed program was" >&5
25159 cat conftest.s >&5
25161 rm -f conftest.o conftest.s
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25165 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25166 if test $gcc_cv_as_sparc_sparc4 = yes; then
25168 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25174 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25175 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25176 $as_echo_n "(cached) " >&6
25177 else
25178 gcc_cv_as_sparc_sparc5=no
25179 if test x$gcc_cv_as != x; then
25180 $as_echo '.text
25181 .register %g2, #scratch
25182 .register %g3, #scratch
25183 .align 4
25184 subxc %g1, %g2, %g3
25185 fpadd8 %f0, %f2, %f4' > conftest.s
25186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188 (eval $ac_try) 2>&5
25189 ac_status=$?
25190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191 test $ac_status = 0; }; }
25192 then
25193 gcc_cv_as_sparc_sparc5=yes
25194 else
25195 echo "configure: failed program was" >&5
25196 cat conftest.s >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25202 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25203 if test $gcc_cv_as_sparc_sparc5 = yes; then
25205 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25211 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25212 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25213 $as_echo_n "(cached) " >&6
25214 else
25215 gcc_cv_as_sparc_leon=no
25216 if test x$gcc_cv_as != x; then
25217 $as_echo '.text
25218 .register %g2, #scratch
25219 .register %g3, #scratch
25220 .align 4
25221 smac %g2, %g3, %g1
25222 umac %g2, %g3, %g1
25223 casa [%g2] 0xb, %g3, %g1' > conftest.s
25224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25226 (eval $ac_try) 2>&5
25227 ac_status=$?
25228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25229 test $ac_status = 0; }; }
25230 then
25231 gcc_cv_as_sparc_leon=yes
25232 else
25233 echo "configure: failed program was" >&5
25234 cat conftest.s >&5
25236 rm -f conftest.o conftest.s
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25240 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25241 if test $gcc_cv_as_sparc_leon = yes; then
25243 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25249 i[34567]86-*-* | x86_64-*-*)
25250 case $target_os in
25251 cygwin*)
25252 # Full C++ conformance when using a shared libstdc++-v3 requires some
25253 # support from the Cygwin DLL, which in more recent versions exports
25254 # wrappers to aid in interposing and redirecting operators new, delete,
25255 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25256 # are configuring for a version of Cygwin that exports the wrappers.
25257 if test x$host = x$target && test x$host_cpu = xi686; then
25258 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25259 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25260 gcc_ac_cygwin_dll_wrappers=yes
25261 else
25262 gcc_ac_cygwin_dll_wrappers=no
25265 else
25266 # Can't check presence of libc functions during cross-compile, so
25267 # we just have to assume we're building for an up-to-date target.
25268 gcc_ac_cygwin_dll_wrappers=yes
25271 cat >>confdefs.h <<_ACEOF
25272 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25273 _ACEOF
25275 esac
25276 case $target_os in
25277 cygwin* | pe | mingw32*)
25278 # Recent binutils allows the three-operand form of ".comm" on PE. This
25279 # definition is used unconditionally to initialise the default state of
25280 # the target option variable that governs usage of the feature.
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25282 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25283 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25284 $as_echo_n "(cached) " >&6
25285 else
25286 gcc_cv_as_comm_has_align=no
25287 if test $in_tree_gas = yes; then
25288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25289 then gcc_cv_as_comm_has_align=yes
25291 elif test x$gcc_cv_as != x; then
25292 $as_echo '.comm foo,1,32' > conftest.s
25293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25295 (eval $ac_try) 2>&5
25296 ac_status=$?
25297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25298 test $ac_status = 0; }; }
25299 then
25300 gcc_cv_as_comm_has_align=yes
25301 else
25302 echo "configure: failed program was" >&5
25303 cat conftest.s >&5
25305 rm -f conftest.o conftest.s
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25309 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25313 cat >>confdefs.h <<_ACEOF
25314 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25315 _ACEOF
25317 # Used for DWARF 2 in PE
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25319 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25320 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25321 $as_echo_n "(cached) " >&6
25322 else
25323 gcc_cv_as_ix86_pe_secrel32=no
25324 if test $in_tree_gas = yes; then
25325 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25326 then gcc_cv_as_ix86_pe_secrel32=yes
25328 elif test x$gcc_cv_as != x; then
25329 $as_echo '.text
25330 foo: nop
25331 .data
25332 .secrel32 foo' > conftest.s
25333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25338 test $ac_status = 0; }; }
25339 then
25340 if test x$gcc_cv_ld != x \
25341 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25342 gcc_cv_as_ix86_pe_secrel32=yes
25344 rm -f conftest
25345 else
25346 echo "configure: failed program was" >&5
25347 cat conftest.s >&5
25349 rm -f conftest.o conftest.s
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25353 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25354 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25356 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25360 # Test if the assembler supports the extended form of the .section
25361 # directive that specifies section alignment. LTO support uses this,
25362 # but normally only after installation, so we warn but don't fail the
25363 # configure if LTO is enabled but the assembler does not support it.
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25365 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25366 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25367 $as_echo_n "(cached) " >&6
25368 else
25369 gcc_cv_as_section_has_align=no
25370 if test $in_tree_gas = yes; then
25371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25372 then gcc_cv_as_section_has_align=yes
25374 elif test x$gcc_cv_as != x; then
25375 $as_echo '.section lto_test,"dr0"' > conftest.s
25376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25378 (eval $ac_try) 2>&5
25379 ac_status=$?
25380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25381 test $ac_status = 0; }; }
25382 then
25383 gcc_cv_as_section_has_align=yes
25384 else
25385 echo "configure: failed program was" >&5
25386 cat conftest.s >&5
25388 rm -f conftest.o conftest.s
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25392 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25395 if test x$gcc_cv_as_section_has_align != xyes; then
25396 case ",$enable_languages," in
25397 *,lto,*)
25398 { $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
25399 $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;}
25401 esac
25404 esac
25406 # Test if the assembler supports the section flag 'e' for specifying
25407 # an excluded section.
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25409 $as_echo_n "checking assembler for .section with e... " >&6; }
25410 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25411 $as_echo_n "(cached) " >&6
25412 else
25413 gcc_cv_as_section_has_e=no
25414 if test $in_tree_gas = yes; then
25415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25416 then gcc_cv_as_section_has_e=yes
25418 elif test x$gcc_cv_as != x; then
25419 $as_echo '.section foo1,"e"
25420 .byte 0,0,0,0' > conftest.s
25421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25423 (eval $ac_try) 2>&5
25424 ac_status=$?
25425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; }
25427 then
25428 gcc_cv_as_section_has_e=yes
25429 else
25430 echo "configure: failed program was" >&5
25431 cat conftest.s >&5
25433 rm -f conftest.o conftest.s
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25437 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25441 cat >>confdefs.h <<_ACEOF
25442 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25443 _ACEOF
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25447 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25448 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25449 $as_echo_n "(cached) " >&6
25450 else
25451 gcc_cv_as_ix86_filds=no
25452 if test x$gcc_cv_as != x; then
25453 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25456 (eval $ac_try) 2>&5
25457 ac_status=$?
25458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25459 test $ac_status = 0; }; }
25460 then
25461 gcc_cv_as_ix86_filds=yes
25462 else
25463 echo "configure: failed program was" >&5
25464 cat conftest.s >&5
25466 rm -f conftest.o conftest.s
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25470 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25471 if test $gcc_cv_as_ix86_filds = yes; then
25473 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25479 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25480 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25481 $as_echo_n "(cached) " >&6
25482 else
25483 gcc_cv_as_ix86_fildq=no
25484 if test x$gcc_cv_as != x; then
25485 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25488 (eval $ac_try) 2>&5
25489 ac_status=$?
25490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25491 test $ac_status = 0; }; }
25492 then
25493 gcc_cv_as_ix86_fildq=yes
25494 else
25495 echo "configure: failed program was" >&5
25496 cat conftest.s >&5
25498 rm -f conftest.o conftest.s
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25502 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25503 if test $gcc_cv_as_ix86_fildq = yes; then
25505 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25511 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25512 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25513 $as_echo_n "(cached) " >&6
25514 else
25515 gcc_cv_as_ix86_cmov_sun_syntax=no
25516 if test x$gcc_cv_as != x; then
25517 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25523 test $ac_status = 0; }; }
25524 then
25525 gcc_cv_as_ix86_cmov_sun_syntax=yes
25526 else
25527 echo "configure: failed program was" >&5
25528 cat conftest.s >&5
25530 rm -f conftest.o conftest.s
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25534 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25535 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25537 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25543 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25544 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25545 $as_echo_n "(cached) " >&6
25546 else
25547 gcc_cv_as_ix86_ffreep=no
25548 if test x$gcc_cv_as != x; then
25549 $as_echo 'ffreep %st(1)' > conftest.s
25550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25555 test $ac_status = 0; }; }
25556 then
25557 gcc_cv_as_ix86_ffreep=yes
25558 else
25559 echo "configure: failed program was" >&5
25560 cat conftest.s >&5
25562 rm -f conftest.o conftest.s
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25566 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25567 if test $gcc_cv_as_ix86_ffreep = yes; then
25569 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25575 $as_echo_n "checking assembler for .quad directive... " >&6; }
25576 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25578 else
25579 gcc_cv_as_ix86_quad=no
25580 if test x$gcc_cv_as != x; then
25581 $as_echo '.quad 0' > conftest.s
25582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25585 ac_status=$?
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25588 then
25589 gcc_cv_as_ix86_quad=yes
25590 else
25591 echo "configure: failed program was" >&5
25592 cat conftest.s >&5
25594 rm -f conftest.o conftest.s
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25598 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25599 if test $gcc_cv_as_ix86_quad = yes; then
25601 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25607 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25608 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25609 $as_echo_n "(cached) " >&6
25610 else
25611 gcc_cv_as_ix86_sahf=no
25612 if test x$gcc_cv_as != x; then
25613 $as_echo '.code64
25614 sahf' > conftest.s
25615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25617 (eval $ac_try) 2>&5
25618 ac_status=$?
25619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25620 test $ac_status = 0; }; }
25621 then
25622 gcc_cv_as_ix86_sahf=yes
25623 else
25624 echo "configure: failed program was" >&5
25625 cat conftest.s >&5
25627 rm -f conftest.o conftest.s
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25631 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25632 if test $gcc_cv_as_ix86_sahf = yes; then
25634 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25640 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25641 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 gcc_cv_as_ix86_interunit_movq=no
25645 if test x$gcc_cv_as != x; then
25646 $as_echo '.code64
25647 movq %mm0, %rax
25648 movq %rax, %xmm0' > conftest.s
25649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25651 (eval $ac_try) 2>&5
25652 ac_status=$?
25653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25654 test $ac_status = 0; }; }
25655 then
25656 gcc_cv_as_ix86_interunit_movq=yes
25657 else
25658 echo "configure: failed program was" >&5
25659 cat conftest.s >&5
25661 rm -f conftest.o conftest.s
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25665 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25669 cat >>confdefs.h <<_ACEOF
25670 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25671 _ACEOF
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25675 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25676 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25677 $as_echo_n "(cached) " >&6
25678 else
25679 gcc_cv_as_ix86_hle=no
25680 if test x$gcc_cv_as != x; then
25681 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684 (eval $ac_try) 2>&5
25685 ac_status=$?
25686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687 test $ac_status = 0; }; }
25688 then
25689 gcc_cv_as_ix86_hle=yes
25690 else
25691 echo "configure: failed program was" >&5
25692 cat conftest.s >&5
25694 rm -f conftest.o conftest.s
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25698 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25699 if test $gcc_cv_as_ix86_hle = yes; then
25701 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25707 $as_echo_n "checking assembler for swap suffix... " >&6; }
25708 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25709 $as_echo_n "(cached) " >&6
25710 else
25711 gcc_cv_as_ix86_swap=no
25712 if test x$gcc_cv_as != x; then
25713 $as_echo 'movl.s %esp, %ebp' > conftest.s
25714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25716 (eval $ac_try) 2>&5
25717 ac_status=$?
25718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25719 test $ac_status = 0; }; }
25720 then
25721 gcc_cv_as_ix86_swap=yes
25722 else
25723 echo "configure: failed program was" >&5
25724 cat conftest.s >&5
25726 rm -f conftest.o conftest.s
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25730 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25731 if test $gcc_cv_as_ix86_swap = yes; then
25733 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25739 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25740 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25742 else
25743 gcc_cv_as_ix86_diff_sect_delta=no
25744 if test x$gcc_cv_as != x; then
25745 $as_echo '.section .rodata
25746 .L1:
25747 .long .L2-.L1
25748 .long .L3-.L1
25749 .text
25750 .L3: nop
25751 .L2: nop' > conftest.s
25752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; }
25758 then
25759 gcc_cv_as_ix86_diff_sect_delta=yes
25760 else
25761 echo "configure: failed program was" >&5
25762 cat conftest.s >&5
25764 rm -f conftest.o conftest.s
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25768 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25769 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25771 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25777 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25778 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25779 $as_echo_n "(cached) " >&6
25780 else
25781 gcc_cv_as_ix86_rep_lock_prefix=no
25782 if test x$gcc_cv_as != x; then
25783 $as_echo 'rep movsl
25784 rep ret
25785 rep nop
25786 rep bsf %ecx, %eax
25787 rep bsr %ecx, %eax
25788 lock addl %edi, (%eax,%esi)
25789 lock orl $0, (%esp)' > conftest.s
25790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25792 (eval $ac_try) 2>&5
25793 ac_status=$?
25794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25795 test $ac_status = 0; }; }
25796 then
25797 gcc_cv_as_ix86_rep_lock_prefix=yes
25798 else
25799 echo "configure: failed program was" >&5
25800 cat conftest.s >&5
25802 rm -f conftest.o conftest.s
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25806 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25807 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25809 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25815 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25816 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25817 $as_echo_n "(cached) " >&6
25818 else
25819 gcc_cv_as_ix86_ud2=no
25820 if test x$gcc_cv_as != x; then
25821 $as_echo 'ud2' > conftest.s
25822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25824 (eval $ac_try) 2>&5
25825 ac_status=$?
25826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25827 test $ac_status = 0; }; }
25828 then
25829 gcc_cv_as_ix86_ud2=yes
25830 else
25831 echo "configure: failed program was" >&5
25832 cat conftest.s >&5
25834 rm -f conftest.o conftest.s
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25838 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25839 if test $gcc_cv_as_ix86_ud2 = yes; then
25841 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25846 # Enforce 32-bit output with gas and gld.
25847 if test x$gas = xyes; then
25848 as_ix86_gas_32_opt="--32"
25850 if echo "$ld_ver" | grep GNU > /dev/null; then
25851 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25852 ld_ix86_gld_32_opt="-melf_i386_sol2"
25853 else
25854 ld_ix86_gld_32_opt="-melf_i386"
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25859 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25860 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25861 $as_echo_n "(cached) " >&6
25862 else
25863 gcc_cv_as_ix86_tlsgdplt=no
25864 if test x$gcc_cv_as != x; then
25865 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25871 test $ac_status = 0; }; }
25872 then
25873 if test x$gcc_cv_ld != x \
25874 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25875 gcc_cv_as_ix86_tlsgdplt=yes
25877 rm -f conftest
25878 else
25879 echo "configure: failed program was" >&5
25880 cat conftest.s >&5
25882 rm -f conftest.o conftest.s
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25886 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25887 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25889 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25894 conftest_s='
25895 .section .tdata,"aw'$tls_section_flag'",@progbits
25896 tls_ld:
25897 .section .text,"ax",@progbits
25898 call tls_ld@tlsldmplt'
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25901 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25902 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25903 $as_echo_n "(cached) " >&6
25904 else
25905 gcc_cv_as_ix86_tlsldmplt=no
25906 if test x$gcc_cv_as != x; then
25907 $as_echo "$conftest_s" > conftest.s
25908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25911 ac_status=$?
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25914 then
25915 if test x$gcc_cv_ld != x \
25916 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25917 gcc_cv_as_ix86_tlsldmplt=yes
25919 rm -f conftest
25920 else
25921 echo "configure: failed program was" >&5
25922 cat conftest.s >&5
25924 rm -f conftest.o conftest.s
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25928 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25932 cat >>confdefs.h <<_ACEOF
25933 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25934 _ACEOF
25937 conftest_s='
25938 .section .text,"ax",@progbits
25939 .globl _start
25940 .type _start, @function
25941 _start:
25942 leal value@tlsldm(%ebx), %eax
25943 call ___tls_get_addr@plt
25945 .section .tdata,"aw'$tls_section_flag'",@progbits
25946 .type value, @object
25947 value:'
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25949 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25950 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25951 $as_echo_n "(cached) " >&6
25952 else
25953 gcc_cv_as_ix86_tlsldm=no
25954 if test x$gcc_cv_as != x; then
25955 $as_echo "$conftest_s" > conftest.s
25956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25958 (eval $ac_try) 2>&5
25959 ac_status=$?
25960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25961 test $ac_status = 0; }; }
25962 then
25963 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25964 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25965 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25966 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25967 gcc_cv_as_ix86_tlsldm=yes
25970 rm -f conftest
25971 else
25972 echo "configure: failed program was" >&5
25973 cat conftest.s >&5
25975 rm -f conftest.o conftest.s
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25979 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25983 cat >>confdefs.h <<_ACEOF
25984 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25985 _ACEOF
25988 conftest_s='
25989 .data
25990 bar:
25991 .byte 1
25992 .text
25993 .global _start
25994 _start:
25995 cmpl $0, bar@GOT
25996 jmp *_start@GOT'
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25998 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25999 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26000 $as_echo_n "(cached) " >&6
26001 else
26002 gcc_cv_as_ix86_got32x=no
26003 if test x$gcc_cv_as != x; then
26004 $as_echo "$conftest_s" > conftest.s
26005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26007 (eval $ac_try) 2>&5
26008 ac_status=$?
26009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26010 test $ac_status = 0; }; }
26011 then
26012 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26013 && test x$gcc_cv_readelf != x \
26014 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26015 | grep R_386_GOT32X > /dev/null 2>&1 \
26016 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26017 if $gcc_cv_objdump -dw conftest 2>&1 \
26018 | grep 0xffffff > /dev/null 2>&1; then
26019 gcc_cv_as_ix86_got32x=no
26020 else
26021 gcc_cv_as_ix86_got32x=yes
26024 rm -f conftest
26025 else
26026 echo "configure: failed program was" >&5
26027 cat conftest.s >&5
26029 rm -f conftest.o conftest.s
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26033 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26037 cat >>confdefs.h <<_ACEOF
26038 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26039 _ACEOF
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26043 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26044 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26045 $as_echo_n "(cached) " >&6
26046 else
26047 gcc_cv_as_ix86_gotoff_in_data=no
26048 if test $in_tree_gas = yes; then
26049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26050 then gcc_cv_as_ix86_gotoff_in_data=yes
26052 elif test x$gcc_cv_as != x; then
26053 $as_echo ' .text
26054 .L0:
26056 .data
26057 .long .L0@GOTOFF' > conftest.s
26058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26060 (eval $ac_try) 2>&5
26061 ac_status=$?
26062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26063 test $ac_status = 0; }; }
26064 then
26065 gcc_cv_as_ix86_gotoff_in_data=yes
26066 else
26067 echo "configure: failed program was" >&5
26068 cat conftest.s >&5
26070 rm -f conftest.o conftest.s
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26074 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26078 cat >>confdefs.h <<_ACEOF
26079 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26080 _ACEOF
26083 conftest_s='
26084 .section .text,"ax",@progbits
26085 .globl _start
26086 .type _start, @function
26087 _start:
26088 leal ld@tlsldm(%ecx), %eax
26089 call *___tls_get_addr@GOT(%ecx)
26090 leal gd@tlsgd(%ecx), %eax
26091 call *___tls_get_addr@GOT(%ecx)
26093 .section .tdata,"aw'$tls_section_flag'",@progbits
26094 .type ld, @object
26096 .byte 0
26097 .globl gd
26098 .type gd, @object
26100 .byte 0'
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26102 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26103 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26104 $as_echo_n "(cached) " >&6
26105 else
26106 gcc_cv_as_ix86_tls_get_addr_via_got=no
26107 if test x$gcc_cv_as != x; then
26108 $as_echo "$conftest_s" > conftest.s
26109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26111 (eval $ac_try) 2>&5
26112 ac_status=$?
26113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26114 test $ac_status = 0; }; }
26115 then
26116 if test x$gcc_cv_ld != x \
26117 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26118 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26120 rm -f conftest
26121 else
26122 echo "configure: failed program was" >&5
26123 cat conftest.s >&5
26125 rm -f conftest.o conftest.s
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26129 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26133 cat >>confdefs.h <<_ACEOF
26134 #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`
26135 _ACEOF
26139 ia64*-*-*)
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26141 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26142 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26143 $as_echo_n "(cached) " >&6
26144 else
26145 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26146 if test $in_tree_gas = yes; then
26147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26148 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26150 elif test x$gcc_cv_as != x; then
26151 $as_echo ' .text
26152 addl r15 = @ltoffx(x#), gp
26154 ld8.mov r16 = [r15], x#' > conftest.s
26155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26157 (eval $ac_try) 2>&5
26158 ac_status=$?
26159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26160 test $ac_status = 0; }; }
26161 then
26162 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26163 else
26164 echo "configure: failed program was" >&5
26165 cat conftest.s >&5
26167 rm -f conftest.o conftest.s
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26171 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26172 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26174 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26181 powerpc*-*-*)
26183 case $target in
26184 *-*-darwin*)
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26186 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26187 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26188 $as_echo_n "(cached) " >&6
26189 else
26190 gcc_cv_as_machine_directive=no
26191 if test x$gcc_cv_as != x; then
26192 $as_echo ' .machine ppc7400' > conftest.s
26193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26199 then
26200 gcc_cv_as_machine_directive=yes
26201 else
26202 echo "configure: failed program was" >&5
26203 cat conftest.s >&5
26205 rm -f conftest.o conftest.s
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26209 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26212 if test x$gcc_cv_as_machine_directive != xyes; then
26213 echo "*** This target requires an assembler supporting \".machine\"" >&2
26214 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26215 test x$build = x$target && exit 1
26218 esac
26220 case $target in
26221 *-*-aix*) conftest_s=' .machine "pwr5"
26222 .csect .text[PR]
26223 mfcr 3,128';;
26224 *-*-darwin*) conftest_s=' .text
26225 mfcr r3,128';;
26226 *) conftest_s=' .machine power4
26227 .text
26228 mfcr 3,128';;
26229 esac
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26232 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26233 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26234 $as_echo_n "(cached) " >&6
26235 else
26236 gcc_cv_as_powerpc_mfcrf=no
26237 if test $in_tree_gas = yes; then
26238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26239 then gcc_cv_as_powerpc_mfcrf=yes
26241 elif test x$gcc_cv_as != x; then
26242 $as_echo "$conftest_s" > conftest.s
26243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26248 test $ac_status = 0; }; }
26249 then
26250 gcc_cv_as_powerpc_mfcrf=yes
26251 else
26252 echo "configure: failed program was" >&5
26253 cat conftest.s >&5
26255 rm -f conftest.o conftest.s
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26259 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26260 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26262 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26267 case $target in
26268 *-*-aix*) conftest_s=' .machine "pwr5"
26269 .csect .text[PR]
26270 popcntb 3,3';;
26271 *) conftest_s=' .machine power5
26272 .text
26273 popcntb 3,3';;
26274 esac
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26277 $as_echo_n "checking assembler for popcntb support... " >&6; }
26278 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26279 $as_echo_n "(cached) " >&6
26280 else
26281 gcc_cv_as_powerpc_popcntb=no
26282 if test $in_tree_gas = yes; then
26283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26284 then gcc_cv_as_powerpc_popcntb=yes
26286 elif test x$gcc_cv_as != x; then
26287 $as_echo "$conftest_s" > conftest.s
26288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26291 ac_status=$?
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26294 then
26295 gcc_cv_as_powerpc_popcntb=yes
26296 else
26297 echo "configure: failed program was" >&5
26298 cat conftest.s >&5
26300 rm -f conftest.o conftest.s
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26304 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26305 if test $gcc_cv_as_powerpc_popcntb = yes; then
26307 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26312 case $target in
26313 *-*-aix*) conftest_s=' .machine "pwr5x"
26314 .csect .text[PR]
26315 frin 1,1';;
26316 *) conftest_s=' .machine power5
26317 .text
26318 frin 1,1';;
26319 esac
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26322 $as_echo_n "checking assembler for fp round support... " >&6; }
26323 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26324 $as_echo_n "(cached) " >&6
26325 else
26326 gcc_cv_as_powerpc_fprnd=no
26327 if test $in_tree_gas = yes; then
26328 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26329 then gcc_cv_as_powerpc_fprnd=yes
26331 elif test x$gcc_cv_as != x; then
26332 $as_echo "$conftest_s" > conftest.s
26333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26335 (eval $ac_try) 2>&5
26336 ac_status=$?
26337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26338 test $ac_status = 0; }; }
26339 then
26340 gcc_cv_as_powerpc_fprnd=yes
26341 else
26342 echo "configure: failed program was" >&5
26343 cat conftest.s >&5
26345 rm -f conftest.o conftest.s
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26349 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26350 if test $gcc_cv_as_powerpc_fprnd = yes; then
26352 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26357 case $target in
26358 *-*-aix*) conftest_s=' .machine "pwr6"
26359 .csect .text[PR]
26360 mffgpr 1,3';;
26361 *) conftest_s=' .machine power6
26362 .text
26363 mffgpr 1,3';;
26364 esac
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26367 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26368 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26369 $as_echo_n "(cached) " >&6
26370 else
26371 gcc_cv_as_powerpc_mfpgpr=no
26372 if test $in_tree_gas = yes; then
26373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26374 then gcc_cv_as_powerpc_mfpgpr=yes
26376 elif test x$gcc_cv_as != x; then
26377 $as_echo "$conftest_s" > conftest.s
26378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26383 test $ac_status = 0; }; }
26384 then
26385 gcc_cv_as_powerpc_mfpgpr=yes
26386 else
26387 echo "configure: failed program was" >&5
26388 cat conftest.s >&5
26390 rm -f conftest.o conftest.s
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26394 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26395 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26397 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26402 case $target in
26403 *-*-aix*) conftest_s=' .csect .text[PR]
26404 LCF..0:
26405 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26406 *-*-darwin*)
26407 conftest_s=' .text
26408 LCF0:
26409 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26410 *) conftest_s=' .text
26411 .LCF0:
26412 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26413 esac
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26416 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26417 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26418 $as_echo_n "(cached) " >&6
26419 else
26420 gcc_cv_as_powerpc_rel16=no
26421 if test $in_tree_gas = yes; then
26422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26423 then gcc_cv_as_powerpc_rel16=yes
26425 elif test x$gcc_cv_as != x; then
26426 $as_echo "$conftest_s" > conftest.s
26427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; }
26433 then
26434 gcc_cv_as_powerpc_rel16=yes
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_powerpc_rel16" >&5
26443 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26444 if test $gcc_cv_as_powerpc_rel16 = yes; then
26446 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26451 case $target in
26452 *-*-aix*) conftest_s=' .machine "pwr6"
26453 .csect .text[PR]
26454 cmpb 3,4,5';;
26455 *) conftest_s=' .machine power6
26456 .text
26457 cmpb 3,4,5';;
26458 esac
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26461 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26462 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26463 $as_echo_n "(cached) " >&6
26464 else
26465 gcc_cv_as_powerpc_cmpb=no
26466 if test $in_tree_gas = yes; then
26467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26468 then gcc_cv_as_powerpc_cmpb=yes
26470 elif test x$gcc_cv_as != x; then
26471 $as_echo "$conftest_s" > conftest.s
26472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26474 (eval $ac_try) 2>&5
26475 ac_status=$?
26476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26477 test $ac_status = 0; }; }
26478 then
26479 gcc_cv_as_powerpc_cmpb=yes
26480 else
26481 echo "configure: failed program was" >&5
26482 cat conftest.s >&5
26484 rm -f conftest.o conftest.s
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26488 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26489 if test $gcc_cv_as_powerpc_cmpb = yes; then
26491 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26496 case $target in
26497 *-*-aix*) conftest_s=' .machine "pwr6"
26498 .csect .text[PR]
26499 dadd 1,2,3';;
26500 *) conftest_s=' .machine power6
26501 .text
26502 dadd 1,2,3';;
26503 esac
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26506 $as_echo_n "checking assembler for decimal float support... " >&6; }
26507 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26508 $as_echo_n "(cached) " >&6
26509 else
26510 gcc_cv_as_powerpc_dfp=no
26511 if test $in_tree_gas = yes; then
26512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26513 then gcc_cv_as_powerpc_dfp=yes
26515 elif test x$gcc_cv_as != x; then
26516 $as_echo "$conftest_s" > conftest.s
26517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26519 (eval $ac_try) 2>&5
26520 ac_status=$?
26521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26522 test $ac_status = 0; }; }
26523 then
26524 gcc_cv_as_powerpc_dfp=yes
26525 else
26526 echo "configure: failed program was" >&5
26527 cat conftest.s >&5
26529 rm -f conftest.o conftest.s
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26533 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26534 if test $gcc_cv_as_powerpc_dfp = yes; then
26536 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26541 case $target in
26542 *-*-aix*) conftest_s=' .machine "pwr7"
26543 .csect .text[PR]
26544 lxvd2x 1,2,3';;
26545 *) conftest_s=' .machine power7
26546 .text
26547 lxvd2x 1,2,3';;
26548 esac
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26551 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26552 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26553 $as_echo_n "(cached) " >&6
26554 else
26555 gcc_cv_as_powerpc_vsx=no
26556 if test $in_tree_gas = yes; then
26557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26558 then gcc_cv_as_powerpc_vsx=yes
26560 elif test x$gcc_cv_as != x; then
26561 $as_echo "$conftest_s" > conftest.s
26562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26568 then
26569 gcc_cv_as_powerpc_vsx=yes
26570 else
26571 echo "configure: failed program was" >&5
26572 cat conftest.s >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26578 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26579 if test $gcc_cv_as_powerpc_vsx = yes; then
26581 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26586 case $target in
26587 *-*-aix*) conftest_s=' .machine "pwr7"
26588 .csect .text[PR]
26589 popcntd 3,3';;
26590 *) conftest_s=' .machine power7
26591 .text
26592 popcntd 3,3';;
26593 esac
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26596 $as_echo_n "checking assembler for popcntd support... " >&6; }
26597 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_as_powerpc_popcntd=no
26601 if test $in_tree_gas = yes; then
26602 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26603 then gcc_cv_as_powerpc_popcntd=yes
26605 elif test x$gcc_cv_as != x; then
26606 $as_echo "$conftest_s" > conftest.s
26607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26613 then
26614 gcc_cv_as_powerpc_popcntd=yes
26615 else
26616 echo "configure: failed program was" >&5
26617 cat conftest.s >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26623 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26624 if test $gcc_cv_as_powerpc_popcntd = yes; then
26626 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26631 case $target in
26632 *-*-aix*) conftest_s=' .machine "pwr8"
26633 .csect .text[PR]';;
26634 *) conftest_s=' .machine power8
26635 .text';;
26636 esac
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26639 $as_echo_n "checking assembler for power8 support... " >&6; }
26640 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26641 $as_echo_n "(cached) " >&6
26642 else
26643 gcc_cv_as_powerpc_power8=no
26644 if test $in_tree_gas = yes; then
26645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26646 then gcc_cv_as_powerpc_power8=yes
26648 elif test x$gcc_cv_as != x; then
26649 $as_echo "$conftest_s" > conftest.s
26650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26652 (eval $ac_try) 2>&5
26653 ac_status=$?
26654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26655 test $ac_status = 0; }; }
26656 then
26657 gcc_cv_as_powerpc_power8=yes
26658 else
26659 echo "configure: failed program was" >&5
26660 cat conftest.s >&5
26662 rm -f conftest.o conftest.s
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26666 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26667 if test $gcc_cv_as_powerpc_power8 = yes; then
26669 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26674 case $target in
26675 *-*-aix*) conftest_s=' .machine "pwr9"
26676 .csect .text[PR]';;
26677 *) conftest_s=' .machine power9
26678 .text';;
26679 esac
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26682 $as_echo_n "checking assembler for power9 support... " >&6; }
26683 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26684 $as_echo_n "(cached) " >&6
26685 else
26686 gcc_cv_as_powerpc_power9=no
26687 if test $in_tree_gas = yes; then
26688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26689 then gcc_cv_as_powerpc_power9=yes
26691 elif test x$gcc_cv_as != x; then
26692 $as_echo "$conftest_s" > conftest.s
26693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26695 (eval $ac_try) 2>&5
26696 ac_status=$?
26697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26698 test $ac_status = 0; }; }
26699 then
26700 gcc_cv_as_powerpc_power9=yes
26701 else
26702 echo "configure: failed program was" >&5
26703 cat conftest.s >&5
26705 rm -f conftest.o conftest.s
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26709 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26710 if test $gcc_cv_as_powerpc_power9 = yes; then
26712 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26717 case $target in
26718 *-*-aix*) conftest_s=' .csect .text[PR]
26719 lwsync';;
26720 *) conftest_s=' .text
26721 lwsync';;
26722 esac
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26725 $as_echo_n "checking assembler for lwsync support... " >&6; }
26726 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26727 $as_echo_n "(cached) " >&6
26728 else
26729 gcc_cv_as_powerpc_lwsync=no
26730 if test $in_tree_gas = yes; then
26731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26732 then gcc_cv_as_powerpc_lwsync=yes
26734 elif test x$gcc_cv_as != x; then
26735 $as_echo "$conftest_s" > conftest.s
26736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26738 (eval $ac_try) 2>&5
26739 ac_status=$?
26740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26741 test $ac_status = 0; }; }
26742 then
26743 gcc_cv_as_powerpc_lwsync=yes
26744 else
26745 echo "configure: failed program was" >&5
26746 cat conftest.s >&5
26748 rm -f conftest.o conftest.s
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26752 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26753 if test $gcc_cv_as_powerpc_lwsync = yes; then
26755 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26760 case $target in
26761 *-*-aix*) conftest_s=' .machine "476"
26762 .csect .text[PR]
26763 dci 0';;
26764 *) conftest_s=' .machine "476"
26765 .text
26766 dci 0';;
26767 esac
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26770 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26771 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26772 $as_echo_n "(cached) " >&6
26773 else
26774 gcc_cv_as_powerpc_dci=no
26775 if test $in_tree_gas = yes; then
26776 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26777 then gcc_cv_as_powerpc_dci=yes
26779 elif test x$gcc_cv_as != x; then
26780 $as_echo "$conftest_s" > conftest.s
26781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26783 (eval $ac_try) 2>&5
26784 ac_status=$?
26785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26786 test $ac_status = 0; }; }
26787 then
26788 gcc_cv_as_powerpc_dci=yes
26789 else
26790 echo "configure: failed program was" >&5
26791 cat conftest.s >&5
26793 rm -f conftest.o conftest.s
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26797 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26798 if test $gcc_cv_as_powerpc_dci = yes; then
26800 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26806 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26807 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26808 $as_echo_n "(cached) " >&6
26809 else
26810 gcc_cv_as_powerpc_gnu_attribute=no
26811 if test $in_tree_gas = yes; then
26812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26813 then gcc_cv_as_powerpc_gnu_attribute=yes
26815 elif test x$gcc_cv_as != x; then
26816 $as_echo '.gnu_attribute 4,1' > conftest.s
26817 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26819 (eval $ac_try) 2>&5
26820 ac_status=$?
26821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26822 test $ac_status = 0; }; }
26823 then
26824 gcc_cv_as_powerpc_gnu_attribute=yes
26825 else
26826 echo "configure: failed program was" >&5
26827 cat conftest.s >&5
26829 rm -f conftest.o conftest.s
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26833 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26834 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26836 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26842 $as_echo_n "checking assembler for tls marker support... " >&6; }
26843 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26844 $as_echo_n "(cached) " >&6
26845 else
26846 gcc_cv_as_powerpc_tls_markers=no
26847 if test $in_tree_gas = yes; then
26848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26849 then gcc_cv_as_powerpc_tls_markers=yes
26851 elif test x$gcc_cv_as != x; then
26852 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26858 test $ac_status = 0; }; }
26859 then
26860 gcc_cv_as_powerpc_tls_markers=yes
26861 else
26862 echo "configure: failed program was" >&5
26863 cat conftest.s >&5
26865 rm -f conftest.o conftest.s
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26869 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26870 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26872 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26878 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26879 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26880 $as_echo_n "(cached) " >&6
26881 else
26882 gcc_cv_as_powerpc_entry_markers=no
26883 if test $in_tree_gas = yes; then
26884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26885 then gcc_cv_as_powerpc_entry_markers=yes
26887 elif test x$gcc_cv_as != x; then
26888 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26895 then
26896 gcc_cv_as_powerpc_entry_markers=yes
26897 else
26898 echo "configure: failed program was" >&5
26899 cat conftest.s >&5
26901 rm -f conftest.o conftest.s
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26905 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26906 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26908 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26913 case $target in
26914 *-*-aix*)
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26916 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26917 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26918 $as_echo_n "(cached) " >&6
26919 else
26920 gcc_cv_as_aix_ref=no
26921 if test $in_tree_gas = yes; then
26922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26923 then gcc_cv_as_aix_ref=yes
26925 elif test x$gcc_cv_as != x; then
26926 $as_echo ' .csect stuff[rw]
26927 stuff:
26928 .long 1
26929 .extern sym
26930 .ref sym
26931 ' > conftest.s
26932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26937 test $ac_status = 0; }; }
26938 then
26939 gcc_cv_as_aix_ref=yes
26940 else
26941 echo "configure: failed program was" >&5
26942 cat conftest.s >&5
26944 rm -f conftest.o conftest.s
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26948 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26949 if test $gcc_cv_as_aix_ref = yes; then
26951 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26957 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26958 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26959 $as_echo_n "(cached) " >&6
26960 else
26961 gcc_cv_as_aix_dwloc=no
26962 if test $in_tree_gas = yes; then
26963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26964 then gcc_cv_as_aix_dwloc=yes
26966 elif test x$gcc_cv_as != x; then
26967 $as_echo ' .dwsect 0xA0000
26968 Lframe..0:
26969 .vbyte 4,Lframe..0
26970 ' > conftest.s
26971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26976 test $ac_status = 0; }; }
26977 then
26978 gcc_cv_as_aix_dwloc=yes
26979 else
26980 echo "configure: failed program was" >&5
26981 cat conftest.s >&5
26983 rm -f conftest.o conftest.s
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26987 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26988 if test $gcc_cv_as_aix_dwloc = yes; then
26990 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26995 esac
26998 mips*-*-*)
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27000 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27001 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27002 $as_echo_n "(cached) " >&6
27003 else
27004 gcc_cv_as_mips_explicit_relocs=no
27005 if test $in_tree_gas = yes; then
27006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27007 then gcc_cv_as_mips_explicit_relocs=yes
27009 elif test x$gcc_cv_as != x; then
27010 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; }
27017 then
27018 gcc_cv_as_mips_explicit_relocs=yes
27019 else
27020 echo "configure: failed program was" >&5
27021 cat conftest.s >&5
27023 rm -f conftest.o conftest.s
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27027 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27028 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27029 if test x$target_cpu_default = x
27030 then target_cpu_default=MASK_EXPLICIT_RELOCS
27031 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27037 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27038 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27039 $as_echo_n "(cached) " >&6
27040 else
27041 gcc_cv_as_mips_no_shared=no
27042 if test $in_tree_gas = yes; then
27043 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27044 then gcc_cv_as_mips_no_shared=yes
27046 elif test x$gcc_cv_as != x; then
27047 $as_echo 'nop' > conftest.s
27048 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27050 (eval $ac_try) 2>&5
27051 ac_status=$?
27052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27053 test $ac_status = 0; }; }
27054 then
27055 gcc_cv_as_mips_no_shared=yes
27056 else
27057 echo "configure: failed program was" >&5
27058 cat conftest.s >&5
27060 rm -f conftest.o conftest.s
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27064 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27065 if test $gcc_cv_as_mips_no_shared = yes; then
27067 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27073 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27074 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27075 $as_echo_n "(cached) " >&6
27076 else
27077 gcc_cv_as_mips_gnu_attribute=no
27078 if test $in_tree_gas = yes; then
27079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27080 then gcc_cv_as_mips_gnu_attribute=yes
27082 elif test x$gcc_cv_as != x; then
27083 $as_echo '.gnu_attribute 4,1' > conftest.s
27084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27086 (eval $ac_try) 2>&5
27087 ac_status=$?
27088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27089 test $ac_status = 0; }; }
27090 then
27091 gcc_cv_as_mips_gnu_attribute=yes
27092 else
27093 echo "configure: failed program was" >&5
27094 cat conftest.s >&5
27096 rm -f conftest.o conftest.s
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27100 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27101 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27103 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27109 $as_echo_n "checking assembler for .module support... " >&6; }
27110 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27111 $as_echo_n "(cached) " >&6
27112 else
27113 gcc_cv_as_mips_dot_module=no
27114 if test x$gcc_cv_as != x; then
27115 $as_echo '.module mips2
27116 .module fp=xx' > conftest.s
27117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27119 (eval $ac_try) 2>&5
27120 ac_status=$?
27121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122 test $ac_status = 0; }; }
27123 then
27124 gcc_cv_as_mips_dot_module=yes
27125 else
27126 echo "configure: failed program was" >&5
27127 cat conftest.s >&5
27129 rm -f conftest.o conftest.s
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27133 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27134 if test $gcc_cv_as_mips_dot_module = yes; then
27136 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27140 if test x$gcc_cv_as_mips_dot_module = xno \
27141 && test x$with_fp_32 != x; then
27142 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27146 $as_echo_n "checking assembler for .micromips support... " >&6; }
27147 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27148 $as_echo_n "(cached) " >&6
27149 else
27150 gcc_cv_as_micromips_support=no
27151 if test x$gcc_cv_as != x; then
27152 $as_echo '.set micromips' > conftest.s
27153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27158 test $ac_status = 0; }; }
27159 then
27160 gcc_cv_as_micromips_support=yes
27161 else
27162 echo "configure: failed program was" >&5
27163 cat conftest.s >&5
27165 rm -f conftest.o conftest.s
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27169 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27170 if test $gcc_cv_as_micromips_support = yes; then
27172 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27178 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27179 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27180 $as_echo_n "(cached) " >&6
27181 else
27182 gcc_cv_as_mips_dtprelword=no
27183 if test $in_tree_gas = yes; then
27184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27185 then gcc_cv_as_mips_dtprelword=yes
27187 elif test x$gcc_cv_as != x; then
27188 $as_echo '.section .tdata,"awT",@progbits
27190 .word 2
27191 .text
27192 .dtprelword x+0x8000' > conftest.s
27193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27195 (eval $ac_try) 2>&5
27196 ac_status=$?
27197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27198 test $ac_status = 0; }; }
27199 then
27200 gcc_cv_as_mips_dtprelword=yes
27201 else
27202 echo "configure: failed program was" >&5
27203 cat conftest.s >&5
27205 rm -f conftest.o conftest.s
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27209 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27210 if test $gcc_cv_as_mips_dtprelword = yes; then
27212 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27218 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27219 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27220 $as_echo_n "(cached) " >&6
27221 else
27222 gcc_cv_as_mips_dspr1_mult=no
27223 if test x$gcc_cv_as != x; then
27224 $as_echo ' .set mips32r2
27225 .set nodspr2
27226 .set dsp
27227 madd $ac3,$4,$5
27228 maddu $ac3,$4,$5
27229 msub $ac3,$4,$5
27230 msubu $ac3,$4,$5
27231 mult $ac3,$4,$5
27232 multu $ac3,$4,$5' > conftest.s
27233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; }
27239 then
27240 gcc_cv_as_mips_dspr1_mult=yes
27241 else
27242 echo "configure: failed program was" >&5
27243 cat conftest.s >&5
27245 rm -f conftest.o conftest.s
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27249 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27250 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27252 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27258 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27259 gcc_cv_as_ld_jalr_reloc=no
27260 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27261 if test $in_tree_ld = yes ; then
27262 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 \
27263 && test $in_tree_ld_is_elf = yes; then
27264 gcc_cv_as_ld_jalr_reloc=yes
27266 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27267 echo ' .ent x' > conftest.s
27268 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27269 echo ' lw $25,%call16(y)($28)' >> conftest.s
27270 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27271 echo '1: jalr $25' >> conftest.s
27272 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27273 echo '1: jalr $25' >> conftest.s
27274 echo ' .end x' >> conftest.s
27275 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27276 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27277 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27278 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27279 gcc_cv_as_ld_jalr_reloc=yes
27282 rm -f conftest.*
27285 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27286 if test x$target_cpu_default = x; then
27287 target_cpu_default=MASK_RELAX_PIC_CALLS
27288 else
27289 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27293 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27296 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27297 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27298 $as_echo_n "(cached) " >&6
27299 else
27300 gcc_cv_ld_mips_personality_relaxation=no
27301 if test $in_tree_ld = yes ; then
27302 if test "$gcc_cv_gld_major_version" -eq 2 \
27303 -a "$gcc_cv_gld_minor_version" -ge 21 \
27304 -o "$gcc_cv_gld_major_version" -gt 2; then
27305 gcc_cv_ld_mips_personality_relaxation=yes
27307 elif test x$gcc_cv_as != x \
27308 -a x$gcc_cv_ld != x \
27309 -a x$gcc_cv_readelf != x ; then
27310 cat > conftest.s <<EOF
27311 .cfi_startproc
27312 .cfi_personality 0x80,indirect_ptr
27313 .ent test
27314 test:
27316 .end test
27317 .cfi_endproc
27319 .section .data,"aw",@progbits
27320 indirect_ptr:
27321 .dc.a personality
27323 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27324 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27325 if $gcc_cv_readelf -d conftest 2>&1 \
27326 | grep TEXTREL > /dev/null 2>&1; then
27328 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27329 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27331 else
27332 gcc_cv_ld_mips_personality_relaxation=yes
27336 rm -f conftest.s conftest.o conftest
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27339 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27340 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27342 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27347 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27348 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27349 $as_echo_n "(cached) " >&6
27350 else
27351 gcc_cv_as_mips_nan=no
27352 if test x$gcc_cv_as != x; then
27353 $as_echo '' > conftest.s
27354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27356 (eval $ac_try) 2>&5
27357 ac_status=$?
27358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27359 test $ac_status = 0; }; }
27360 then
27361 gcc_cv_as_mips_nan=yes
27362 else
27363 echo "configure: failed program was" >&5
27364 cat conftest.s >&5
27366 rm -f conftest.o conftest.s
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27370 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27371 if test $gcc_cv_as_mips_nan = yes; then
27373 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27377 if test x$gcc_cv_as_mips_nan = xno \
27378 && test x$with_nan != x; then
27379 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27382 s390*-*-*)
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27384 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27385 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27386 $as_echo_n "(cached) " >&6
27387 else
27388 gcc_cv_as_s390_gnu_attribute=no
27389 if test $in_tree_gas = yes; then
27390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27391 then gcc_cv_as_s390_gnu_attribute=yes
27393 elif test x$gcc_cv_as != x; then
27394 $as_echo '.gnu_attribute 8,1' > conftest.s
27395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27397 (eval $ac_try) 2>&5
27398 ac_status=$?
27399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; }
27401 then
27402 gcc_cv_as_s390_gnu_attribute=yes
27403 else
27404 echo "configure: failed program was" >&5
27405 cat conftest.s >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27411 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27412 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27414 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27419 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27420 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27421 $as_echo_n "(cached) " >&6
27422 else
27423 gcc_cv_as_s390_machine_machinemode=no
27424 if test $in_tree_gas = yes; then
27425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27426 then gcc_cv_as_s390_machine_machinemode=yes
27428 elif test x$gcc_cv_as != x; then
27429 $as_echo ' .machinemode push
27430 .machinemode pop
27431 .machine push
27432 .machine pop' > conftest.s
27433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27435 (eval $ac_try) 2>&5
27436 ac_status=$?
27437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27438 test $ac_status = 0; }; }
27439 then
27440 gcc_cv_as_s390_machine_machinemode=yes
27441 else
27442 echo "configure: failed program was" >&5
27443 cat conftest.s >&5
27445 rm -f conftest.o conftest.s
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27449 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27450 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27452 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27457 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27458 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27459 $as_echo_n "(cached) " >&6
27460 else
27461 gcc_cv_as_s390_architecture_modifiers=no
27462 if test $in_tree_gas = yes; then
27463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27464 then gcc_cv_as_s390_architecture_modifiers=yes
27466 elif test x$gcc_cv_as != x; then
27467 $as_echo ' .machine z13+vx ' > conftest.s
27468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27470 (eval $ac_try) 2>&5
27471 ac_status=$?
27472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27473 test $ac_status = 0; }; }
27474 then
27475 gcc_cv_as_s390_architecture_modifiers=yes
27476 else
27477 echo "configure: failed program was" >&5
27478 cat conftest.s >&5
27480 rm -f conftest.o conftest.s
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27484 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27485 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27487 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27492 esac
27494 # Mips and HP-UX need the GNU assembler.
27495 # Linux on IA64 might be able to use the Intel assembler.
27497 case "$target" in
27498 mips*-*-* | *-*-hpux* )
27499 if test x$gas_flag = xyes \
27500 || test x"$host" != x"$build" \
27501 || test ! -x "$gcc_cv_as" \
27502 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27504 else
27505 echo "*** This configuration requires the GNU assembler" >&2
27506 exit 1
27509 esac
27511 # ??? Not all targets support dwarf2 debug_line, even within a version
27512 # of gas. Moreover, we need to emit a valid instruction to trigger any
27513 # info to the output file. So, as supported targets are added to gas 2.11,
27514 # add some instruction here to (also) show we expect this might work.
27515 # ??? Once 2.11 is released, probably need to add first known working
27516 # version to the per-target configury.
27517 case "$cpu_type" in
27518 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27519 | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu | tilegx \
27520 | tilepro | visium | xstormy16 | xtensa)
27521 insn="nop"
27523 ia64 | s390)
27524 insn="nop 0"
27526 mmix)
27527 insn="swym 0"
27529 esac
27530 if test x"$insn" != x; then
27531 conftest_s="\
27532 .file 1 \"conftest.s\"
27533 .loc 1 3 0
27534 $insn"
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27536 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27537 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27538 $as_echo_n "(cached) " >&6
27539 else
27540 gcc_cv_as_dwarf2_debug_line=no
27541 if test $in_tree_gas = yes; then
27542 if test $in_tree_gas_is_elf = yes \
27543 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27544 then gcc_cv_as_dwarf2_debug_line=yes
27546 elif test x$gcc_cv_as != x; then
27547 $as_echo "$conftest_s" > conftest.s
27548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27550 (eval $ac_try) 2>&5
27551 ac_status=$?
27552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27553 test $ac_status = 0; }; }
27554 then
27555 if test x$gcc_cv_objdump != x \
27556 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27557 | grep debug_line > /dev/null 2>&1; then
27558 gcc_cv_as_dwarf2_debug_line=yes
27560 else
27561 echo "configure: failed program was" >&5
27562 cat conftest.s >&5
27564 rm -f conftest.o conftest.s
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27568 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27572 # The .debug_line file table must be in the exact order that
27573 # we specified the files, since these indices are also used
27574 # by DW_AT_decl_file. Approximate this test by testing if
27575 # the assembler bitches if the same index is assigned twice.
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27577 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27578 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27579 $as_echo_n "(cached) " >&6
27580 else
27581 gcc_cv_as_dwarf2_file_buggy=no
27582 if test x$gcc_cv_as != x; then
27583 $as_echo ' .file 1 "foo.s"
27584 .file 1 "bar.s"' > conftest.s
27585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27587 (eval $ac_try) 2>&5
27588 ac_status=$?
27589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27590 test $ac_status = 0; }; }
27591 then
27592 gcc_cv_as_dwarf2_file_buggy=yes
27593 else
27594 echo "configure: failed program was" >&5
27595 cat conftest.s >&5
27597 rm -f conftest.o conftest.s
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27601 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27605 if test $gcc_cv_as_dwarf2_debug_line = yes \
27606 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27608 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27613 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27614 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27615 $as_echo_n "(cached) " >&6
27616 else
27617 gcc_cv_as_gdwarf2_flag=no
27618 if test $in_tree_gas = yes; then
27619 if test $in_tree_gas_is_elf = yes \
27620 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27621 then gcc_cv_as_gdwarf2_flag=yes
27623 elif test x$gcc_cv_as != x; then
27624 $as_echo "$insn" > conftest.s
27625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27627 (eval $ac_try) 2>&5
27628 ac_status=$?
27629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27630 test $ac_status = 0; }; }
27631 then
27632 gcc_cv_as_gdwarf2_flag=yes
27633 else
27634 echo "configure: failed program was" >&5
27635 cat conftest.s >&5
27637 rm -f conftest.o conftest.s
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27641 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27642 if test $gcc_cv_as_gdwarf2_flag = yes; then
27644 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27650 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27651 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27652 $as_echo_n "(cached) " >&6
27653 else
27654 gcc_cv_as_gstabs_flag=no
27655 if test $in_tree_gas = yes; then
27656 if test $in_tree_gas_is_elf = yes \
27657 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27658 then gcc_cv_as_gstabs_flag=yes
27660 elif test x$gcc_cv_as != x; then
27661 $as_echo "$insn" > conftest.s
27662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27664 (eval $ac_try) 2>&5
27665 ac_status=$?
27666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27667 test $ac_status = 0; }; }
27668 then
27669 gcc_cv_as_gstabs_flag=yes
27670 else
27671 echo "configure: failed program was" >&5
27672 cat conftest.s >&5
27674 rm -f conftest.o conftest.s
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27678 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27679 if test $gcc_cv_as_gstabs_flag = yes; then
27681 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27687 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27688 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27689 $as_echo_n "(cached) " >&6
27690 else
27691 gcc_cv_as_debug_prefix_map_flag=no
27692 if test $in_tree_gas = yes; then
27693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27694 then gcc_cv_as_debug_prefix_map_flag=yes
27696 elif test x$gcc_cv_as != x; then
27697 $as_echo "$insn" > conftest.s
27698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27700 (eval $ac_try) 2>&5
27701 ac_status=$?
27702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27703 test $ac_status = 0; }; }
27704 then
27705 gcc_cv_as_debug_prefix_map_flag=yes
27706 else
27707 echo "configure: failed program was" >&5
27708 cat conftest.s >&5
27710 rm -f conftest.o conftest.s
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27714 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27715 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27717 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27724 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27725 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27726 $as_echo_n "(cached) " >&6
27727 else
27728 gcc_cv_as_compress_debug=no
27729 if test x$gcc_cv_as != x; then
27730 $as_echo '' > conftest.s
27731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736 test $ac_status = 0; }; }
27737 then
27738 # gas compiled without zlib cannot compress debug sections and warns
27739 # about it, but still exits successfully. So check for this, too.
27740 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27741 then
27742 gcc_cv_as_compress_debug=0
27743 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27744 # defaulting to the ELF gABI format.
27745 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27746 then
27747 gcc_cv_as_compress_debug=2
27748 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27749 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27750 # Before binutils 2.26, gas only supported --compress-debug-options and
27751 # emitted the traditional GNU format.
27752 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27753 then
27754 gcc_cv_as_compress_debug=1
27755 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27756 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27757 else
27758 gcc_cv_as_compress_debug=0
27760 else
27761 echo "configure: failed program was" >&5
27762 cat conftest.s >&5
27764 rm -f conftest.o conftest.s
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27768 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27772 cat >>confdefs.h <<_ACEOF
27773 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27774 _ACEOF
27777 cat >>confdefs.h <<_ACEOF
27778 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27779 _ACEOF
27782 cat >>confdefs.h <<_ACEOF
27783 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27784 _ACEOF
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27788 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27789 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27790 $as_echo_n "(cached) " >&6
27791 else
27792 gcc_cv_as_lcomm_with_alignment=no
27793 if test x$gcc_cv_as != x; then
27794 $as_echo '.lcomm bar,4,16' > conftest.s
27795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27797 (eval $ac_try) 2>&5
27798 ac_status=$?
27799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27800 test $ac_status = 0; }; }
27801 then
27802 gcc_cv_as_lcomm_with_alignment=yes
27803 else
27804 echo "configure: failed program was" >&5
27805 cat conftest.s >&5
27807 rm -f conftest.o conftest.s
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27811 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27812 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27814 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27819 if test x$with_sysroot = x && test x$host = x$target \
27820 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27821 && test "$prefix" != "NONE"; then
27823 cat >>confdefs.h <<_ACEOF
27824 #define PREFIX_INCLUDE_DIR "$prefix/include"
27825 _ACEOF
27829 # Determine the version of glibc, if any, used on the target.
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27831 $as_echo_n "checking for target glibc version... " >&6; }
27833 # Check whether --with-glibc-version was given.
27834 if test "${with_glibc_version+set}" = set; then :
27835 withval=$with_glibc_version;
27836 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27837 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27838 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27839 else
27840 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27842 else
27844 glibc_version_major=0
27845 glibc_version_minor=0
27846 if test -f $target_header_dir/features.h \
27847 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27848 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27849 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27850 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27855 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27857 cat >>confdefs.h <<_ACEOF
27858 #define TARGET_GLIBC_MAJOR $glibc_version_major
27859 _ACEOF
27862 cat >>confdefs.h <<_ACEOF
27863 #define TARGET_GLIBC_MINOR $glibc_version_minor
27864 _ACEOF
27867 # Check whether --enable-gnu-unique-object was given.
27868 if test "${enable_gnu_unique_object+set}" = set; then :
27869 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27870 yes | no) ;;
27871 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27872 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27873 esac
27874 else
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27876 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27877 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27878 $as_echo_n "(cached) " >&6
27879 else
27880 gcc_cv_as_gnu_unique_object=no
27881 if test $in_tree_gas = yes; then
27882 if test $in_tree_gas_is_elf = yes \
27883 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27884 then gcc_cv_as_gnu_unique_object=yes
27886 elif test x$gcc_cv_as != x; then
27887 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27890 (eval $ac_try) 2>&5
27891 ac_status=$?
27892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27893 test $ac_status = 0; }; }
27894 then
27895 gcc_cv_as_gnu_unique_object=yes
27896 else
27897 echo "configure: failed program was" >&5
27898 cat conftest.s >&5
27900 rm -f conftest.o conftest.s
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27904 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27905 if test $gcc_cv_as_gnu_unique_object = yes; then
27906 # We need to unquote above to to use the definition from config.gcc.
27907 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27909 if test $glibc_version_major -gt 2 \
27910 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27911 enable_gnu_unique_object=yes
27918 if test x$enable_gnu_unique_object = xyes; then
27920 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27925 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27926 if test "${gcc_cv_as_line_zero+set}" = set; then :
27927 $as_echo_n "(cached) " >&6
27928 else
27929 gcc_cv_as_line_zero=no
27930 if test $in_tree_gas = yes; then
27931 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27932 then gcc_cv_as_line_zero=yes
27934 elif test "x$gcc_cv_as" != x; then
27935 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27936 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27938 (eval $ac_try) 2>&5
27939 ac_status=$?
27940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27941 test $ac_status = 0; }; } &&
27942 test "x`cat conftest.out`" = x
27943 then
27944 gcc_cv_as_line_zero=yes
27945 else
27946 echo "configure: failed program was" >&5
27947 cat conftest.s >&5
27948 echo "configure: error output was" >&5
27949 cat conftest.out >&5
27951 rm -f conftest.o conftest.s conftest.out
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27955 $as_echo "$gcc_cv_as_line_zero" >&6; }
27956 if test "x$gcc_cv_as_line_zero" = xyes; then
27958 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27963 $as_echo_n "checking support for thin archives... " >&6; }
27964 thin_archive_support=no
27965 echo 'int main (void) { return 0; }' > conftest.c
27966 if ($AR --version | sed 1q | grep "GNU ar" \
27967 && $CC $CFLAGS -c conftest.c \
27968 && $AR rcT conftest.a conftest.o \
27969 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27970 thin_archive_support=yes
27972 rm -f conftest.c conftest.o conftest.a conftest
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27974 $as_echo "$thin_archive_support" >&6; }
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27978 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27979 gcc_cv_ld_eh_frame_hdr=no
27980 if test $in_tree_ld = yes ; then
27981 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 \
27982 && test $in_tree_ld_is_elf = yes; then
27983 gcc_cv_ld_eh_frame_hdr=yes
27985 elif test x$gcc_cv_ld != x; then
27986 if echo "$ld_ver" | grep GNU > /dev/null; then
27987 # Check if linker supports --eh-frame-hdr option
27988 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27989 gcc_cv_ld_eh_frame_hdr=yes
27991 else
27992 case "$target" in
27993 *-*-solaris2*)
27994 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27995 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27996 gcc_cv_ld_eh_frame_hdr=yes
27999 esac
28003 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28005 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28009 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28012 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28013 gcc_cv_ld_eh_frame_ciev3=no
28014 if test $in_tree_ld = yes ; then
28015 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 \
28016 && test $in_tree_ld_is_elf = yes; then
28017 gcc_cv_ld_eh_frame_ciev3=yes
28019 elif test x$gcc_cv_ld != x; then
28020 if echo "$ld_ver" | grep GNU > /dev/null; then
28021 gcc_cv_ld_eh_frame_ciev3=yes
28022 if test 0"$ld_date" -lt 20040513; then
28023 if test -n "$ld_date"; then
28024 # If there was date string, but was earlier than 2004-05-13, fail
28025 gcc_cv_ld_eh_frame_ciev3=no
28026 elif test "$ld_vers_major" -lt 2; then
28027 gcc_cv_ld_eh_frame_ciev3=no
28028 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28029 gcc_cv_ld_eh_frame_ciev3=no
28032 else
28033 case "$target" in
28034 *-*-solaris2*)
28035 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28036 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28037 gcc_cv_ld_eh_frame_ciev3=yes
28040 esac
28044 cat >>confdefs.h <<_ACEOF
28045 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28046 _ACEOF
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28049 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28052 $as_echo_n "checking linker position independent executable support... " >&6; }
28053 gcc_cv_ld_pie=no
28054 if test $in_tree_ld = yes ; then
28055 case "$target" in
28056 # Full PIE support on Solaris was only introduced in gld 2.26.
28057 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28058 *) gcc_gld_pie_min_version=15 ;;
28059 esac
28060 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 \
28061 && test $in_tree_ld_is_elf = yes; then
28062 gcc_cv_ld_pie=yes
28064 elif test x$gcc_cv_ld != x; then
28065 # Check if linker supports -pie option
28066 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
28067 gcc_cv_ld_pie=yes
28068 case "$target" in
28069 *-*-solaris2*)
28070 if echo "$ld_ver" | grep GNU > /dev/null \
28071 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28072 gcc_cv_ld_pie=no
28075 esac
28076 else
28077 case "$target" in
28078 *-*-solaris2.1[1-9]*)
28079 # Solaris 11.x and Solaris 12 added PIE support.
28080 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28081 gcc_cv_ld_pie=yes
28084 esac
28087 if test x"$gcc_cv_ld_pie" = xyes; then
28089 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28093 $as_echo "$gcc_cv_ld_pie" >&6; }
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28096 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28097 gcc_cv_ld_pie_copyreloc=no
28098 if test $gcc_cv_ld_pie = yes ; then
28099 if test $in_tree_ld = yes ; then
28100 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
28101 gcc_cv_ld_pie_copyreloc=yes
28103 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28104 # Check if linker supports -pie option with copy reloc
28105 case "$target" in
28106 i?86-*-linux* | x86_64-*-linux*)
28107 cat > conftest1.s <<EOF
28108 .globl a_glob
28109 .data
28110 .type a_glob, @object
28111 .size a_glob, 4
28112 a_glob:
28113 .long 2
28115 cat > conftest2.s <<EOF
28116 .text
28117 .globl main
28118 .type main, @function
28119 main:
28120 movl %eax, a_glob(%rip)
28121 .size main, .-main
28122 .globl ptr
28123 .section .data.rel,"aw",@progbits
28124 .type ptr, @object
28125 ptr:
28126 .quad a_glob
28128 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28129 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28130 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28131 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28132 gcc_cv_ld_pie_copyreloc=yes
28134 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28136 esac
28140 cat >>confdefs.h <<_ACEOF
28141 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28142 _ACEOF
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28145 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28148 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28149 gcc_cv_ld_eh_gc_sections=no
28150 if test $in_tree_ld = yes ; then
28151 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 \
28152 && test $in_tree_ld_is_elf = yes; then
28153 gcc_cv_ld_eh_gc_sections=yes
28155 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28156 cat > conftest.s <<EOF
28157 .section .text
28158 .globl _start
28159 .type _start, @function
28160 _start:
28161 .long foo
28162 .size _start, .-_start
28163 .section .text.foo,"ax",@progbits
28164 .type foo, @function
28165 foo:
28166 .long 0
28167 .size foo, .-foo
28168 .section .gcc_except_table.foo,"a",@progbits
28169 .L0:
28170 .long 0
28171 .section .eh_frame,"a",@progbits
28172 .long .L0
28174 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28175 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28176 | grep "gc-sections option ignored" > /dev/null; then
28177 gcc_cv_ld_eh_gc_sections=no
28178 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28179 | grep gcc_except_table > /dev/null; then
28180 gcc_cv_ld_eh_gc_sections=yes
28181 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28182 if test x$gcc_cv_as_comdat_group != xyes; then
28183 gcc_cv_ld_eh_gc_sections=no
28184 cat > conftest.s <<EOF
28185 .section .text
28186 .globl _start
28187 .type _start, @function
28188 _start:
28189 .long foo
28190 .size _start, .-_start
28191 .section .gnu.linkonce.t.foo,"ax",@progbits
28192 .type foo, @function
28193 foo:
28194 .long 0
28195 .size foo, .-foo
28196 .section .gcc_except_table.foo,"a",@progbits
28197 .L0:
28198 .long 0
28199 .section .eh_frame,"a",@progbits
28200 .long .L0
28202 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28203 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28204 | grep "gc-sections option ignored" > /dev/null; then
28205 gcc_cv_ld_eh_gc_sections=no
28206 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28207 | grep gcc_except_table > /dev/null; then
28208 gcc_cv_ld_eh_gc_sections=yes
28214 rm -f conftest.s conftest.o conftest
28216 case "$target" in
28217 hppa*-*-linux*)
28218 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28219 gcc_cv_ld_eh_gc_sections=no
28221 esac
28222 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28224 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28228 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28231 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28232 gcc_cv_ld_eh_gc_sections_bug=no
28233 if test $in_tree_ld = yes ; then
28234 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 \
28235 && test $in_tree_ld_is_elf = yes; then
28236 gcc_cv_ld_eh_gc_sections_bug=yes
28238 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
28239 gcc_cv_ld_eh_gc_sections_bug=yes
28240 cat > conftest.s <<EOF
28241 .section .text
28242 .globl _start
28243 .type _start, @function
28244 _start:
28245 .long foo
28246 .size _start, .-_start
28247 .section .text.startup.foo,"ax",@progbits
28248 .type foo, @function
28249 foo:
28250 .long 0
28251 .size foo, .-foo
28252 .section .gcc_except_table.foo,"a",@progbits
28253 .L0:
28254 .long 0
28255 .section .eh_frame,"a",@progbits
28256 .long .L0
28258 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28259 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28260 | grep "gc-sections option ignored" > /dev/null; then
28262 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28263 | grep gcc_except_table > /dev/null; then
28264 gcc_cv_ld_eh_gc_sections_bug=no
28267 rm -f conftest.s conftest.o conftest
28269 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28271 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28275 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28278 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28279 # gold/gld support compressed debug sections since binutils 2.19/2.21
28280 # In binutils 2.26, gld gained support for the ELF gABI format.
28281 if test $in_tree_ld = yes ; then
28282 gcc_cv_ld_compress_debug=0
28283 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 \
28284 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28285 gcc_cv_ld_compress_debug=2
28286 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28287 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 \
28288 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28289 gcc_cv_ld_compress_debug=3
28290 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28291 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 \
28292 && test $in_tree_ld_is_elf = yes; then
28293 gcc_cv_ld_compress_debug=1
28295 elif echo "$ld_ver" | grep GNU > /dev/null; then
28296 if test "$ld_vers_major" -lt 2 \
28297 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28298 gcc_cv_ld_compress_debug=0
28299 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28300 gcc_cv_ld_compress_debug=1
28301 else
28302 gcc_cv_ld_compress_debug=3
28303 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28305 if test $ld_is_gold = yes; then
28306 gcc_cv_ld_compress_debug=2
28307 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28309 else
28310 case "${target}" in
28311 *-*-solaris2*)
28312 # Introduced in Solaris 11.2.
28313 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28314 gcc_cv_ld_compress_debug=3
28315 gcc_cv_ld_compress_debug_option="-z compress-sections"
28316 else
28317 gcc_cv_ld_compress_debug=0
28321 # Assume linkers other than GNU ld don't support compessed debug
28322 # sections.
28323 gcc_cv_ld_compress_debug=0
28325 esac
28328 cat >>confdefs.h <<_ACEOF
28329 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28330 _ACEOF
28333 cat >>confdefs.h <<_ACEOF
28334 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28335 _ACEOF
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28338 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28340 if test x"$ld64_flag" = x"yes"; then
28342 # Set defaults for possibly untestable items.
28343 gcc_cv_ld64_export_dynamic=0
28345 if test "$build" = "$host"; then
28346 darwin_try_test=1
28347 else
28348 darwin_try_test=0
28351 # On Darwin, because of FAT library support, it is often possible to execute
28352 # exes from compatible archs even when the host differs from the build system.
28353 case "$build","$host" in
28354 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28355 darwin_try_test=1;;
28356 *) ;;
28357 esac
28359 # If the configurer specified a minimum ld64 version to be supported, then use
28360 # that to determine feature support.
28361 if test x"${gcc_cv_ld64_version}" != x; then
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28363 $as_echo_n "checking ld64 specified version... " >&6; }
28364 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28366 $as_echo "$gcc_cv_ld64_major" >&6; }
28367 if test "$gcc_cv_ld64_major" -ge 236; then
28368 gcc_cv_ld64_export_dynamic=1
28370 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28371 # If the version was not specified, try to find it.
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28373 $as_echo_n "checking linker version... " >&6; }
28374 if test x"${gcc_cv_ld64_version}" = x; then
28375 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28378 $as_echo "$gcc_cv_ld64_version" >&6; }
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28381 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28382 gcc_cv_ld64_export_dynamic=1
28383 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28384 gcc_cv_ld64_export_dynamic=0
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28387 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28390 if test x"${gcc_cv_ld64_version}" != x; then
28392 cat >>confdefs.h <<_ACEOF
28393 #define LD64_VERSION "${gcc_cv_ld64_version}"
28394 _ACEOF
28399 cat >>confdefs.h <<_ACEOF
28400 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28401 _ACEOF
28405 # --------
28406 # UNSORTED
28407 # --------
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28410 $as_echo_n "checking linker --as-needed support... " >&6; }
28411 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28412 $as_echo_n "(cached) " >&6
28413 else
28414 gcc_cv_ld_as_needed=no
28415 gcc_cv_ld_as_needed_option='--as-needed'
28416 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28417 if test $in_tree_ld = yes ; then
28418 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 \
28419 && test $in_tree_ld_is_elf = yes; then
28420 gcc_cv_ld_as_needed=yes
28422 elif test x$gcc_cv_ld != x; then
28423 # Check if linker supports --as-needed and --no-as-needed options
28424 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28425 gcc_cv_ld_as_needed=yes
28426 else
28427 case "$target" in
28428 # Solaris 2 ld always supports -z ignore/-z record.
28429 *-*-solaris2*)
28430 gcc_cv_ld_as_needed=yes
28431 gcc_cv_ld_as_needed_option="-z ignore"
28432 gcc_cv_ld_no_as_needed_option="-z record"
28434 esac
28437 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28438 # dl_iterate_phdr, i.e. since Solaris 11.
28439 case "$target" in
28440 *-*-solaris2.1[1-9]*)
28441 case "$target" in
28442 i?86-*-* | x86_64-*-*)
28443 if echo "$ld_ver" | grep GNU > /dev/null; then
28444 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28445 gcc_cv_ld_as_needed=no
28448 esac
28450 *-*-solaris2*)
28451 gcc_cv_ld_as_needed=no
28453 esac
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28457 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28458 if test x"$gcc_cv_ld_as_needed" = xyes; then
28460 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28463 cat >>confdefs.h <<_ACEOF
28464 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28465 _ACEOF
28468 cat >>confdefs.h <<_ACEOF
28469 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28470 _ACEOF
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28475 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28476 saved_LDFLAGS="$LDFLAGS"
28477 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28478 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28480 /* end confdefs.h. */
28481 int main(void) {return 0;}
28482 _ACEOF
28483 if ac_fn_cxx_try_link "$LINENO"; then :
28484 gcc_cv_ld_clearcap=yes; break
28485 else
28486 gcc_cv_ld_clearcap=no
28488 rm -f core conftest.err conftest.$ac_objext \
28489 conftest$ac_exeext conftest.$ac_ext
28490 done
28491 LDFLAGS="$saved_LDFLAGS"
28492 if test "x$gcc_cv_ld_clearcap" = xyes; then
28494 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28496 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28500 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28502 case "$target" in
28503 powerpc*-*-*)
28504 case "$target" in
28505 *le-*-linux*)
28506 emul_name="-melf32lppc"
28509 emul_name="-melf32ppc"
28511 esac
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28513 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28514 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28515 $as_echo_n "(cached) " >&6
28516 else
28517 gcc_cv_ld_ppc_attr=no
28518 if test x"$ld_is_gold" = xyes; then
28519 gcc_cv_ld_ppc_attr=yes
28520 elif test $in_tree_ld = yes ; then
28521 if test "$gcc_cv_gld_major_version" -eq 2 \
28522 -a "$gcc_cv_gld_minor_version" -ge 28 \
28523 -o "$gcc_cv_gld_major_version" -gt 2; then
28524 gcc_cv_ld_ppc_attr=yes
28526 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28527 # check that merging the long double .gnu_attribute doesn't warn
28528 cat > conftest1.s <<EOF
28529 .gnu_attribute 4,1
28531 cat > conftest2.s <<EOF
28532 .gnu_attribute 4,9
28534 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28535 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28536 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28537 && test ! -s conftest.err; then
28538 gcc_cv_ld_ppc_attr=yes
28540 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28545 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28546 if test x$gcc_cv_ld_ppc_attr = xyes; then
28548 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28552 esac
28554 case "$target:$tm_file" in
28555 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28556 case "$target" in
28557 *le-*-linux*)
28558 emul_name="-melf64lppc"
28560 *-*-linux*)
28561 emul_name="-melf64ppc"
28563 *-*-freebsd*)
28564 emul_name="-melf64ppc_fbsd"
28566 esac
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28568 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28569 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28570 $as_echo_n "(cached) " >&6
28571 else
28572 gcc_cv_ld_no_dot_syms=no
28573 if test x"$ld_is_gold" = xyes; then
28574 gcc_cv_ld_no_dot_syms=yes
28575 elif test $in_tree_ld = yes ; then
28576 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
28577 gcc_cv_ld_no_dot_syms=yes
28579 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28580 cat > conftest1.s <<EOF
28581 .text
28582 bl .foo
28584 cat > conftest2.s <<EOF
28585 .section ".opd","aw"
28586 .align 3
28587 .globl foo
28588 .type foo,@function
28589 foo:
28590 .quad .LEfoo,.TOC.@tocbase,0
28591 .text
28592 .LEfoo:
28594 .size foo,.-.LEfoo
28596 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28597 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28598 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28599 gcc_cv_ld_no_dot_syms=yes
28601 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28606 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28607 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28609 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28614 $as_echo_n "checking linker large toc support... " >&6; }
28615 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28616 $as_echo_n "(cached) " >&6
28617 else
28618 gcc_cv_ld_large_toc=no
28619 if test x"$ld_is_gold" = xyes; then
28620 gcc_cv_ld_large_toc=yes
28621 elif test $in_tree_ld = yes ; then
28622 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
28623 gcc_cv_ld_large_toc=yes
28625 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28626 cat > conftest.s <<EOF
28627 .section ".tbss","awT",@nobits
28628 .align 3
28629 ie0: .space 8
28630 .global _start
28631 .text
28632 _start:
28633 addis 9,13,ie0@got@tprel@ha
28634 ld 9,ie0@got@tprel@l(9)
28636 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28637 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28638 gcc_cv_ld_large_toc=yes
28640 rm -f conftest conftest.o conftest.s
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28645 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28646 if test x"$gcc_cv_ld_large_toc" = xyes; then
28648 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28653 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28654 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28655 $as_echo_n "(cached) " >&6
28656 else
28657 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28658 cat > conftest.s <<EOF
28659 .global _start
28660 .text
28661 _start:
28662 addis 9,2,x@got@ha
28663 .section .data.rel.ro,"aw",@progbits
28664 .p2align 16
28665 .space 32768
28666 x: .quad .TOC.
28668 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28669 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28670 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)) }'`
28672 rm -f conftest conftest.o conftest.s
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28677 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28678 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28680 cat >>confdefs.h <<_ACEOF
28681 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28682 _ACEOF
28686 esac
28688 case "$target" in
28689 *-*-aix*)
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28691 $as_echo_n "checking linker large toc support... " >&6; }
28692 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28693 $as_echo_n "(cached) " >&6
28694 else
28695 gcc_cv_ld_large_toc=no
28696 if test x$gcc_cv_as != x ; then
28697 cat > conftest.s <<EOF
28698 .toc
28699 LC..1:
28700 .tc a[TC],a[RW]
28701 .extern a[RW]
28702 .csect .text[PR]
28703 .largetoctest:
28704 addis 9,LC..1@u(2)
28705 ld 3,LC..1@l(9)
28707 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28708 gcc_cv_ld_large_toc=yes
28710 rm -f conftest conftest.o conftest.s
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28715 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28716 if test x"$gcc_cv_ld_large_toc" = xyes; then
28718 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28722 esac
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28725 $as_echo_n "checking linker --build-id support... " >&6; }
28726 if test "${gcc_cv_ld_buildid+set}" = set; then :
28727 $as_echo_n "(cached) " >&6
28728 else
28729 gcc_cv_ld_buildid=no
28730 if test $in_tree_ld = yes ; then
28731 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28732 "$gcc_cv_gld_minor_version" -ge 18 -o \
28733 "$gcc_cv_gld_major_version" -gt 2 \
28734 && test $in_tree_ld_is_elf = yes; then
28735 gcc_cv_ld_buildid=yes
28737 elif test x$gcc_cv_ld != x; then
28738 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28739 gcc_cv_ld_buildid=yes
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28744 $as_echo "$gcc_cv_ld_buildid" >&6; }
28745 if test x"$gcc_cv_ld_buildid" = xyes; then
28747 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28751 # Check whether --enable-linker-build-id was given.
28752 if test "${enable_linker_build_id+set}" = set; then :
28753 enableval=$enable_linker_build_id;
28754 else
28755 enable_linker_build_id=no
28759 if test x"$enable_linker_build_id" = xyes; then
28760 if test x"$gcc_cv_ld_buildid" = xyes; then
28762 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28764 else
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28766 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28770 # In binutils 2.21, GNU ld gained support for new emulations fully
28771 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28773 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28774 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28775 $as_echo_n "(cached) " >&6
28776 else
28777 gcc_cv_ld_sol2_emulation=no
28778 if test $in_tree_ld = yes ; then
28779 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28780 "$gcc_cv_gld_minor_version" -ge 21 -o \
28781 "$gcc_cv_gld_major_version" -gt 2 \
28782 && test $in_tree_ld_is_elf = yes; then
28783 gcc_cv_ld_sol2_emulation=yes
28785 elif test x$gcc_cv_ld != x; then
28786 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28787 grep _sol2 > /dev/null; then
28788 gcc_cv_ld_sol2_emulation=yes
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28793 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28794 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28796 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28801 $as_echo_n "checking linker --sysroot support... " >&6; }
28802 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28803 $as_echo_n "(cached) " >&6
28804 else
28805 gcc_cv_ld_sysroot=no
28806 if test $in_tree_ld = yes ; then
28807 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
28808 gcc_cv_ld_sysroot=yes
28810 elif test x$gcc_cv_ld != x; then
28811 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28812 gcc_cv_ld_sysroot=yes
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28817 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28818 if test x"$gcc_cv_ld_sysroot" = xyes; then
28820 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28824 case $target in
28825 *-*-solaris2*)
28826 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28828 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28829 if test "${gcc_cv_solaris_crts+set}" = set; then :
28830 $as_echo_n "(cached) " >&6
28831 else
28832 gcc_cv_solaris_crts=no
28833 if test x$host != x$target; then
28834 if test "x$with_sysroot" = xyes; then
28835 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28836 else
28837 target_sysroot="${with_sysroot}"
28840 target_libdir="$target_sysroot/usr/lib"
28841 # At the time they were added, gcrt1.o became a symlink for backwards
28842 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28843 case $target in
28844 i?86-*-solaris2* | x86_64-*-solaris2*)
28845 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28847 sparc*-*-solaris2*)
28848 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28850 esac
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28853 $as_echo "$gcc_cv_solaris_crts" >&6; }
28855 esac
28856 if test x$gcc_cv_solaris_crts = xyes; then
28858 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28862 # Test for stack protector support in target C library.
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28864 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28865 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28866 $as_echo_n "(cached) " >&6
28867 else
28868 gcc_cv_libc_provides_ssp=no
28869 case "$target" in
28870 *-*-musl*)
28871 # All versions of musl provide stack protector
28872 gcc_cv_libc_provides_ssp=yes;;
28873 *-*-linux* | *-*-kfreebsd*-gnu)
28874 # glibc 2.4 and later provides __stack_chk_fail and
28875 # either __stack_chk_guard, or TLS access to stack guard canary.
28877 if test $glibc_version_major -gt 2 \
28878 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28879 gcc_cv_libc_provides_ssp=yes
28880 else
28882 if test -f $target_header_dir/features.h \
28883 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28884 $target_header_dir/features.h > /dev/null; then
28885 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28886 $target_header_dir/features.h > /dev/null && \
28887 test -f $target_header_dir/bits/uClibc_config.h && \
28888 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28889 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28890 gcc_cv_libc_provides_ssp=yes
28892 # all versions of Bionic support stack protector
28893 elif test -f $target_header_dir/sys/cdefs.h \
28894 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28895 $target_header_dir/sys/cdefs.h > /dev/null; then
28896 gcc_cv_libc_provides_ssp=yes
28900 *-*-gnu*)
28901 # Avoid complicated tests (see
28902 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28903 # simply assert that glibc does provide this, which is true for all
28904 # realistically usable GNU/Hurd configurations.
28905 # All supported versions of musl provide it as well
28906 gcc_cv_libc_provides_ssp=yes;;
28907 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28908 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28909 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28910 gcc_cv_libc_provides_ssp=yes
28911 else
28912 echo "no __stack_chk_fail on this target"
28916 *) gcc_cv_libc_provides_ssp=no ;;
28917 esac
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28920 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28922 if test x$gcc_cv_libc_provides_ssp = xyes; then
28924 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28928 # Check whether --enable-default-ssp was given.
28929 # Check whether --enable-default-ssp was given.
28930 if test "${enable_default_ssp+set}" = set; then :
28931 enableval=$enable_default_ssp;
28932 if test x$gcc_cv_libc_provides_ssp = xyes; then
28933 case "$target" in
28934 ia64*-*-*) enable_default_ssp=no ;;
28935 *) enable_default_ssp=$enableval ;;
28936 esac
28937 else
28938 enable_default_ssp=no
28940 else
28941 enable_default_ssp=no
28944 if test x$enable_default_ssp = xyes ; then
28946 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28951 # Test for <sys/sdt.h> on the target.
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28954 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28955 have_sys_sdt_h=no
28956 if test -f $target_header_dir/sys/sdt.h; then
28957 have_sys_sdt_h=yes
28959 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28963 $as_echo "$have_sys_sdt_h" >&6; }
28965 # Check if TFmode long double should be used by default or not.
28966 # Some glibc targets used DFmode long double, but with glibc 2.4
28967 # and later they can use TFmode.
28968 case "$target" in
28969 powerpc*-*-linux* | \
28970 sparc*-*-linux* | \
28971 s390*-*-linux* | \
28972 alpha*-*-linux*)
28974 # Check whether --with-long-double-128 was given.
28975 if test "${with_long_double_128+set}" = set; then :
28976 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28977 else
28979 if test $glibc_version_major -gt 2 \
28980 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28981 gcc_cv_target_ldbl128=yes
28982 else
28984 gcc_cv_target_ldbl128=no
28985 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28986 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28987 && gcc_cv_target_ldbl128=yes
28993 esac
28994 if test x$gcc_cv_target_ldbl128 = xyes; then
28996 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29000 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29001 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29002 gcc_cv_libc_provides_hwcap_in_tcb=no
29003 case "$target" in
29004 powerpc*-*-linux*)
29006 if test $glibc_version_major -gt 2 \
29007 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29008 gcc_cv_libc_provides_hwcap_in_tcb=yes
29011 esac
29012 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29014 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29019 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29020 gcc_cv_target_dl_iterate_phdr=unknown
29021 case "$target" in
29022 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29023 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29024 # libdl there, both complicating its use and breaking compatibility
29025 # between Solaris 10 updates.
29026 *-*-solaris2.1[1-9]*)
29027 # <link.h> needs both a dl_iterate_phdr declaration and support for
29028 # compilation with largefile support.
29029 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29030 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29031 gcc_cv_target_dl_iterate_phdr=yes
29032 else
29033 gcc_cv_target_dl_iterate_phdr=no
29036 *-*-dragonfly* | *-*-freebsd*)
29037 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29038 gcc_cv_target_dl_iterate_phdr=yes
29039 else
29040 gcc_cv_target_dl_iterate_phdr=no
29043 *-linux-musl*)
29044 gcc_cv_target_dl_iterate_phdr=yes
29046 esac
29048 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29050 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29054 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29056 # We no longer support different GC mechanisms. Emit an error if
29057 # the user configures with --with-gc.
29059 # Check whether --with-gc was given.
29060 if test "${with_gc+set}" = set; then :
29061 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29065 # Libraries to use on the host. This will normally be set by the top
29066 # level Makefile. Here we simply capture the value for our Makefile.
29067 if test -z "${HOST_LIBS+set}"; then
29068 HOST_LIBS=
29072 # Use the system's zlib library.
29074 # Use the system's zlib library.
29075 zlibdir="-L\$(top_builddir)/../zlib"
29076 zlibinc="-I\$(top_srcdir)/../zlib"
29078 # Check whether --with-system-zlib was given.
29079 if test "${with_system_zlib+set}" = set; then :
29080 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29081 zlibdir=
29082 zlibinc=
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29093 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29094 # Check whether --enable-maintainer-mode was given.
29095 if test "${enable_maintainer_mode+set}" = set; then :
29096 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29097 else
29098 maintainer_mode=no
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29103 $as_echo "$maintainer_mode" >&6; }
29105 if test "$maintainer_mode" = "yes"; then
29106 MAINT=''
29107 else
29108 MAINT='#'
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29113 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29114 # Check whether --enable-link-mutex was given.
29115 if test "${enable_link_mutex+set}" = set; then :
29116 enableval=$enable_link_mutex; do_link_mutex=$enableval
29117 else
29118 do_link_mutex=no
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29122 $as_echo "$do_link_mutex" >&6; }
29124 if test "$do_link_mutex" = "yes"; then
29125 DO_LINK_MUTEX=true
29126 else
29127 DO_LINK_MUTEX=false
29131 # --------------
29132 # Language hooks
29133 # --------------
29135 # Make empty files to contain the specs and options for each language.
29136 # Then add #include lines to for a compiler that has specs and/or options.
29138 subdirs=
29139 lang_opt_files=
29140 lang_specs_files=
29141 lang_tree_files=
29142 # These (without "all_") are set in each config-lang.in.
29143 # `language' must be a single word so is spelled singularly.
29144 all_languages=
29145 all_compilers=
29146 all_outputs='Makefile'
29147 # List of language makefile fragments.
29148 all_lang_makefrags=
29149 # Additional files for gengtype
29150 all_gtfiles="$target_gtfiles"
29152 # These are the languages that are set in --enable-languages,
29153 # and are available in the GCC tree.
29154 all_selected_languages=
29156 # Add the language fragments.
29157 # Languages are added via two mechanisms. Some information must be
29158 # recorded in makefile variables, these are defined in config-lang.in.
29159 # We accumulate them and plug them into the main Makefile.
29160 # The other mechanism is a set of hooks for each of the main targets
29161 # like `clean', `install', etc.
29163 language_hooks="Make-hooks"
29165 for lang in ${srcdir}/*/config-lang.in
29167 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29169 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29170 if test "x$lang_alias" = x
29171 then
29172 echo "$lang doesn't set \$language." 1>&2
29173 exit 1
29175 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29176 subdirs="$subdirs $subdir"
29178 # $gcc_subdir is where the gcc integration files are to be found
29179 # for a language, both for internal compiler purposes (compiler
29180 # sources implementing front-end to GCC tree converters), and for
29181 # build infrastructure purposes (Make-lang.in, etc.)
29183 # This will be <subdir> (relative to $srcdir) if a line like
29184 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29185 # is found in <langdir>/config-lang.in, and will remain <langdir>
29186 # otherwise.
29188 # Except for the language alias (fetched above), the regular
29189 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29190 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29191 # only this and the language alias.
29193 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29194 if [ "$gcc_subdir" = "" ]; then
29195 gcc_subdir="$subdir"
29198 case ",$enable_languages," in
29199 *,$lang_alias,*)
29200 all_selected_languages="$all_selected_languages $lang_alias"
29201 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29202 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29205 esac
29207 language=
29208 boot_language=
29209 compilers=
29210 outputs=
29211 gtfiles=
29212 subdir_requires=
29213 . ${srcdir}/$gcc_subdir/config-lang.in
29214 if test "x$language" = x
29215 then
29216 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29217 exit 1
29220 ok=:
29221 case ",$enable_languages," in
29222 *,$lang_alias,*) ;;
29224 for i in $subdir_requires; do
29225 test -f "${srcdir}/$i/config-lang.in" && continue
29226 ok=false
29227 break
29228 done
29230 esac
29231 $ok || continue
29233 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29234 if test -f $srcdir/$gcc_subdir/lang.opt; then
29235 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29236 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29238 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29239 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29241 all_languages="$all_languages $language"
29242 all_compilers="$all_compilers $compilers"
29243 all_outputs="$all_outputs $outputs"
29244 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29245 case ",$enable_languages," in
29246 *,lto,*)
29248 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29250 enable_lto=yes
29253 *) ;;
29254 esac
29255 done
29257 check_languages=
29258 for language in $all_selected_languages
29260 check_languages="$check_languages check-$language"
29261 done
29263 # We link each language in with a set of hooks, reached indirectly via
29264 # lang.${target}. Only do so for selected languages.
29266 rm -f Make-hooks
29267 touch Make-hooks
29268 target_list="all.cross start.encap rest.encap tags \
29269 install-common install-man install-info install-pdf install-html dvi \
29270 pdf html uninstall info man srcextra srcman srcinfo \
29271 mostlyclean clean distclean maintainer-clean install-plugin"
29273 for t in $target_list
29276 for lang in $all_selected_languages
29278 x="$x $lang.$t"
29279 done
29280 echo "lang.$t: $x" >> Make-hooks
29281 done
29283 # --------
29284 # Option include files
29285 # --------
29287 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29288 option_includes="option-includes.mk"
29291 # --------
29292 # UNSORTED
29293 # --------
29295 # Create .gdbinit.
29297 echo "dir ." > .gdbinit
29298 echo "dir ${srcdir}" >> .gdbinit
29299 if test x$gdb_needs_out_file_path = xyes
29300 then
29301 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29303 if test "x$subdirs" != x; then
29304 for s in $subdirs
29306 echo "dir ${srcdir}/$s" >> .gdbinit
29307 done
29309 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29310 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29312 # Put a breakpoint on __asan_report_error to help with debugging buffer
29313 # overflow.
29314 case "$CFLAGS" in
29315 *-fsanitize=address*)
29316 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29318 esac
29320 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29324 # Find a directory in which to install a shared libgcc.
29326 # Check whether --enable-version-specific-runtime-libs was given.
29327 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29328 enableval=$enable_version_specific_runtime_libs;
29332 # Substitute configuration variables
29395 # Echo link setup.
29396 if test x${build} = x${host} ; then
29397 if test x${host} = x${target} ; then
29398 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29399 else
29400 echo "Links are now set up to build a cross-compiler" 1>&2
29401 echo " from ${host} to ${target}." 1>&2
29403 else
29404 if test x${host} = x${target} ; then
29405 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29406 echo " for ${target}." 1>&2
29407 else
29408 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29409 echo " from ${host} to ${target}." 1>&2
29418 if test "x${ISLLIBS}" != "x" ; then
29420 $as_echo "#define HAVE_isl 1" >>confdefs.h
29424 # Check for plugin support
29425 # Check whether --enable-plugin was given.
29426 if test "${enable_plugin+set}" = set; then :
29427 enableval=$enable_plugin; enable_plugin=$enableval
29428 else
29429 enable_plugin=yes; default_plugin=yes
29433 pluginlibs=
29435 case "${host}" in
29436 *-*-darwin*)
29437 if test x$build = x$host; then
29438 export_sym_check="nm${exeext} -g"
29439 elif test x$host = x$target; then
29440 export_sym_check="$gcc_cv_nm -g"
29441 else
29442 export_sym_check=
29446 if test x$build = x$host; then
29447 export_sym_check="objdump${exeext} -T"
29448 elif test x$host = x$target; then
29449 export_sym_check="$gcc_cv_objdump -T"
29450 else
29451 export_sym_check=
29454 esac
29456 if test x"$enable_plugin" = x"yes"; then
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29459 $as_echo_n "checking for exported symbols... " >&6; }
29460 if test "x$export_sym_check" != x; then
29461 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29462 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29463 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29464 : # No need to use a flag
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29466 $as_echo "yes" >&6; }
29467 else
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29469 $as_echo "yes" >&6; }
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29471 $as_echo_n "checking for -rdynamic... " >&6; }
29472 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29473 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29474 plugin_rdynamic=yes
29475 pluginlibs="-rdynamic"
29476 else
29477 plugin_rdynamic=no
29478 enable_plugin=no
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29481 $as_echo "$plugin_rdynamic" >&6; }
29483 else
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29485 $as_echo "unable to check" >&6; }
29488 # Check -ldl
29489 saved_LIBS="$LIBS"
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29491 $as_echo_n "checking for library containing dlopen... " >&6; }
29492 if test "${ac_cv_search_dlopen+set}" = set; then :
29493 $as_echo_n "(cached) " >&6
29494 else
29495 ac_func_search_save_LIBS=$LIBS
29496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h. */
29499 /* Override any GCC internal prototype to avoid an error.
29500 Use char because int might match the return type of a GCC
29501 builtin and then its argument prototype would still apply. */
29502 #ifdef __cplusplus
29503 extern "C"
29504 #endif
29505 char dlopen ();
29507 main ()
29509 return dlopen ();
29511 return 0;
29513 _ACEOF
29514 for ac_lib in '' dl; do
29515 if test -z "$ac_lib"; then
29516 ac_res="none required"
29517 else
29518 ac_res=-l$ac_lib
29519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29521 if ac_fn_cxx_try_link "$LINENO"; then :
29522 ac_cv_search_dlopen=$ac_res
29524 rm -f core conftest.err conftest.$ac_objext \
29525 conftest$ac_exeext
29526 if test "${ac_cv_search_dlopen+set}" = set; then :
29527 break
29529 done
29530 if test "${ac_cv_search_dlopen+set}" = set; then :
29532 else
29533 ac_cv_search_dlopen=no
29535 rm conftest.$ac_ext
29536 LIBS=$ac_func_search_save_LIBS
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29539 $as_echo "$ac_cv_search_dlopen" >&6; }
29540 ac_res=$ac_cv_search_dlopen
29541 if test "$ac_res" != no; then :
29542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29546 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29547 pluginlibs="$pluginlibs -ldl"
29549 LIBS="$saved_LIBS"
29551 # Check that we can build shared objects with -fPIC -shared
29552 saved_LDFLAGS="$LDFLAGS"
29553 saved_CFLAGS="$CFLAGS"
29554 case "${host}" in
29555 *-*-darwin*)
29556 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29557 CFLAGS="$CFLAGS -fPIC"
29558 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29561 CFLAGS="$CFLAGS -fPIC"
29562 LDFLAGS="$LDFLAGS -fPIC -shared"
29564 esac
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29566 $as_echo_n "checking for -fPIC -shared... " >&6; }
29567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29568 /* end confdefs.h. */
29569 extern int X;
29571 main ()
29573 return X == 0;
29575 return 0;
29577 _ACEOF
29578 if ac_fn_cxx_try_link "$LINENO"; then :
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29580 $as_echo "yes" >&6; }; have_pic_shared=yes
29581 else
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29583 $as_echo "no" >&6; }; have_pic_shared=no
29585 rm -f core conftest.err conftest.$ac_objext \
29586 conftest$ac_exeext conftest.$ac_ext
29587 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29588 pluginlibs=
29589 enable_plugin=no
29591 LDFLAGS="$saved_LDFLAGS"
29592 CFLAGS="$saved_CFLAGS"
29594 # If plugin support had been requested but not available, fail.
29595 if test x"$enable_plugin" = x"no" ; then
29596 if test x"$default_plugin" != x"yes"; then
29597 as_fn_error "
29598 Building GCC with plugin support requires a host that supports
29599 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29606 if test x"$enable_plugin" = x"yes"; then
29608 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29613 # Enable --enable-host-shared
29614 # Check whether --enable-host-shared was given.
29615 if test "${enable_host_shared+set}" = set; then :
29616 enableval=$enable_host_shared; PICFLAG=-fPIC
29617 else
29618 PICFLAG=
29625 # Check whether --enable-libquadmath-support was given.
29626 if test "${enable_libquadmath_support+set}" = set; then :
29627 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29628 else
29629 ENABLE_LIBQUADMATH_SUPPORT=yes
29632 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29634 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29639 # Specify what hash style to use by default.
29641 # Check whether --with-linker-hash-style was given.
29642 if test "${with_linker_hash_style+set}" = set; then :
29643 withval=$with_linker_hash_style; case x"$withval" in
29644 xsysv)
29645 LINKER_HASH_STYLE=sysv
29647 xgnu)
29648 LINKER_HASH_STYLE=gnu
29650 xboth)
29651 LINKER_HASH_STYLE=both
29654 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29656 esac
29657 else
29658 LINKER_HASH_STYLE=''
29661 if test x"${LINKER_HASH_STYLE}" != x; then
29663 cat >>confdefs.h <<_ACEOF
29664 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29665 _ACEOF
29669 # Specify what should be the default of -fdiagnostics-color option.
29671 # Check whether --with-diagnostics-color was given.
29672 if test "${with_diagnostics_color+set}" = set; then :
29673 withval=$with_diagnostics_color; case x"$withval" in
29674 xnever)
29675 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29677 xauto)
29678 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29680 xauto-if-env)
29681 DIAGNOSTICS_COLOR_DEFAULT=-1
29683 xalways)
29684 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29687 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29689 esac
29690 else
29691 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29695 cat >>confdefs.h <<_ACEOF
29696 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29697 _ACEOF
29700 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29701 # of jit/jit-playback.c.
29702 cat > gcc-driver-name.h <<EOF
29703 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29706 # Check whether --enable-default-pie was given.
29707 # Check whether --enable-default-pie was given.
29708 if test "${enable_default_pie+set}" = set; then :
29709 enableval=$enable_default_pie; enable_default_pie=$enableval
29710 else
29711 enable_default_pie=no
29714 if test x$enable_default_pie = xyes ; then
29716 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29721 # Check if -fno-PIE works.
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29723 $as_echo_n "checking for -fno-PIE option... " >&6; }
29724 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29725 $as_echo_n "(cached) " >&6
29726 else
29727 saved_CXXFLAGS="$CXXFLAGS"
29728 CXXFLAGS="$CXXFLAGS -fno-PIE"
29729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29730 /* end confdefs.h. */
29731 int main(void) {return 0;}
29732 _ACEOF
29733 if ac_fn_cxx_try_compile "$LINENO"; then :
29734 gcc_cv_c_no_fpie=yes
29735 else
29736 gcc_cv_c_no_fpie=no
29738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29739 CXXFLAGS="$saved_CXXFLAGS"
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29742 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29743 if test "$gcc_cv_c_no_fpie" = "yes"; then
29744 NO_PIE_CFLAGS="-fno-PIE"
29748 # Check if -no-pie works.
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29750 $as_echo_n "checking for -no-pie option... " >&6; }
29751 if test "${gcc_cv_no_pie+set}" = set; then :
29752 $as_echo_n "(cached) " >&6
29753 else
29754 saved_LDFLAGS="$LDFLAGS"
29755 LDFLAGS="$LDFLAGS -no-pie"
29756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29757 /* end confdefs.h. */
29758 int main(void) {return 0;}
29759 _ACEOF
29760 if ac_fn_cxx_try_link "$LINENO"; then :
29761 gcc_cv_no_pie=yes
29762 else
29763 gcc_cv_no_pie=no
29765 rm -f core conftest.err conftest.$ac_objext \
29766 conftest$ac_exeext conftest.$ac_ext
29767 LDFLAGS="$saved_LDFLAGS"
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29770 $as_echo "$gcc_cv_no_pie" >&6; }
29771 if test "$gcc_cv_no_pie" = "yes"; then
29772 NO_PIE_FLAG="-no-pie"
29776 # Check linker supports '-z bndplt'
29777 ld_bndplt_support=no
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29779 $as_echo_n "checking linker -z bndplt option... " >&6; }
29780 if test x"$ld_is_gold" = xno; then
29781 if test $in_tree_ld = yes ; then
29782 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
29783 ld_bndplt_support=yes
29785 elif test x$gcc_cv_ld != x; then
29786 # Check if linker supports -a bndplt option
29787 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29788 ld_bndplt_support=yes
29792 if test x"$ld_bndplt_support" = xyes; then
29794 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29798 $as_echo "$ld_bndplt_support" >&6; }
29800 # Check linker supports '--push-state'/'--pop-state'
29801 ld_pushpopstate_support=no
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29803 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29804 if test x"$ld_is_gold" = xno; then
29805 if test $in_tree_ld = yes ; then
29806 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
29807 ld_pushpopstate_support=yes
29809 elif test x$gcc_cv_ld != x; then
29810 # Check if linker supports --push-state/--pop-state options
29811 if $gcc_cv_ld --help 2>/dev/null | grep -- '--push-state' > /dev/null; then
29812 ld_pushpopstate_support=yes
29816 if test x"$ld_pushpopstate_support" = xyes; then
29818 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29822 $as_echo "$ld_pushpopstate_support" >&6; }
29824 # Configure the subdirectories
29825 # AC_CONFIG_SUBDIRS($subdirs)
29827 # Create the Makefile
29828 # and configure language subdirectories
29829 ac_config_files="$ac_config_files $all_outputs"
29832 ac_config_commands="$ac_config_commands default"
29834 cat >confcache <<\_ACEOF
29835 # This file is a shell script that caches the results of configure
29836 # tests run on this system so they can be shared between configure
29837 # scripts and configure runs, see configure's option --config-cache.
29838 # It is not useful on other systems. If it contains results you don't
29839 # want to keep, you may remove or edit it.
29841 # config.status only pays attention to the cache file if you give it
29842 # the --recheck option to rerun configure.
29844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29846 # following values.
29848 _ACEOF
29850 # The following way of writing the cache mishandles newlines in values,
29851 # but we know of no workaround that is simple, portable, and efficient.
29852 # So, we kill variables containing newlines.
29853 # Ultrix sh set writes to stderr and can't be redirected directly,
29854 # and sets the high bit in the cache file unless we assign to the vars.
29856 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29857 eval ac_val=\$$ac_var
29858 case $ac_val in #(
29859 *${as_nl}*)
29860 case $ac_var in #(
29861 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29863 esac
29864 case $ac_var in #(
29865 _ | IFS | as_nl) ;; #(
29866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29867 *) { eval $ac_var=; unset $ac_var;} ;;
29868 esac ;;
29869 esac
29870 done
29872 (set) 2>&1 |
29873 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29874 *${as_nl}ac_space=\ *)
29875 # `set' does not quote correctly, so add quotes: double-quote
29876 # substitution turns \\\\ into \\, and sed turns \\ into \.
29877 sed -n \
29878 "s/'/'\\\\''/g;
29879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29880 ;; #(
29882 # `set' quotes correctly as required by POSIX, so do not add quotes.
29883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29885 esac |
29886 sort
29888 sed '
29889 /^ac_cv_env_/b end
29890 t clear
29891 :clear
29892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29893 t end
29894 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29895 :end' >>confcache
29896 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29897 if test -w "$cache_file"; then
29898 test "x$cache_file" != "x/dev/null" &&
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29900 $as_echo "$as_me: updating cache $cache_file" >&6;}
29901 cat confcache >$cache_file
29902 else
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29907 rm -f confcache
29909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29910 # Let make expand exec_prefix.
29911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29913 DEFS=-DHAVE_CONFIG_H
29915 ac_libobjs=
29916 ac_ltlibobjs=
29917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29918 # 1. Remove the extension, and $U if already installed.
29919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29920 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29922 # will be set to the directory where LIBOBJS objects are built.
29923 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29924 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29925 done
29926 LIBOBJS=$ac_libobjs
29928 LTLIBOBJS=$ac_ltlibobjs
29933 : ${CONFIG_STATUS=./config.status}
29934 ac_write_fail=0
29935 ac_clean_files_save=$ac_clean_files
29936 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29938 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29939 as_write_fail=0
29940 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29941 #! $SHELL
29942 # Generated by $as_me.
29943 # Run this file to recreate the current configuration.
29944 # Compiler output produced by configure, useful for debugging
29945 # configure, is in config.log if it exists.
29947 debug=false
29948 ac_cs_recheck=false
29949 ac_cs_silent=false
29951 SHELL=\${CONFIG_SHELL-$SHELL}
29952 export SHELL
29953 _ASEOF
29954 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29955 ## -------------------- ##
29956 ## M4sh Initialization. ##
29957 ## -------------------- ##
29959 # Be more Bourne compatible
29960 DUALCASE=1; export DUALCASE # for MKS sh
29961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29962 emulate sh
29963 NULLCMD=:
29964 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29965 # is contrary to our usage. Disable this feature.
29966 alias -g '${1+"$@"}'='"$@"'
29967 setopt NO_GLOB_SUBST
29968 else
29969 case `(set -o) 2>/dev/null` in #(
29970 *posix*) :
29971 set -o posix ;; #(
29972 *) :
29974 esac
29978 as_nl='
29980 export as_nl
29981 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29982 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29983 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29984 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29985 # Prefer a ksh shell builtin over an external printf program on Solaris,
29986 # but without wasting forks for bash or zsh.
29987 if test -z "$BASH_VERSION$ZSH_VERSION" \
29988 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29989 as_echo='print -r --'
29990 as_echo_n='print -rn --'
29991 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29992 as_echo='printf %s\n'
29993 as_echo_n='printf %s'
29994 else
29995 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29996 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29997 as_echo_n='/usr/ucb/echo -n'
29998 else
29999 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30000 as_echo_n_body='eval
30001 arg=$1;
30002 case $arg in #(
30003 *"$as_nl"*)
30004 expr "X$arg" : "X\\(.*\\)$as_nl";
30005 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30006 esac;
30007 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30009 export as_echo_n_body
30010 as_echo_n='sh -c $as_echo_n_body as_echo'
30012 export as_echo_body
30013 as_echo='sh -c $as_echo_body as_echo'
30016 # The user is always right.
30017 if test "${PATH_SEPARATOR+set}" != set; then
30018 PATH_SEPARATOR=:
30019 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30020 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30021 PATH_SEPARATOR=';'
30026 # IFS
30027 # We need space, tab and new line, in precisely that order. Quoting is
30028 # there to prevent editors from complaining about space-tab.
30029 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30030 # splitting by setting IFS to empty value.)
30031 IFS=" "" $as_nl"
30033 # Find who we are. Look in the path if we contain no directory separator.
30034 case $0 in #((
30035 *[\\/]* ) as_myself=$0 ;;
30036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037 for as_dir in $PATH
30039 IFS=$as_save_IFS
30040 test -z "$as_dir" && as_dir=.
30041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30042 done
30043 IFS=$as_save_IFS
30046 esac
30047 # We did not find ourselves, most probably we were run as `sh COMMAND'
30048 # in which case we are not to be found in the path.
30049 if test "x$as_myself" = x; then
30050 as_myself=$0
30052 if test ! -f "$as_myself"; then
30053 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30054 exit 1
30057 # Unset variables that we do not need and which cause bugs (e.g. in
30058 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30059 # suppresses any "Segmentation fault" message there. '((' could
30060 # trigger a bug in pdksh 5.2.14.
30061 for as_var in BASH_ENV ENV MAIL MAILPATH
30062 do eval test x\${$as_var+set} = xset \
30063 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30064 done
30065 PS1='$ '
30066 PS2='> '
30067 PS4='+ '
30069 # NLS nuisances.
30070 LC_ALL=C
30071 export LC_ALL
30072 LANGUAGE=C
30073 export LANGUAGE
30075 # CDPATH.
30076 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30079 # as_fn_error ERROR [LINENO LOG_FD]
30080 # ---------------------------------
30081 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30082 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30083 # script with status $?, using 1 if that was 0.
30084 as_fn_error ()
30086 as_status=$?; test $as_status -eq 0 && as_status=1
30087 if test "$3"; then
30088 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30089 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30091 $as_echo "$as_me: error: $1" >&2
30092 as_fn_exit $as_status
30093 } # as_fn_error
30096 # as_fn_set_status STATUS
30097 # -----------------------
30098 # Set $? to STATUS, without forking.
30099 as_fn_set_status ()
30101 return $1
30102 } # as_fn_set_status
30104 # as_fn_exit STATUS
30105 # -----------------
30106 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30107 as_fn_exit ()
30109 set +e
30110 as_fn_set_status $1
30111 exit $1
30112 } # as_fn_exit
30114 # as_fn_unset VAR
30115 # ---------------
30116 # Portably unset VAR.
30117 as_fn_unset ()
30119 { eval $1=; unset $1;}
30121 as_unset=as_fn_unset
30122 # as_fn_append VAR VALUE
30123 # ----------------------
30124 # Append the text in VALUE to the end of the definition contained in VAR. Take
30125 # advantage of any shell optimizations that allow amortized linear growth over
30126 # repeated appends, instead of the typical quadratic growth present in naive
30127 # implementations.
30128 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30129 eval 'as_fn_append ()
30131 eval $1+=\$2
30133 else
30134 as_fn_append ()
30136 eval $1=\$$1\$2
30138 fi # as_fn_append
30140 # as_fn_arith ARG...
30141 # ------------------
30142 # Perform arithmetic evaluation on the ARGs, and store the result in the
30143 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30144 # must be portable across $(()) and expr.
30145 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30146 eval 'as_fn_arith ()
30148 as_val=$(( $* ))
30150 else
30151 as_fn_arith ()
30153 as_val=`expr "$@" || test $? -eq 1`
30155 fi # as_fn_arith
30158 if expr a : '\(a\)' >/dev/null 2>&1 &&
30159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30160 as_expr=expr
30161 else
30162 as_expr=false
30165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30166 as_basename=basename
30167 else
30168 as_basename=false
30171 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30172 as_dirname=dirname
30173 else
30174 as_dirname=false
30177 as_me=`$as_basename -- "$0" ||
30178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30179 X"$0" : 'X\(//\)$' \| \
30180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30181 $as_echo X/"$0" |
30182 sed '/^.*\/\([^/][^/]*\)\/*$/{
30183 s//\1/
30186 /^X\/\(\/\/\)$/{
30187 s//\1/
30190 /^X\/\(\/\).*/{
30191 s//\1/
30194 s/.*/./; q'`
30196 # Avoid depending upon Character Ranges.
30197 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30198 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30199 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30200 as_cr_digits='0123456789'
30201 as_cr_alnum=$as_cr_Letters$as_cr_digits
30203 ECHO_C= ECHO_N= ECHO_T=
30204 case `echo -n x` in #(((((
30205 -n*)
30206 case `echo 'xy\c'` in
30207 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30208 xy) ECHO_C='\c';;
30209 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30210 ECHO_T=' ';;
30211 esac;;
30213 ECHO_N='-n';;
30214 esac
30216 rm -f conf$$ conf$$.exe conf$$.file
30217 if test -d conf$$.dir; then
30218 rm -f conf$$.dir/conf$$.file
30219 else
30220 rm -f conf$$.dir
30221 mkdir conf$$.dir 2>/dev/null
30223 if (echo >conf$$.file) 2>/dev/null; then
30224 if ln -s conf$$.file conf$$ 2>/dev/null; then
30225 as_ln_s='ln -s'
30226 # ... but there are two gotchas:
30227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30229 # In both cases, we have to default to `cp -p'.
30230 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30231 as_ln_s='cp -p'
30232 elif ln conf$$.file conf$$ 2>/dev/null; then
30233 as_ln_s=ln
30234 else
30235 as_ln_s='cp -p'
30237 else
30238 as_ln_s='cp -p'
30240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30241 rmdir conf$$.dir 2>/dev/null
30244 # as_fn_mkdir_p
30245 # -------------
30246 # Create "$as_dir" as a directory, including parents if necessary.
30247 as_fn_mkdir_p ()
30250 case $as_dir in #(
30251 -*) as_dir=./$as_dir;;
30252 esac
30253 test -d "$as_dir" || eval $as_mkdir_p || {
30254 as_dirs=
30255 while :; do
30256 case $as_dir in #(
30257 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30258 *) as_qdir=$as_dir;;
30259 esac
30260 as_dirs="'$as_qdir' $as_dirs"
30261 as_dir=`$as_dirname -- "$as_dir" ||
30262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30263 X"$as_dir" : 'X\(//\)[^/]' \| \
30264 X"$as_dir" : 'X\(//\)$' \| \
30265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30266 $as_echo X"$as_dir" |
30267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30268 s//\1/
30271 /^X\(\/\/\)[^/].*/{
30272 s//\1/
30275 /^X\(\/\/\)$/{
30276 s//\1/
30279 /^X\(\/\).*/{
30280 s//\1/
30283 s/.*/./; q'`
30284 test -d "$as_dir" && break
30285 done
30286 test -z "$as_dirs" || eval "mkdir $as_dirs"
30287 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30290 } # as_fn_mkdir_p
30291 if mkdir -p . 2>/dev/null; then
30292 as_mkdir_p='mkdir -p "$as_dir"'
30293 else
30294 test -d ./-p && rmdir ./-p
30295 as_mkdir_p=false
30298 if test -x / >/dev/null 2>&1; then
30299 as_test_x='test -x'
30300 else
30301 if ls -dL / >/dev/null 2>&1; then
30302 as_ls_L_option=L
30303 else
30304 as_ls_L_option=
30306 as_test_x='
30307 eval sh -c '\''
30308 if test -d "$1"; then
30309 test -d "$1/.";
30310 else
30311 case $1 in #(
30312 -*)set "./$1";;
30313 esac;
30314 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30315 ???[sx]*):;;*)false;;esac;fi
30316 '\'' sh
30319 as_executable_p=$as_test_x
30321 # Sed expression to map a string onto a valid CPP name.
30322 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30324 # Sed expression to map a string onto a valid variable name.
30325 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30328 exec 6>&1
30329 ## ----------------------------------- ##
30330 ## Main body of $CONFIG_STATUS script. ##
30331 ## ----------------------------------- ##
30332 _ASEOF
30333 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30336 # Save the log message, to keep $0 and so on meaningful, and to
30337 # report actual input values of CONFIG_FILES etc. instead of their
30338 # values after options handling.
30339 ac_log="
30340 This file was extended by $as_me, which was
30341 generated by GNU Autoconf 2.64. Invocation command line was
30343 CONFIG_FILES = $CONFIG_FILES
30344 CONFIG_HEADERS = $CONFIG_HEADERS
30345 CONFIG_LINKS = $CONFIG_LINKS
30346 CONFIG_COMMANDS = $CONFIG_COMMANDS
30347 $ $0 $@
30349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30352 _ACEOF
30354 case $ac_config_files in *"
30355 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30356 esac
30358 case $ac_config_headers in *"
30359 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30360 esac
30363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30364 # Files that config.status was made for.
30365 config_files="$ac_config_files"
30366 config_headers="$ac_config_headers"
30367 config_links="$ac_config_links"
30368 config_commands="$ac_config_commands"
30370 _ACEOF
30372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30373 ac_cs_usage="\
30374 \`$as_me' instantiates files and other configuration actions
30375 from templates according to the current configuration. Unless the files
30376 and actions are specified as TAGs, all are instantiated by default.
30378 Usage: $0 [OPTION]... [TAG]...
30380 -h, --help print this help, then exit
30381 -V, --version print version number and configuration settings, then exit
30382 -q, --quiet, --silent
30383 do not print progress messages
30384 -d, --debug don't remove temporary files
30385 --recheck update $as_me by reconfiguring in the same conditions
30386 --file=FILE[:TEMPLATE]
30387 instantiate the configuration file FILE
30388 --header=FILE[:TEMPLATE]
30389 instantiate the configuration header FILE
30391 Configuration files:
30392 $config_files
30394 Configuration headers:
30395 $config_headers
30397 Configuration links:
30398 $config_links
30400 Configuration commands:
30401 $config_commands
30403 Report bugs to the package provider."
30405 _ACEOF
30406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30407 ac_cs_version="\\
30408 config.status
30409 configured by $0, generated by GNU Autoconf 2.64,
30410 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30412 Copyright (C) 2009 Free Software Foundation, Inc.
30413 This config.status script is free software; the Free Software Foundation
30414 gives unlimited permission to copy, distribute and modify it."
30416 ac_pwd='$ac_pwd'
30417 srcdir='$srcdir'
30418 AWK='$AWK'
30419 test -n "\$AWK" || AWK=awk
30420 _ACEOF
30422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30423 # The default lists apply if the user does not specify any file.
30424 ac_need_defaults=:
30425 while test $# != 0
30427 case $1 in
30428 --*=*)
30429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30431 ac_shift=:
30434 ac_option=$1
30435 ac_optarg=$2
30436 ac_shift=shift
30438 esac
30440 case $ac_option in
30441 # Handling of the options.
30442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30443 ac_cs_recheck=: ;;
30444 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30445 $as_echo "$ac_cs_version"; exit ;;
30446 --debug | --debu | --deb | --de | --d | -d )
30447 debug=: ;;
30448 --file | --fil | --fi | --f )
30449 $ac_shift
30450 case $ac_optarg in
30451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30452 esac
30453 as_fn_append CONFIG_FILES " '$ac_optarg'"
30454 ac_need_defaults=false;;
30455 --header | --heade | --head | --hea )
30456 $ac_shift
30457 case $ac_optarg in
30458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30459 esac
30460 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30461 ac_need_defaults=false;;
30462 --he | --h)
30463 # Conflict between --help and --header
30464 as_fn_error "ambiguous option: \`$1'
30465 Try \`$0 --help' for more information.";;
30466 --help | --hel | -h )
30467 $as_echo "$ac_cs_usage"; exit ;;
30468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30470 ac_cs_silent=: ;;
30472 # This is an error.
30473 -*) as_fn_error "unrecognized option: \`$1'
30474 Try \`$0 --help' for more information." ;;
30476 *) as_fn_append ac_config_targets " $1"
30477 ac_need_defaults=false ;;
30479 esac
30480 shift
30481 done
30483 ac_configure_extra_args=
30485 if $ac_cs_silent; then
30486 exec 6>/dev/null
30487 ac_configure_extra_args="$ac_configure_extra_args --silent"
30490 _ACEOF
30491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30492 if \$ac_cs_recheck; then
30493 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30494 shift
30495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30496 CONFIG_SHELL='$SHELL'
30497 export CONFIG_SHELL
30498 exec "\$@"
30501 _ACEOF
30502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30503 exec 5>>config.log
30505 echo
30506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30507 ## Running $as_me. ##
30508 _ASBOX
30509 $as_echo "$ac_log"
30510 } >&5
30512 _ACEOF
30513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30515 # INIT-COMMANDS
30517 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30518 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30519 subdirs='$subdirs'
30521 _ACEOF
30523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30525 # Handling of arguments.
30526 for ac_config_target in $ac_config_targets
30528 case $ac_config_target in
30529 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30530 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30531 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30532 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30533 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30534 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30535 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30536 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30537 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30539 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30540 esac
30541 done
30544 # If the user did not use the arguments to specify the items to instantiate,
30545 # then the envvar interface is used. Set only those that are not.
30546 # We use the long form for the default assignment because of an extremely
30547 # bizarre bug on SunOS 4.1.3.
30548 if $ac_need_defaults; then
30549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30551 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30552 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30555 # Have a temporary directory for convenience. Make it in the build tree
30556 # simply because there is no reason against having it here, and in addition,
30557 # creating and moving files from /tmp can sometimes cause problems.
30558 # Hook for its removal unless debugging.
30559 # Note that there is a small window in which the directory will not be cleaned:
30560 # after its creation but before its name has been assigned to `$tmp'.
30561 $debug ||
30563 tmp=
30564 trap 'exit_status=$?
30565 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30567 trap 'as_fn_exit 1' 1 2 13 15
30569 # Create a (secure) tmp directory for tmp files.
30572 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30573 test -n "$tmp" && test -d "$tmp"
30574 } ||
30576 tmp=./conf$$-$RANDOM
30577 (umask 077 && mkdir "$tmp")
30578 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30580 # Set up the scripts for CONFIG_FILES section.
30581 # No need to generate them if there are no CONFIG_FILES.
30582 # This happens for instance with `./config.status config.h'.
30583 if test -n "$CONFIG_FILES"; then
30585 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30586 ac_cs_awk_getline=:
30587 ac_cs_awk_pipe_init=
30588 ac_cs_awk_read_file='
30589 while ((getline aline < (F[key])) > 0)
30590 print(aline)
30591 close(F[key])'
30592 ac_cs_awk_pipe_fini=
30593 else
30594 ac_cs_awk_getline=false
30595 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30596 ac_cs_awk_read_file='
30597 print "|#_!!_#|"
30598 print "cat " F[key] " &&"
30599 '$ac_cs_awk_pipe_init
30600 # The final `:' finishes the AND list.
30601 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30603 ac_cr=`echo X | tr X '\015'`
30604 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30605 # But we know of no other shell where ac_cr would be empty at this
30606 # point, so we can use a bashism as a fallback.
30607 if test "x$ac_cr" = x; then
30608 eval ac_cr=\$\'\\r\'
30610 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30611 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30612 ac_cs_awk_cr='\r'
30613 else
30614 ac_cs_awk_cr=$ac_cr
30617 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30618 _ACEOF
30620 # Create commands to substitute file output variables.
30622 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30623 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30624 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30625 echo "_ACAWK" &&
30626 echo "_ACEOF"
30627 } >conf$$files.sh &&
30628 . ./conf$$files.sh ||
30629 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30630 rm -f conf$$files.sh
30633 echo "cat >conf$$subs.awk <<_ACEOF" &&
30634 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30635 echo "_ACEOF"
30636 } >conf$$subs.sh ||
30637 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30638 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30639 ac_delim='%!_!# '
30640 for ac_last_try in false false false false false :; do
30641 . ./conf$$subs.sh ||
30642 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30644 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30645 if test $ac_delim_n = $ac_delim_num; then
30646 break
30647 elif $ac_last_try; then
30648 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30649 else
30650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30652 done
30653 rm -f conf$$subs.sh
30655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30656 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30657 _ACEOF
30658 sed -n '
30660 s/^/S["/; s/!.*/"]=/
30663 s/^[^!]*!//
30664 :repl
30665 t repl
30666 s/'"$ac_delim"'$//
30667 t delim
30670 s/\(.\{148\}\).*/\1/
30671 t more1
30672 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30675 b repl
30676 :more1
30677 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30680 s/.\{148\}//
30681 t nl
30682 :delim
30684 s/\(.\{148\}\).*/\1/
30685 t more2
30686 s/["\\]/\\&/g; s/^/"/; s/$/"/
30689 :more2
30690 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30693 s/.\{148\}//
30694 t delim
30695 ' <conf$$subs.awk | sed '
30696 /^[^""]/{
30698 s/\n//
30700 ' >>$CONFIG_STATUS || ac_write_fail=1
30701 rm -f conf$$subs.awk
30702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30703 _ACAWK
30704 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30705 for (key in S) S_is_set[key] = 1
30706 FS = "\a"
30707 \$ac_cs_awk_pipe_init
30710 line = $ 0
30711 nfields = split(line, field, "@")
30712 substed = 0
30713 len = length(field[1])
30714 for (i = 2; i < nfields; i++) {
30715 key = field[i]
30716 keylen = length(key)
30717 if (S_is_set[key]) {
30718 value = S[key]
30719 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30720 len += length(value) + length(field[++i])
30721 substed = 1
30722 } else
30723 len += 1 + keylen
30725 if (nfields == 3 && !substed) {
30726 key = field[2]
30727 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30728 \$ac_cs_awk_read_file
30729 next
30732 print line
30734 \$ac_cs_awk_pipe_fini
30735 _ACAWK
30736 _ACEOF
30737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30738 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30740 else
30742 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30743 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30744 _ACEOF
30746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30748 # trailing colons and then remove the whole line if VPATH becomes empty
30749 # (actually we leave an empty line to preserve line numbers).
30750 if test "x$srcdir" = x.; then
30751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30752 s/:*\$(srcdir):*/:/
30753 s/:*\${srcdir}:*/:/
30754 s/:*@srcdir@:*/:/
30755 s/^\([^=]*=[ ]*\):*/\1/
30756 s/:*$//
30757 s/^[^=]*=[ ]*$//
30761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30762 fi # test -n "$CONFIG_FILES"
30764 # Set up the scripts for CONFIG_HEADERS section.
30765 # No need to generate them if there are no CONFIG_HEADERS.
30766 # This happens for instance with `./config.status Makefile'.
30767 if test -n "$CONFIG_HEADERS"; then
30768 cat >"$tmp/defines.awk" <<\_ACAWK ||
30769 BEGIN {
30770 _ACEOF
30772 # Transform confdefs.h into an awk script `defines.awk', embedded as
30773 # here-document in config.status, that substitutes the proper values into
30774 # config.h.in to produce config.h.
30776 # Create a delimiter string that does not exist in confdefs.h, to ease
30777 # handling of long lines.
30778 ac_delim='%!_!# '
30779 for ac_last_try in false false :; do
30780 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30781 if test -z "$ac_t"; then
30782 break
30783 elif $ac_last_try; then
30784 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30785 else
30786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30788 done
30790 # For the awk script, D is an array of macro values keyed by name,
30791 # likewise P contains macro parameters if any. Preserve backslash
30792 # newline sequences.
30794 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30795 sed -n '
30796 s/.\{148\}/&'"$ac_delim"'/g
30797 t rset
30798 :rset
30799 s/^[ ]*#[ ]*define[ ][ ]*/ /
30800 t def
30802 :def
30803 s/\\$//
30804 t bsnl
30805 s/["\\]/\\&/g
30806 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30807 D["\1"]=" \3"/p
30808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30810 :bsnl
30811 s/["\\]/\\&/g
30812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30813 D["\1"]=" \3\\\\\\n"\\/p
30814 t cont
30815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30816 t cont
30818 :cont
30820 s/.\{148\}/&'"$ac_delim"'/g
30821 t clear
30822 :clear
30823 s/\\$//
30824 t bsnlc
30825 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30827 :bsnlc
30828 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30829 b cont
30830 ' <confdefs.h | sed '
30831 s/'"$ac_delim"'/"\\\
30832 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30835 for (key in D) D_is_set[key] = 1
30836 FS = "\a"
30838 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30839 line = \$ 0
30840 split(line, arg, " ")
30841 if (arg[1] == "#") {
30842 defundef = arg[2]
30843 mac1 = arg[3]
30844 } else {
30845 defundef = substr(arg[1], 2)
30846 mac1 = arg[2]
30848 split(mac1, mac2, "(") #)
30849 macro = mac2[1]
30850 prefix = substr(line, 1, index(line, defundef) - 1)
30851 if (D_is_set[macro]) {
30852 # Preserve the white space surrounding the "#".
30853 print prefix "define", macro P[macro] D[macro]
30854 next
30855 } else {
30856 # Replace #undef with comments. This is necessary, for example,
30857 # in the case of _POSIX_SOURCE, which is predefined and required
30858 # on some systems where configure will not decide to define it.
30859 if (defundef == "undef") {
30860 print "/*", prefix defundef, macro, "*/"
30861 next
30865 { print }
30866 _ACAWK
30867 _ACEOF
30868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30869 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30870 fi # test -n "$CONFIG_HEADERS"
30873 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30874 shift
30875 for ac_tag
30877 case $ac_tag in
30878 :[FHLC]) ac_mode=$ac_tag; continue;;
30879 esac
30880 case $ac_mode$ac_tag in
30881 :[FHL]*:*);;
30882 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30883 :[FH]-) ac_tag=-:-;;
30884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30885 esac
30886 ac_save_IFS=$IFS
30887 IFS=:
30888 set x $ac_tag
30889 IFS=$ac_save_IFS
30890 shift
30891 ac_file=$1
30892 shift
30894 case $ac_mode in
30895 :L) ac_source=$1;;
30896 :[FH])
30897 ac_file_inputs=
30898 for ac_f
30900 case $ac_f in
30901 -) ac_f="$tmp/stdin";;
30902 *) # Look for the file first in the build tree, then in the source tree
30903 # (if the path is not absolute). The absolute path cannot be DOS-style,
30904 # because $ac_f cannot contain `:'.
30905 test -f "$ac_f" ||
30906 case $ac_f in
30907 [\\/$]*) false;;
30908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30909 esac ||
30910 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30911 esac
30912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30913 as_fn_append ac_file_inputs " '$ac_f'"
30914 done
30916 # Let's still pretend it is `configure' which instantiates (i.e., don't
30917 # use $as_me), people would be surprised to read:
30918 # /* config.h. Generated by config.status. */
30919 configure_input='Generated from '`
30920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30921 `' by configure.'
30922 if test x"$ac_file" != x-; then
30923 configure_input="$ac_file. $configure_input"
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30925 $as_echo "$as_me: creating $ac_file" >&6;}
30927 # Neutralize special characters interpreted by sed in replacement strings.
30928 case $configure_input in #(
30929 *\&* | *\|* | *\\* )
30930 ac_sed_conf_input=`$as_echo "$configure_input" |
30931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30932 *) ac_sed_conf_input=$configure_input;;
30933 esac
30935 case $ac_tag in
30936 *:-:* | *:-) cat >"$tmp/stdin" \
30937 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30938 esac
30940 esac
30942 ac_dir=`$as_dirname -- "$ac_file" ||
30943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30944 X"$ac_file" : 'X\(//\)[^/]' \| \
30945 X"$ac_file" : 'X\(//\)$' \| \
30946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30947 $as_echo X"$ac_file" |
30948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30949 s//\1/
30952 /^X\(\/\/\)[^/].*/{
30953 s//\1/
30956 /^X\(\/\/\)$/{
30957 s//\1/
30960 /^X\(\/\).*/{
30961 s//\1/
30964 s/.*/./; q'`
30965 as_dir="$ac_dir"; as_fn_mkdir_p
30966 ac_builddir=.
30968 case "$ac_dir" in
30969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30972 # A ".." for each directory in $ac_dir_suffix.
30973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30974 case $ac_top_builddir_sub in
30975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30977 esac ;;
30978 esac
30979 ac_abs_top_builddir=$ac_pwd
30980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30981 # for backward compatibility:
30982 ac_top_builddir=$ac_top_build_prefix
30984 case $srcdir in
30985 .) # We are building in place.
30986 ac_srcdir=.
30987 ac_top_srcdir=$ac_top_builddir_sub
30988 ac_abs_top_srcdir=$ac_pwd ;;
30989 [\\/]* | ?:[\\/]* ) # Absolute name.
30990 ac_srcdir=$srcdir$ac_dir_suffix;
30991 ac_top_srcdir=$srcdir
30992 ac_abs_top_srcdir=$srcdir ;;
30993 *) # Relative name.
30994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30995 ac_top_srcdir=$ac_top_build_prefix$srcdir
30996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30997 esac
30998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31001 case $ac_mode in
31004 # CONFIG_FILE
31007 _ACEOF
31009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31010 # If the template does not know about datarootdir, expand it.
31011 # FIXME: This hack should be removed a few years after 2.60.
31012 ac_datarootdir_hack=; ac_datarootdir_seen=
31013 ac_sed_dataroot='
31014 /datarootdir/ {
31018 /@datadir@/p
31019 /@docdir@/p
31020 /@infodir@/p
31021 /@localedir@/p
31022 /@mandir@/p'
31023 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31024 *datarootdir*) ac_datarootdir_seen=yes;;
31025 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31027 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31028 _ACEOF
31029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31030 ac_datarootdir_hack='
31031 s&@datadir@&$datadir&g
31032 s&@docdir@&$docdir&g
31033 s&@infodir@&$infodir&g
31034 s&@localedir@&$localedir&g
31035 s&@mandir@&$mandir&g
31036 s&\\\${datarootdir}&$datarootdir&g' ;;
31037 esac
31038 _ACEOF
31040 # Neutralize VPATH when `$srcdir' = `.'.
31041 # Shell code in configure.ac might set extrasub.
31042 # FIXME: do we really want to maintain this feature?
31043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31044 ac_sed_extra="$ac_vpsub
31045 $extrasub
31046 _ACEOF
31047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31050 s|@configure_input@|$ac_sed_conf_input|;t t
31051 s&@top_builddir@&$ac_top_builddir_sub&;t t
31052 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31053 s&@srcdir@&$ac_srcdir&;t t
31054 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31055 s&@top_srcdir@&$ac_top_srcdir&;t t
31056 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31057 s&@builddir@&$ac_builddir&;t t
31058 s&@abs_builddir@&$ac_abs_builddir&;t t
31059 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31060 $ac_datarootdir_hack
31062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31063 if $ac_cs_awk_getline; then
31064 $AWK -f "$tmp/subs.awk"
31065 else
31066 $AWK -f "$tmp/subs.awk" | $SHELL
31067 fi >$tmp/out \
31068 || as_fn_error "could not create $ac_file" "$LINENO" 5
31070 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31074 which seems to be undefined. Please make sure it is defined." >&5
31075 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31076 which seems to be undefined. Please make sure it is defined." >&2;}
31078 rm -f "$tmp/stdin"
31079 case $ac_file in
31080 -) cat "$tmp/out" && rm -f "$tmp/out";;
31081 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31082 esac \
31083 || as_fn_error "could not create $ac_file" "$LINENO" 5
31087 # CONFIG_HEADER
31089 if test x"$ac_file" != x-; then
31091 $as_echo "/* $configure_input */" \
31092 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31093 } >"$tmp/config.h" \
31094 || as_fn_error "could not create $ac_file" "$LINENO" 5
31095 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31097 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31098 else
31099 rm -f "$ac_file"
31100 mv "$tmp/config.h" "$ac_file" \
31101 || as_fn_error "could not create $ac_file" "$LINENO" 5
31103 else
31104 $as_echo "/* $configure_input */" \
31105 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31106 || as_fn_error "could not create -" "$LINENO" 5
31111 # CONFIG_LINK
31114 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31116 else
31117 # Prefer the file from the source tree if names are identical.
31118 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31119 ac_source=$srcdir/$ac_source
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31123 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31125 if test ! -r "$ac_source"; then
31126 as_fn_error "$ac_source: file not found" "$LINENO" 5
31128 rm -f "$ac_file"
31130 # Try a relative symlink, then a hard link, then a copy.
31131 case $srcdir in
31132 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31133 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31134 esac
31135 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31136 ln "$ac_source" "$ac_file" 2>/dev/null ||
31137 cp -p "$ac_source" "$ac_file" ||
31138 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31141 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31142 $as_echo "$as_me: executing $ac_file commands" >&6;}
31144 esac
31147 case $ac_file$ac_mode in
31148 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31149 "gccdepdir":C)
31150 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31151 for lang in $subdirs c-family common
31153 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31154 done ;;
31155 "as":F) chmod +x as ;;
31156 "collect-ld":F) chmod +x collect-ld ;;
31157 "nm":F) chmod +x nm ;;
31158 "default":C)
31159 case ${CONFIG_HEADERS} in
31160 *auto-host.h:config.in*)
31161 echo > cstamp-h ;;
31162 esac
31163 # Make sure all the subdirs exist.
31164 for d in $subdirs doc build common c-family
31166 test -d $d || mkdir $d
31167 done
31170 esac
31171 done # for ac_tag
31174 as_fn_exit 0
31175 _ACEOF
31176 ac_clean_files=$ac_clean_files_save
31178 test $ac_write_fail = 0 ||
31179 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31182 # configure is writing to config.log, and then calls config.status.
31183 # config.status does its own redirection, appending to config.log.
31184 # Unfortunately, on DOS this fails, as config.log is still kept open
31185 # by configure, so config.status won't be able to write to it; its
31186 # output is simply discarded. So we exec the FD to /dev/null,
31187 # effectively closing config.log, so it can be properly (re)opened and
31188 # appended to by config.status. When coming back to configure, we
31189 # need to make the FD available again.
31190 if test "$no_create" != yes; then
31191 ac_cs_success=:
31192 ac_config_status_args=
31193 test "$silent" = yes &&
31194 ac_config_status_args="$ac_config_status_args --quiet"
31195 exec 5>/dev/null
31196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31197 exec 5>>config.log
31198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31199 # would make configure fail if this is the last instruction.
31200 $ac_cs_success || as_fn_exit $?
31202 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31204 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}