PR tree-optimization/83482
[official-gcc.git] / gcc / configure
blob39eb3c829307f4f38b434262f4cbc723d18a1d34
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 BUILD_SYSTEM_HEADER_DIR
723 SYSTEM_HEADER_DIR
725 CROSS
726 CATOBJEXT
727 GENCAT
728 INSTOBJEXT
729 DATADIRNAME
730 CATALOGS
731 POSUB
732 GMSGFMT
733 XGETTEXT
734 INCINTL
735 LIBINTL_DEP
736 LIBINTL
737 USE_NLS
738 get_gcc_base_ver
739 extra_opt_files
740 extra_modes_file
741 NATIVE_SYSTEM_HEADER_DIR
742 objext
743 manext
744 LIBICONV_DEP
745 LTLIBICONV
746 LIBICONV
747 LDEXP_LIB
748 EXTRA_GCC_LIBS
749 GNAT_LIBEXC
750 COLLECT2_LIBS
751 CXXDEPMODE
752 DEPDIR
753 am__leading_dot
754 doc_build_sys
757 BISON
758 FLEX
759 GENERATED_MANPAGES
760 BUILD_INFO
761 MAKEINFO
762 have_mktemp_command
763 make_compare_target
764 INSTALL_DATA
765 INSTALL_PROGRAM
766 INSTALL
767 ranlib_flags
768 RANLIB
770 LN_S
772 SET_MAKE
773 accel_dir_suffix
774 real_target_noncanonical
775 enable_as_accelerator
776 REPORT_BUGS_TEXI
777 REPORT_BUGS_TO
778 PKGVERSION
779 CONFIGURE_SPECS
780 enable_shared
781 enable_fixed_point
782 enable_decimal_float
783 with_float
784 with_cpu
785 enable_multiarch
786 enable_multilib
787 coverage_flags
788 valgrind_command
789 valgrind_path_defines
790 valgrind_path
791 TREECHECKING
792 nocommon_flag
793 noexception_flags
794 warn_cxxflags
795 warn_cflags
796 c_strict_warn
797 strict_warn
798 c_loose_warn
799 loose_warn
800 aliasing_flags
802 EGREP
803 GREP
804 CXXCPP
805 PICFLAG_FOR_TARGET
806 GNATMAKE
807 GNATBIND
808 ac_ct_CXX
809 CXXFLAGS
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
818 GENINSRC
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
821 TARGET_SYSTEM_ROOT
822 SYSROOT_CFLAGS_FOR_TARGET
823 target_subdir
824 host_subdir
825 build_subdir
826 build_libsubdir
827 target_noncanonical
828 host_noncanonical
829 target_os
830 target_vendor
831 target_cpu
832 target
833 host_os
834 host_vendor
835 host_cpu
836 host
837 build_os
838 build_vendor
839 build_cpu
840 build
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files='option_includes
880 language_hooks'
881 ac_user_opts='
882 enable_option_checking
883 with_build_libsubdir
884 with_local_prefix
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_gxx_include_dir
889 with_cpp_install_dir
890 enable_generated_files_in_srcdir
891 with_gnu_ld
892 with_ld
893 with_demangler_in_ld
894 with_gnu_as
895 with_as
896 enable_largefile
897 enable_build_format_warnings
898 enable_werror_always
899 enable_checking
900 enable_coverage
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
903 with_stabs
904 enable_multilib
905 enable_multiarch
906 enable___cxa_atexit
907 enable_decimal_float
908 enable_fixed_point
909 enable_threads
910 enable_tls
911 enable_vtable_verify
912 enable_objc_gc
913 with_dwarf2
914 enable_shared
915 with_specs
916 with_pkgversion
917 with_bugurl
918 enable_languages
919 with_multilib_list
920 enable_rpath
921 with_libiconv_prefix
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
924 enable_secureplt
925 enable_mingw_wildcard
926 enable_leading_mingw64_underscores
927 enable_cld
928 enable_frame_pointer
929 enable_win32_registry
930 enable_static
931 with_pic
932 enable_fast_install
933 enable_libtool_lock
934 enable_ld
935 enable_gold
936 with_plugin_ld
937 enable_gnu_indirect_function
938 enable_initfini_array
939 enable_comdat
940 enable_fix_cortex_a53_835769
941 enable_fix_cortex_a53_843419
942 with_glibc_version
943 enable_gnu_unique_object
944 enable_linker_build_id
945 enable_libssp
946 enable_default_ssp
947 with_long_double_128
948 with_gc
949 with_system_zlib
950 enable_maintainer_mode
951 enable_link_mutex
952 enable_version_specific_runtime_libs
953 enable_plugin
954 enable_host_shared
955 enable_libquadmath_support
956 with_linker_hash_style
957 with_diagnostics_color
958 enable_default_pie
960 ac_precious_vars='build_alias
961 host_alias
962 target_alias
964 CFLAGS
965 LDFLAGS
966 LIBS
967 CPPFLAGS
969 CXXFLAGS
971 CXXCPP
973 GMPLIBS
974 GMPINC
975 ISLLIBS
976 ISLINC'
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 ac_unrecognized_opts=
983 ac_unrecognized_sep=
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
986 cache_file=/dev/null
987 exec_prefix=NONE
988 no_create=
989 no_recursion=
990 prefix=NONE
991 program_prefix=NONE
992 program_suffix=NONE
993 program_transform_name=s,x,x,
994 silent=
995 site=
996 srcdir=
997 verbose=
998 x_includes=NONE
999 x_libraries=NONE
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE}'
1018 infodir='${datarootdir}/info'
1019 htmldir='${docdir}'
1020 dvidir='${docdir}'
1021 pdfdir='${docdir}'
1022 psdir='${docdir}'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1027 ac_prev=
1028 ac_dashdash=
1029 for ac_option
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1034 ac_prev=
1035 continue
1038 case $ac_option in
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 *) ac_optarg=yes ;;
1041 esac
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1045 case $ac_dashdash$ac_option in
1047 ac_dashdash=yes ;;
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 ac_prev=bindir ;;
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1069 -datadir | --datadir | --datadi | --datad)
1070 ac_prev=datadir ;;
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1081 -disable-* | --disable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=no ;;
1097 -docdir | --docdir | --docdi | --doc | --do)
1098 ac_prev=docdir ;;
1099 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1100 docdir=$ac_optarg ;;
1102 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1103 ac_prev=dvidir ;;
1104 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1105 dvidir=$ac_optarg ;;
1107 -enable-* | --enable-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error "invalid feature name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1116 "enable_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval enable_$ac_useropt=\$ac_optarg ;;
1123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1125 | --exec | --exe | --ex)
1126 ac_prev=exec_prefix ;;
1127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1129 | --exec=* | --exe=* | --ex=*)
1130 exec_prefix=$ac_optarg ;;
1132 -gas | --gas | --ga | --g)
1133 # Obsolete; use --with-gas.
1134 with_gas=yes ;;
1136 -help | --help | --hel | --he | -h)
1137 ac_init_help=long ;;
1138 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1139 ac_init_help=recursive ;;
1140 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1141 ac_init_help=short ;;
1143 -host | --host | --hos | --ho)
1144 ac_prev=host_alias ;;
1145 -host=* | --host=* | --hos=* | --ho=*)
1146 host_alias=$ac_optarg ;;
1148 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1149 ac_prev=htmldir ;;
1150 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1151 | --ht=*)
1152 htmldir=$ac_optarg ;;
1154 -includedir | --includedir | --includedi | --included | --include \
1155 | --includ | --inclu | --incl | --inc)
1156 ac_prev=includedir ;;
1157 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1158 | --includ=* | --inclu=* | --incl=* | --inc=*)
1159 includedir=$ac_optarg ;;
1161 -infodir | --infodir | --infodi | --infod | --info | --inf)
1162 ac_prev=infodir ;;
1163 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1164 infodir=$ac_optarg ;;
1166 -libdir | --libdir | --libdi | --libd)
1167 ac_prev=libdir ;;
1168 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1169 libdir=$ac_optarg ;;
1171 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1172 | --libexe | --libex | --libe)
1173 ac_prev=libexecdir ;;
1174 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1175 | --libexe=* | --libex=* | --libe=*)
1176 libexecdir=$ac_optarg ;;
1178 -localedir | --localedir | --localedi | --localed | --locale)
1179 ac_prev=localedir ;;
1180 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1181 localedir=$ac_optarg ;;
1183 -localstatedir | --localstatedir | --localstatedi | --localstated \
1184 | --localstate | --localstat | --localsta | --localst | --locals)
1185 ac_prev=localstatedir ;;
1186 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1187 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1188 localstatedir=$ac_optarg ;;
1190 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1191 ac_prev=mandir ;;
1192 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1193 mandir=$ac_optarg ;;
1195 -nfp | --nfp | --nf)
1196 # Obsolete; use --without-fp.
1197 with_fp=no ;;
1199 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1200 | --no-cr | --no-c | -n)
1201 no_create=yes ;;
1203 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205 no_recursion=yes ;;
1207 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1208 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1209 | --oldin | --oldi | --old | --ol | --o)
1210 ac_prev=oldincludedir ;;
1211 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1212 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1213 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1214 oldincludedir=$ac_optarg ;;
1216 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1217 ac_prev=prefix ;;
1218 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1219 prefix=$ac_optarg ;;
1221 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1222 | --program-pre | --program-pr | --program-p)
1223 ac_prev=program_prefix ;;
1224 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1225 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1226 program_prefix=$ac_optarg ;;
1228 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1229 | --program-suf | --program-su | --program-s)
1230 ac_prev=program_suffix ;;
1231 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1232 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1233 program_suffix=$ac_optarg ;;
1235 -program-transform-name | --program-transform-name \
1236 | --program-transform-nam | --program-transform-na \
1237 | --program-transform-n | --program-transform- \
1238 | --program-transform | --program-transfor \
1239 | --program-transfo | --program-transf \
1240 | --program-trans | --program-tran \
1241 | --progr-tra | --program-tr | --program-t)
1242 ac_prev=program_transform_name ;;
1243 -program-transform-name=* | --program-transform-name=* \
1244 | --program-transform-nam=* | --program-transform-na=* \
1245 | --program-transform-n=* | --program-transform-=* \
1246 | --program-transform=* | --program-transfor=* \
1247 | --program-transfo=* | --program-transf=* \
1248 | --program-trans=* | --program-tran=* \
1249 | --progr-tra=* | --program-tr=* | --program-t=*)
1250 program_transform_name=$ac_optarg ;;
1252 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1253 ac_prev=pdfdir ;;
1254 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1255 pdfdir=$ac_optarg ;;
1257 -psdir | --psdir | --psdi | --psd | --ps)
1258 ac_prev=psdir ;;
1259 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260 psdir=$ac_optarg ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 silent=yes ;;
1266 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1267 ac_prev=sbindir ;;
1268 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1269 | --sbi=* | --sb=*)
1270 sbindir=$ac_optarg ;;
1272 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1273 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1274 | --sharedst | --shareds | --shared | --share | --shar \
1275 | --sha | --sh)
1276 ac_prev=sharedstatedir ;;
1277 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1278 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1279 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1280 | --sha=* | --sh=*)
1281 sharedstatedir=$ac_optarg ;;
1283 -site | --site | --sit)
1284 ac_prev=site ;;
1285 -site=* | --site=* | --sit=*)
1286 site=$ac_optarg ;;
1288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1289 ac_prev=srcdir ;;
1290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1291 srcdir=$ac_optarg ;;
1293 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1294 | --syscon | --sysco | --sysc | --sys | --sy)
1295 ac_prev=sysconfdir ;;
1296 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1297 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1298 sysconfdir=$ac_optarg ;;
1300 -target | --target | --targe | --targ | --tar | --ta | --t)
1301 ac_prev=target_alias ;;
1302 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1303 target_alias=$ac_optarg ;;
1305 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306 verbose=yes ;;
1308 -version | --version | --versio | --versi | --vers | -V)
1309 ac_init_version=: ;;
1311 -with-* | --with-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=\$ac_optarg ;;
1327 -without-* | --without-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=no ;;
1343 --x)
1344 # Obsolete; use --with-x.
1345 with_x=yes ;;
1347 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1348 | --x-incl | --x-inc | --x-in | --x-i)
1349 ac_prev=x_includes ;;
1350 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1351 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1352 x_includes=$ac_optarg ;;
1354 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1355 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1356 ac_prev=x_libraries ;;
1357 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1358 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1359 x_libraries=$ac_optarg ;;
1361 -*) as_fn_error "unrecognized option: \`$ac_option'
1362 Try \`$0 --help' for more information."
1365 *=*)
1366 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367 # Reject names that are not valid shell variable names.
1368 case $ac_envvar in #(
1369 '' | [0-9]* | *[!_$as_cr_alnum]* )
1370 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1371 esac
1372 eval $ac_envvar=\$ac_optarg
1373 export $ac_envvar ;;
1376 # FIXME: should be removed in autoconf 3.0.
1377 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1378 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1380 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1383 esac
1384 done
1386 if test -n "$ac_prev"; then
1387 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1388 as_fn_error "missing argument to $ac_option"
1391 if test -n "$ac_unrecognized_opts"; then
1392 case $enable_option_checking in
1393 no) ;;
1394 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1395 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1396 esac
1399 # Check all directory arguments for consistency.
1400 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401 datadir sysconfdir sharedstatedir localstatedir includedir \
1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403 libdir localedir mandir
1405 eval ac_val=\$$ac_var
1406 # Remove trailing slashes.
1407 case $ac_val in
1408 */ )
1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1410 eval $ac_var=\$ac_val;;
1411 esac
1412 # Be sure to have absolute directory names.
1413 case $ac_val in
1414 [\\/$]* | ?:[\\/]* ) continue;;
1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1416 esac
1417 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1418 done
1420 # There might be people who depend on the old broken behavior: `$host'
1421 # used to hold the argument of --host etc.
1422 # FIXME: To remove some day.
1423 build=$build_alias
1424 host=$host_alias
1425 target=$target_alias
1427 # FIXME: To remove some day.
1428 if test "x$host_alias" != x; then
1429 if test "x$build_alias" = x; then
1430 cross_compiling=maybe
1431 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1432 If a cross compiler is detected then cross compile mode will be used." >&2
1433 elif test "x$build_alias" != "x$host_alias"; then
1434 cross_compiling=yes
1438 ac_tool_prefix=
1439 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441 test "$silent" = yes && exec 6>/dev/null
1444 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1445 ac_ls_di=`ls -di .` &&
1446 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1447 as_fn_error "working directory cannot be determined"
1448 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1449 as_fn_error "pwd does not report name of working directory"
1452 # Find the source files, if location was not specified.
1453 if test -z "$srcdir"; then
1454 ac_srcdir_defaulted=yes
1455 # Try the directory containing this script, then the parent directory.
1456 ac_confdir=`$as_dirname -- "$as_myself" ||
1457 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458 X"$as_myself" : 'X\(//\)[^/]' \| \
1459 X"$as_myself" : 'X\(//\)$' \| \
1460 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461 $as_echo X"$as_myself" |
1462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 s//\1/
1466 /^X\(\/\/\)[^/].*/{
1467 s//\1/
1470 /^X\(\/\/\)$/{
1471 s//\1/
1474 /^X\(\/\).*/{
1475 s//\1/
1478 s/.*/./; q'`
1479 srcdir=$ac_confdir
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 srcdir=..
1483 else
1484 ac_srcdir_defaulted=no
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1490 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491 ac_abs_confdir=`(
1492 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1493 pwd)`
1494 # When building in place, set srcdir=.
1495 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496 srcdir=.
1498 # Remove unnecessary trailing slashes from srcdir.
1499 # Double slashes in file names in object file debugging info
1500 # mess up M-x gdb in Emacs.
1501 case $srcdir in
1502 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503 esac
1504 for ac_var in $ac_precious_vars; do
1505 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_env_${ac_var}_value=\$${ac_var}
1507 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509 done
1512 # Report the --help message.
1514 if test "$ac_init_help" = "long"; then
1515 # Omit some internal or obsolete options to make the list less imposing.
1516 # This message is too long to be a string in the A/UX 3.1 sh.
1517 cat <<_ACEOF
1518 \`configure' configures this package to adapt to many kinds of systems.
1520 Usage: $0 [OPTION]... [VAR=VALUE]...
1522 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523 VAR=VALUE. See below for descriptions of some of the useful variables.
1525 Defaults for the options are specified in brackets.
1527 Configuration:
1528 -h, --help display this help and exit
1529 --help=short display options specific to this package
1530 --help=recursive display the short help of all the included packages
1531 -V, --version display version information and exit
1532 -q, --quiet, --silent do not print \`checking...' messages
1533 --cache-file=FILE cache test results in FILE [disabled]
1534 -C, --config-cache alias for \`--cache-file=config.cache'
1535 -n, --no-create do not create output files
1536 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1538 Installation directories:
1539 --prefix=PREFIX install architecture-independent files in PREFIX
1540 [$ac_default_prefix]
1541 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1542 [PREFIX]
1544 By default, \`make install' will install all the files in
1545 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1546 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1547 for instance \`--prefix=\$HOME'.
1549 For better control, use the options below.
1551 Fine tuning of the installation directories:
1552 --bindir=DIR user executables [EPREFIX/bin]
1553 --sbindir=DIR system admin executables [EPREFIX/sbin]
1554 --libexecdir=DIR program executables [EPREFIX/libexec]
1555 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1556 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1557 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1558 --libdir=DIR object code libraries [EPREFIX/lib]
1559 --includedir=DIR C header files [PREFIX/include]
1560 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1561 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1562 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1563 --infodir=DIR info documentation [DATAROOTDIR/info]
1564 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1565 --mandir=DIR man documentation [DATAROOTDIR/man]
1566 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1567 --htmldir=DIR html documentation [DOCDIR]
1568 --dvidir=DIR dvi documentation [DOCDIR]
1569 --pdfdir=DIR pdf documentation [DOCDIR]
1570 --psdir=DIR ps documentation [DOCDIR]
1571 _ACEOF
1573 cat <<\_ACEOF
1575 Program names:
1576 --program-prefix=PREFIX prepend PREFIX to installed program names
1577 --program-suffix=SUFFIX append SUFFIX to installed program names
1578 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1580 System types:
1581 --build=BUILD configure for building on BUILD [guessed]
1582 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1583 --target=TARGET configure for building compilers for TARGET [HOST]
1584 _ACEOF
1587 if test -n "$ac_init_help"; then
1589 cat <<\_ACEOF
1591 Optional Features:
1592 --disable-option-checking ignore unrecognized --enable/--with options
1593 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1594 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1595 --enable-generated-files-in-srcdir
1596 put copies of generated files in source dir intended
1597 for creating source tarballs for users without
1598 texinfo bison or flex
1599 --disable-largefile omit support for large files
1600 --disable-build-format-warnings
1601 don't use -Wformat while building GCC
1602 --enable-werror-always enable -Werror despite compiler version
1603 --enable-checking[=LIST]
1604 enable expensive run-time checks. With LIST, enable
1605 only specific categories of checks. Categories are:
1606 yes,no,all,none,release. Flags are:
1607 assert,df,extra,fold,gc,gcac,gimple,misc,
1608 rtlflag,rtl,runtime,tree,valgrind,types
1609 --enable-coverage[=LEVEL]
1610 enable compiler's code coverage collection. Use to
1611 measure compiler performance and locate unused parts
1612 of the compiler. With LEVEL, specify optimization.
1613 Values are opt, noopt, default is noopt
1614 --enable-gather-detailed-mem-stats
1615 enable detailed memory allocation stats gathering
1616 --enable-valgrind-annotations
1617 enable valgrind runtime interaction
1618 --enable-multilib enable library support for multiple ABIs
1619 --enable-multiarch enable support for multiarch paths
1620 --enable-__cxa_atexit enable __cxa_atexit for C++
1621 --enable-decimal-float={no,yes,bid,dpd}
1622 enable decimal float extension to C. Selecting 'bid'
1623 or 'dpd' choses which decimal floating point format
1624 to use
1625 --enable-fixed-point enable fixed-point arithmetic extension to C
1626 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1627 package
1628 --enable-tls enable or disable generation of tls code overriding
1629 the assembler check for tls support
1630 --enable-vtable-verify enable vtable verification feature
1631 --enable-objc-gc enable the use of Boehm's garbage collector with the
1632 GNU Objective-C runtime
1633 --disable-shared don't provide a shared libgcc
1634 --enable-languages=LIST specify which front-ends to build
1635 --disable-rpath do not hardcode runtime library paths
1636 --enable-sjlj-exceptions
1637 arrange to use setjmp/longjmp exception handling
1638 --enable-secureplt enable -msecure-plt by default for PowerPC
1639 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1640 Default to platform configuration
1641 --enable-leading-mingw64-underscores
1642 enable leading underscores on 64 bit mingw targets
1643 --enable-cld enable -mcld by default for 32bit x86
1644 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1646 --disable-win32-registry
1647 disable lookup of installation paths in the Registry
1648 on Windows hosts
1649 --enable-win32-registry enable registry lookup (default)
1650 --enable-win32-registry=KEY
1651 use KEY instead of GCC version as the last portion
1652 of the registry key
1653 --enable-shared[=PKGS] build shared libraries [default=yes]
1654 --enable-static[=PKGS] build static libraries [default=yes]
1655 --enable-fast-install[=PKGS]
1656 optimize for fast installation [default=yes]
1657 --disable-libtool-lock avoid locking (might break parallel builds)
1658 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1659 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1660 --enable-gnu-indirect-function
1661 enable the use of the @gnu_indirect_function to
1662 glibc systems
1663 --enable-initfini-array use .init_array/.fini_array sections
1664 --enable-comdat enable COMDAT group support
1666 --enable-fix-cortex-a53-835769
1667 enable workaround for AArch64 Cortex-A53 erratum
1668 835769 by default
1669 --disable-fix-cortex-a53-835769
1670 disable workaround for AArch64 Cortex-A53 erratum
1671 835769 by default
1674 --enable-fix-cortex-a53-843419
1675 enable workaround for AArch64 Cortex-A53 erratum
1676 843419 by default
1677 --disable-fix-cortex-a53-843419
1678 disable workaround for AArch64 Cortex-A53 erratum
1679 843419 by default
1681 --enable-gnu-unique-object
1682 enable the use of the @gnu_unique_object ELF
1683 extension on glibc systems
1684 --enable-linker-build-id
1685 compiler will always pass --build-id to linker
1686 --enable-libssp enable linking against libssp
1687 --enable-default-ssp enable Stack Smashing Protection as default
1688 --enable-maintainer-mode
1689 enable make rules and dependencies not useful (and
1690 sometimes confusing) to the casual installer
1691 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1692 thrashing on the build machine
1693 --enable-version-specific-runtime-libs
1694 specify that runtime libraries should be installed
1695 in a compiler-specific directory
1696 --enable-plugin enable plugin support
1697 --enable-host-shared build host code as shared libraries
1698 --disable-libquadmath-support
1699 disable libquadmath support for Fortran
1700 --enable-default-pie enable Position Independent Executable as default
1702 Optional Packages:
1703 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1704 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1705 --with-build-libsubdir=DIR Directory where to find libraries for build system
1706 --with-local-prefix=DIR specifies directory to put local include
1707 --with-native-system-header-dir=dir
1708 use dir as the directory to look for standard
1709 system header files in. Defaults to /usr/include.
1710 --with-build-sysroot=sysroot
1711 use sysroot as the system root during the build
1712 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1713 --with-gxx-include-dir=DIR
1714 specifies directory to put g++ header files
1715 --with-cpp-install-dir=DIR
1716 install the user visible C preprocessor in DIR
1717 (relative to PREFIX) as well as PREFIX/bin
1718 --with-gnu-ld arrange to work with GNU ld
1719 --with-ld arrange to use the specified ld (full pathname)
1720 --with-demangler-in-ld try to use demangler in GNU ld
1721 --with-gnu-as arrange to work with GNU as
1722 --with-as arrange to use the specified as (full pathname)
1723 --with-stabs arrange to use stabs instead of host debug format
1724 --with-dwarf2 force the default debug format to be DWARF 2
1725 --with-specs=SPECS add SPECS to driver command-line processing
1726 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1727 --with-bugurl=URL Direct users to URL to report a bug
1728 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1729 --with-gnu-ld assume the C compiler uses GNU ld default=no
1730 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1731 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1732 --with-gcc-major-version-only
1733 use only GCC major number in filesystem paths
1734 --with-pic try to use only PIC/non-PIC objects [default=use
1735 both]
1736 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1737 --with-plugin-ld=[ARG] specify the plugin linker
1738 --with-glibc-version=M.N
1739 assume GCC used with glibc version M.N or later
1740 --with-long-double-128 use 128-bit long double by default
1741 --with-gc={page,zone} this option is not supported anymore. It used to
1742 choose the garbage collection mechanism to use with
1743 the compiler
1744 --with-system-zlib use installed libz
1745 --with-linker-hash-style={sysv,gnu,both}
1746 specify the linker hash style
1747 --with-diagnostics-color={never,auto,auto-if-env,always}
1748 specify the default of -fdiagnostics-color option
1749 auto-if-env stands for -fdiagnostics-color=auto if
1750 GCC_COLOR environment variable is present and
1751 -fdiagnostics-color=never otherwise
1753 Some influential environment variables:
1754 CC C compiler command
1755 CFLAGS C compiler flags
1756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1757 nonstandard directory <lib dir>
1758 LIBS libraries to pass to the linker, e.g. -l<library>
1759 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1760 you have headers in a nonstandard directory <include dir>
1761 CXX C++ compiler command
1762 CXXFLAGS C++ compiler flags
1763 CXXCPP C++ preprocessor
1764 CPP C preprocessor
1765 GMPLIBS How to link GMP
1766 GMPINC How to find GMP include files
1767 ISLLIBS How to link isl
1768 ISLINC How to find isl include files
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1773 Report bugs to the package provider.
1774 _ACEOF
1775 ac_status=$?
1778 if test "$ac_init_help" = "recursive"; then
1779 # If there are subdirs, report their specific --help.
1780 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781 test -d "$ac_dir" ||
1782 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1783 continue
1784 ac_builddir=.
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795 esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1802 case $srcdir in
1803 .) # We are building in place.
1804 ac_srcdir=.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1811 *) # Relative name.
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1821 echo &&
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1824 echo &&
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1826 else
1827 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828 fi || ac_status=$?
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1830 done
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835 cat <<\_ACEOF
1836 configure
1837 generated by GNU Autoconf 2.64
1839 Copyright (C) 2009 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1842 _ACEOF
1843 exit
1846 ## ------------------------ ##
1847 ## Autoconf initialization. ##
1848 ## ------------------------ ##
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1886 } # ac_fn_c_try_compile
1888 # ac_fn_cxx_try_compile LINENO
1889 # ----------------------------
1890 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_compile ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext
1895 if { { ac_try="$ac_compile"
1896 case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_compile") 2>conftest.err
1903 ac_status=$?
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_cxx_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest.$ac_objext; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=1
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 return $ac_retval
1924 } # ac_fn_cxx_try_compile
1926 # ac_fn_cxx_try_cpp LINENO
1927 # ------------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_cxx_try_cpp ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } >/dev/null && {
1948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 }; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 ac_retval=1
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 return $ac_retval
1961 } # ac_fn_cxx_try_cpp
1963 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 # ---------------------------------------------------------
1965 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 # the include files in INCLUDES and setting the cache variable VAR
1967 # accordingly.
1968 ac_fn_cxx_check_header_mongrel ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1977 eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 else
1981 # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_cxx_try_compile "$LINENO"; then :
1990 ac_header_compiler=yes
1991 else
1992 ac_header_compiler=no
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_cxx_try_cpp "$LINENO"; then :
2006 ac_header_preproc=yes
2007 else
2008 ac_header_preproc=no
2010 rm -f conftest.err conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2014 # So? What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2016 yes:no: )
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 no:yes:* )
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 esac
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2038 $as_echo_n "(cached) " >&6
2039 else
2040 eval "$3=\$ac_header_compiler"
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 } # ac_fn_cxx_check_header_mongrel
2050 # ac_fn_cxx_try_run LINENO
2051 # ------------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2053 # that executables *can* be run.
2054 ac_fn_cxx_try_run ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if { { ac_try="$ac_link"
2058 case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_link") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2068 { { case "(($ac_try" in
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_try") 2>&5
2075 ac_status=$?
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; }; }; then :
2078 ac_retval=0
2079 else
2080 $as_echo "$as_me: program exited with status $ac_status" >&5
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 ac_retval=$ac_status
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 return $ac_retval
2090 } # ac_fn_cxx_try_run
2092 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2093 # ---------------------------------------------------------
2094 # Tests whether HEADER exists and can be compiled using the include files in
2095 # INCLUDES, setting the cache variable VAR accordingly.
2096 ac_fn_cxx_check_header_compile ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2102 $as_echo_n "(cached) " >&6
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_cxx_try_compile "$LINENO"; then :
2110 eval "$3=yes"
2111 else
2112 eval "$3=no"
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 } # ac_fn_cxx_check_header_compile
2123 # ac_fn_c_try_cpp LINENO
2124 # ----------------------
2125 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2126 ac_fn_c_try_cpp ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { { ac_try="$ac_cpp conftest.$ac_ext"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } >/dev/null && {
2145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 }; then :
2148 ac_retval=0
2149 else
2150 $as_echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 ac_retval=1
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 return $ac_retval
2158 } # ac_fn_c_try_cpp
2160 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2161 # ----------------------------------------------
2162 # Tries to find the compile-time value of EXPR in a program that includes
2163 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2164 # computed
2165 ac_fn_cxx_compute_int ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if test "$cross_compiling" = yes; then
2169 # Depending upon the size, compute the lo and hi bounds.
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2174 main ()
2176 static int test_array [1 - 2 * !(($2) >= 0)];
2177 test_array [0] = 0
2180 return 0;
2182 _ACEOF
2183 if ac_fn_cxx_try_compile "$LINENO"; then :
2184 ac_lo=0 ac_mid=0
2185 while :; do
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2190 main ()
2192 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 test_array [0] = 0
2196 return 0;
2198 _ACEOF
2199 if ac_fn_cxx_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid; break
2201 else
2202 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2203 if test $ac_lo -le $ac_mid; then
2204 ac_lo= ac_hi=
2205 break
2207 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 done
2211 else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2216 main ()
2218 static int test_array [1 - 2 * !(($2) < 0)];
2219 test_array [0] = 0
2222 return 0;
2224 _ACEOF
2225 if ac_fn_cxx_try_compile "$LINENO"; then :
2226 ac_hi=-1 ac_mid=-1
2227 while :; do
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2232 main ()
2234 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2235 test_array [0] = 0
2238 return 0;
2240 _ACEOF
2241 if ac_fn_cxx_try_compile "$LINENO"; then :
2242 ac_lo=$ac_mid; break
2243 else
2244 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2245 if test $ac_mid -le $ac_hi; then
2246 ac_lo= ac_hi=
2247 break
2249 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 done
2253 else
2254 ac_lo= ac_hi=
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 # Binary search between lo and hi bounds.
2260 while test "x$ac_lo" != "x$ac_hi"; do
2261 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2266 main ()
2268 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2269 test_array [0] = 0
2272 return 0;
2274 _ACEOF
2275 if ac_fn_cxx_try_compile "$LINENO"; then :
2276 ac_hi=$ac_mid
2277 else
2278 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 done
2282 case $ac_lo in #((
2283 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2284 '') ac_retval=1 ;;
2285 esac
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2290 static long int longval () { return $2; }
2291 static unsigned long int ulongval () { return $2; }
2292 #include <stdio.h>
2293 #include <stdlib.h>
2295 main ()
2298 FILE *f = fopen ("conftest.val", "w");
2299 if (! f)
2300 return 1;
2301 if (($2) < 0)
2303 long int i = longval ();
2304 if (i != ($2))
2305 return 1;
2306 fprintf (f, "%ld", i);
2308 else
2310 unsigned long int i = ulongval ();
2311 if (i != ($2))
2312 return 1;
2313 fprintf (f, "%lu", i);
2315 /* Do not output a trailing newline, as this causes \r\n confusion
2316 on some platforms. */
2317 return ferror (f) || fclose (f) != 0;
2320 return 0;
2322 _ACEOF
2323 if ac_fn_cxx_try_run "$LINENO"; then :
2324 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2325 else
2326 ac_retval=1
2328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2329 conftest.$ac_objext conftest.beam conftest.$ac_ext
2330 rm -f conftest.val
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 return $ac_retval
2336 } # ac_fn_cxx_compute_int
2338 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2339 # ---------------------------------------------
2340 # Tests whether TYPE exists after having included INCLUDES, setting cache
2341 # variable VAR accordingly.
2342 ac_fn_cxx_check_type ()
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346 $as_echo_n "checking for $2... " >&6; }
2347 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 eval "$3=no"
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2355 main ()
2357 if (sizeof ($2))
2358 return 0;
2360 return 0;
2362 _ACEOF
2363 if ac_fn_cxx_try_compile "$LINENO"; then :
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2368 main ()
2370 if (sizeof (($2)))
2371 return 0;
2373 return 0;
2375 _ACEOF
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2378 else
2379 eval "$3=yes"
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 eval ac_res=\$$3
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390 } # ac_fn_cxx_check_type
2392 # ac_fn_c_find_intX_t LINENO BITS VAR
2393 # -----------------------------------
2394 # Finds a signed integer type with width BITS, setting cache variable VAR
2395 # accordingly.
2396 ac_fn_c_find_intX_t ()
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2400 $as_echo_n "checking for int$2_t... " >&6; }
2401 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 eval "$3=no"
2405 for ac_type in int$2_t 'int' 'long int' \
2406 'long long int' 'short int' 'signed char'; do
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $ac_includes_default
2411 main ()
2413 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2414 test_array [0] = 0
2417 return 0;
2419 _ACEOF
2420 if ac_fn_cxx_try_compile "$LINENO"; then :
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2423 $ac_includes_default
2425 main ()
2427 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2428 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2429 test_array [0] = 0
2432 return 0;
2434 _ACEOF
2435 if ac_fn_cxx_try_compile "$LINENO"; then :
2437 else
2438 case $ac_type in #(
2439 int$2_t) :
2440 eval "$3=yes" ;; #(
2441 *) :
2442 eval "$3=\$ac_type" ;;
2443 esac
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 eval as_val=\$$3
2449 if test "x$as_val" = x""no; then :
2451 else
2452 break
2454 done
2456 eval ac_res=\$$3
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 } # ac_fn_c_find_intX_t
2463 # ac_fn_cxx_try_link LINENO
2464 # -------------------------
2465 # Try to link conftest.$ac_ext, and return whether this succeeded.
2466 ac_fn_cxx_try_link ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 rm -f conftest.$ac_objext conftest$ac_exeext
2470 if { { ac_try="$ac_link"
2471 case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474 esac
2475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2476 $as_echo "$ac_try_echo"; } >&5
2477 (eval "$ac_link") 2>conftest.err
2478 ac_status=$?
2479 if test -s conftest.err; then
2480 grep -v '^ *+' conftest.err >conftest.er1
2481 cat conftest.er1 >&5
2482 mv -f conftest.er1 conftest.err
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485 test $ac_status = 0; } && {
2486 test -z "$ac_cxx_werror_flag" ||
2487 test ! -s conftest.err
2488 } && test -s conftest$ac_exeext && {
2489 test "$cross_compiling" = yes ||
2490 $as_test_x conftest$ac_exeext
2491 }; then :
2492 ac_retval=0
2493 else
2494 $as_echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2497 ac_retval=1
2499 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2500 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2501 # interfere with the next link command; also delete a directory that is
2502 # left behind by Apple's compiler. We do this before executing the actions.
2503 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2504 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2505 return $ac_retval
2507 } # ac_fn_cxx_try_link
2509 # ac_fn_c_find_uintX_t LINENO BITS VAR
2510 # ------------------------------------
2511 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2512 # accordingly.
2513 ac_fn_c_find_uintX_t ()
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2517 $as_echo_n "checking for uint$2_t... " >&6; }
2518 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 eval "$3=no"
2522 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2523 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 $ac_includes_default
2528 main ()
2530 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2531 test_array [0] = 0
2534 return 0;
2536 _ACEOF
2537 if ac_fn_cxx_try_compile "$LINENO"; then :
2538 case $ac_type in #(
2539 uint$2_t) :
2540 eval "$3=yes" ;; #(
2541 *) :
2542 eval "$3=\$ac_type" ;;
2543 esac
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 eval as_val=\$$3
2547 if test "x$as_val" = x""no; then :
2549 else
2550 break
2552 done
2554 eval ac_res=\$$3
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559 } # ac_fn_c_find_uintX_t
2561 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2562 # ------------------------------------------------
2563 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2564 ac_fn_cxx_check_header_preproc ()
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2568 $as_echo_n "checking for $2... " >&6; }
2569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2574 #include <$2>
2575 _ACEOF
2576 if ac_fn_cxx_try_cpp "$LINENO"; then :
2577 eval "$3=yes"
2578 else
2579 eval "$3=no"
2581 rm -f conftest.err conftest.$ac_ext
2583 eval ac_res=\$$3
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585 $as_echo "$ac_res" >&6; }
2586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2588 } # ac_fn_cxx_check_header_preproc
2590 # ac_fn_cxx_check_func LINENO FUNC VAR
2591 # ------------------------------------
2592 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2593 ac_fn_cxx_check_func ()
2595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2597 $as_echo_n "checking for $2... " >&6; }
2598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2603 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2605 #define $2 innocuous_$2
2607 /* System header to define __stub macros and hopefully few prototypes,
2608 which can conflict with char $2 (); below.
2609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2610 <limits.h> exists even on freestanding compilers. */
2612 #ifdef __STDC__
2613 # include <limits.h>
2614 #else
2615 # include <assert.h>
2616 #endif
2618 #undef $2
2620 /* Override any GCC internal prototype to avoid an error.
2621 Use char because int might match the return type of a GCC
2622 builtin and then its argument prototype would still apply. */
2623 #ifdef __cplusplus
2624 extern "C"
2625 #endif
2626 char $2 ();
2627 /* The GNU C library defines this for functions which it implements
2628 to always fail with ENOSYS. Some functions are actually named
2629 something starting with __ and the normal name is an alias. */
2630 #if defined __stub_$2 || defined __stub___$2
2631 choke me
2632 #endif
2635 main ()
2637 return $2 ();
2639 return 0;
2641 _ACEOF
2642 if ac_fn_cxx_try_link "$LINENO"; then :
2643 eval "$3=yes"
2644 else
2645 eval "$3=no"
2647 rm -f core conftest.err conftest.$ac_objext \
2648 conftest$ac_exeext conftest.$ac_ext
2650 eval ac_res=\$$3
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2652 $as_echo "$ac_res" >&6; }
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2655 } # ac_fn_cxx_check_func
2657 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2658 # --------------------------------------
2659 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2660 ac_fn_cxx_check_decl ()
2662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2663 as_decl_name=`echo $2|sed 's/ *(.*//'`
2664 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2666 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2674 main ()
2676 #ifndef $as_decl_name
2677 #ifdef __cplusplus
2678 (void) $as_decl_use;
2679 #else
2680 (void) $as_decl_name;
2681 #endif
2682 #endif
2685 return 0;
2687 _ACEOF
2688 if ac_fn_cxx_try_compile "$LINENO"; then :
2689 eval "$3=yes"
2690 else
2691 eval "$3=no"
2693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2700 } # ac_fn_cxx_check_decl
2702 # ac_fn_c_try_link LINENO
2703 # -----------------------
2704 # Try to link conftest.$ac_ext, and return whether this succeeded.
2705 ac_fn_c_try_link ()
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 rm -f conftest.$ac_objext conftest$ac_exeext
2709 if { { ac_try="$ac_link"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2715 $as_echo "$ac_try_echo"; } >&5
2716 (eval "$ac_link") 2>conftest.err
2717 ac_status=$?
2718 if test -s conftest.err; then
2719 grep -v '^ *+' conftest.err >conftest.er1
2720 cat conftest.er1 >&5
2721 mv -f conftest.er1 conftest.err
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; } && {
2725 test -z "$ac_c_werror_flag" ||
2726 test ! -s conftest.err
2727 } && test -s conftest$ac_exeext && {
2728 test "$cross_compiling" = yes ||
2729 $as_test_x conftest$ac_exeext
2730 }; then :
2731 ac_retval=0
2732 else
2733 $as_echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 ac_retval=1
2738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2740 # interfere with the next link command; also delete a directory that is
2741 # left behind by Apple's compiler. We do this before executing the actions.
2742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2744 return $ac_retval
2746 } # ac_fn_c_try_link
2748 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2749 # ----------------------------------------------
2750 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2751 ac_fn_c_check_header_preproc ()
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755 $as_echo_n "checking for $2... " >&6; }
2756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2761 #include <$2>
2762 _ACEOF
2763 if ac_fn_c_try_cpp "$LINENO"; then :
2764 eval "$3=yes"
2765 else
2766 eval "$3=no"
2768 rm -f conftest.err conftest.$ac_ext
2770 eval ac_res=\$$3
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2772 $as_echo "$ac_res" >&6; }
2773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2775 } # ac_fn_c_check_header_preproc
2777 # ac_fn_c_check_func LINENO FUNC VAR
2778 # ----------------------------------
2779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2780 ac_fn_c_check_func ()
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2784 $as_echo_n "checking for $2... " >&6; }
2785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2792 #define $2 innocuous_$2
2794 /* System header to define __stub macros and hopefully few prototypes,
2795 which can conflict with char $2 (); below.
2796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2797 <limits.h> exists even on freestanding compilers. */
2799 #ifdef __STDC__
2800 # include <limits.h>
2801 #else
2802 # include <assert.h>
2803 #endif
2805 #undef $2
2807 /* Override any GCC internal prototype to avoid an error.
2808 Use char because int might match the return type of a GCC
2809 builtin and then its argument prototype would still apply. */
2810 #ifdef __cplusplus
2811 extern "C"
2812 #endif
2813 char $2 ();
2814 /* The GNU C library defines this for functions which it implements
2815 to always fail with ENOSYS. Some functions are actually named
2816 something starting with __ and the normal name is an alias. */
2817 #if defined __stub_$2 || defined __stub___$2
2818 choke me
2819 #endif
2822 main ()
2824 return $2 ();
2826 return 0;
2828 _ACEOF
2829 if ac_fn_c_try_link "$LINENO"; then :
2830 eval "$3=yes"
2831 else
2832 eval "$3=no"
2834 rm -f core conftest.err conftest.$ac_objext \
2835 conftest$ac_exeext conftest.$ac_ext
2837 eval ac_res=\$$3
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2839 $as_echo "$ac_res" >&6; }
2840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2842 } # ac_fn_c_check_func
2843 cat >config.log <<_ACEOF
2844 This file contains any messages produced by compilers while
2845 running configure, to aid debugging if configure makes a mistake.
2847 It was created by $as_me, which was
2848 generated by GNU Autoconf 2.64. Invocation command line was
2850 $ $0 $@
2852 _ACEOF
2853 exec 5>>config.log
2855 cat <<_ASUNAME
2856 ## --------- ##
2857 ## Platform. ##
2858 ## --------- ##
2860 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2861 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2862 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2863 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2864 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2866 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2867 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2869 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2870 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2871 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2872 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2873 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2874 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2875 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2877 _ASUNAME
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 $as_echo "PATH: $as_dir"
2885 done
2886 IFS=$as_save_IFS
2888 } >&5
2890 cat >&5 <<_ACEOF
2893 ## ----------- ##
2894 ## Core tests. ##
2895 ## ----------- ##
2897 _ACEOF
2900 # Keep a trace of the command line.
2901 # Strip out --no-create and --no-recursion so they do not pile up.
2902 # Strip out --silent because we don't want to record it for future runs.
2903 # Also quote any args containing shell meta-characters.
2904 # Make two passes to allow for proper duplicate-argument suppression.
2905 ac_configure_args=
2906 ac_configure_args0=
2907 ac_configure_args1=
2908 ac_must_keep_next=false
2909 for ac_pass in 1 2
2911 for ac_arg
2913 case $ac_arg in
2914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2916 | -silent | --silent | --silen | --sile | --sil)
2917 continue ;;
2918 *\'*)
2919 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2920 esac
2921 case $ac_pass in
2922 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2924 as_fn_append ac_configure_args1 " '$ac_arg'"
2925 if test $ac_must_keep_next = true; then
2926 ac_must_keep_next=false # Got value, back to normal.
2927 else
2928 case $ac_arg in
2929 *=* | --config-cache | -C | -disable-* | --disable-* \
2930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2932 | -with-* | --with-* | -without-* | --without-* | --x)
2933 case "$ac_configure_args0 " in
2934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2935 esac
2937 -* ) ac_must_keep_next=true ;;
2938 esac
2940 as_fn_append ac_configure_args " '$ac_arg'"
2942 esac
2943 done
2944 done
2945 { ac_configure_args0=; unset ac_configure_args0;}
2946 { ac_configure_args1=; unset ac_configure_args1;}
2948 # When interrupted or exit'd, cleanup temporary files, and complete
2949 # config.log. We remove comments because anyway the quotes in there
2950 # would cause problems or look ugly.
2951 # WARNING: Use '\'' to represent an apostrophe within the trap.
2952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2953 trap 'exit_status=$?
2954 # Save into config.log some information that might help in debugging.
2956 echo
2958 cat <<\_ASBOX
2959 ## ---------------- ##
2960 ## Cache variables. ##
2961 ## ---------------- ##
2962 _ASBOX
2963 echo
2964 # The following way of writing the cache mishandles newlines in values,
2966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2967 eval ac_val=\$$ac_var
2968 case $ac_val in #(
2969 *${as_nl}*)
2970 case $ac_var in #(
2971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2973 esac
2974 case $ac_var in #(
2975 _ | IFS | as_nl) ;; #(
2976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2977 *) { eval $ac_var=; unset $ac_var;} ;;
2978 esac ;;
2979 esac
2980 done
2981 (set) 2>&1 |
2982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2983 *${as_nl}ac_space=\ *)
2984 sed -n \
2985 "s/'\''/'\''\\\\'\'''\''/g;
2986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2987 ;; #(
2989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2991 esac |
2992 sort
2994 echo
2996 cat <<\_ASBOX
2997 ## ----------------- ##
2998 ## Output variables. ##
2999 ## ----------------- ##
3000 _ASBOX
3001 echo
3002 for ac_var in $ac_subst_vars
3004 eval ac_val=\$$ac_var
3005 case $ac_val in
3006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3007 esac
3008 $as_echo "$ac_var='\''$ac_val'\''"
3009 done | sort
3010 echo
3012 if test -n "$ac_subst_files"; then
3013 cat <<\_ASBOX
3014 ## ------------------- ##
3015 ## File substitutions. ##
3016 ## ------------------- ##
3017 _ASBOX
3018 echo
3019 for ac_var in $ac_subst_files
3021 eval ac_val=\$$ac_var
3022 case $ac_val in
3023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3024 esac
3025 $as_echo "$ac_var='\''$ac_val'\''"
3026 done | sort
3027 echo
3030 if test -s confdefs.h; then
3031 cat <<\_ASBOX
3032 ## ----------- ##
3033 ## confdefs.h. ##
3034 ## ----------- ##
3035 _ASBOX
3036 echo
3037 cat confdefs.h
3038 echo
3040 test "$ac_signal" != 0 &&
3041 $as_echo "$as_me: caught signal $ac_signal"
3042 $as_echo "$as_me: exit $exit_status"
3043 } >&5
3044 rm -f core *.core core.conftest.* &&
3045 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3046 exit $exit_status
3048 for ac_signal in 1 2 13 15; do
3049 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3050 done
3051 ac_signal=0
3053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3054 rm -f -r conftest* confdefs.h
3056 $as_echo "/* confdefs.h */" > confdefs.h
3058 # Predefined preprocessor variables.
3060 cat >>confdefs.h <<_ACEOF
3061 #define PACKAGE_NAME "$PACKAGE_NAME"
3062 _ACEOF
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3066 _ACEOF
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3070 _ACEOF
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_STRING "$PACKAGE_STRING"
3074 _ACEOF
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3078 _ACEOF
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_URL "$PACKAGE_URL"
3082 _ACEOF
3085 # Let the site file select an alternate cache file if it wants to.
3086 # Prefer an explicitly selected file to automatically selected ones.
3087 ac_site_file1=NONE
3088 ac_site_file2=NONE
3089 if test -n "$CONFIG_SITE"; then
3090 ac_site_file1=$CONFIG_SITE
3091 elif test "x$prefix" != xNONE; then
3092 ac_site_file1=$prefix/share/config.site
3093 ac_site_file2=$prefix/etc/config.site
3094 else
3095 ac_site_file1=$ac_default_prefix/share/config.site
3096 ac_site_file2=$ac_default_prefix/etc/config.site
3098 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3100 test "x$ac_site_file" = xNONE && continue
3101 if test -r "$ac_site_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3104 sed 's/^/| /' "$ac_site_file" >&5
3105 . "$ac_site_file"
3107 done
3109 if test -r "$cache_file"; then
3110 # Some versions of bash will fail to source /dev/null (special
3111 # files actually), so we avoid doing that.
3112 if test -f "$cache_file"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3114 $as_echo "$as_me: loading cache $cache_file" >&6;}
3115 case $cache_file in
3116 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3117 *) . "./$cache_file";;
3118 esac
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3122 $as_echo "$as_me: creating cache $cache_file" >&6;}
3123 >$cache_file
3126 # Check that the precious variables saved in the cache have kept the same
3127 # value.
3128 ac_cache_corrupted=false
3129 for ac_var in $ac_precious_vars; do
3130 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3131 eval ac_new_set=\$ac_env_${ac_var}_set
3132 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3133 eval ac_new_val=\$ac_env_${ac_var}_value
3134 case $ac_old_set,$ac_new_set in
3135 set,)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3138 ac_cache_corrupted=: ;;
3139 ,set)
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3142 ac_cache_corrupted=: ;;
3143 ,);;
3145 if test "x$ac_old_val" != "x$ac_new_val"; then
3146 # differences in whitespace do not lead to failure.
3147 ac_old_val_w=`echo x $ac_old_val`
3148 ac_new_val_w=`echo x $ac_new_val`
3149 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3152 ac_cache_corrupted=:
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3156 eval $ac_var=\$ac_old_val
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3159 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3161 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3162 fi;;
3163 esac
3164 # Pass precious variables to config.status.
3165 if test "$ac_new_set" = set; then
3166 case $ac_new_val in
3167 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3168 *) ac_arg=$ac_var=$ac_new_val ;;
3169 esac
3170 case " $ac_configure_args " in
3171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3172 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3173 esac
3175 done
3176 if $ac_cache_corrupted; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3181 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3183 ## -------------------- ##
3184 ## Main body of script. ##
3185 ## -------------------- ##
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3201 gcc_version=`cat $srcdir/BASE-VER`
3203 # Determine the host, build, and target systems
3204 ac_aux_dir=
3205 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3206 for ac_t in install-sh install.sh shtool; do
3207 if test -f "$ac_dir/$ac_t"; then
3208 ac_aux_dir=$ac_dir
3209 ac_install_sh="$ac_aux_dir/$ac_t -c"
3210 break 2
3212 done
3213 done
3214 if test -z "$ac_aux_dir"; then
3215 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3218 # These three variables are undocumented and unsupported,
3219 # and are intended to be withdrawn in a future Autoconf release.
3220 # They can cause serious problems if a builder's source tree is in a directory
3221 # whose full name contains unusual characters.
3222 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3223 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3224 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3227 # Make sure we can run config.sub.
3228 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3229 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3232 $as_echo_n "checking build system type... " >&6; }
3233 if test "${ac_cv_build+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 ac_build_alias=$build_alias
3237 test "x$ac_build_alias" = x &&
3238 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3239 test "x$ac_build_alias" = x &&
3240 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3241 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3242 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3246 $as_echo "$ac_cv_build" >&6; }
3247 case $ac_cv_build in
3248 *-*-*) ;;
3249 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3250 esac
3251 build=$ac_cv_build
3252 ac_save_IFS=$IFS; IFS='-'
3253 set x $ac_cv_build
3254 shift
3255 build_cpu=$1
3256 build_vendor=$2
3257 shift; shift
3258 # Remember, the first character of IFS is used to create $*,
3259 # except with old shells:
3260 build_os=$*
3261 IFS=$ac_save_IFS
3262 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3266 $as_echo_n "checking host system type... " >&6; }
3267 if test "${ac_cv_host+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test "x$host_alias" = x; then
3271 ac_cv_host=$ac_cv_build
3272 else
3273 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3274 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3279 $as_echo "$ac_cv_host" >&6; }
3280 case $ac_cv_host in
3281 *-*-*) ;;
3282 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3283 esac
3284 host=$ac_cv_host
3285 ac_save_IFS=$IFS; IFS='-'
3286 set x $ac_cv_host
3287 shift
3288 host_cpu=$1
3289 host_vendor=$2
3290 shift; shift
3291 # Remember, the first character of IFS is used to create $*,
3292 # except with old shells:
3293 host_os=$*
3294 IFS=$ac_save_IFS
3295 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3299 $as_echo_n "checking target system type... " >&6; }
3300 if test "${ac_cv_target+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test "x$target_alias" = x; then
3304 ac_cv_target=$ac_cv_host
3305 else
3306 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3307 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3312 $as_echo "$ac_cv_target" >&6; }
3313 case $ac_cv_target in
3314 *-*-*) ;;
3315 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3316 esac
3317 target=$ac_cv_target
3318 ac_save_IFS=$IFS; IFS='-'
3319 set x $ac_cv_target
3320 shift
3321 target_cpu=$1
3322 target_vendor=$2
3323 shift; shift
3324 # Remember, the first character of IFS is used to create $*,
3325 # except with old shells:
3326 target_os=$*
3327 IFS=$ac_save_IFS
3328 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3331 # The aliases save the names the user supplied, while $host etc.
3332 # will get canonicalized.
3333 test -n "$target_alias" &&
3334 test "$program_prefix$program_suffix$program_transform_name" = \
3335 NONENONEs,x,x, &&
3336 program_prefix=${target_alias}-
3338 # Determine the noncanonical host name, for Ada.
3339 case ${build_alias} in
3340 "") build_noncanonical=${build} ;;
3341 *) build_noncanonical=${build_alias} ;;
3342 esac
3344 case ${host_alias} in
3345 "") host_noncanonical=${build_noncanonical} ;;
3346 *) host_noncanonical=${host_alias} ;;
3347 esac
3352 # Determine the noncanonical target name, for directory use.
3353 case ${target_alias} in
3354 "") target_noncanonical=${host_noncanonical} ;;
3355 *) target_noncanonical=${target_alias} ;;
3356 esac
3361 # Used for constructing correct paths for offload compilers.
3362 real_target_noncanonical=${target_noncanonical}
3363 accel_dir_suffix=
3365 # Determine the target- and build-specific subdirectories
3367 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3368 # have matching libraries, they should use host libraries: Makefile.tpl
3369 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3370 # However, they still use the build modules, because the corresponding
3371 # host modules (e.g. bison) are only built for the host when bootstrap
3372 # finishes. So:
3373 # - build_subdir is where we find build modules, and never changes.
3374 # - build_libsubdir is where we find build libraries, and can be overridden.
3376 # Prefix 'build-' so this never conflicts with target_subdir.
3377 build_subdir="build-${build_noncanonical}"
3379 # Check whether --with-build-libsubdir was given.
3380 if test "${with_build_libsubdir+set}" = set; then :
3381 withval=$with_build_libsubdir; build_libsubdir="$withval"
3382 else
3383 build_libsubdir="$build_subdir"
3386 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3387 if ( test $srcdir = . && test -d gcc ) \
3388 || test -d $srcdir/../host-${host_noncanonical}; then
3389 host_subdir="host-${host_noncanonical}"
3390 else
3391 host_subdir=.
3393 # No prefix.
3394 target_subdir=${target_noncanonical}
3397 # Set program_transform_name
3398 test "$program_prefix" != NONE &&
3399 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3400 # Use a double $ so make ignores it.
3401 test "$program_suffix" != NONE &&
3402 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3403 # Double any \ or $.
3404 # By default was `s,x,x', remove it if useless.
3405 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3406 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3409 # Check for bogus environment variables.
3410 # Test if LIBRARY_PATH contains the notation for the current directory
3411 # since this would lead to problems installing/building glibc.
3412 # LIBRARY_PATH contains the current directory if one of the following
3413 # is true:
3414 # - one of the terminals (":" and ";") is the first or last sign
3415 # - two terminals occur directly after each other
3416 # - the path contains an element with a dot in it
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3418 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3419 case ${LIBRARY_PATH} in
3420 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3421 library_path_setting="contains current directory"
3424 library_path_setting="ok"
3426 esac
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3428 $as_echo "$library_path_setting" >&6; }
3429 if test "$library_path_setting" != "ok"; then
3430 as_fn_error "
3431 *** LIBRARY_PATH shouldn't contain the current directory when
3432 *** building gcc. Please change the environment variable
3433 *** and run configure again." "$LINENO" 5
3436 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3437 # since this would lead to problems installing/building glibc.
3438 # GCC_EXEC_PREFIX contains the current directory if one of the following
3439 # is true:
3440 # - one of the terminals (":" and ";") is the first or last sign
3441 # - two terminals occur directly after each other
3442 # - the path contains an element with a dot in it
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3444 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3445 case ${GCC_EXEC_PREFIX} in
3446 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3447 gcc_exec_prefix_setting="contains current directory"
3450 gcc_exec_prefix_setting="ok"
3452 esac
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3454 $as_echo "$gcc_exec_prefix_setting" >&6; }
3455 if test "$gcc_exec_prefix_setting" != "ok"; then
3456 as_fn_error "
3457 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3458 *** building gcc. Please change the environment variable
3459 *** and run configure again." "$LINENO" 5
3462 # -----------
3463 # Directories
3464 # -----------
3466 # Specify the local prefix
3467 local_prefix=
3469 # Check whether --with-local-prefix was given.
3470 if test "${with_local_prefix+set}" = set; then :
3471 withval=$with_local_prefix; case "${withval}" in
3472 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3473 no) ;;
3474 *) local_prefix=$with_local_prefix ;;
3475 esac
3479 # Default local prefix if it is empty
3480 if test x$local_prefix = x; then
3481 local_prefix=/usr/local
3485 # Check whether --with-native-system-header-dir was given.
3486 if test "${with_native_system_header_dir+set}" = set; then :
3487 withval=$with_native_system_header_dir;
3488 case ${with_native_system_header_dir} in
3489 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3490 /* | [A-Za-z]:[\\/]*) ;;
3491 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3492 esac
3493 configured_native_system_header_dir="${withval}"
3495 else
3496 configured_native_system_header_dir=
3501 # Check whether --with-build-sysroot was given.
3502 if test "${with_build_sysroot+set}" = set; then :
3503 withval=$with_build_sysroot; if test x"$withval" != x ; then
3504 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3506 else
3507 SYSROOT_CFLAGS_FOR_TARGET=
3512 if test "x$prefix" = xNONE; then
3513 test_prefix=/usr/local
3514 else
3515 test_prefix=$prefix
3517 if test "x$exec_prefix" = xNONE; then
3518 test_exec_prefix=$test_prefix
3519 else
3520 test_exec_prefix=$exec_prefix
3524 # Check whether --with-sysroot was given.
3525 if test "${with_sysroot+set}" = set; then :
3526 withval=$with_sysroot;
3527 case ${with_sysroot} in
3528 /) ;;
3529 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3530 esac
3531 case ${with_sysroot} in
3532 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3533 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3534 esac
3536 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3537 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3539 case ${TARGET_SYSTEM_ROOT} in
3540 "${test_prefix}"|"${test_prefix}/"*|\
3541 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3542 '${prefix}'|'${prefix}/'*|\
3543 '${exec_prefix}'|'${exec_prefix}/'*)
3544 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3545 TARGET_SYSTEM_ROOT_DEFINE="$t"
3547 esac
3549 else
3551 TARGET_SYSTEM_ROOT=
3552 TARGET_SYSTEM_ROOT_DEFINE=
3553 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3561 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3562 # passed in by the toplevel make and thus we'd get different behavior
3563 # depending on where we built the sources.
3564 gcc_gxx_include_dir=
3565 # Specify the g++ header file directory
3567 # Check whether --with-gxx-include-dir was given.
3568 if test "${with_gxx_include_dir+set}" = set; then :
3569 withval=$with_gxx_include_dir; case "${withval}" in
3570 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3571 no) ;;
3572 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3573 esac
3577 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3578 if test x${gcc_gxx_include_dir} = x; then
3579 if test x${enable_version_specific_runtime_libs} = xyes; then
3580 gcc_gxx_include_dir='${libsubdir}/include/c++'
3581 else
3582 libstdcxx_incdir='include/c++/$(version)'
3583 if test x$host != x$target; then
3584 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3586 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3590 gcc_gxx_include_dir_add_sysroot=0
3591 if test "${with_sysroot+set}" = set; then
3592 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3593 if test "${gcc_gxx_without_sysroot}"; then
3594 if test x${with_sysroot} != x/; then
3595 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3597 gcc_gxx_include_dir_add_sysroot=1
3602 # Check whether --with-cpp_install_dir was given.
3603 if test "${with_cpp_install_dir+set}" = set; then :
3604 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3605 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3606 elif test x$withval != xno; then
3607 cpp_install_dir=$withval
3612 # We would like to our source tree to be readonly. However when releases or
3613 # pre-releases are generated, the flex/bison generated files as well as the
3614 # various formats of manuals need to be included along with the rest of the
3615 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3616 # just that.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3619 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3620 # Check whether --enable-generated-files-in-srcdir was given.
3621 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3622 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3623 else
3624 generated_files_in_srcdir=no
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3629 $as_echo "$generated_files_in_srcdir" >&6; }
3631 if test "$generated_files_in_srcdir" = "yes"; then
3632 GENINSRC=''
3633 else
3634 GENINSRC='#'
3638 # -------------------
3639 # Find default linker
3640 # -------------------
3642 # With GNU ld
3644 # Check whether --with-gnu-ld was given.
3645 if test "${with_gnu_ld+set}" = set; then :
3646 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3647 else
3648 gnu_ld_flag=no
3652 case $target in
3653 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3654 *) ld64_flag=no;;
3655 esac
3657 # With pre-defined ld
3659 # Check whether --with-ld was given.
3660 if test "${with_ld+set}" = set; then :
3661 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3665 if test ! -x "$DEFAULT_LINKER"; then
3666 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3667 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3668 gnu_ld_flag=yes
3669 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3670 ld64_flag=yes
3673 cat >>confdefs.h <<_ACEOF
3674 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3675 _ACEOF
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3680 $as_echo_n "checking whether a default linker was specified... " >&6; }
3681 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3682 if test x"$gnu_ld_flag" = x"no"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3684 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3685 else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3687 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3694 # With demangler in GNU ld
3696 # Check whether --with-demangler-in-ld was given.
3697 if test "${with_demangler_in_ld+set}" = set; then :
3698 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3699 else
3700 demangler_in_ld=yes
3704 # ----------------------
3705 # Find default assembler
3706 # ----------------------
3708 # With GNU as
3710 # Check whether --with-gnu-as was given.
3711 if test "${with_gnu_as+set}" = set; then :
3712 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3713 else
3714 gas_flag=no
3719 # Check whether --with-as was given.
3720 if test "${with_as+set}" = set; then :
3721 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3724 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3725 if test ! -x "$DEFAULT_ASSEMBLER"; then
3726 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3727 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3728 gas_flag=yes
3731 cat >>confdefs.h <<_ACEOF
3732 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3733 _ACEOF
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3738 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3739 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3740 if test x"$gas_flag" = x"no"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3742 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3745 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3747 else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3752 # ---------------
3753 # Find C compiler
3754 # ---------------
3756 # If a non-executable a.out is present (e.g. created by GNU as above even if
3757 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3758 # file, even when creating an executable, so an execution test fails.
3759 # Remove possible default executable files to avoid this.
3761 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3762 # Autoconf includes it.
3763 rm -f a.out a.exe b.out
3765 # Find the native compiler
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 if test -n "$ac_tool_prefix"; then
3772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if test "${ac_cv_prog_CC+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 if test -n "$CC"; then
3780 ac_cv_prog_CC="$CC" # Let the user override the test.
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 break 2
3793 done
3794 done
3795 IFS=$as_save_IFS
3799 CC=$ac_cv_prog_CC
3800 if test -n "$CC"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3802 $as_echo "$CC" >&6; }
3803 else
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3810 if test -z "$ac_cv_prog_CC"; then
3811 ac_ct_CC=$CC
3812 # Extract the first word of "gcc", so it can be a program name with args.
3813 set dummy gcc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$ac_ct_CC"; then
3820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_ac_ct_CC="gcc"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3835 IFS=$as_save_IFS
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3842 $as_echo "$ac_ct_CC" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857 CC=$ac_ct_CC
3859 else
3860 CC="$ac_cv_prog_CC"
3863 if test -z "$CC"; then
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}cc; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if test "${ac_cv_prog_CC+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3882 ac_cv_prog_CC="${ac_tool_prefix}cc"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3886 done
3887 done
3888 IFS=$as_save_IFS
3892 CC=$ac_cv_prog_CC
3893 if test -n "$CC"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3895 $as_echo "$CC" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3904 if test -z "$CC"; then
3905 # Extract the first word of "cc", so it can be a program name with args.
3906 set dummy cc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if test "${ac_cv_prog_CC+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3914 else
3915 ac_prog_rejected=no
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3924 ac_prog_rejected=yes
3925 continue
3927 ac_cv_prog_CC="cc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3931 done
3932 done
3933 IFS=$as_save_IFS
3935 if test $ac_prog_rejected = yes; then
3936 # We found a bogon in the path, so make sure we never use it.
3937 set dummy $ac_cv_prog_CC
3938 shift
3939 if test $# != 0; then
3940 # We chose a different compiler from the bogus one.
3941 # However, it has the same basename, so the bogon will be chosen
3942 # first if we set CC to just the basename; use the full file name.
3943 shift
3944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3949 CC=$ac_cv_prog_CC
3950 if test -n "$CC"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952 $as_echo "$CC" >&6; }
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3960 if test -z "$CC"; then
3961 if test -n "$ac_tool_prefix"; then
3962 for ac_prog in cl.exe
3964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if test "${ac_cv_prog_CC+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$CC"; then
3972 ac_cv_prog_CC="$CC" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3985 done
3986 done
3987 IFS=$as_save_IFS
3991 CC=$ac_cv_prog_CC
3992 if test -n "$CC"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 $as_echo "$CC" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4001 test -n "$CC" && break
4002 done
4004 if test -z "$CC"; then
4005 ac_ct_CC=$CC
4006 for ac_prog in cl.exe
4008 # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy $ac_prog; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -n "$ac_ct_CC"; then
4016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025 ac_cv_prog_ac_ct_CC="$ac_prog"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4029 done
4030 done
4031 IFS=$as_save_IFS
4035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036 if test -n "$ac_ct_CC"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038 $as_echo "$ac_ct_CC" >&6; }
4039 else
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4045 test -n "$ac_ct_CC" && break
4046 done
4048 if test "x$ac_ct_CC" = x; then
4049 CC=""
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052 yes:)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055 ac_tool_warned=yes ;;
4056 esac
4057 CC=$ac_ct_CC
4064 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error "no acceptable C compiler found in \$PATH
4067 See \`config.log' for more details." "$LINENO" 5; }
4069 # Provide some information about the compiler.
4070 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4071 set X $ac_compile
4072 ac_compiler=$2
4073 for ac_option in --version -v -V -qversion; do
4074 { { ac_try="$ac_compiler $ac_option >&5"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4082 ac_status=$?
4083 if test -s conftest.err; then
4084 sed '10a\
4085 ... rest of stderr output deleted ...
4086 10q' conftest.err >conftest.er1
4087 cat conftest.er1 >&5
4088 rm -f conftest.er1 conftest.err
4090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091 test $ac_status = 0; }
4092 done
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4098 main ()
4102 return 0;
4104 _ACEOF
4105 ac_clean_files_save=$ac_clean_files
4106 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4107 # Try to create an executable without -o first, disregard a.out.
4108 # It will help us diagnose broken compilers, and finding out an intuition
4109 # of exeext.
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4111 $as_echo_n "checking for C compiler default output file name... " >&6; }
4112 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4114 # The possible output files:
4115 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4117 ac_rmfiles=
4118 for ac_file in $ac_files
4120 case $ac_file in
4121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4122 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4123 esac
4124 done
4125 rm -f $ac_rmfiles
4127 if { { ac_try="$ac_link_default"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4133 $as_echo "$ac_try_echo"; } >&5
4134 (eval "$ac_link_default") 2>&5
4135 ac_status=$?
4136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4137 test $ac_status = 0; }; then :
4138 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4139 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4140 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4141 # so that the user can short-circuit this test for compilers unknown to
4142 # Autoconf.
4143 for ac_file in $ac_files ''
4145 test -f "$ac_file" || continue
4146 case $ac_file in
4147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4149 [ab].out )
4150 # We found the default executable, but exeext='' is most
4151 # certainly right.
4152 break;;
4153 *.* )
4154 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4155 then :; else
4156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4158 # We set ac_cv_exeext here because the later test for it is not
4159 # safe: cross compilers may not add the suffix if given an `-o'
4160 # argument, so we may need to know it at that point already.
4161 # Even if this section looks crufty: it has the advantage of
4162 # actually working.
4163 break;;
4165 break;;
4166 esac
4167 done
4168 test "$ac_cv_exeext" = no && ac_cv_exeext=
4170 else
4171 ac_file=''
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4174 $as_echo "$ac_file" >&6; }
4175 if test -z "$ac_file"; then :
4176 $as_echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4181 { as_fn_set_status 77
4182 as_fn_error "C compiler cannot create executables
4183 See \`config.log' for more details." "$LINENO" 5; }; }
4185 ac_exeext=$ac_cv_exeext
4187 # Check that the compiler produces executables we can run. If not, either
4188 # the compiler is broken, or we cross compile.
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4190 $as_echo_n "checking whether the C compiler works... " >&6; }
4191 # If not cross compiling, check that we can run a simple program.
4192 if test "$cross_compiling" != yes; then
4193 if { ac_try='./$ac_file'
4194 { { case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 $as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_try") 2>&5
4201 ac_status=$?
4202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4203 test $ac_status = 0; }; }; then
4204 cross_compiling=no
4205 else
4206 if test "$cross_compiling" = maybe; then
4207 cross_compiling=yes
4208 else
4209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4211 as_fn_error "cannot run C compiled programs.
4212 If you meant to cross compile, use \`--host'.
4213 See \`config.log' for more details." "$LINENO" 5; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4218 $as_echo "yes" >&6; }
4220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4221 ac_clean_files=$ac_clean_files_save
4222 # Check that the compiler produces executables we can run. If not, either
4223 # the compiler is broken, or we cross compile.
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4225 $as_echo_n "checking whether we are cross compiling... " >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4227 $as_echo "$cross_compiling" >&6; }
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4230 $as_echo_n "checking for suffix of executables... " >&6; }
4231 if { { ac_try="$ac_link"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237 $as_echo "$ac_try_echo"; } >&5
4238 (eval "$ac_link") 2>&5
4239 ac_status=$?
4240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241 test $ac_status = 0; }; then :
4242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4244 # work properly (i.e., refer to `conftest.exe'), while it won't with
4245 # `rm'.
4246 for ac_file in conftest.exe conftest conftest.*; do
4247 test -f "$ac_file" || continue
4248 case $ac_file in
4249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4251 break;;
4252 * ) break;;
4253 esac
4254 done
4255 else
4256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258 as_fn_error "cannot compute suffix of executables: cannot compile and link
4259 See \`config.log' for more details." "$LINENO" 5; }
4261 rm -f conftest$ac_cv_exeext
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4263 $as_echo "$ac_cv_exeext" >&6; }
4265 rm -f conftest.$ac_ext
4266 EXEEXT=$ac_cv_exeext
4267 ac_exeext=$EXEEXT
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4269 $as_echo_n "checking for suffix of object files... " >&6; }
4270 if test "${ac_cv_objext+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4277 main ()
4281 return 0;
4283 _ACEOF
4284 rm -f conftest.o conftest.obj
4285 if { { ac_try="$ac_compile"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_compile") 2>&5
4293 ac_status=$?
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }; then :
4296 for ac_file in conftest.o conftest.obj conftest.*; do
4297 test -f "$ac_file" || continue;
4298 case $ac_file in
4299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4301 break;;
4302 esac
4303 done
4304 else
4305 $as_echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4310 as_fn_error "cannot compute suffix of object files: cannot compile
4311 See \`config.log' for more details." "$LINENO" 5; }
4313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4316 $as_echo "$ac_cv_objext" >&6; }
4317 OBJEXT=$ac_cv_objext
4318 ac_objext=$OBJEXT
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4320 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4321 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4328 main ()
4330 #ifndef __GNUC__
4331 choke me
4332 #endif
4335 return 0;
4337 _ACEOF
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 ac_compiler_gnu=yes
4340 else
4341 ac_compiler_gnu=no
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4348 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4349 if test $ac_compiler_gnu = yes; then
4350 GCC=yes
4351 else
4352 GCC=
4354 ac_test_CFLAGS=${CFLAGS+set}
4355 ac_save_CFLAGS=$CFLAGS
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4357 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4358 if test "${ac_cv_prog_cc_g+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 ac_save_c_werror_flag=$ac_c_werror_flag
4362 ac_c_werror_flag=yes
4363 ac_cv_prog_cc_g=no
4364 CFLAGS="-g"
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4369 main ()
4373 return 0;
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_cv_prog_cc_g=yes
4378 else
4379 CFLAGS=""
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4384 main ()
4388 return 0;
4390 _ACEOF
4391 if ac_fn_c_try_compile "$LINENO"; then :
4393 else
4394 ac_c_werror_flag=$ac_save_c_werror_flag
4395 CFLAGS="-g"
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408 ac_cv_prog_cc_g=yes
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_c_werror_flag=$ac_save_c_werror_flag
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4418 $as_echo "$ac_cv_prog_cc_g" >&6; }
4419 if test "$ac_test_CFLAGS" = set; then
4420 CFLAGS=$ac_save_CFLAGS
4421 elif test $ac_cv_prog_cc_g = yes; then
4422 if test "$GCC" = yes; then
4423 CFLAGS="-g -O2"
4424 else
4425 CFLAGS="-g"
4427 else
4428 if test "$GCC" = yes; then
4429 CFLAGS="-O2"
4430 else
4431 CFLAGS=
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4435 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4436 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 ac_cv_prog_cc_c89=no
4440 ac_save_CC=$CC
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <stdarg.h>
4444 #include <stdio.h>
4445 #include <sys/types.h>
4446 #include <sys/stat.h>
4447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4448 struct buf { int x; };
4449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4450 static char *e (p, i)
4451 char **p;
4452 int i;
4454 return p[i];
4456 static char *f (char * (*g) (char **, int), char **p, ...)
4458 char *s;
4459 va_list v;
4460 va_start (v,p);
4461 s = g (p, va_arg (v,int));
4462 va_end (v);
4463 return s;
4466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4467 function prototypes and stuff, but not '\xHH' hex character constants.
4468 These don't provoke an error unfortunately, instead are silently treated
4469 as 'x'. The following induces an error, until -std is added to get
4470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4471 array size at least. It's necessary to write '\x00'==0 to get something
4472 that's true only with -std. */
4473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4476 inside strings and character constants. */
4477 #define FOO(x) 'x'
4478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4480 int test (int i, double x);
4481 struct s1 {int (*f) (int a);};
4482 struct s2 {int (*f) (double a);};
4483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4484 int argc;
4485 char **argv;
4487 main ()
4489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4491 return 0;
4493 _ACEOF
4494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4497 CC="$ac_save_CC $ac_arg"
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_cv_prog_cc_c89=$ac_arg
4501 rm -f core conftest.err conftest.$ac_objext
4502 test "x$ac_cv_prog_cc_c89" != "xno" && break
4503 done
4504 rm -f conftest.$ac_ext
4505 CC=$ac_save_CC
4508 # AC_CACHE_VAL
4509 case "x$ac_cv_prog_cc_c89" in
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4512 $as_echo "none needed" >&6; } ;;
4513 xno)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4515 $as_echo "unsupported" >&6; } ;;
4517 CC="$CC $ac_cv_prog_cc_c89"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4520 esac
4521 if test "x$ac_cv_prog_cc_c89" != xno; then :
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531 ac_ext=cpp
4532 ac_cpp='$CXXCPP $CPPFLAGS'
4533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4536 if test -z "$CXX"; then
4537 if test -n "$CCC"; then
4538 CXX=$CCC
4539 else
4540 if test -n "$ac_tool_prefix"; then
4541 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_CXX+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$CXX"; then
4551 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 CXX=$ac_cv_prog_CXX
4571 if test -n "$CXX"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4573 $as_echo "$CXX" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4580 test -n "$CXX" && break
4581 done
4583 if test -z "$CXX"; then
4584 ac_ct_CXX=$CXX
4585 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4587 # Extract the first word of "$ac_prog", so it can be a program name with args.
4588 set dummy $ac_prog; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$ac_ct_CXX"; then
4595 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_ac_ct_CXX="$ac_prog"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4608 done
4609 done
4610 IFS=$as_save_IFS
4614 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4615 if test -n "$ac_ct_CXX"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4617 $as_echo "$ac_ct_CXX" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4624 test -n "$ac_ct_CXX" && break
4625 done
4627 if test "x$ac_ct_CXX" = x; then
4628 CXX="g++"
4629 else
4630 case $cross_compiling:$ac_tool_warned in
4631 yes:)
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634 ac_tool_warned=yes ;;
4635 esac
4636 CXX=$ac_ct_CXX
4642 # Provide some information about the compiler.
4643 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4644 set X $ac_compile
4645 ac_compiler=$2
4646 for ac_option in --version -v -V -qversion; do
4647 { { ac_try="$ac_compiler $ac_option >&5"
4648 case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651 esac
4652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653 $as_echo "$ac_try_echo"; } >&5
4654 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4655 ac_status=$?
4656 if test -s conftest.err; then
4657 sed '10a\
4658 ... rest of stderr output deleted ...
4659 10q' conftest.err >conftest.er1
4660 cat conftest.er1 >&5
4661 rm -f conftest.er1 conftest.err
4663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664 test $ac_status = 0; }
4665 done
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4668 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4669 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4676 main ()
4678 #ifndef __GNUC__
4679 choke me
4680 #endif
4683 return 0;
4685 _ACEOF
4686 if ac_fn_cxx_try_compile "$LINENO"; then :
4687 ac_compiler_gnu=yes
4688 else
4689 ac_compiler_gnu=no
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4696 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4697 if test $ac_compiler_gnu = yes; then
4698 GXX=yes
4699 else
4700 GXX=
4702 ac_test_CXXFLAGS=${CXXFLAGS+set}
4703 ac_save_CXXFLAGS=$CXXFLAGS
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4705 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4706 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4710 ac_cxx_werror_flag=yes
4711 ac_cv_prog_cxx_g=no
4712 CXXFLAGS="-g"
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4717 main ()
4721 return 0;
4723 _ACEOF
4724 if ac_fn_cxx_try_compile "$LINENO"; then :
4725 ac_cv_prog_cxx_g=yes
4726 else
4727 CXXFLAGS=""
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4732 main ()
4736 return 0;
4738 _ACEOF
4739 if ac_fn_cxx_try_compile "$LINENO"; then :
4741 else
4742 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4743 CXXFLAGS="-g"
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 main ()
4752 return 0;
4754 _ACEOF
4755 if ac_fn_cxx_try_compile "$LINENO"; then :
4756 ac_cv_prog_cxx_g=yes
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4766 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4767 if test "$ac_test_CXXFLAGS" = set; then
4768 CXXFLAGS=$ac_save_CXXFLAGS
4769 elif test $ac_cv_prog_cxx_g = yes; then
4770 if test "$GXX" = yes; then
4771 CXXFLAGS="-g -O2"
4772 else
4773 CXXFLAGS="-g"
4775 else
4776 if test "$GXX" = yes; then
4777 CXXFLAGS="-O2"
4778 else
4779 CXXFLAGS=
4782 ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4793 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$GNATBIND"; then
4800 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4813 done
4814 done
4815 IFS=$as_save_IFS
4819 GNATBIND=$ac_cv_prog_GNATBIND
4820 if test -n "$GNATBIND"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4822 $as_echo "$GNATBIND" >&6; }
4823 else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4830 if test -z "$ac_cv_prog_GNATBIND"; then
4831 ac_ct_GNATBIND=$GNATBIND
4832 # Extract the first word of "gnatbind", so it can be a program name with args.
4833 set dummy gnatbind; ac_word=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$ac_ct_GNATBIND"; then
4840 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4853 done
4854 done
4855 IFS=$as_save_IFS
4859 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4860 if test -n "$ac_ct_GNATBIND"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4862 $as_echo "$ac_ct_GNATBIND" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4868 if test "x$ac_ct_GNATBIND" = x; then
4869 GNATBIND="no"
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4876 esac
4877 GNATBIND=$ac_ct_GNATBIND
4879 else
4880 GNATBIND="$ac_cv_prog_GNATBIND"
4883 if test -n "$ac_tool_prefix"; then
4884 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4885 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$GNATMAKE"; then
4892 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4905 done
4906 done
4907 IFS=$as_save_IFS
4911 GNATMAKE=$ac_cv_prog_GNATMAKE
4912 if test -n "$GNATMAKE"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4914 $as_echo "$GNATMAKE" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4922 if test -z "$ac_cv_prog_GNATMAKE"; then
4923 ac_ct_GNATMAKE=$GNATMAKE
4924 # Extract the first word of "gnatmake", so it can be a program name with args.
4925 set dummy gnatmake; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$ac_ct_GNATMAKE"; then
4932 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4952 if test -n "$ac_ct_GNATMAKE"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4954 $as_echo "$ac_ct_GNATMAKE" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4960 if test "x$ac_ct_GNATMAKE" = x; then
4961 GNATMAKE="no"
4962 else
4963 case $cross_compiling:$ac_tool_warned in
4964 yes:)
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4968 esac
4969 GNATMAKE=$ac_ct_GNATMAKE
4971 else
4972 GNATMAKE="$ac_cv_prog_GNATMAKE"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4976 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4977 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 cat >conftest.adb <<EOF
4981 procedure conftest is begin null; end conftest;
4983 acx_cv_cc_gcc_supports_ada=no
4984 # There is a bug in old released versions of GCC which causes the
4985 # driver to exit successfully when the appropriate language module
4986 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4987 # Therefore we must check for the error message as well as an
4988 # unsuccessful exit.
4989 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4990 # given a .adb file, but produce no object file. So we must check
4991 # if an object file was really produced to guard against this.
4992 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
4993 if test x"$errors" = x && test -f conftest.$ac_objext; then
4994 acx_cv_cc_gcc_supports_ada=yes
4996 rm -f conftest.*
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4999 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5001 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5002 have_gnat=yes
5003 else
5004 have_gnat=no
5008 # Do configure tests with the C++ compiler, since that's what we build with.
5009 ac_ext=cpp
5010 ac_cpp='$CXXCPP $CPPFLAGS'
5011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5016 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5017 # optimizations to be activated explicitly by the toplevel.
5018 case "$CC" in
5019 */prev-gcc/xgcc*) ;;
5020 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5021 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5022 esac
5026 # Determine PICFLAG for target gnatlib.
5031 case "${target}" in
5032 # PIC is the default on some targets or must not be used.
5033 *-*-darwin*)
5034 # For darwin, common symbols are not allowed in MH_DYLIB files
5035 case "${CFLAGS}" in
5036 # If we are using a compiler supporting mdynamic-no-pic
5037 # and the option has been tested as safe to add, then cancel
5038 # it here, since the code generated is incompatible with shared
5039 # libs.
5040 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5041 *) PICFLAG_FOR_TARGET=-fno-common ;;
5042 esac
5044 alpha*-dec-osf5*)
5045 # PIC is the default.
5047 hppa*64*-*-hpux*)
5048 # PIC is the default for 64-bit PA HP-UX.
5050 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5052 i[34567]86-*-mingw* | x86_64-*-mingw*)
5054 i[34567]86-*-interix[3-9]*)
5055 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5056 # Instead, we relocate shared libraries at runtime.
5058 i[34567]86-*-nto-qnx*)
5059 # QNX uses GNU C++, but need to define -shared option too, otherwise
5060 # it will coredump.
5061 PICFLAG_FOR_TARGET='-fPIC -shared'
5063 i[34567]86-pc-msdosdjgpp*)
5064 # DJGPP does not support shared libraries at all.
5066 ia64*-*-hpux*)
5067 # On IA64 HP-UX, PIC is the default but the pic flag
5068 # sets the default TLS model and affects inlining.
5069 PICFLAG_FOR_TARGET=-fPIC
5071 mips-sgi-irix6*)
5072 # PIC is the default.
5074 rs6000-ibm-aix* | powerpc-ibm-aix*)
5075 # All AIX code is PIC.
5078 # Some targets support both -fPIC and -fpic, but prefer the latter.
5079 # FIXME: Why?
5080 i[34567]86-*-* | x86_64-*-*)
5081 PICFLAG_FOR_TARGET=-fpic
5083 # FIXME: Override -fPIC default in libgcc only?
5084 sh-*-linux* | sh[2346lbe]*-*-linux*)
5085 PICFLAG_FOR_TARGET=-fpic
5087 # FIXME: Simplify to sh*-*-netbsd*?
5088 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5089 sh64-*-netbsd* | sh64l*-*-netbsd*)
5090 PICFLAG_FOR_TARGET=-fpic
5092 # Default to -fPIC unless specified otherwise.
5094 PICFLAG_FOR_TARGET=-fPIC
5096 esac
5098 # If the user explicitly uses -fpic/-fPIC, keep that.
5099 case "${CFLAGS_FOR_TARGET}" in
5100 *-fpic*)
5101 PICFLAG_FOR_TARGET=-fpic
5103 *-fPIC*)
5104 PICFLAG_FOR_TARGET=-fPIC
5106 esac
5110 # -------------------------
5111 # Check C compiler features
5112 # -------------------------
5115 ac_ext=cpp
5116 ac_cpp='$CXXCPP $CPPFLAGS'
5117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5121 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5122 if test -z "$CXXCPP"; then
5123 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 # Double quotes because CXXCPP needs to be expanded
5127 for CXXCPP in "$CXX -E" "/lib/cpp"
5129 ac_preproc_ok=false
5130 for ac_cxx_preproc_warn_flag in '' yes
5132 # Use a header file that comes with gcc, so configuring glibc
5133 # with a fresh cross-compiler works.
5134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135 # <limits.h> exists even on freestanding compilers.
5136 # On the NeXT, cc -E runs the code through the compiler's parser,
5137 # not just through cpp. "Syntax error" is here to catch this case.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #ifdef __STDC__
5141 # include <limits.h>
5142 #else
5143 # include <assert.h>
5144 #endif
5145 Syntax error
5146 _ACEOF
5147 if ac_fn_cxx_try_cpp "$LINENO"; then :
5149 else
5150 # Broken: fails on valid input.
5151 continue
5153 rm -f conftest.err conftest.$ac_ext
5155 # OK, works on sane cases. Now check whether nonexistent headers
5156 # can be detected and how.
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <ac_nonexistent.h>
5160 _ACEOF
5161 if ac_fn_cxx_try_cpp "$LINENO"; then :
5162 # Broken: success on invalid input.
5163 continue
5164 else
5165 # Passes both tests.
5166 ac_preproc_ok=:
5167 break
5169 rm -f conftest.err conftest.$ac_ext
5171 done
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then :
5175 break
5178 done
5179 ac_cv_prog_CXXCPP=$CXXCPP
5182 CXXCPP=$ac_cv_prog_CXXCPP
5183 else
5184 ac_cv_prog_CXXCPP=$CXXCPP
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5187 $as_echo "$CXXCPP" >&6; }
5188 ac_preproc_ok=false
5189 for ac_cxx_preproc_warn_flag in '' yes
5191 # Use a header file that comes with gcc, so configuring glibc
5192 # with a fresh cross-compiler works.
5193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 # <limits.h> exists even on freestanding compilers.
5195 # On the NeXT, cc -E runs the code through the compiler's parser,
5196 # not just through cpp. "Syntax error" is here to catch this case.
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #ifdef __STDC__
5200 # include <limits.h>
5201 #else
5202 # include <assert.h>
5203 #endif
5204 Syntax error
5205 _ACEOF
5206 if ac_fn_cxx_try_cpp "$LINENO"; then :
5208 else
5209 # Broken: fails on valid input.
5210 continue
5212 rm -f conftest.err conftest.$ac_ext
5214 # OK, works on sane cases. Now check whether nonexistent headers
5215 # can be detected and how.
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <ac_nonexistent.h>
5219 _ACEOF
5220 if ac_fn_cxx_try_cpp "$LINENO"; then :
5221 # Broken: success on invalid input.
5222 continue
5223 else
5224 # Passes both tests.
5225 ac_preproc_ok=:
5226 break
5228 rm -f conftest.err conftest.$ac_ext
5230 done
5231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232 rm -f conftest.err conftest.$ac_ext
5233 if $ac_preproc_ok; then :
5235 else
5236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5238 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5239 See \`config.log' for more details." "$LINENO" 5; }
5242 ac_ext=cpp
5243 ac_cpp='$CXXCPP $CPPFLAGS'
5244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5250 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5251 if test "${ac_cv_path_GREP+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 if test -z "$GREP"; then
5255 ac_path_GREP_found=false
5256 # Loop through the user's path and test for each of PROGNAME-LIST
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_prog in grep ggrep; do
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5265 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5266 # Check for GNU ac_path_GREP and select it if it is found.
5267 # Check for GNU $ac_path_GREP
5268 case `"$ac_path_GREP" --version 2>&1` in
5269 *GNU*)
5270 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5272 ac_count=0
5273 $as_echo_n 0123456789 >"conftest.in"
5274 while :
5276 cat "conftest.in" "conftest.in" >"conftest.tmp"
5277 mv "conftest.tmp" "conftest.in"
5278 cp "conftest.in" "conftest.nl"
5279 $as_echo 'GREP' >> "conftest.nl"
5280 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5282 as_fn_arith $ac_count + 1 && ac_count=$as_val
5283 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5284 # Best one so far, save it but keep looking for a better one
5285 ac_cv_path_GREP="$ac_path_GREP"
5286 ac_path_GREP_max=$ac_count
5288 # 10*(2^10) chars as input seems more than enough
5289 test $ac_count -gt 10 && break
5290 done
5291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5292 esac
5294 $ac_path_GREP_found && break 3
5295 done
5296 done
5297 done
5298 IFS=$as_save_IFS
5299 if test -z "$ac_cv_path_GREP"; then
5300 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5302 else
5303 ac_cv_path_GREP=$GREP
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5308 $as_echo "$ac_cv_path_GREP" >&6; }
5309 GREP="$ac_cv_path_GREP"
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5313 $as_echo_n "checking for egrep... " >&6; }
5314 if test "${ac_cv_path_EGREP+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5318 then ac_cv_path_EGREP="$GREP -E"
5319 else
5320 if test -z "$EGREP"; then
5321 ac_path_EGREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in egrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5331 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5332 # Check for GNU ac_path_EGREP and select it if it is found.
5333 # Check for GNU $ac_path_EGREP
5334 case `"$ac_path_EGREP" --version 2>&1` in
5335 *GNU*)
5336 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5338 ac_count=0
5339 $as_echo_n 0123456789 >"conftest.in"
5340 while :
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 $as_echo 'EGREP' >> "conftest.nl"
5346 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_EGREP="$ac_path_EGREP"
5352 ac_path_EGREP_max=$ac_count
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5360 $ac_path_EGREP_found && break 3
5361 done
5362 done
5363 done
5364 IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_EGREP"; then
5366 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5368 else
5369 ac_cv_path_EGREP=$EGREP
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5375 $as_echo "$ac_cv_path_EGREP" >&6; }
5376 EGREP="$ac_cv_path_EGREP"
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5380 $as_echo_n "checking for ANSI C header files... " >&6; }
5381 if test "${ac_cv_header_stdc+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <stdlib.h>
5387 #include <stdarg.h>
5388 #include <string.h>
5389 #include <float.h>
5392 main ()
5396 return 0;
5398 _ACEOF
5399 if ac_fn_cxx_try_compile "$LINENO"; then :
5400 ac_cv_header_stdc=yes
5401 else
5402 ac_cv_header_stdc=no
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 if test $ac_cv_header_stdc = yes; then
5407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <string.h>
5412 _ACEOF
5413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5414 $EGREP "memchr" >/dev/null 2>&1; then :
5416 else
5417 ac_cv_header_stdc=no
5419 rm -f conftest*
5423 if test $ac_cv_header_stdc = yes; then
5424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <stdlib.h>
5429 _ACEOF
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "free" >/dev/null 2>&1; then :
5433 else
5434 ac_cv_header_stdc=no
5436 rm -f conftest*
5440 if test $ac_cv_header_stdc = yes; then
5441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5442 if test "$cross_compiling" = yes; then :
5444 else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #include <ctype.h>
5448 #include <stdlib.h>
5449 #if ((' ' & 0x0FF) == 0x020)
5450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5452 #else
5453 # define ISLOWER(c) \
5454 (('a' <= (c) && (c) <= 'i') \
5455 || ('j' <= (c) && (c) <= 'r') \
5456 || ('s' <= (c) && (c) <= 'z'))
5457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5458 #endif
5460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5462 main ()
5464 int i;
5465 for (i = 0; i < 256; i++)
5466 if (XOR (islower (i), ISLOWER (i))
5467 || toupper (i) != TOUPPER (i))
5468 return 2;
5469 return 0;
5471 _ACEOF
5472 if ac_fn_cxx_try_run "$LINENO"; then :
5474 else
5475 ac_cv_header_stdc=no
5477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5478 conftest.$ac_objext conftest.beam conftest.$ac_ext
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5484 $as_echo "$ac_cv_header_stdc" >&6; }
5485 if test $ac_cv_header_stdc = yes; then
5487 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5493 inttypes.h stdint.h unistd.h
5494 do :
5495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5496 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5498 eval as_val=\$$as_ac_Header
5499 if test "x$as_val" = x""yes; then :
5500 cat >>confdefs.h <<_ACEOF
5501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502 _ACEOF
5506 done
5510 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5511 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5512 MINIX=yes
5513 else
5514 MINIX=
5518 if test "$MINIX" = yes; then
5520 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5523 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5526 $as_echo "#define _MINIX 1" >>confdefs.h
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5532 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5533 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5539 # define __EXTENSIONS__ 1
5540 $ac_includes_default
5542 main ()
5546 return 0;
5548 _ACEOF
5549 if ac_fn_cxx_try_compile "$LINENO"; then :
5550 ac_cv_safe_to_define___extensions__=yes
5551 else
5552 ac_cv_safe_to_define___extensions__=no
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5557 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5558 test $ac_cv_safe_to_define___extensions__ = yes &&
5559 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5561 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5563 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5565 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5567 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5570 ac_ext=c
5571 ac_cpp='$CPP $CPPFLAGS'
5572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5576 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5577 # On Suns, sometimes $CPP names a directory.
5578 if test -n "$CPP" && test -d "$CPP"; then
5579 CPP=
5581 if test -z "$CPP"; then
5582 if test "${ac_cv_prog_CPP+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 # Double quotes because CPP needs to be expanded
5586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5588 ac_preproc_ok=false
5589 for ac_c_preproc_warn_flag in '' yes
5591 # Use a header file that comes with gcc, so configuring glibc
5592 # with a fresh cross-compiler works.
5593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5594 # <limits.h> exists even on freestanding compilers.
5595 # On the NeXT, cc -E runs the code through the compiler's parser,
5596 # not just through cpp. "Syntax error" is here to catch this case.
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #ifdef __STDC__
5600 # include <limits.h>
5601 #else
5602 # include <assert.h>
5603 #endif
5604 Syntax error
5605 _ACEOF
5606 if ac_fn_c_try_cpp "$LINENO"; then :
5608 else
5609 # Broken: fails on valid input.
5610 continue
5612 rm -f conftest.err conftest.$ac_ext
5614 # OK, works on sane cases. Now check whether nonexistent headers
5615 # can be detected and how.
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <ac_nonexistent.h>
5619 _ACEOF
5620 if ac_fn_c_try_cpp "$LINENO"; then :
5621 # Broken: success on invalid input.
5622 continue
5623 else
5624 # Passes both tests.
5625 ac_preproc_ok=:
5626 break
5628 rm -f conftest.err conftest.$ac_ext
5630 done
5631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5632 rm -f conftest.err conftest.$ac_ext
5633 if $ac_preproc_ok; then :
5634 break
5637 done
5638 ac_cv_prog_CPP=$CPP
5641 CPP=$ac_cv_prog_CPP
5642 else
5643 ac_cv_prog_CPP=$CPP
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5646 $as_echo "$CPP" >&6; }
5647 ac_preproc_ok=false
5648 for ac_c_preproc_warn_flag in '' yes
5650 # Use a header file that comes with gcc, so configuring glibc
5651 # with a fresh cross-compiler works.
5652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5653 # <limits.h> exists even on freestanding compilers.
5654 # On the NeXT, cc -E runs the code through the compiler's parser,
5655 # not just through cpp. "Syntax error" is here to catch this case.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #ifdef __STDC__
5659 # include <limits.h>
5660 #else
5661 # include <assert.h>
5662 #endif
5663 Syntax error
5664 _ACEOF
5665 if ac_fn_c_try_cpp "$LINENO"; then :
5667 else
5668 # Broken: fails on valid input.
5669 continue
5671 rm -f conftest.err conftest.$ac_ext
5673 # OK, works on sane cases. Now check whether nonexistent headers
5674 # can be detected and how.
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #include <ac_nonexistent.h>
5678 _ACEOF
5679 if ac_fn_c_try_cpp "$LINENO"; then :
5680 # Broken: success on invalid input.
5681 continue
5682 else
5683 # Passes both tests.
5684 ac_preproc_ok=:
5685 break
5687 rm -f conftest.err conftest.$ac_ext
5689 done
5690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5691 rm -f conftest.err conftest.$ac_ext
5692 if $ac_preproc_ok; then :
5694 else
5695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5697 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5698 See \`config.log' for more details." "$LINENO" 5; }
5701 ac_ext=cpp
5702 ac_cpp='$CXXCPP $CPPFLAGS'
5703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5708 $as_echo_n "checking for inline... " >&6; }
5709 if test "${ac_cv_c_inline+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 ac_cv_c_inline=no
5713 for ac_kw in inline __inline__ __inline; do
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #ifndef __cplusplus
5717 typedef int foo_t;
5718 static $ac_kw foo_t static_foo () {return 0; }
5719 $ac_kw foo_t foo () {return 0; }
5720 #endif
5722 _ACEOF
5723 if ac_fn_cxx_try_compile "$LINENO"; then :
5724 ac_cv_c_inline=$ac_kw
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 test "$ac_cv_c_inline" != no && break
5728 done
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5732 $as_echo "$ac_cv_c_inline" >&6; }
5734 case $ac_cv_c_inline in
5735 inline | yes) ;;
5737 case $ac_cv_c_inline in
5738 no) ac_val=;;
5739 *) ac_val=$ac_cv_c_inline;;
5740 esac
5741 cat >>confdefs.h <<_ACEOF
5742 #ifndef __cplusplus
5743 #define inline $ac_val
5744 #endif
5745 _ACEOF
5747 esac
5750 # Check whether --enable-largefile was given.
5751 if test "${enable_largefile+set}" = set; then :
5752 enableval=$enable_largefile;
5755 if test "$enable_largefile" != no; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5758 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5759 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 ac_cv_sys_largefile_CC=no
5763 if test "$GCC" != yes; then
5764 ac_save_CC=$CC
5765 while :; do
5766 # IRIX 6.2 and later do not support large files by default,
5767 # so use the C compiler's -n32 option if that helps.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <sys/types.h>
5771 /* Check that off_t can represent 2**63 - 1 correctly.
5772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5773 since some C++ compilers masquerading as C compilers
5774 incorrectly reject 9223372036854775807. */
5775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5777 && LARGE_OFF_T % 2147483647 == 1)
5778 ? 1 : -1];
5780 main ()
5784 return 0;
5786 _ACEOF
5787 if ac_fn_cxx_try_compile "$LINENO"; then :
5788 break
5790 rm -f core conftest.err conftest.$ac_objext
5791 CC="$CC -n32"
5792 if ac_fn_cxx_try_compile "$LINENO"; then :
5793 ac_cv_sys_largefile_CC=' -n32'; break
5795 rm -f core conftest.err conftest.$ac_objext
5796 break
5797 done
5798 CC=$ac_save_CC
5799 rm -f conftest.$ac_ext
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5803 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5804 if test "$ac_cv_sys_largefile_CC" != no; then
5805 CC=$CC$ac_cv_sys_largefile_CC
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5809 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5810 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 while :; do
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5817 /* Check that off_t can represent 2**63 - 1 correctly.
5818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5819 since some C++ compilers masquerading as C compilers
5820 incorrectly reject 9223372036854775807. */
5821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5823 && LARGE_OFF_T % 2147483647 == 1)
5824 ? 1 : -1];
5826 main ()
5830 return 0;
5832 _ACEOF
5833 if ac_fn_cxx_try_compile "$LINENO"; then :
5834 ac_cv_sys_file_offset_bits=no; break
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #define _FILE_OFFSET_BITS 64
5840 #include <sys/types.h>
5841 /* Check that off_t can represent 2**63 - 1 correctly.
5842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5843 since some C++ compilers masquerading as C compilers
5844 incorrectly reject 9223372036854775807. */
5845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5847 && LARGE_OFF_T % 2147483647 == 1)
5848 ? 1 : -1];
5850 main ()
5854 return 0;
5856 _ACEOF
5857 if ac_fn_cxx_try_compile "$LINENO"; then :
5858 ac_cv_sys_file_offset_bits=64; break
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_sys_file_offset_bits=unknown
5862 break
5863 done
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5866 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5867 case $ac_cv_sys_file_offset_bits in #(
5868 no | unknown) ;;
5870 cat >>confdefs.h <<_ACEOF
5871 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5872 _ACEOF
5874 esac
5875 rm -rf conftest*
5876 if test $ac_cv_sys_file_offset_bits = unknown; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5878 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5879 if test "${ac_cv_sys_large_files+set}" = set; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 while :; do
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 /* Check that off_t can represent 2**63 - 1 correctly.
5887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5888 since some C++ compilers masquerading as C compilers
5889 incorrectly reject 9223372036854775807. */
5890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5892 && LARGE_OFF_T % 2147483647 == 1)
5893 ? 1 : -1];
5895 main ()
5899 return 0;
5901 _ACEOF
5902 if ac_fn_cxx_try_compile "$LINENO"; then :
5903 ac_cv_sys_large_files=no; break
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908 #define _LARGE_FILES 1
5909 #include <sys/types.h>
5910 /* Check that off_t can represent 2**63 - 1 correctly.
5911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5912 since some C++ compilers masquerading as C compilers
5913 incorrectly reject 9223372036854775807. */
5914 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5916 && LARGE_OFF_T % 2147483647 == 1)
5917 ? 1 : -1];
5919 main ()
5923 return 0;
5925 _ACEOF
5926 if ac_fn_cxx_try_compile "$LINENO"; then :
5927 ac_cv_sys_large_files=1; break
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 ac_cv_sys_large_files=unknown
5931 break
5932 done
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5935 $as_echo "$ac_cv_sys_large_files" >&6; }
5936 case $ac_cv_sys_large_files in #(
5937 no | unknown) ;;
5939 cat >>confdefs.h <<_ACEOF
5940 #define _LARGE_FILES $ac_cv_sys_large_files
5941 _ACEOF
5943 esac
5944 rm -rf conftest*
5949 # sizeof(char) is 1 by definition.
5950 # The cast to long int works around a bug in the HP C Compiler
5951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953 # This bug is HP SR number 8606223364.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5955 $as_echo_n "checking size of void *... " >&6; }
5956 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5961 else
5962 if test "$ac_cv_type_void_p" = yes; then
5963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5965 { as_fn_set_status 77
5966 as_fn_error "cannot compute sizeof (void *)
5967 See \`config.log' for more details." "$LINENO" 5; }; }
5968 else
5969 ac_cv_sizeof_void_p=0
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5975 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5979 cat >>confdefs.h <<_ACEOF
5980 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5981 _ACEOF
5984 # The cast to long int works around a bug in the HP C Compiler
5985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5987 # This bug is HP SR number 8606223364.
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5989 $as_echo_n "checking size of short... " >&6; }
5990 if test "${ac_cv_sizeof_short+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5995 else
5996 if test "$ac_cv_type_short" = yes; then
5997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5999 { as_fn_set_status 77
6000 as_fn_error "cannot compute sizeof (short)
6001 See \`config.log' for more details." "$LINENO" 5; }; }
6002 else
6003 ac_cv_sizeof_short=0
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6009 $as_echo "$ac_cv_sizeof_short" >&6; }
6013 cat >>confdefs.h <<_ACEOF
6014 #define SIZEOF_SHORT $ac_cv_sizeof_short
6015 _ACEOF
6018 # The cast to long int works around a bug in the HP C Compiler
6019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6021 # This bug is HP SR number 8606223364.
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6023 $as_echo_n "checking size of int... " >&6; }
6024 if test "${ac_cv_sizeof_int+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6029 else
6030 if test "$ac_cv_type_int" = yes; then
6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6033 { as_fn_set_status 77
6034 as_fn_error "cannot compute sizeof (int)
6035 See \`config.log' for more details." "$LINENO" 5; }; }
6036 else
6037 ac_cv_sizeof_int=0
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6043 $as_echo "$ac_cv_sizeof_int" >&6; }
6047 cat >>confdefs.h <<_ACEOF
6048 #define SIZEOF_INT $ac_cv_sizeof_int
6049 _ACEOF
6052 # The cast to long int works around a bug in the HP C Compiler
6053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6055 # This bug is HP SR number 8606223364.
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6057 $as_echo_n "checking size of long... " >&6; }
6058 if test "${ac_cv_sizeof_long+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6063 else
6064 if test "$ac_cv_type_long" = yes; then
6065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6067 { as_fn_set_status 77
6068 as_fn_error "cannot compute sizeof (long)
6069 See \`config.log' for more details." "$LINENO" 5; }; }
6070 else
6071 ac_cv_sizeof_long=0
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6077 $as_echo "$ac_cv_sizeof_long" >&6; }
6081 cat >>confdefs.h <<_ACEOF
6082 #define SIZEOF_LONG $ac_cv_sizeof_long
6083 _ACEOF
6086 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6087 if test "x$ac_cv_type_long_long" = x""yes; then :
6089 cat >>confdefs.h <<_ACEOF
6090 #define HAVE_LONG_LONG 1
6091 _ACEOF
6093 # The cast to long int works around a bug in the HP C Compiler
6094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6096 # This bug is HP SR number 8606223364.
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6098 $as_echo_n "checking size of long long... " >&6; }
6099 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6104 else
6105 if test "$ac_cv_type_long_long" = yes; then
6106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6108 { as_fn_set_status 77
6109 as_fn_error "cannot compute sizeof (long long)
6110 See \`config.log' for more details." "$LINENO" 5; }; }
6111 else
6112 ac_cv_sizeof_long_long=0
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6118 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6122 cat >>confdefs.h <<_ACEOF
6123 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6124 _ACEOF
6129 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6130 case $ac_cv_c_int8_t in #(
6131 no|yes) ;; #(
6134 cat >>confdefs.h <<_ACEOF
6135 #define int8_t $ac_cv_c_int8_t
6136 _ACEOF
6138 esac
6140 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6141 case $ac_cv_c_int16_t in #(
6142 no|yes) ;; #(
6145 cat >>confdefs.h <<_ACEOF
6146 #define int16_t $ac_cv_c_int16_t
6147 _ACEOF
6149 esac
6151 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6152 case $ac_cv_c_int32_t in #(
6153 no|yes) ;; #(
6156 cat >>confdefs.h <<_ACEOF
6157 #define int32_t $ac_cv_c_int32_t
6158 _ACEOF
6160 esac
6162 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6163 case $ac_cv_c_int64_t in #(
6164 no|yes) ;; #(
6167 cat >>confdefs.h <<_ACEOF
6168 #define int64_t $ac_cv_c_int64_t
6169 _ACEOF
6171 esac
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6175 $as_echo_n "checking for long long int... " >&6; }
6176 if test "${ac_cv_type_long_long_int+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6182 /* For now, do not test the preprocessor; as of 2007 there are too many
6183 implementations with broken preprocessors. Perhaps this can
6184 be revisited in 2012. In the meantime, code should not expect
6185 #if to work with literals wider than 32 bits. */
6186 /* Test literals. */
6187 long long int ll = 9223372036854775807ll;
6188 long long int nll = -9223372036854775807LL;
6189 unsigned long long int ull = 18446744073709551615ULL;
6190 /* Test constant expressions. */
6191 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6192 ? 1 : -1)];
6193 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6194 ? 1 : -1)];
6195 int i = 63;
6197 main ()
6199 /* Test availability of runtime routines for shift and division. */
6200 long long int llmax = 9223372036854775807ll;
6201 unsigned long long int ullmax = 18446744073709551615ull;
6202 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6203 | (llmax / ll) | (llmax % ll)
6204 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6205 | (ullmax / ull) | (ullmax % ull));
6207 return 0;
6210 _ACEOF
6211 if ac_fn_cxx_try_link "$LINENO"; then :
6212 if test "$cross_compiling" = yes; then :
6213 ac_cv_type_long_long_int=yes
6214 else
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 #include <limits.h>
6218 #ifndef LLONG_MAX
6219 # define HALF \
6220 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6221 # define LLONG_MAX (HALF - 1 + HALF)
6222 #endif
6224 main ()
6226 long long int n = 1;
6227 int i;
6228 for (i = 0; ; i++)
6230 long long int m = n << i;
6231 if (m >> i != n)
6232 return 1;
6233 if (LLONG_MAX / 2 < m)
6234 break;
6236 return 0;
6238 return 0;
6240 _ACEOF
6241 if ac_fn_cxx_try_run "$LINENO"; then :
6242 ac_cv_type_long_long_int=yes
6243 else
6244 ac_cv_type_long_long_int=no
6246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6247 conftest.$ac_objext conftest.beam conftest.$ac_ext
6250 else
6251 ac_cv_type_long_long_int=no
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6257 $as_echo "$ac_cv_type_long_long_int" >&6; }
6258 if test $ac_cv_type_long_long_int = yes; then
6260 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6266 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6267 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6269 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6271 else
6272 test $ac_cv_type_long_long_int = yes \
6273 && ac_type='long long int' \
6274 || ac_type='long int'
6276 cat >>confdefs.h <<_ACEOF
6277 #define intmax_t $ac_type
6278 _ACEOF
6284 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6285 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6287 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6289 else
6290 for ac_type in 'int' 'long int' 'long long int'; do
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 $ac_includes_default
6295 main ()
6297 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6298 test_array [0] = 0
6301 return 0;
6303 _ACEOF
6304 if ac_fn_cxx_try_compile "$LINENO"; then :
6306 cat >>confdefs.h <<_ACEOF
6307 #define intptr_t $ac_type
6308 _ACEOF
6310 ac_type=
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 test -z "$ac_type" && break
6314 done
6318 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6319 case $ac_cv_c_uint8_t in #(
6320 no|yes) ;; #(
6323 $as_echo "#define _UINT8_T 1" >>confdefs.h
6326 cat >>confdefs.h <<_ACEOF
6327 #define uint8_t $ac_cv_c_uint8_t
6328 _ACEOF
6330 esac
6332 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6333 case $ac_cv_c_uint16_t in #(
6334 no|yes) ;; #(
6338 cat >>confdefs.h <<_ACEOF
6339 #define uint16_t $ac_cv_c_uint16_t
6340 _ACEOF
6342 esac
6344 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6345 case $ac_cv_c_uint32_t in #(
6346 no|yes) ;; #(
6349 $as_echo "#define _UINT32_T 1" >>confdefs.h
6352 cat >>confdefs.h <<_ACEOF
6353 #define uint32_t $ac_cv_c_uint32_t
6354 _ACEOF
6356 esac
6358 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6359 case $ac_cv_c_uint64_t in #(
6360 no|yes) ;; #(
6363 $as_echo "#define _UINT64_T 1" >>confdefs.h
6366 cat >>confdefs.h <<_ACEOF
6367 #define uint64_t $ac_cv_c_uint64_t
6368 _ACEOF
6370 esac
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6374 $as_echo_n "checking for unsigned long long int... " >&6; }
6375 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6381 /* For now, do not test the preprocessor; as of 2007 there are too many
6382 implementations with broken preprocessors. Perhaps this can
6383 be revisited in 2012. In the meantime, code should not expect
6384 #if to work with literals wider than 32 bits. */
6385 /* Test literals. */
6386 long long int ll = 9223372036854775807ll;
6387 long long int nll = -9223372036854775807LL;
6388 unsigned long long int ull = 18446744073709551615ULL;
6389 /* Test constant expressions. */
6390 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6391 ? 1 : -1)];
6392 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6393 ? 1 : -1)];
6394 int i = 63;
6396 main ()
6398 /* Test availability of runtime routines for shift and division. */
6399 long long int llmax = 9223372036854775807ll;
6400 unsigned long long int ullmax = 18446744073709551615ull;
6401 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6402 | (llmax / ll) | (llmax % ll)
6403 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6404 | (ullmax / ull) | (ullmax % ull));
6406 return 0;
6409 _ACEOF
6410 if ac_fn_cxx_try_link "$LINENO"; then :
6411 ac_cv_type_unsigned_long_long_int=yes
6412 else
6413 ac_cv_type_unsigned_long_long_int=no
6415 rm -f core conftest.err conftest.$ac_objext \
6416 conftest$ac_exeext conftest.$ac_ext
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6419 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6420 if test $ac_cv_type_unsigned_long_long_int = yes; then
6422 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6428 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6429 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6431 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6433 else
6434 test $ac_cv_type_unsigned_long_long_int = yes \
6435 && ac_type='unsigned long long int' \
6436 || ac_type='unsigned long int'
6438 cat >>confdefs.h <<_ACEOF
6439 #define uintmax_t $ac_type
6440 _ACEOF
6446 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6447 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6449 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6451 else
6452 for ac_type in 'unsigned int' 'unsigned long int' \
6453 'unsigned long long int'; do
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 $ac_includes_default
6458 main ()
6460 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6461 test_array [0] = 0
6464 return 0;
6466 _ACEOF
6467 if ac_fn_cxx_try_compile "$LINENO"; then :
6469 cat >>confdefs.h <<_ACEOF
6470 #define uintptr_t $ac_type
6471 _ACEOF
6473 ac_type=
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 test -z "$ac_type" && break
6477 done
6493 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6494 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6497 # check what underlying integer type int64_t uses
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6499 $as_echo_n "checking for int64_t underlying type... " >&6; }
6500 if test "${ac_cv_int64_t_type+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 #ifdef HAVE_STDINT_H
6508 #include <stdint.h>
6509 #endif
6510 template <typename T> struct X { };
6511 template <>
6512 struct X<long> { typedef long t; };
6515 main ()
6517 X<int64_t>::t x;
6519 return 0;
6521 _ACEOF
6522 if ac_fn_cxx_try_compile "$LINENO"; then :
6523 ac_cv_int64_t_type=long
6524 else
6525 ac_cv_int64_t_type="long long"
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6530 $as_echo "$ac_cv_int64_t_type" >&6; }
6531 if test "$ac_cv_int64_t_type" = "long"; then
6533 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6539 #ifdef HAVE_STDINT_H
6540 #include <stdint.h>
6541 #endif
6542 template <typename T> struct X { };
6543 template <>
6544 struct X<long long> { typedef long long t; };
6547 main ()
6549 X<int64_t>::t x;
6551 return 0;
6553 _ACEOF
6554 if ac_fn_cxx_try_compile "$LINENO"; then :
6556 else
6557 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6563 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6564 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6571 #include <utility>
6574 main ()
6576 int a, b; std::swap(a,b);
6578 return 0;
6580 _ACEOF
6581 if ac_fn_cxx_try_compile "$LINENO"; then :
6582 ac_cv_std_swap_in_utility=yes
6583 else
6584 ac_cv_std_swap_in_utility=no
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6589 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6590 if test $ac_cv_std_swap_in_utility = yes; then
6592 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6596 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6597 # If the host compiler is affected by the bug, and we build with optimization
6598 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6599 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6600 # Since there is no reliable feature check for the presence of this bug,
6601 # we simply use a GCC version number check. (This should never trigger for
6602 # stages 2 or 3 of a native bootstrap.)
6603 aliasing_flags=
6604 if test "$GCC" = yes; then
6605 saved_CXXFLAGS="$CXXFLAGS"
6607 # The following test compilation will succeed if and only if $CXX accepts
6608 # -fno-strict-aliasing *and* is older than GCC 4.3.
6609 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6611 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6615 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6616 #error compiler not affected by placement new aliasing bug
6617 #endif
6619 _ACEOF
6620 if ac_fn_cxx_try_compile "$LINENO"; then :
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6622 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6623 else
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 CXXFLAGS="$saved_CXXFLAGS"
6635 # ---------------------
6636 # Warnings and checking
6637 # ---------------------
6639 # Check $CC warning features (if it's GCC).
6640 # We want to use -pedantic, but we don't want warnings about
6641 # * 'long long'
6642 # * variadic macros
6643 # * overlong strings
6644 # * C++11 narrowing conversions in { }
6645 # So, we only use -pedantic if we can disable those warnings.
6647 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6648 # Check whether --enable-build-format-warnings was given.
6649 if test "${enable_build_format_warnings+set}" = set; then :
6650 enableval=$enable_build_format_warnings;
6651 else
6652 enable_build_format_warnings=yes
6655 if test $enable_build_format_warnings = no; then :
6656 wf_opt=-Wno-format
6657 else
6658 wf_opt=
6660 ac_ext=cpp
6661 ac_cpp='$CXXCPP $CPPFLAGS'
6662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6666 loose_warn=
6667 save_CXXFLAGS="$CXXFLAGS"
6668 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6669 # Do the check with the no- prefix removed since gcc silently
6670 # accepts any -Wno-* option on purpose
6671 case $real_option in
6672 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6673 *) option=$real_option ;;
6674 esac
6675 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6678 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6679 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 CXXFLAGS="$option"
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6687 main ()
6691 return 0;
6693 _ACEOF
6694 if ac_fn_cxx_try_compile "$LINENO"; then :
6695 eval "$as_acx_Woption=yes"
6696 else
6697 eval "$as_acx_Woption=no"
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702 eval ac_res=\$$as_acx_Woption
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6704 $as_echo "$ac_res" >&6; }
6705 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6706 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6708 done
6709 CXXFLAGS="$save_CXXFLAGS"
6710 ac_ext=cpp
6711 ac_cpp='$CXXCPP $CPPFLAGS'
6712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6718 ac_ext=c
6719 ac_cpp='$CPP $CPPFLAGS'
6720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6724 c_loose_warn=
6725 save_CFLAGS="$CFLAGS"
6726 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6727 # Do the check with the no- prefix removed since gcc silently
6728 # accepts any -Wno-* option on purpose
6729 case $real_option in
6730 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6731 *) option=$real_option ;;
6732 esac
6733 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6736 $as_echo_n "checking whether $CC supports $option... " >&6; }
6737 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 CFLAGS="$option"
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6745 main ()
6749 return 0;
6751 _ACEOF
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 eval "$as_acx_Woption=yes"
6754 else
6755 eval "$as_acx_Woption=no"
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 eval ac_res=\$$as_acx_Woption
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6762 $as_echo "$ac_res" >&6; }
6763 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6764 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6766 done
6767 CFLAGS="$save_CFLAGS"
6768 ac_ext=cpp
6769 ac_cpp='$CXXCPP $CPPFLAGS'
6770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6775 ac_ext=cpp
6776 ac_cpp='$CXXCPP $CPPFLAGS'
6777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6781 strict_warn=
6782 save_CXXFLAGS="$CXXFLAGS"
6783 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6784 # Do the check with the no- prefix removed since gcc silently
6785 # accepts any -Wno-* option on purpose
6786 case $real_option in
6787 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6788 *) option=$real_option ;;
6789 esac
6790 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6793 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6794 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 CXXFLAGS="$option"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6802 main ()
6806 return 0;
6808 _ACEOF
6809 if ac_fn_cxx_try_compile "$LINENO"; then :
6810 eval "$as_acx_Woption=yes"
6811 else
6812 eval "$as_acx_Woption=no"
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 eval ac_res=\$$as_acx_Woption
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6819 $as_echo "$ac_res" >&6; }
6820 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6821 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6823 done
6824 CXXFLAGS="$save_CXXFLAGS"
6825 ac_ext=cpp
6826 ac_cpp='$CXXCPP $CPPFLAGS'
6827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6832 ac_ext=c
6833 ac_cpp='$CPP $CPPFLAGS'
6834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838 c_strict_warn=
6839 save_CFLAGS="$CFLAGS"
6840 for real_option in -Wold-style-definition -Wc++-compat; do
6841 # Do the check with the no- prefix removed since gcc silently
6842 # accepts any -Wno-* option on purpose
6843 case $real_option in
6844 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6845 *) option=$real_option ;;
6846 esac
6847 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6850 $as_echo_n "checking whether $CC supports $option... " >&6; }
6851 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 CFLAGS="$option"
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6859 main ()
6863 return 0;
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867 eval "$as_acx_Woption=yes"
6868 else
6869 eval "$as_acx_Woption=no"
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 eval ac_res=\$$as_acx_Woption
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6876 $as_echo "$ac_res" >&6; }
6877 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6878 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6880 done
6881 CFLAGS="$save_CFLAGS"
6882 ac_ext=cpp
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6889 ac_ext=cpp
6890 ac_cpp='$CXXCPP $CPPFLAGS'
6891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6895 # Do the check with the no- prefix removed from the warning options
6896 # since gcc silently accepts any -Wno-* option on purpose
6897 if test "$GXX" = yes; then :
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6899 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6900 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 save_CXXFLAGS="$CXXFLAGS"
6904 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6909 main ()
6913 return 0;
6915 _ACEOF
6916 if ac_fn_cxx_try_compile "$LINENO"; then :
6917 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6918 else
6919 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 CXXFLAGS="$save_CXXFLAGS"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6925 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6926 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6927 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6931 ac_ext=cpp
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6938 ac_ext=cpp
6939 ac_cpp='$CXXCPP $CPPFLAGS'
6940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6944 # Check whether --enable-werror-always was given.
6945 if test "${enable_werror_always+set}" = set; then :
6946 enableval=$enable_werror_always;
6947 else
6948 enable_werror_always=no
6951 if test $enable_werror_always = yes; then :
6952 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6955 ac_ext=cpp
6956 ac_cpp='$CXXCPP $CPPFLAGS'
6957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6963 # The above macros do nothing if the compiler is not GCC. However, the
6964 # Makefile has more goo to add other flags, so these variables are used
6965 # to enable warnings only for GCC.
6966 warn_cflags=
6967 warn_cxxflags=
6968 if test "x$GCC" = "xyes"; then
6969 warn_cflags='$(GCC_WARN_CFLAGS)'
6970 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6975 # Disable exceptions and RTTI if building with g++
6976 ac_ext=c
6977 ac_cpp='$CPP $CPPFLAGS'
6978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982 noexception_flags=
6983 save_CFLAGS="$CFLAGS"
6984 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6985 # Do the check with the no- prefix removed since gcc silently
6986 # accepts any -Wno-* option on purpose
6987 case $real_option in
6988 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6989 *) option=$real_option ;;
6990 esac
6991 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6994 $as_echo_n "checking whether $CC supports $option... " >&6; }
6995 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 CFLAGS="$option"
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7003 main ()
7007 return 0;
7009 _ACEOF
7010 if ac_fn_c_try_compile "$LINENO"; then :
7011 eval "$as_acx_Woption=yes"
7012 else
7013 eval "$as_acx_Woption=no"
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 eval ac_res=\$$as_acx_Woption
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7020 $as_echo "$ac_res" >&6; }
7021 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7022 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7024 done
7025 CFLAGS="$save_CFLAGS"
7026 ac_ext=cpp
7027 ac_cpp='$CXXCPP $CPPFLAGS'
7028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7034 # Enable expensive internal checks
7035 is_release=
7036 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7037 is_release=yes
7040 # Check whether --enable-checking was given.
7041 if test "${enable_checking+set}" = set; then :
7042 enableval=$enable_checking; ac_checking_flags="${enableval}"
7043 else
7045 # Determine the default checks.
7046 if test x$is_release = x ; then
7047 ac_checking_flags=yes,extra
7048 else
7049 ac_checking_flags=release
7053 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7054 for check in release $ac_checking_flags
7056 case $check in
7057 # these set all the flags to specific states
7058 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7059 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7060 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7061 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7062 ac_tree_checking=1 ; ac_valgrind_checking= ;
7063 ac_types_checking=1 ;;
7064 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7065 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7066 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7067 ac_rtlflag_checking= ; ac_runtime_checking= ;
7068 ac_tree_checking= ; ac_valgrind_checking= ;
7069 ac_types_checking= ;;
7070 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7071 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7072 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7073 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7074 ac_tree_checking=1 ; ac_valgrind_checking= ;
7075 ac_types_checking=1 ;;
7076 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7077 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7078 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7079 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7080 ac_tree_checking= ; ac_valgrind_checking= ;
7081 ac_types_checking= ;;
7082 # these enable particular checks
7083 assert) ac_assert_checking=1 ;;
7084 df) ac_df_checking=1 ;;
7085 extra) ac_extra_checking=1 ;;
7086 fold) ac_fold_checking=1 ;;
7087 gc) ac_gc_checking=1 ;;
7088 gcac) ac_gc_always_collect=1 ;;
7089 gimple) ac_gimple_checking=1 ;;
7090 misc) ac_checking=1 ;;
7091 rtl) ac_rtl_checking=1 ;;
7092 rtlflag) ac_rtlflag_checking=1 ;;
7093 runtime) ac_runtime_checking=1 ;;
7094 tree) ac_tree_checking=1 ;;
7095 types) ac_types_checking=1 ;;
7096 valgrind) ac_valgrind_checking=1 ;;
7097 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7098 esac
7099 done
7100 IFS="$ac_save_IFS"
7102 nocommon_flag=""
7103 if test x$ac_checking != x ; then
7105 $as_echo "#define CHECKING_P 1" >>confdefs.h
7107 nocommon_flag=-fno-common
7108 else
7109 $as_echo "#define CHECKING_P 0" >>confdefs.h
7113 if test x$ac_extra_checking != x ; then
7115 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7117 else
7118 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7121 if test x$ac_df_checking != x ; then
7123 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7126 if test x$ac_assert_checking != x ; then
7128 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7131 if test x$ac_gimple_checking != x ; then
7133 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7137 if test x$ac_runtime_checking != x ; then
7139 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7142 if test x$ac_tree_checking != x ; then
7144 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7146 TREECHECKING=yes
7148 if test x$ac_types_checking != x ; then
7150 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7154 if test x$ac_rtl_checking != x ; then
7156 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7159 if test x$ac_rtlflag_checking != x ; then
7161 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7164 if test x$ac_gc_checking != x ; then
7166 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7169 if test x$ac_gc_always_collect != x ; then
7171 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7174 if test x$ac_fold_checking != x ; then
7176 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7179 valgrind_path_defines=
7180 valgrind_command=
7182 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7183 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7184 have_valgrind_h=yes
7185 else
7186 have_valgrind_h=no
7191 # It is certainly possible that there's valgrind but no valgrind.h.
7192 # GCC relies on making annotations so we must have both.
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7194 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 #include <valgrind/memcheck.h>
7198 #ifndef VALGRIND_DISCARD
7199 #error VALGRIND_DISCARD not defined
7200 #endif
7201 _ACEOF
7202 if ac_fn_cxx_try_cpp "$LINENO"; then :
7203 gcc_cv_header_valgrind_memcheck_h=yes
7204 else
7205 gcc_cv_header_valgrind_memcheck_h=no
7207 rm -f conftest.err conftest.$ac_ext
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7209 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7211 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 #include <memcheck.h>
7215 #ifndef VALGRIND_DISCARD
7216 #error VALGRIND_DISCARD not defined
7217 #endif
7218 _ACEOF
7219 if ac_fn_cxx_try_cpp "$LINENO"; then :
7220 gcc_cv_header_memcheck_h=yes
7221 else
7222 gcc_cv_header_memcheck_h=no
7224 rm -f conftest.err conftest.$ac_ext
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7226 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7227 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7229 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7232 if test $gcc_cv_header_memcheck_h = yes; then
7234 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7238 if test x$ac_valgrind_checking != x ; then
7240 # Prepare PATH_SEPARATOR.
7241 # The user is always right.
7242 if test "${PATH_SEPARATOR+set}" != set; then
7243 echo "#! /bin/sh" >conf$$.sh
7244 echo "exit 0" >>conf$$.sh
7245 chmod +x conf$$.sh
7246 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7247 PATH_SEPARATOR=';'
7248 else
7249 PATH_SEPARATOR=:
7251 rm -f conf$$.sh
7254 # Find out how to test for executable files. Don't use a zero-byte file,
7255 # as systems may use methods other than mode bits to determine executability.
7256 cat >conf$$.file <<_ASEOF
7257 #! /bin/sh
7258 exit 0
7259 _ASEOF
7260 chmod +x conf$$.file
7261 if test -x conf$$.file >/dev/null 2>&1; then
7262 ac_executable_p="test -x"
7263 else
7264 ac_executable_p="test -f"
7266 rm -f conf$$.file
7268 # Extract the first word of "valgrind", so it can be a program name with args.
7269 set dummy valgrind; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 case "$valgrind_path" in
7276 [\\/]* | ?:[\\/]*)
7277 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7280 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7281 for ac_dir in $PATH; do
7282 IFS="$ac_save_IFS"
7283 test -z "$ac_dir" && ac_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7286 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7287 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7288 break 2
7291 done
7292 done
7293 IFS="$ac_save_IFS"
7295 esac
7297 valgrind_path="$ac_cv_path_valgrind_path"
7298 if test -n "$valgrind_path"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7300 $as_echo "$valgrind_path" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7306 if test "x$valgrind_path" = "x" \
7307 || (test $have_valgrind_h = no \
7308 && test $gcc_cv_header_memcheck_h = no \
7309 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7310 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7312 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7313 valgrind_command="$valgrind_path -q"
7315 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7321 # Enable code coverage collection
7322 # Check whether --enable-coverage was given.
7323 if test "${enable_coverage+set}" = set; then :
7324 enableval=$enable_coverage; case "${enableval}" in
7325 yes|noopt)
7326 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7328 opt)
7329 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7332 # a.k.a. --disable-coverage
7333 coverage_flags=""
7336 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7338 esac
7339 else
7340 coverage_flags=""
7345 # Check whether --enable-gather-detailed-mem-stats was given.
7346 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7347 enableval=$enable_gather_detailed_mem_stats;
7348 else
7349 enable_gather_detailed_mem_stats=no
7352 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7354 cat >>confdefs.h <<_ACEOF
7355 #define GATHER_STATISTICS $gather_stats
7356 _ACEOF
7359 # Check whether --enable-valgrind-annotations was given.
7360 if test "${enable_valgrind_annotations+set}" = set; then :
7361 enableval=$enable_valgrind_annotations;
7362 else
7363 enable_valgrind_annotations=no
7366 if test x$enable_valgrind_annotations != xno \
7367 || test x$ac_valgrind_checking != x; then
7368 if (test $have_valgrind_h = no \
7369 && test $gcc_cv_header_memcheck_h = no \
7370 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7371 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7374 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7378 # -------------------------------
7379 # Miscenalleous configure options
7380 # -------------------------------
7382 # With stabs
7384 # Check whether --with-stabs was given.
7385 if test "${with_stabs+set}" = set; then :
7386 withval=$with_stabs; stabs="$with_stabs"
7387 else
7388 stabs=no
7392 # Determine whether or not multilibs are enabled.
7393 # Check whether --enable-multilib was given.
7394 if test "${enable_multilib+set}" = set; then :
7395 enableval=$enable_multilib;
7396 else
7397 enable_multilib=yes
7402 # Determine whether or not multiarch is enabled.
7403 # Check whether --enable-multiarch was given.
7404 if test "${enable_multiarch+set}" = set; then :
7405 enableval=$enable_multiarch; case "${enableval}" in
7406 yes|no|auto) enable_multiarch=$enableval;;
7407 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7408 esac
7409 else
7410 enable_multiarch=auto
7413 if test x${enable_multiarch} = xauto; then
7414 if test x${with_native_system_header_dir} != x; then
7415 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7416 enable_multiarch=no
7418 if test x$host != x$target && test "x$with_sysroot" = x; then
7419 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7420 enable_multiarch=no
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7424 $as_echo_n "checking for multiarch configuration... " >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7427 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7429 # needed for setting the multiarch name for soft-float/hard-float ABIs
7433 # Enable __cxa_atexit for C++.
7434 # Check whether --enable-__cxa_atexit was given.
7435 if test "${enable___cxa_atexit+set}" = set; then :
7436 enableval=$enable___cxa_atexit;
7440 # Enable C extension for decimal float if target supports it.
7442 # Check whether --enable-decimal-float was given.
7443 if test "${enable_decimal_float+set}" = set; then :
7444 enableval=$enable_decimal_float;
7445 case $enable_decimal_float in
7446 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7447 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7448 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7449 esac
7451 else
7453 case $target in
7454 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7455 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7456 i?86*-*-mingw* | x86_64*-*-mingw* | \
7457 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7458 enable_decimal_float=yes
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7462 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7463 enable_decimal_float=no
7465 esac
7470 # x86's use BID format instead of DPD
7471 case x$enable_decimal_float in
7472 xyes)
7473 case $target in
7474 i?86*-*-* | x86_64*-*-*)
7475 enable_decimal_float=bid
7478 enable_decimal_float=dpd
7480 esac
7481 default_decimal_float=$enable_decimal_float
7483 xno)
7484 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7485 # dependency on libdecnumber.
7486 default_decimal_float=dpd
7488 esac
7493 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7495 cat >>confdefs.h <<_ACEOF
7496 #define ENABLE_DECIMAL_FLOAT $dfp
7497 _ACEOF
7500 # Use default_decimal_float for dependency.
7501 enable_decimal_float=$default_decimal_float
7503 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7505 cat >>confdefs.h <<_ACEOF
7506 #define ENABLE_DECIMAL_BID_FORMAT $bid
7507 _ACEOF
7510 # Enable C extension for fixed-point arithmetic.
7511 # Check whether --enable-fixed-point was given.
7512 if test "${enable_fixed_point+set}" = set; then :
7513 enableval=$enable_fixed_point;
7514 else
7516 case $target in
7517 arm*)
7518 enable_fixed_point=yes
7521 mips*-*-*)
7522 enable_fixed_point=yes
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7526 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7527 enable_fixed_point=no
7529 esac
7535 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7537 cat >>confdefs.h <<_ACEOF
7538 #define ENABLE_FIXED_POINT $fixedpoint
7539 _ACEOF
7542 # Enable threads
7543 # Pass with no value to take the default
7544 # Pass with a value to specify a thread package
7545 # Check whether --enable-threads was given.
7546 if test "${enable_threads+set}" = set; then :
7547 enableval=$enable_threads;
7548 else
7549 enable_threads=''
7553 # Check whether --enable-tls was given.
7554 if test "${enable_tls+set}" = set; then :
7555 enableval=$enable_tls;
7556 case $enable_tls in
7557 yes | no) ;;
7558 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7559 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7560 esac
7562 else
7563 enable_tls=''
7567 # Check whether --enable-vtable-verify was given.
7568 if test "${enable_vtable_verify+set}" = set; then :
7569 enableval=$enable_vtable_verify;
7570 else
7571 enable_vtable_verify=no
7574 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7576 cat >>confdefs.h <<_ACEOF
7577 #define ENABLE_VTABLE_VERIFY $vtable_verify
7578 _ACEOF
7581 # Check whether --enable-objc-gc was given.
7582 if test "${enable_objc_gc+set}" = set; then :
7583 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7584 objc_boehm_gc=''
7585 else
7586 objc_boehm_gc=1
7588 else
7589 objc_boehm_gc=''
7594 # Check whether --with-dwarf2 was given.
7595 if test "${with_dwarf2+set}" = set; then :
7596 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7597 else
7598 dwarf2=no
7602 # Check whether --enable-shared was given.
7603 if test "${enable_shared+set}" = set; then :
7604 enableval=$enable_shared;
7605 case $enable_shared in
7606 yes | no) ;;
7608 enable_shared=no
7609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7610 for pkg in $enableval; do
7611 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7612 enable_shared=yes
7614 done
7615 IFS="$ac_save_ifs"
7617 esac
7619 else
7620 enable_shared=yes
7626 # Check whether --with-specs was given.
7627 if test "${with_specs+set}" = set; then :
7628 withval=$with_specs; CONFIGURE_SPECS=$withval
7629 else
7630 CONFIGURE_SPECS=
7638 # Check whether --with-pkgversion was given.
7639 if test "${with_pkgversion+set}" = set; then :
7640 withval=$with_pkgversion; case "$withval" in
7641 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7642 no) PKGVERSION= ;;
7643 *) PKGVERSION="($withval) " ;;
7644 esac
7645 else
7646 PKGVERSION="(GCC) "
7654 # Check whether --with-bugurl was given.
7655 if test "${with_bugurl+set}" = set; then :
7656 withval=$with_bugurl; case "$withval" in
7657 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7658 no) BUGURL=
7660 *) BUGURL="$withval"
7662 esac
7663 else
7664 BUGURL="https://gcc.gnu.org/bugs/"
7668 case ${BUGURL} in
7670 REPORT_BUGS_TO=
7671 REPORT_BUGS_TEXI=
7674 REPORT_BUGS_TO="<$BUGURL>"
7675 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7677 esac;
7682 # Sanity check enable_languages in case someone does not run the toplevel
7683 # configure # script.
7684 # Check whether --enable-languages was given.
7685 if test "${enable_languages+set}" = set; then :
7686 enableval=$enable_languages; case ,${enable_languages}, in
7687 ,,|,yes,)
7688 # go safe -- we cannot be much sure without the toplevel
7689 # configure's
7690 # analysis of which target libs are present and usable
7691 enable_languages=c
7693 *,all,*)
7694 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7696 *,c,*)
7699 enable_languages=c,${enable_languages}
7701 esac
7702 else
7703 enable_languages=c
7707 if test x"$enable_as_accelerator_for" != x; then
7709 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7711 enable_as_accelerator=yes
7712 case "${target}" in
7713 *-intelmicemul-*)
7714 # In this case we expect offload compiler to be built as native, so we
7715 # need to rename the driver to avoid clashes with host's drivers.
7716 program_transform_name="s&^&${target}-&" ;;
7717 esac
7718 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7719 program_transform_name=`echo $program_transform_name | sed $sedscript`
7720 accel_dir_suffix=/accel/${target_noncanonical}
7721 real_target_noncanonical=${enable_as_accelerator_for}
7727 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7728 tgt=`echo $tgt | sed 's/=.*//'`
7730 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7731 enable_hsa=1
7732 else
7733 enable_offloading=1
7736 if test x"$offload_targets" = x; then
7737 offload_targets=$tgt
7738 else
7739 offload_targets="$offload_targets,$tgt"
7741 done
7743 cat >>confdefs.h <<_ACEOF
7744 #define OFFLOAD_TARGETS "$offload_targets"
7745 _ACEOF
7747 if test x"$enable_offloading" != x; then
7749 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7751 else
7753 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7757 if test x"$enable_hsa" = x1 ; then
7759 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7764 # Check whether --with-multilib-list was given.
7765 if test "${with_multilib_list+set}" = set; then :
7766 withval=$with_multilib_list; :
7767 else
7768 with_multilib_list=default
7772 # -------------------------
7773 # Checks for other programs
7774 # -------------------------
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7777 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7778 set x ${MAKE-make}
7779 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7780 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat >conftest.make <<\_ACEOF
7784 SHELL = /bin/sh
7785 all:
7786 @echo '@@@%%%=$(MAKE)=@@@%%%'
7787 _ACEOF
7788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7790 *@@@%%%=?*=@@@%%%*)
7791 eval ac_cv_prog_make_${ac_make}_set=yes;;
7793 eval ac_cv_prog_make_${ac_make}_set=no;;
7794 esac
7795 rm -f conftest.make
7797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7800 SET_MAKE=
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 SET_MAKE="MAKE=${MAKE-make}"
7808 # Find some useful tools
7809 for ac_prog in gawk mawk nawk awk
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_AWK+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$AWK"; then
7819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_AWK="$ac_prog"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7838 AWK=$ac_cv_prog_AWK
7839 if test -n "$AWK"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7841 $as_echo "$AWK" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7848 test -n "$AWK" && break
7849 done
7851 # We need awk to create options.c and options.h.
7852 # Bail out if it's missing.
7853 case ${AWK} in
7854 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7855 esac
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7858 $as_echo_n "checking whether ln -s works... " >&6; }
7859 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 rm -f conftestdata_t
7863 echo >conftestdata_f
7864 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7865 then
7866 gcc_cv_prog_LN_S="ln -s"
7867 else
7868 if ln conftestdata_f conftestdata_t 2>/dev/null
7869 then
7870 gcc_cv_prog_LN_S=ln
7871 else
7872 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7873 then
7874 gcc_cv_prog_LN_S="cp -p"
7875 else
7876 gcc_cv_prog_LN_S=cp
7880 rm -f conftestdata_f conftestdata_t
7883 LN_S="$gcc_cv_prog_LN_S"
7884 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7886 $as_echo "yes" >&6; }
7887 else
7888 if test "$gcc_cv_prog_LN_S" = "ln"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7890 $as_echo "no, using ln" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7893 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7898 $as_echo_n "checking whether ln works... " >&6; }
7899 if test "${acx_cv_prog_LN+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 rm -f conftestdata_t
7903 echo >conftestdata_f
7904 if ln conftestdata_f conftestdata_t 2>/dev/null
7905 then
7906 acx_cv_prog_LN=ln
7907 else
7908 acx_cv_prog_LN=no
7910 rm -f conftestdata_f conftestdata_t
7913 if test $acx_cv_prog_LN = no; then
7914 LN="$LN_S"
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7916 $as_echo "no, using $LN" >&6; }
7917 else
7918 LN="$acx_cv_prog_LN"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7920 $as_echo "yes" >&6; }
7923 if test -n "$ac_tool_prefix"; then
7924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 if test -n "$RANLIB"; then
7932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7945 done
7946 done
7947 IFS=$as_save_IFS
7951 RANLIB=$ac_cv_prog_RANLIB
7952 if test -n "$RANLIB"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7954 $as_echo "$RANLIB" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7962 if test -z "$ac_cv_prog_RANLIB"; then
7963 ac_ct_RANLIB=$RANLIB
7964 # Extract the first word of "ranlib", so it can be a program name with args.
7965 set dummy ranlib; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 if test -n "$ac_ct_RANLIB"; then
7972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_prog_ac_ct_RANLIB="ranlib"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7985 done
7986 done
7987 IFS=$as_save_IFS
7991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7992 if test -n "$ac_ct_RANLIB"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7994 $as_echo "$ac_ct_RANLIB" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
8000 if test "x$ac_ct_RANLIB" = x; then
8001 RANLIB=":"
8002 else
8003 case $cross_compiling:$ac_tool_warned in
8004 yes:)
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8007 ac_tool_warned=yes ;;
8008 esac
8009 RANLIB=$ac_ct_RANLIB
8011 else
8012 RANLIB="$ac_cv_prog_RANLIB"
8015 ranlib_flags=""
8018 # Find a good install program. We prefer a C program (faster),
8019 # so one script is as good as another. But avoid the broken or
8020 # incompatible versions:
8021 # SysV /etc/install, /usr/sbin/install
8022 # SunOS /usr/etc/install
8023 # IRIX /sbin/install
8024 # AIX /bin/install
8025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8027 # ./install, which can be erroneously created by make from ./install.sh.
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8029 $as_echo_n "checking for a BSD compatible install... " >&6; }
8030 if test -z "$INSTALL"; then
8031 if test "${ac_cv_path_install+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8035 for ac_dir in $PATH; do
8036 # Account for people who put trailing slashes in PATH elements.
8037 case "$ac_dir/" in
8038 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8040 # OSF1 and SCO ODT 3.0 have their own names for install.
8041 for ac_prog in ginstall scoinst install; do
8042 if test -f $ac_dir/$ac_prog; then
8043 if test $ac_prog = install &&
8044 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8045 # AIX install. It has an incompatible calling convention.
8046 # OSF/1 installbsd also uses dspmsg, but is usable.
8048 else
8049 ac_cv_path_install="$ac_dir/$ac_prog -c"
8050 break 2
8053 done
8055 esac
8056 done
8057 IFS="$ac_save_IFS"
8060 if test "${ac_cv_path_install+set}" = set; then
8061 INSTALL="$ac_cv_path_install"
8062 else
8063 # As a last resort, use the slow shell script. We don't cache a
8064 # path for INSTALL within a source directory, because that will
8065 # break other packages using the cache if that directory is
8066 # removed, or if the path is relative.
8067 INSTALL="$ac_install_sh"
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8071 $as_echo "$INSTALL" >&6; }
8073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8074 # It thinks the first close brace ends the variable substitution.
8075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8080 # See if cmp has --ignore-initial.
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8082 $as_echo_n "checking for cmp's capabilities... " >&6; }
8083 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 echo abfoo >t1
8087 echo cdfoo >t2
8088 gcc_cv_prog_cmp_skip=slowcompare
8089 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8090 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8092 else
8093 gcc_cv_prog_cmp_skip=gnucompare
8096 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8097 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8098 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8100 else
8101 gcc_cv_prog_cmp_skip=fastcompare
8105 rm t1 t2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8109 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8110 make_compare_target=$gcc_cv_prog_cmp_skip
8114 # See if we have the mktemp command.
8115 # Extract the first word of "mktemp", so it can be a program name with args.
8116 set dummy mktemp; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$have_mktemp_command"; then
8123 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_have_mktemp_command="yes"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8136 done
8137 done
8138 IFS=$as_save_IFS
8140 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8143 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8144 if test -n "$have_mktemp_command"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8146 $as_echo "$have_mktemp_command" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8154 # See if makeinfo has been installed and is modern enough
8155 # that we can use it.
8157 # Extract the first word of "makeinfo", so it can be a program name with args.
8158 set dummy makeinfo; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$MAKEINFO"; then
8165 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_prog_MAKEINFO="makeinfo"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8178 done
8179 done
8180 IFS=$as_save_IFS
8184 MAKEINFO=$ac_cv_prog_MAKEINFO
8185 if test -n "$MAKEINFO"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8187 $as_echo "$MAKEINFO" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8194 if test -n "$MAKEINFO"; then
8195 # Found it, now check the version.
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8197 $as_echo_n "checking for modern makeinfo... " >&6; }
8198 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8202 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8204 case $ac_prog_version in
8205 '') gcc_cv_prog_makeinfo_modern=no;;
8206 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8207 *) gcc_cv_prog_makeinfo_modern=no;;
8208 esac
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8212 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8213 else
8214 gcc_cv_prog_makeinfo_modern=no
8216 if test $gcc_cv_prog_makeinfo_modern = no; then
8217 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8220 if test $gcc_cv_prog_makeinfo_modern = no; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8222 *** Makeinfo is missing or too old.
8223 *** Info documentation will not be built." >&5
8224 $as_echo "$as_me: WARNING:
8225 *** Makeinfo is missing or too old.
8226 *** Info documentation will not be built." >&2;}
8227 BUILD_INFO=
8228 else
8229 BUILD_INFO=info
8233 # Is pod2man recent enough to regenerate manpages?
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8235 $as_echo_n "checking for recent Pod::Man... " >&6; }
8236 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8238 $as_echo "yes" >&6; }
8239 GENERATED_MANPAGES=generated-manpages
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 GENERATED_MANPAGES=
8247 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8249 # How about lex?
8250 for ac_prog in flex
8252 # Extract the first word of "$ac_prog", so it can be a program name with args.
8253 set dummy $ac_prog; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_FLEX+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 if test -n "$FLEX"; then
8260 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_FLEX="$ac_prog"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8273 done
8274 done
8275 IFS=$as_save_IFS
8279 FLEX=$ac_cv_prog_FLEX
8280 if test -n "$FLEX"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8282 $as_echo "$FLEX" >&6; }
8283 else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8289 test -n "$FLEX" && break
8290 done
8291 test -n "$FLEX" || FLEX="$MISSING flex"
8294 # Bison?
8295 for ac_prog in bison
8297 # Extract the first word of "$ac_prog", so it can be a program name with args.
8298 set dummy $ac_prog; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if test "${ac_cv_prog_BISON+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test -n "$BISON"; then
8305 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_prog_BISON="$ac_prog"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8318 done
8319 done
8320 IFS=$as_save_IFS
8324 BISON=$ac_cv_prog_BISON
8325 if test -n "$BISON"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8327 $as_echo "$BISON" >&6; }
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8334 test -n "$BISON" && break
8335 done
8336 test -n "$BISON" || BISON="$MISSING bison"
8339 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8340 # check for build == host before using them.
8342 # NM
8343 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8344 && test -d ../binutils ; then
8345 NM='${objdir}/../binutils/nm-new'
8346 else
8347 # Extract the first word of "nm", so it can be a program name with args.
8348 set dummy nm; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if test "${ac_cv_prog_NM+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test -n "$NM"; then
8355 ac_cv_prog_NM="$NM" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364 ac_cv_prog_NM="nm"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8368 done
8369 done
8370 IFS=$as_save_IFS
8372 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8375 NM=$ac_cv_prog_NM
8376 if test -n "$NM"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8378 $as_echo "$NM" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8387 # AR
8388 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8389 && test -d ../binutils ; then
8390 AR='${objdir}/../binutils/ar'
8391 else
8392 # Extract the first word of "ar", so it can be a program name with args.
8393 set dummy ar; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if test "${ac_cv_prog_AR+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 if test -n "$AR"; then
8400 ac_cv_prog_AR="$AR" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_prog_AR="ar"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8413 done
8414 done
8415 IFS=$as_save_IFS
8417 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8420 AR=$ac_cv_prog_AR
8421 if test -n "$AR"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8423 $as_echo "$AR" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8432 # The jit documentation looks better if built with sphinx, but can be
8433 # built with texinfo if sphinx is not available.
8434 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8435 # Extract the first word of "sphinx-build", so it can be a program name with args.
8436 set dummy sphinx-build; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 if test -n "$doc_build_sys"; then
8443 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_doc_build_sys="sphinx"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8456 done
8457 done
8458 IFS=$as_save_IFS
8460 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8463 doc_build_sys=$ac_cv_prog_doc_build_sys
8464 if test -n "$doc_build_sys"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8466 $as_echo "$doc_build_sys" >&6; }
8467 else
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8474 # --------------------
8475 # Checks for C headers
8476 # --------------------
8478 # Need to reject headers which give warnings, so that the -Werror bootstrap
8479 # works later. *sigh* This needs to come before all header checks.
8481 ac_c_preproc_warn_flag=yes
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8484 $as_echo_n "checking for ANSI C header files... " >&6; }
8485 if test "${ac_cv_header_stdc+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 #include <stdlib.h>
8491 #include <stdarg.h>
8492 #include <string.h>
8493 #include <float.h>
8496 main ()
8500 return 0;
8502 _ACEOF
8503 if ac_fn_cxx_try_compile "$LINENO"; then :
8504 ac_cv_header_stdc=yes
8505 else
8506 ac_cv_header_stdc=no
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 if test $ac_cv_header_stdc = yes; then
8511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 #include <string.h>
8516 _ACEOF
8517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8518 $EGREP "memchr" >/dev/null 2>&1; then :
8520 else
8521 ac_cv_header_stdc=no
8523 rm -f conftest*
8527 if test $ac_cv_header_stdc = yes; then
8528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 #include <stdlib.h>
8533 _ACEOF
8534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8535 $EGREP "free" >/dev/null 2>&1; then :
8537 else
8538 ac_cv_header_stdc=no
8540 rm -f conftest*
8544 if test $ac_cv_header_stdc = yes; then
8545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8546 if test "$cross_compiling" = yes; then :
8548 else
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <ctype.h>
8552 #include <stdlib.h>
8553 #if ((' ' & 0x0FF) == 0x020)
8554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8556 #else
8557 # define ISLOWER(c) \
8558 (('a' <= (c) && (c) <= 'i') \
8559 || ('j' <= (c) && (c) <= 'r') \
8560 || ('s' <= (c) && (c) <= 'z'))
8561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8562 #endif
8564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8566 main ()
8568 int i;
8569 for (i = 0; i < 256; i++)
8570 if (XOR (islower (i), ISLOWER (i))
8571 || toupper (i) != TOUPPER (i))
8572 return 2;
8573 return 0;
8575 _ACEOF
8576 if ac_fn_cxx_try_run "$LINENO"; then :
8578 else
8579 ac_cv_header_stdc=no
8581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8582 conftest.$ac_objext conftest.beam conftest.$ac_ext
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8588 $as_echo "$ac_cv_header_stdc" >&6; }
8589 if test $ac_cv_header_stdc = yes; then
8591 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8596 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8597 if test "${ac_cv_header_time+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 #include <sys/types.h>
8603 #include <sys/time.h>
8604 #include <time.h>
8607 main ()
8609 if ((struct tm *) 0)
8610 return 0;
8612 return 0;
8614 _ACEOF
8615 if ac_fn_cxx_try_compile "$LINENO"; then :
8616 ac_cv_header_time=yes
8617 else
8618 ac_cv_header_time=no
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8623 $as_echo "$ac_cv_header_time" >&6; }
8624 if test $ac_cv_header_time = yes; then
8626 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8631 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8632 if test "${gcc_cv_header_string+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <string.h>
8638 #include <strings.h>
8640 main ()
8644 return 0;
8646 _ACEOF
8647 if ac_fn_cxx_try_compile "$LINENO"; then :
8648 gcc_cv_header_string=yes
8649 else
8650 gcc_cv_header_string=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8655 $as_echo "$gcc_cv_header_string" >&6; }
8656 if test $gcc_cv_header_string = yes; then
8658 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8663 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8664 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #include <sys/types.h>
8670 #include <sys/wait.h>
8671 #ifndef WEXITSTATUS
8672 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8673 #endif
8674 #ifndef WIFEXITED
8675 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8676 #endif
8679 main ()
8681 int s;
8682 wait (&s);
8683 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8685 return 0;
8687 _ACEOF
8688 if ac_fn_cxx_try_compile "$LINENO"; then :
8689 ac_cv_header_sys_wait_h=yes
8690 else
8691 ac_cv_header_sys_wait_h=no
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8696 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8697 if test $ac_cv_header_sys_wait_h = yes; then
8699 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8704 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8705 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 #include <sys/types.h>
8711 #include <termios.h>
8712 #ifdef TIOCGWINSZ
8714 #endif
8716 _ACEOF
8717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8718 $EGREP "yes" >/dev/null 2>&1; then :
8719 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8720 else
8721 ac_cv_sys_tiocgwinsz_in_termios_h=no
8723 rm -f conftest*
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8727 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8729 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8731 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8732 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 #include <sys/types.h>
8738 #include <sys/ioctl.h>
8739 #ifdef TIOCGWINSZ
8741 #endif
8743 _ACEOF
8744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "yes" >/dev/null 2>&1; then :
8746 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8747 else
8748 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8750 rm -f conftest*
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8754 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8756 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8758 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8763 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8764 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8765 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8766 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8767 do :
8768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8769 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8770 eval as_val=\$$as_ac_Header
8771 if test "x$as_val" = x""yes; then :
8772 cat >>confdefs.h <<_ACEOF
8773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8774 _ACEOF
8777 done
8780 # Check for thread headers.
8781 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8782 if test "x$ac_cv_header_thread_h" = x""yes; then :
8783 have_thread_h=yes
8784 else
8785 have_thread_h=
8788 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8789 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8790 have_pthread_h=yes
8791 else
8792 have_pthread_h=
8796 # These tests can't be done till we know if we have limits.h.
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8798 $as_echo_n "checking for CHAR_BIT... " >&6; }
8799 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 #ifdef HAVE_LIMITS_H
8805 #include <limits.h>
8806 #endif
8807 #ifdef CHAR_BIT
8808 found
8809 #endif
8810 _ACEOF
8811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8812 $EGREP "found" >/dev/null 2>&1; then :
8813 gcc_cv_decl_char_bit=yes
8814 else
8815 gcc_cv_decl_char_bit=no
8817 rm -f conftest*
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8822 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8823 if test $gcc_cv_decl_char_bit = no; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8825 $as_echo_n "checking number of bits in a byte... " >&6; }
8826 if test "${gcc_cv_c_nbby+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8830 gcc_cv_c_nbby=
8831 while test $i -lt 65; do
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8836 main ()
8838 switch(0) {
8839 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8840 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8843 return 0;
8845 _ACEOF
8846 if ac_fn_cxx_try_compile "$LINENO"; then :
8847 gcc_cv_c_nbby=$i; break
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 i=`expr $i + 1`
8851 done
8852 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8856 $as_echo "$gcc_cv_c_nbby" >&6; }
8857 if test $gcc_cv_c_nbby = failed; then
8858 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8859 else
8861 cat >>confdefs.h <<_ACEOF
8862 #define CHAR_BIT $gcc_cv_c_nbby
8863 _ACEOF
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8868 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8869 if test "${ac_cv_c_bigendian+set}" = set; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 ac_cv_c_bigendian=unknown
8873 # See if we're dealing with a universal compiler.
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 #ifndef __APPLE_CC__
8877 not a universal capable compiler
8878 #endif
8879 typedef int dummy;
8881 _ACEOF
8882 if ac_fn_cxx_try_compile "$LINENO"; then :
8884 # Check for potential -arch flags. It is not universal unless
8885 # there are at least two -arch flags with different values.
8886 ac_arch=
8887 ac_prev=
8888 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8889 if test -n "$ac_prev"; then
8890 case $ac_word in
8891 i?86 | x86_64 | ppc | ppc64)
8892 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8893 ac_arch=$ac_word
8894 else
8895 ac_cv_c_bigendian=universal
8896 break
8899 esac
8900 ac_prev=
8901 elif test "x$ac_word" = "x-arch"; then
8902 ac_prev=arch
8904 done
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 if test $ac_cv_c_bigendian = unknown; then
8908 # See if sys/param.h defines the BYTE_ORDER macro.
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 #include <sys/types.h>
8912 #include <sys/param.h>
8915 main ()
8917 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8918 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8919 && LITTLE_ENDIAN)
8920 bogus endian macros
8921 #endif
8924 return 0;
8926 _ACEOF
8927 if ac_fn_cxx_try_compile "$LINENO"; then :
8928 # It does; now see whether it defined to BIG_ENDIAN or not.
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 #include <sys/types.h>
8932 #include <sys/param.h>
8935 main ()
8937 #if BYTE_ORDER != BIG_ENDIAN
8938 not big endian
8939 #endif
8942 return 0;
8944 _ACEOF
8945 if ac_fn_cxx_try_compile "$LINENO"; then :
8946 ac_cv_c_bigendian=yes
8947 else
8948 ac_cv_c_bigendian=no
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954 if test $ac_cv_c_bigendian = unknown; then
8955 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 #include <limits.h>
8961 main ()
8963 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8964 bogus endian macros
8965 #endif
8968 return 0;
8970 _ACEOF
8971 if ac_fn_cxx_try_compile "$LINENO"; then :
8972 # It does; now see whether it defined to _BIG_ENDIAN or not.
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 #include <limits.h>
8978 main ()
8980 #ifndef _BIG_ENDIAN
8981 not big endian
8982 #endif
8985 return 0;
8987 _ACEOF
8988 if ac_fn_cxx_try_compile "$LINENO"; then :
8989 ac_cv_c_bigendian=yes
8990 else
8991 ac_cv_c_bigendian=no
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 if test $ac_cv_c_bigendian = unknown; then
8998 # Compile a test program.
8999 if test "$cross_compiling" = yes; then :
9000 # Try to guess by grepping values from an object file.
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9003 short int ascii_mm[] =
9004 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9005 short int ascii_ii[] =
9006 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9007 int use_ascii (int i) {
9008 return ascii_mm[i] + ascii_ii[i];
9010 short int ebcdic_ii[] =
9011 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9012 short int ebcdic_mm[] =
9013 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9014 int use_ebcdic (int i) {
9015 return ebcdic_mm[i] + ebcdic_ii[i];
9017 extern int foo;
9020 main ()
9022 return use_ascii (foo) == use_ebcdic (foo);
9024 return 0;
9026 _ACEOF
9027 if ac_fn_cxx_try_compile "$LINENO"; then :
9028 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9029 ac_cv_c_bigendian=yes
9031 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9032 if test "$ac_cv_c_bigendian" = unknown; then
9033 ac_cv_c_bigendian=no
9034 else
9035 # finding both strings is unlikely to happen, but who knows?
9036 ac_cv_c_bigendian=unknown
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 else
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 $ac_includes_default
9046 main ()
9049 /* Are we little or big endian? From Harbison&Steele. */
9050 union
9052 long int l;
9053 char c[sizeof (long int)];
9054 } u;
9055 u.l = 1;
9056 return u.c[sizeof (long int) - 1] == 1;
9059 return 0;
9061 _ACEOF
9062 if ac_fn_cxx_try_run "$LINENO"; then :
9063 ac_cv_c_bigendian=no
9064 else
9065 ac_cv_c_bigendian=yes
9067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9068 conftest.$ac_objext conftest.beam conftest.$ac_ext
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9074 $as_echo "$ac_cv_c_bigendian" >&6; }
9075 case $ac_cv_c_bigendian in #(
9076 yes)
9077 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9078 ;; #(
9080 ;; #(
9081 universal)
9083 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9085 ;; #(
9087 as_fn_error "unknown endianness
9088 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9089 esac
9092 # ----------------------
9093 # Checks for C++ headers
9094 # ----------------------
9096 ac_ext=cpp
9097 ac_cpp='$CXXCPP $CPPFLAGS'
9098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9102 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9103 if test -z "$CXXCPP"; then
9104 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 # Double quotes because CXXCPP needs to be expanded
9108 for CXXCPP in "$CXX -E" "/lib/cpp"
9110 ac_preproc_ok=false
9111 for ac_cxx_preproc_warn_flag in '' yes
9113 # Use a header file that comes with gcc, so configuring glibc
9114 # with a fresh cross-compiler works.
9115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9116 # <limits.h> exists even on freestanding compilers.
9117 # On the NeXT, cc -E runs the code through the compiler's parser,
9118 # not just through cpp. "Syntax error" is here to catch this case.
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9121 #ifdef __STDC__
9122 # include <limits.h>
9123 #else
9124 # include <assert.h>
9125 #endif
9126 Syntax error
9127 _ACEOF
9128 if ac_fn_cxx_try_cpp "$LINENO"; then :
9130 else
9131 # Broken: fails on valid input.
9132 continue
9134 rm -f conftest.err conftest.$ac_ext
9136 # OK, works on sane cases. Now check whether nonexistent headers
9137 # can be detected and how.
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 #include <ac_nonexistent.h>
9141 _ACEOF
9142 if ac_fn_cxx_try_cpp "$LINENO"; then :
9143 # Broken: success on invalid input.
9144 continue
9145 else
9146 # Passes both tests.
9147 ac_preproc_ok=:
9148 break
9150 rm -f conftest.err conftest.$ac_ext
9152 done
9153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9154 rm -f conftest.err conftest.$ac_ext
9155 if $ac_preproc_ok; then :
9156 break
9159 done
9160 ac_cv_prog_CXXCPP=$CXXCPP
9163 CXXCPP=$ac_cv_prog_CXXCPP
9164 else
9165 ac_cv_prog_CXXCPP=$CXXCPP
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9168 $as_echo "$CXXCPP" >&6; }
9169 ac_preproc_ok=false
9170 for ac_cxx_preproc_warn_flag in '' yes
9172 # Use a header file that comes with gcc, so configuring glibc
9173 # with a fresh cross-compiler works.
9174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9175 # <limits.h> exists even on freestanding compilers.
9176 # On the NeXT, cc -E runs the code through the compiler's parser,
9177 # not just through cpp. "Syntax error" is here to catch this case.
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 #ifdef __STDC__
9181 # include <limits.h>
9182 #else
9183 # include <assert.h>
9184 #endif
9185 Syntax error
9186 _ACEOF
9187 if ac_fn_cxx_try_cpp "$LINENO"; then :
9189 else
9190 # Broken: fails on valid input.
9191 continue
9193 rm -f conftest.err conftest.$ac_ext
9195 # OK, works on sane cases. Now check whether nonexistent headers
9196 # can be detected and how.
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9199 #include <ac_nonexistent.h>
9200 _ACEOF
9201 if ac_fn_cxx_try_cpp "$LINENO"; then :
9202 # Broken: success on invalid input.
9203 continue
9204 else
9205 # Passes both tests.
9206 ac_preproc_ok=:
9207 break
9209 rm -f conftest.err conftest.$ac_ext
9211 done
9212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9213 rm -f conftest.err conftest.$ac_ext
9214 if $ac_preproc_ok; then :
9216 else
9217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9220 See \`config.log' for more details." >&5
9221 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9222 See \`config.log' for more details." >&2;}; }
9225 ac_ext=cpp
9226 ac_cpp='$CXXCPP $CPPFLAGS'
9227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9232 for ac_header in unordered_map
9233 do :
9234 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9235 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_UNORDERED_MAP 1
9238 _ACEOF
9241 done
9243 for ac_header in tr1/unordered_map
9244 do :
9245 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9246 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_TR1_UNORDERED_MAP 1
9249 _ACEOF
9252 done
9254 for ac_header in ext/hash_map
9255 do :
9256 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9257 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9258 cat >>confdefs.h <<_ACEOF
9259 #define HAVE_EXT_HASH_MAP 1
9260 _ACEOF
9263 done
9266 # --------
9267 # Dependency checking.
9268 # --------
9270 rm -rf .tst 2>/dev/null
9271 mkdir .tst 2>/dev/null
9272 if test -d .tst; then
9273 am__leading_dot=.
9274 else
9275 am__leading_dot=_
9277 rmdir .tst 2>/dev/null
9279 DEPDIR="${am__leading_dot}deps"
9281 ac_config_commands="$ac_config_commands depdir"
9284 ac_config_commands="$ac_config_commands gccdepdir"
9287 depcc="$CXX" am_compiler_list=
9289 am_depcomp=$ac_aux_dir/depcomp
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9291 $as_echo_n "checking dependency style of $depcc... " >&6; }
9292 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 if test -f "$am_depcomp"; then
9296 # We make a subdir and do the tests there. Otherwise we can end up
9297 # making bogus files that we don't know about and never remove. For
9298 # instance it was reported that on HP-UX the gcc test will end up
9299 # making a dummy file named `D' -- because `-MD' means `put the output
9300 # in D'.
9301 mkdir conftest.dir
9302 # Copy depcomp to subdir because otherwise we won't find it if we're
9303 # using a relative directory.
9304 cp "$am_depcomp" conftest.dir
9305 cd conftest.dir
9306 # We will build objects and dependencies in a subdirectory because
9307 # it helps to detect inapplicable dependency modes. For instance
9308 # both Tru64's cc and ICC support -MD to output dependencies as a
9309 # side effect of compilation, but ICC will put the dependencies in
9310 # the current directory while Tru64 will put them in the object
9311 # directory.
9312 mkdir sub
9314 am_cv_CXX_dependencies_compiler_type=none
9315 if test "$am_compiler_list" = ""; then
9316 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9318 for depmode in $am_compiler_list; do
9319 if test $depmode = none; then break; fi
9321 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9322 # Setup a source with many dependencies, because some compilers
9323 # like to wrap large dependency lists on column 80 (with \), and
9324 # we should not choose a depcomp mode which is confused by this.
9326 # We need to recreate these files for each test, as the compiler may
9327 # overwrite some of them when testing with obscure command lines.
9328 # This happens at least with the AIX C compiler.
9329 : > sub/conftest.c
9330 for i in 1 2 3 4 5 6; do
9331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9333 # Solaris 8's {/usr,}/bin/sh.
9334 touch sub/conftst$i.h
9335 done
9336 echo "include sub/conftest.Po" > confmf
9338 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9339 # mode. It turns out that the SunPro C++ compiler does not properly
9340 # handle `-M -o', and we need to detect this.
9341 depcmd="depmode=$depmode \
9342 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9343 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9344 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9345 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9346 if env $depcmd > conftest.err 2>&1 &&
9347 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9348 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9349 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9350 # icc doesn't choke on unknown options, it will just issue warnings
9351 # or remarks (even with -Werror). So we grep stderr for any message
9352 # that says an option was ignored or not supported.
9353 # When given -MP, icc 7.0 and 7.1 complain thusly:
9354 # icc: Command line warning: ignoring option '-M'; no argument required
9355 # The diagnosis changed in icc 8.0:
9356 # icc: Command line remark: option '-MP' not supported
9357 if (grep 'ignoring option' conftest.err ||
9358 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9359 am_cv_CXX_dependencies_compiler_type=$depmode
9360 $as_echo "$as_me:$LINENO: success" >&5
9361 break
9364 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9365 sed -e 's/^/| /' < conftest.err >&5
9366 done
9368 cd ..
9369 rm -rf conftest.dir
9370 else
9371 am_cv_CXX_dependencies_compiler_type=none
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9376 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9377 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9378 then as_fn_error "no usable dependency style found" "$LINENO" 5
9379 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9384 # --------
9385 # UNSORTED
9386 # --------
9389 # These libraries may be used by collect2.
9390 # We may need a special search path to get them linked.
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9392 $as_echo_n "checking for collect2 libraries... " >&6; }
9393 if test "${gcc_cv_collect2_libs+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 save_LIBS="$LIBS"
9397 for libs in '' -lld -lmld \
9398 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9399 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9401 LIBS="$libs"
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9408 #ifdef __cplusplus
9409 extern "C"
9410 #endif
9411 char ldopen ();
9413 main ()
9415 return ldopen ();
9417 return 0;
9419 _ACEOF
9420 if ac_fn_cxx_try_link "$LINENO"; then :
9421 gcc_cv_collect2_libs="$libs"; break
9423 rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
9425 done
9426 LIBS="$save_LIBS"
9427 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9430 $as_echo "$gcc_cv_collect2_libs" >&6; }
9431 case $gcc_cv_collect2_libs in
9432 "none required") ;;
9433 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9434 esac
9437 # When building Ada code on Alpha, we need exc_resume which is usually in
9438 # -lexc. So test for it.
9439 save_LIBS="$LIBS"
9440 LIBS=
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9442 $as_echo_n "checking for library containing exc_resume... " >&6; }
9443 if test "${ac_cv_search_exc_resume+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 ac_func_search_save_LIBS=$LIBS
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 char exc_resume ();
9458 main ()
9460 return exc_resume ();
9462 return 0;
9464 _ACEOF
9465 for ac_lib in '' exc; do
9466 if test -z "$ac_lib"; then
9467 ac_res="none required"
9468 else
9469 ac_res=-l$ac_lib
9470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9472 if ac_fn_cxx_try_link "$LINENO"; then :
9473 ac_cv_search_exc_resume=$ac_res
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext
9477 if test "${ac_cv_search_exc_resume+set}" = set; then :
9478 break
9480 done
9481 if test "${ac_cv_search_exc_resume+set}" = set; then :
9483 else
9484 ac_cv_search_exc_resume=no
9486 rm conftest.$ac_ext
9487 LIBS=$ac_func_search_save_LIBS
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9490 $as_echo "$ac_cv_search_exc_resume" >&6; }
9491 ac_res=$ac_cv_search_exc_resume
9492 if test "$ac_res" != no; then :
9493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9497 GNAT_LIBEXC="$LIBS"
9498 LIBS="$save_LIBS"
9501 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9502 save_LIBS="$LIBS"
9503 LIBS=
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9505 $as_echo_n "checking for library containing kstat_open... " >&6; }
9506 if test "${ac_cv_search_kstat_open+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 ac_func_search_save_LIBS=$LIBS
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char kstat_open ();
9521 main ()
9523 return kstat_open ();
9525 return 0;
9527 _ACEOF
9528 for ac_lib in '' kstat; do
9529 if test -z "$ac_lib"; then
9530 ac_res="none required"
9531 else
9532 ac_res=-l$ac_lib
9533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9535 if ac_fn_cxx_try_link "$LINENO"; then :
9536 ac_cv_search_kstat_open=$ac_res
9538 rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext
9540 if test "${ac_cv_search_kstat_open+set}" = set; then :
9541 break
9543 done
9544 if test "${ac_cv_search_kstat_open+set}" = set; then :
9546 else
9547 ac_cv_search_kstat_open=no
9549 rm conftest.$ac_ext
9550 LIBS=$ac_func_search_save_LIBS
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9553 $as_echo "$ac_cv_search_kstat_open" >&6; }
9554 ac_res=$ac_cv_search_kstat_open
9555 if test "$ac_res" != no; then :
9556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9560 EXTRA_GCC_LIBS="$LIBS"
9561 LIBS="$save_LIBS"
9564 # Some systems put ldexp and frexp in libm instead of libc; assume
9565 # they're both in the same place. jcf-dump needs them.
9566 save_LIBS="$LIBS"
9567 LIBS=
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9569 $as_echo_n "checking for library containing ldexp... " >&6; }
9570 if test "${ac_cv_search_ldexp+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 ac_func_search_save_LIBS=$LIBS
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9577 /* Override any GCC internal prototype to avoid an error.
9578 Use char because int might match the return type of a GCC
9579 builtin and then its argument prototype would still apply. */
9580 #ifdef __cplusplus
9581 extern "C"
9582 #endif
9583 char ldexp ();
9585 main ()
9587 return ldexp ();
9589 return 0;
9591 _ACEOF
9592 for ac_lib in '' m; do
9593 if test -z "$ac_lib"; then
9594 ac_res="none required"
9595 else
9596 ac_res=-l$ac_lib
9597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9599 if ac_fn_cxx_try_link "$LINENO"; then :
9600 ac_cv_search_ldexp=$ac_res
9602 rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext
9604 if test "${ac_cv_search_ldexp+set}" = set; then :
9605 break
9607 done
9608 if test "${ac_cv_search_ldexp+set}" = set; then :
9610 else
9611 ac_cv_search_ldexp=no
9613 rm conftest.$ac_ext
9614 LIBS=$ac_func_search_save_LIBS
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9617 $as_echo "$ac_cv_search_ldexp" >&6; }
9618 ac_res=$ac_cv_search_ldexp
9619 if test "$ac_res" != no; then :
9620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9624 LDEXP_LIB="$LIBS"
9625 LIBS="$save_LIBS"
9628 # Use <inttypes.h> only if it exists,
9629 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9630 # PRId64
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9632 $as_echo_n "checking for inttypes.h... " >&6; }
9633 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 #define __STDC_FORMAT_MACROS
9639 #include <sys/types.h>
9640 #include <inttypes.h>
9642 main ()
9644 intmax_t i = -1;
9645 #ifndef PRId64
9646 choke me
9647 #endif
9649 return 0;
9651 _ACEOF
9652 if ac_fn_cxx_try_compile "$LINENO"; then :
9653 gcc_cv_header_inttypes_h=yes
9654 else
9655 gcc_cv_header_inttypes_h=no
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9661 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9662 if test $gcc_cv_header_inttypes_h = yes; then
9664 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9670 for ac_func in times clock kill getrlimit setrlimit atoq \
9671 popen sysconf strsignal getrusage nl_langinfo \
9672 gettimeofday mbstowcs wcswidth mmap setlocale \
9673 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
9674 do :
9675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9676 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9677 eval as_val=\$$as_ac_var
9678 if test "x$as_val" = x""yes; then :
9679 cat >>confdefs.h <<_ACEOF
9680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9681 _ACEOF
9684 done
9687 if test x$ac_cv_func_mbstowcs = xyes; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9689 $as_echo_n "checking whether mbstowcs works... " >&6; }
9690 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 if test "$cross_compiling" = yes; then :
9694 gcc_cv_func_mbstowcs_works=yes
9695 else
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 #include <stdlib.h>
9699 int main()
9701 mbstowcs(0, "", 0);
9702 return 0;
9704 _ACEOF
9705 if ac_fn_cxx_try_run "$LINENO"; then :
9706 gcc_cv_func_mbstowcs_works=yes
9707 else
9708 gcc_cv_func_mbstowcs_works=no
9710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9711 conftest.$ac_objext conftest.beam conftest.$ac_ext
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9716 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9717 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9719 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9724 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9725 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9727 else
9729 cat >>confdefs.h <<_ACEOF
9730 #define ssize_t int
9731 _ACEOF
9735 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9736 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9738 else
9740 cat >>confdefs.h <<_ACEOF
9741 #define caddr_t char *
9742 _ACEOF
9748 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9749 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9750 gcc_header_sys_mman_h=yes
9751 else
9752 gcc_header_sys_mman_h=no
9755 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9756 if test "x$ac_cv_func_mmap" = x""yes; then :
9757 gcc_func_mmap=yes
9758 else
9759 gcc_func_mmap=no
9762 if test "$gcc_header_sys_mman_h" != yes \
9763 || test "$gcc_func_mmap" != yes; then
9764 gcc_cv_func_mmap_file=no
9765 gcc_cv_func_mmap_dev_zero=no
9766 gcc_cv_func_mmap_anon=no
9767 else
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9769 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9770 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 # Add a system to this blacklist if
9774 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9775 # memory area containing the same data that you'd get if you applied
9776 # read() to the same fd. The only system known to have a problem here
9777 # is VMS, where text files have record structure.
9778 case "$host_os" in
9779 *vms* | ultrix*)
9780 gcc_cv_func_mmap_file=no ;;
9782 gcc_cv_func_mmap_file=yes;;
9783 esac
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9786 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9788 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9789 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 # Add a system to this blacklist if it has mmap() but /dev/zero
9793 # does not exist, or if mmapping /dev/zero does not give anonymous
9794 # zeroed pages with both the following properties:
9795 # 1. If you map N consecutive pages in with one call, and then
9796 # unmap any subset of those pages, the pages that were not
9797 # explicitly unmapped remain accessible.
9798 # 2. If you map two adjacent blocks of memory and then unmap them
9799 # both at once, they must both go away.
9800 # Systems known to be in this category are Windows (all variants),
9801 # VMS, and Darwin.
9802 case "$host_os" in
9803 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9804 gcc_cv_func_mmap_dev_zero=no ;;
9806 gcc_cv_func_mmap_dev_zero=yes;;
9807 esac
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9810 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9812 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9814 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9815 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 #include <sys/types.h>
9821 #include <sys/mman.h>
9822 #include <unistd.h>
9824 #ifndef MAP_ANONYMOUS
9825 #define MAP_ANONYMOUS MAP_ANON
9826 #endif
9829 main ()
9831 int n = MAP_ANONYMOUS;
9833 return 0;
9835 _ACEOF
9836 if ac_fn_cxx_try_compile "$LINENO"; then :
9837 gcc_cv_decl_map_anon=yes
9838 else
9839 gcc_cv_decl_map_anon=no
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9844 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9846 if test $gcc_cv_decl_map_anon = no; then
9847 gcc_cv_func_mmap_anon=no
9848 else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9850 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9851 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9855 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9856 # doesn't give anonymous zeroed pages with the same properties listed
9857 # above for use of /dev/zero.
9858 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9859 case "$host_os" in
9860 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9861 gcc_cv_func_mmap_anon=no ;;
9863 gcc_cv_func_mmap_anon=yes;;
9864 esac
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9867 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9871 if test $gcc_cv_func_mmap_file = yes; then
9873 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9876 if test $gcc_cv_func_mmap_dev_zero = yes; then
9878 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9881 if test $gcc_cv_func_mmap_anon = yes; then
9883 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9888 case "${host}" in
9889 *-*-*vms*)
9890 # Under VMS, vfork works very differently than on Unix. The standard test
9891 # won't work, and it isn't easily adaptable. It makes more sense to
9892 # just force it.
9893 ac_cv_func_vfork_works=yes
9895 esac
9896 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9897 if test "x$ac_cv_type_pid_t" = x""yes; then :
9899 else
9901 cat >>confdefs.h <<_ACEOF
9902 #define pid_t int
9903 _ACEOF
9907 for ac_header in vfork.h
9908 do :
9909 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9910 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9911 cat >>confdefs.h <<_ACEOF
9912 #define HAVE_VFORK_H 1
9913 _ACEOF
9916 done
9918 for ac_func in fork vfork
9919 do :
9920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9921 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9922 eval as_val=\$$as_ac_var
9923 if test "x$as_val" = x""yes; then :
9924 cat >>confdefs.h <<_ACEOF
9925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9926 _ACEOF
9929 done
9931 if test "x$ac_cv_func_fork" = xyes; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9933 $as_echo_n "checking for working fork... " >&6; }
9934 if test "${ac_cv_func_fork_works+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test "$cross_compiling" = yes; then :
9938 ac_cv_func_fork_works=cross
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 $ac_includes_default
9944 main ()
9947 /* By Ruediger Kuhlmann. */
9948 return fork () < 0;
9951 return 0;
9953 _ACEOF
9954 if ac_fn_cxx_try_run "$LINENO"; then :
9955 ac_cv_func_fork_works=yes
9956 else
9957 ac_cv_func_fork_works=no
9959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9960 conftest.$ac_objext conftest.beam conftest.$ac_ext
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9965 $as_echo "$ac_cv_func_fork_works" >&6; }
9967 else
9968 ac_cv_func_fork_works=$ac_cv_func_fork
9970 if test "x$ac_cv_func_fork_works" = xcross; then
9971 case $host in
9972 *-*-amigaos* | *-*-msdosdjgpp*)
9973 # Override, as these systems have only a dummy fork() stub
9974 ac_cv_func_fork_works=no
9977 ac_cv_func_fork_works=yes
9979 esac
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9981 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9983 ac_cv_func_vfork_works=$ac_cv_func_vfork
9984 if test "x$ac_cv_func_vfork" = xyes; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9986 $as_echo_n "checking for working vfork... " >&6; }
9987 if test "${ac_cv_func_vfork_works+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 if test "$cross_compiling" = yes; then :
9991 ac_cv_func_vfork_works=cross
9992 else
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9995 /* Thanks to Paul Eggert for this test. */
9996 $ac_includes_default
9997 #include <sys/wait.h>
9998 #ifdef HAVE_VFORK_H
9999 # include <vfork.h>
10000 #endif
10001 /* On some sparc systems, changes by the child to local and incoming
10002 argument registers are propagated back to the parent. The compiler
10003 is told about this with #include <vfork.h>, but some compilers
10004 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10005 static variable whose address is put into a register that is
10006 clobbered by the vfork. */
10007 static void
10008 #ifdef __cplusplus
10009 sparc_address_test (int arg)
10010 # else
10011 sparc_address_test (arg) int arg;
10012 #endif
10014 static pid_t child;
10015 if (!child) {
10016 child = vfork ();
10017 if (child < 0) {
10018 perror ("vfork");
10019 _exit(2);
10021 if (!child) {
10022 arg = getpid();
10023 write(-1, "", 0);
10024 _exit (arg);
10030 main ()
10032 pid_t parent = getpid ();
10033 pid_t child;
10035 sparc_address_test (0);
10037 child = vfork ();
10039 if (child == 0) {
10040 /* Here is another test for sparc vfork register problems. This
10041 test uses lots of local variables, at least as many local
10042 variables as main has allocated so far including compiler
10043 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10044 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10045 reuse the register of parent for one of the local variables,
10046 since it will think that parent can't possibly be used any more
10047 in this routine. Assigning to the local variable will thus
10048 munge parent in the parent process. */
10049 pid_t
10050 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10051 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10052 /* Convince the compiler that p..p7 are live; otherwise, it might
10053 use the same hardware register for all 8 local variables. */
10054 if (p != p1 || p != p2 || p != p3 || p != p4
10055 || p != p5 || p != p6 || p != p7)
10056 _exit(1);
10058 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10059 from child file descriptors. If the child closes a descriptor
10060 before it execs or exits, this munges the parent's descriptor
10061 as well. Test for this by closing stdout in the child. */
10062 _exit(close(fileno(stdout)) != 0);
10063 } else {
10064 int status;
10065 struct stat st;
10067 while (wait(&status) != child)
10069 return (
10070 /* Was there some problem with vforking? */
10071 child < 0
10073 /* Did the child fail? (This shouldn't happen.) */
10074 || status
10076 /* Did the vfork/compiler bug occur? */
10077 || parent != getpid()
10079 /* Did the file descriptor bug occur? */
10080 || fstat(fileno(stdout), &st) != 0
10084 _ACEOF
10085 if ac_fn_cxx_try_run "$LINENO"; then :
10086 ac_cv_func_vfork_works=yes
10087 else
10088 ac_cv_func_vfork_works=no
10090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10091 conftest.$ac_objext conftest.beam conftest.$ac_ext
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10096 $as_echo "$ac_cv_func_vfork_works" >&6; }
10099 if test "x$ac_cv_func_fork_works" = xcross; then
10100 ac_cv_func_vfork_works=$ac_cv_func_vfork
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10102 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10105 if test "x$ac_cv_func_vfork_works" = xyes; then
10107 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10109 else
10111 $as_echo "#define vfork fork" >>confdefs.h
10114 if test "x$ac_cv_func_fork_works" = xyes; then
10116 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10122 if test "X$prefix" = "XNONE"; then
10123 acl_final_prefix="$ac_default_prefix"
10124 else
10125 acl_final_prefix="$prefix"
10127 if test "X$exec_prefix" = "XNONE"; then
10128 acl_final_exec_prefix='${prefix}'
10129 else
10130 acl_final_exec_prefix="$exec_prefix"
10132 acl_save_prefix="$prefix"
10133 prefix="$acl_final_prefix"
10134 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10135 prefix="$acl_save_prefix"
10138 # Check whether --with-gnu-ld was given.
10139 if test "${with_gnu_ld+set}" = set; then :
10140 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10141 else
10142 with_gnu_ld=no
10145 # Prepare PATH_SEPARATOR.
10146 # The user is always right.
10147 if test "${PATH_SEPARATOR+set}" != set; then
10148 echo "#! /bin/sh" >conf$$.sh
10149 echo "exit 0" >>conf$$.sh
10150 chmod +x conf$$.sh
10151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10152 PATH_SEPARATOR=';'
10153 else
10154 PATH_SEPARATOR=:
10156 rm -f conf$$.sh
10158 ac_prog=ld
10159 if test "$GCC" = yes; then
10160 # Check if gcc -print-prog-name=ld gives a path.
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10162 $as_echo_n "checking for ld used by GCC... " >&6; }
10163 case $host in
10164 *-*-mingw*)
10165 # gcc leaves a trailing carriage return which upsets mingw
10166 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10168 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10169 esac
10170 case $ac_prog in
10171 # Accept absolute paths.
10172 [\\/]* | [A-Za-z]:[\\/]*)
10173 re_direlt='/[^/][^/]*/\.\./'
10174 # Canonicalize the path of ld
10175 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10176 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10177 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10178 done
10179 test -z "$LD" && LD="$ac_prog"
10182 # If it fails, then pretend we aren't using GCC.
10183 ac_prog=ld
10186 # If it is relative, then search for the first ld in PATH.
10187 with_gnu_ld=unknown
10189 esac
10190 elif test "$with_gnu_ld" = yes; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10192 $as_echo_n "checking for GNU ld... " >&6; }
10193 else
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10195 $as_echo_n "checking for non-GNU ld... " >&6; }
10197 if test "${acl_cv_path_LD+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 if test -z "$LD"; then
10201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10202 for ac_dir in $PATH; do
10203 test -z "$ac_dir" && ac_dir=.
10204 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10205 acl_cv_path_LD="$ac_dir/$ac_prog"
10206 # Check to see if the program is GNU ld. I'd rather use --version,
10207 # but apparently some GNU ld's only accept -v.
10208 # Break only if it was the GNU/non-GNU ld that we prefer.
10209 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10210 test "$with_gnu_ld" != no && break
10211 else
10212 test "$with_gnu_ld" != yes && break
10215 done
10216 IFS="$ac_save_ifs"
10217 else
10218 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10222 LD="$acl_cv_path_LD"
10223 if test -n "$LD"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10225 $as_echo "$LD" >&6; }
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10230 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10232 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10233 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10237 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10238 acl_cv_prog_gnu_ld=yes
10239 else
10240 acl_cv_prog_gnu_ld=no
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10244 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10245 with_gnu_ld=$acl_cv_prog_gnu_ld
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10250 $as_echo_n "checking for shared library run path origin... " >&6; }
10251 if test "${acl_cv_rpath+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10255 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10256 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10257 . ./conftest.sh
10258 rm -f ./conftest.sh
10259 acl_cv_rpath=done
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10263 $as_echo "$acl_cv_rpath" >&6; }
10264 wl="$acl_cv_wl"
10265 libext="$acl_cv_libext"
10266 shlibext="$acl_cv_shlibext"
10267 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10268 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10269 hardcode_direct="$acl_cv_hardcode_direct"
10270 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10271 # Check whether --enable-rpath was given.
10272 if test "${enable_rpath+set}" = set; then :
10273 enableval=$enable_rpath; :
10274 else
10275 enable_rpath=yes
10285 use_additional=yes
10287 acl_save_prefix="$prefix"
10288 prefix="$acl_final_prefix"
10289 acl_save_exec_prefix="$exec_prefix"
10290 exec_prefix="$acl_final_exec_prefix"
10292 eval additional_includedir=\"$includedir\"
10293 eval additional_libdir=\"$libdir\"
10295 exec_prefix="$acl_save_exec_prefix"
10296 prefix="$acl_save_prefix"
10299 # Check whether --with-libiconv-prefix was given.
10300 if test "${with_libiconv_prefix+set}" = set; then :
10301 withval=$with_libiconv_prefix;
10302 if test "X$withval" = "Xno"; then
10303 use_additional=no
10304 else
10305 if test "X$withval" = "X"; then
10307 acl_save_prefix="$prefix"
10308 prefix="$acl_final_prefix"
10309 acl_save_exec_prefix="$exec_prefix"
10310 exec_prefix="$acl_final_exec_prefix"
10312 eval additional_includedir=\"$includedir\"
10313 eval additional_libdir=\"$libdir\"
10315 exec_prefix="$acl_save_exec_prefix"
10316 prefix="$acl_save_prefix"
10318 else
10319 additional_includedir="$withval/include"
10320 additional_libdir="$withval/lib"
10326 LIBICONV=
10327 LTLIBICONV=
10328 INCICONV=
10329 rpathdirs=
10330 ltrpathdirs=
10331 names_already_handled=
10332 names_next_round='iconv '
10333 while test -n "$names_next_round"; do
10334 names_this_round="$names_next_round"
10335 names_next_round=
10336 for name in $names_this_round; do
10337 already_handled=
10338 for n in $names_already_handled; do
10339 if test "$n" = "$name"; then
10340 already_handled=yes
10341 break
10343 done
10344 if test -z "$already_handled"; then
10345 names_already_handled="$names_already_handled $name"
10346 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10347 eval value=\"\$HAVE_LIB$uppername\"
10348 if test -n "$value"; then
10349 if test "$value" = yes; then
10350 eval value=\"\$LIB$uppername\"
10351 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10352 eval value=\"\$LTLIB$uppername\"
10353 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10354 else
10357 else
10358 found_dir=
10359 found_la=
10360 found_so=
10361 found_a=
10362 if test $use_additional = yes; then
10363 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10364 found_dir="$additional_libdir"
10365 found_so="$additional_libdir/lib$name.$shlibext"
10366 if test -f "$additional_libdir/lib$name.la"; then
10367 found_la="$additional_libdir/lib$name.la"
10369 else
10370 if test -f "$additional_libdir/lib$name.$libext"; then
10371 found_dir="$additional_libdir"
10372 found_a="$additional_libdir/lib$name.$libext"
10373 if test -f "$additional_libdir/lib$name.la"; then
10374 found_la="$additional_libdir/lib$name.la"
10379 if test "X$found_dir" = "X"; then
10380 for x in $LDFLAGS $LTLIBICONV; do
10382 acl_save_prefix="$prefix"
10383 prefix="$acl_final_prefix"
10384 acl_save_exec_prefix="$exec_prefix"
10385 exec_prefix="$acl_final_exec_prefix"
10386 eval x=\"$x\"
10387 exec_prefix="$acl_save_exec_prefix"
10388 prefix="$acl_save_prefix"
10390 case "$x" in
10391 -L*)
10392 dir=`echo "X$x" | sed -e 's/^X-L//'`
10393 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10394 found_dir="$dir"
10395 found_so="$dir/lib$name.$shlibext"
10396 if test -f "$dir/lib$name.la"; then
10397 found_la="$dir/lib$name.la"
10399 else
10400 if test -f "$dir/lib$name.$libext"; then
10401 found_dir="$dir"
10402 found_a="$dir/lib$name.$libext"
10403 if test -f "$dir/lib$name.la"; then
10404 found_la="$dir/lib$name.la"
10409 esac
10410 if test "X$found_dir" != "X"; then
10411 break
10413 done
10415 if test "X$found_dir" != "X"; then
10416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10417 if test "X$found_so" != "X"; then
10418 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10419 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10420 else
10421 haveit=
10422 for x in $ltrpathdirs; do
10423 if test "X$x" = "X$found_dir"; then
10424 haveit=yes
10425 break
10427 done
10428 if test -z "$haveit"; then
10429 ltrpathdirs="$ltrpathdirs $found_dir"
10431 if test "$hardcode_direct" = yes; then
10432 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10433 else
10434 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10436 haveit=
10437 for x in $rpathdirs; do
10438 if test "X$x" = "X$found_dir"; then
10439 haveit=yes
10440 break
10442 done
10443 if test -z "$haveit"; then
10444 rpathdirs="$rpathdirs $found_dir"
10446 else
10447 haveit=
10448 for x in $LDFLAGS $LIBICONV; do
10450 acl_save_prefix="$prefix"
10451 prefix="$acl_final_prefix"
10452 acl_save_exec_prefix="$exec_prefix"
10453 exec_prefix="$acl_final_exec_prefix"
10454 eval x=\"$x\"
10455 exec_prefix="$acl_save_exec_prefix"
10456 prefix="$acl_save_prefix"
10458 if test "X$x" = "X-L$found_dir"; then
10459 haveit=yes
10460 break
10462 done
10463 if test -z "$haveit"; then
10464 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10466 if test "$hardcode_minus_L" != no; then
10467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10468 else
10469 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10474 else
10475 if test "X$found_a" != "X"; then
10476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10477 else
10478 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10481 additional_includedir=
10482 case "$found_dir" in
10483 */lib | */lib/)
10484 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10485 additional_includedir="$basedir/include"
10487 esac
10488 if test "X$additional_includedir" != "X"; then
10489 if test "X$additional_includedir" != "X/usr/include"; then
10490 haveit=
10491 if test "X$additional_includedir" = "X/usr/local/include"; then
10492 if test -n "$GCC"; then
10493 case $host_os in
10494 linux*) haveit=yes;;
10495 esac
10498 if test -z "$haveit"; then
10499 for x in $CPPFLAGS $INCICONV; do
10501 acl_save_prefix="$prefix"
10502 prefix="$acl_final_prefix"
10503 acl_save_exec_prefix="$exec_prefix"
10504 exec_prefix="$acl_final_exec_prefix"
10505 eval x=\"$x\"
10506 exec_prefix="$acl_save_exec_prefix"
10507 prefix="$acl_save_prefix"
10509 if test "X$x" = "X-I$additional_includedir"; then
10510 haveit=yes
10511 break
10513 done
10514 if test -z "$haveit"; then
10515 if test -d "$additional_includedir"; then
10516 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10522 if test -n "$found_la"; then
10523 save_libdir="$libdir"
10524 case "$found_la" in
10525 */* | *\\*) . "$found_la" ;;
10526 *) . "./$found_la" ;;
10527 esac
10528 libdir="$save_libdir"
10529 for dep in $dependency_libs; do
10530 case "$dep" in
10531 -L*)
10532 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10533 if test "X$additional_libdir" != "X/usr/lib"; then
10534 haveit=
10535 if test "X$additional_libdir" = "X/usr/local/lib"; then
10536 if test -n "$GCC"; then
10537 case $host_os in
10538 linux*) haveit=yes;;
10539 esac
10542 if test -z "$haveit"; then
10543 haveit=
10544 for x in $LDFLAGS $LIBICONV; do
10546 acl_save_prefix="$prefix"
10547 prefix="$acl_final_prefix"
10548 acl_save_exec_prefix="$exec_prefix"
10549 exec_prefix="$acl_final_exec_prefix"
10550 eval x=\"$x\"
10551 exec_prefix="$acl_save_exec_prefix"
10552 prefix="$acl_save_prefix"
10554 if test "X$x" = "X-L$additional_libdir"; then
10555 haveit=yes
10556 break
10558 done
10559 if test -z "$haveit"; then
10560 if test -d "$additional_libdir"; then
10561 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10564 haveit=
10565 for x in $LDFLAGS $LTLIBICONV; do
10567 acl_save_prefix="$prefix"
10568 prefix="$acl_final_prefix"
10569 acl_save_exec_prefix="$exec_prefix"
10570 exec_prefix="$acl_final_exec_prefix"
10571 eval x=\"$x\"
10572 exec_prefix="$acl_save_exec_prefix"
10573 prefix="$acl_save_prefix"
10575 if test "X$x" = "X-L$additional_libdir"; then
10576 haveit=yes
10577 break
10579 done
10580 if test -z "$haveit"; then
10581 if test -d "$additional_libdir"; then
10582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10588 -R*)
10589 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10590 if test "$enable_rpath" != no; then
10591 haveit=
10592 for x in $rpathdirs; do
10593 if test "X$x" = "X$dir"; then
10594 haveit=yes
10595 break
10597 done
10598 if test -z "$haveit"; then
10599 rpathdirs="$rpathdirs $dir"
10601 haveit=
10602 for x in $ltrpathdirs; do
10603 if test "X$x" = "X$dir"; then
10604 haveit=yes
10605 break
10607 done
10608 if test -z "$haveit"; then
10609 ltrpathdirs="$ltrpathdirs $dir"
10613 -l*)
10614 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10616 *.la)
10617 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10620 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10623 esac
10624 done
10626 else
10627 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10628 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10632 done
10633 done
10634 if test "X$rpathdirs" != "X"; then
10635 if test -n "$hardcode_libdir_separator"; then
10636 alldirs=
10637 for found_dir in $rpathdirs; do
10638 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10639 done
10640 acl_save_libdir="$libdir"
10641 libdir="$alldirs"
10642 eval flag=\"$hardcode_libdir_flag_spec\"
10643 libdir="$acl_save_libdir"
10644 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10645 else
10646 for found_dir in $rpathdirs; do
10647 acl_save_libdir="$libdir"
10648 libdir="$found_dir"
10649 eval flag=\"$hardcode_libdir_flag_spec\"
10650 libdir="$acl_save_libdir"
10651 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10652 done
10655 if test "X$ltrpathdirs" != "X"; then
10656 for found_dir in $ltrpathdirs; do
10657 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10658 done
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10668 $as_echo_n "checking for iconv... " >&6; }
10669 if test "${am_cv_func_iconv+set}" = set; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10673 am_cv_func_iconv="no, consider installing GNU libiconv"
10674 am_cv_lib_iconv=no
10675 am_save_CPPFLAGS="$CPPFLAGS"
10676 CPPFLAGS="$CPPFLAGS $INCICONV"
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 #include <stdlib.h>
10680 #include <iconv.h>
10682 main ()
10684 iconv_t cd = iconv_open("","");
10685 iconv(cd,NULL,NULL,NULL,NULL);
10686 iconv_close(cd);
10688 return 0;
10690 _ACEOF
10691 if ac_fn_cxx_try_link "$LINENO"; then :
10692 am_cv_func_iconv=yes
10694 rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10696 CPPFLAGS="$am_save_CPPFLAGS"
10698 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10699 for _libs in .libs _libs; do
10700 am_save_CPPFLAGS="$CPPFLAGS"
10701 am_save_LIBS="$LIBS"
10702 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10703 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10706 #include <stdlib.h>
10707 #include <iconv.h>
10709 main ()
10711 iconv_t cd = iconv_open("","");
10712 iconv(cd,NULL,NULL,NULL,NULL);
10713 iconv_close(cd);
10715 return 0;
10717 _ACEOF
10718 if ac_fn_cxx_try_link "$LINENO"; then :
10719 INCICONV="-I../libiconv/include"
10720 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10721 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10722 am_cv_lib_iconv=yes
10723 am_cv_func_iconv=yes
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 CPPFLAGS="$am_save_CPPFLAGS"
10728 LIBS="$am_save_LIBS"
10729 if test "$am_cv_func_iconv" = "yes"; then
10730 break
10732 done
10735 if test "$am_cv_func_iconv" != yes; then
10736 am_save_CPPFLAGS="$CPPFLAGS"
10737 am_save_LIBS="$LIBS"
10738 CPPFLAGS="$LIBS $INCICONV"
10739 LIBS="$LIBS $LIBICONV"
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #include <stdlib.h>
10743 #include <iconv.h>
10745 main ()
10747 iconv_t cd = iconv_open("","");
10748 iconv(cd,NULL,NULL,NULL,NULL);
10749 iconv_close(cd);
10751 return 0;
10753 _ACEOF
10754 if ac_fn_cxx_try_link "$LINENO"; then :
10755 am_cv_lib_iconv=yes
10756 am_cv_func_iconv=yes
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 CPPFLAGS="$am_save_CPPFLAGS"
10761 LIBS="$am_save_LIBS"
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10766 $as_echo "$am_cv_func_iconv" >&6; }
10767 if test "$am_cv_func_iconv" = yes; then
10769 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10772 if test "$am_cv_lib_iconv" = yes; then
10774 for element in $INCICONV; do
10775 haveit=
10776 for x in $CPPFLAGS; do
10778 acl_save_prefix="$prefix"
10779 prefix="$acl_final_prefix"
10780 acl_save_exec_prefix="$exec_prefix"
10781 exec_prefix="$acl_final_exec_prefix"
10782 eval x=\"$x\"
10783 exec_prefix="$acl_save_exec_prefix"
10784 prefix="$acl_save_prefix"
10786 if test "X$x" = "X$element"; then
10787 haveit=yes
10788 break
10790 done
10791 if test -z "$haveit"; then
10792 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10794 done
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10797 $as_echo_n "checking how to link with libiconv... " >&6; }
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10799 $as_echo "$LIBICONV" >&6; }
10800 else
10801 LIBICONV=
10802 LTLIBICONV=
10807 if test "$am_cv_func_iconv" = yes; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10809 $as_echo_n "checking for iconv declaration... " >&6; }
10810 if test "${am_cv_proto_iconv+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10817 #include <stdlib.h>
10818 #include <iconv.h>
10819 extern
10820 #ifdef __cplusplus
10822 #endif
10823 #if defined(__STDC__) || defined(__cplusplus)
10824 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10825 #else
10826 size_t iconv();
10827 #endif
10830 main ()
10834 return 0;
10836 _ACEOF
10837 if ac_fn_cxx_try_compile "$LINENO"; then :
10838 am_cv_proto_iconv_arg1=""
10839 else
10840 am_cv_proto_iconv_arg1="const"
10842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 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);"
10846 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10848 }$am_cv_proto_iconv" >&5
10849 $as_echo "${ac_t:-
10850 }$am_cv_proto_iconv" >&6; }
10852 cat >>confdefs.h <<_ACEOF
10853 #define ICONV_CONST $am_cv_proto_iconv_arg1
10854 _ACEOF
10859 # Until we have in-tree GNU iconv:
10860 LIBICONV_DEP=
10861 if test -f "$LTLIBICONV"; then
10862 LIBICONV_DEP=$LTLIBICONV
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10868 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10869 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874 #include <locale.h>
10876 main ()
10878 return LC_MESSAGES
10880 return 0;
10882 _ACEOF
10883 if ac_fn_cxx_try_link "$LINENO"; then :
10884 am_cv_val_LC_MESSAGES=yes
10885 else
10886 am_cv_val_LC_MESSAGES=no
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10892 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10893 if test $am_cv_val_LC_MESSAGES = yes; then
10895 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10902 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10903 if test "${am_cv_langinfo_codeset+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 #include <langinfo.h>
10910 main ()
10912 char* cs = nl_langinfo(CODESET);
10914 return 0;
10916 _ACEOF
10917 if ac_fn_cxx_try_link "$LINENO"; then :
10918 am_cv_langinfo_codeset=yes
10919 else
10920 am_cv_langinfo_codeset=no
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10927 $as_echo "$am_cv_langinfo_codeset" >&6; }
10928 if test $am_cv_langinfo_codeset = yes; then
10930 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10935 # We will need to find libiberty.h and ansidecl.h
10936 saved_CFLAGS="$CFLAGS"
10937 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10938 saved_CXXFLAGS="$CXXFLAGS"
10939 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10941 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10942 # normal autoconf function for these. But force definition of
10943 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10944 # basename handling in libiberty.h.
10945 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10946 #undef HAVE_DECL_BASENAME
10947 #define HAVE_DECL_BASENAME 1
10948 #include \"ansidecl.h\"
10949 #include \"system.h\"
10951 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10952 ac_have_decl=1
10953 else
10954 ac_have_decl=0
10957 cat >>confdefs.h <<_ACEOF
10958 #define HAVE_DECL_BASENAME $ac_have_decl
10959 _ACEOF
10960 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10961 #undef HAVE_DECL_BASENAME
10962 #define HAVE_DECL_BASENAME 1
10963 #include \"ansidecl.h\"
10964 #include \"system.h\"
10966 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10967 ac_have_decl=1
10968 else
10969 ac_have_decl=0
10972 cat >>confdefs.h <<_ACEOF
10973 #define HAVE_DECL_STRSTR $ac_have_decl
10974 _ACEOF
10977 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10978 madvise stpcpy strnlen strsignal strverscmp \
10979 strtol strtoul strtoll strtoull setenv unsetenv \
10980 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10981 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
10983 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10985 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10986 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 #undef $ac_tr_decl
10992 #define $ac_tr_decl 1
10994 #include "ansidecl.h"
10995 #include "system.h"
10998 main ()
11000 #ifndef $ac_func
11001 char *(*pfn) = (char *(*)) $ac_func ;
11002 #endif
11004 return 0;
11006 _ACEOF
11007 if ac_fn_cxx_try_compile "$LINENO"; then :
11008 eval "gcc_cv_have_decl_$ac_func=yes"
11009 else
11010 eval "gcc_cv_have_decl_$ac_func=no"
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11018 #define $ac_tr_decl 1
11019 _ACEOF
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11024 #define $ac_tr_decl 0
11025 _ACEOF
11029 done
11032 for ac_func in getrlimit setrlimit getrusage
11034 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11036 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11037 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11042 #undef $ac_tr_decl
11043 #define $ac_tr_decl 1
11045 #include "ansidecl.h"
11046 #include "system.h"
11047 #ifdef HAVE_SYS_RESOURCE_H
11048 #include <sys/resource.h>
11049 #endif
11053 main ()
11055 #ifndef $ac_func
11056 char *(*pfn) = (char *(*)) $ac_func ;
11057 #endif
11059 return 0;
11061 _ACEOF
11062 if ac_fn_cxx_try_compile "$LINENO"; then :
11063 eval "gcc_cv_have_decl_$ac_func=yes"
11064 else
11065 eval "gcc_cv_have_decl_$ac_func=no"
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11072 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11073 #define $ac_tr_decl 1
11074 _ACEOF
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11079 #define $ac_tr_decl 0
11080 _ACEOF
11084 done
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11090 #include "ansidecl.h"
11091 #include "system.h"
11092 #ifdef HAVE_SYS_RESOURCE_H
11093 #include <sys/resource.h>
11094 #endif
11097 main ()
11099 rlim_t l = 0;
11101 return 0;
11103 _ACEOF
11104 if ac_fn_cxx_try_compile "$LINENO"; then :
11106 else
11108 $as_echo "#define rlim_t long" >>confdefs.h
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11114 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11115 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11116 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11117 for ac_func in ldgetname
11119 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11121 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11122 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11127 #undef $ac_tr_decl
11128 #define $ac_tr_decl 1
11130 #include "ansidecl.h"
11131 #include "system.h"
11132 #ifdef HAVE_LDFCN_H
11133 #undef FREAD
11134 #undef FWRITE
11135 #include <ldfcn.h>
11136 #endif
11140 main ()
11142 #ifndef $ac_func
11143 char *(*pfn) = (char *(*)) $ac_func ;
11144 #endif
11146 return 0;
11148 _ACEOF
11149 if ac_fn_cxx_try_compile "$LINENO"; then :
11150 eval "gcc_cv_have_decl_$ac_func=yes"
11151 else
11152 eval "gcc_cv_have_decl_$ac_func=no"
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11157 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11159 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11160 #define $ac_tr_decl 1
11161 _ACEOF
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11166 #define $ac_tr_decl 0
11167 _ACEOF
11171 done
11174 for ac_func in times
11176 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11178 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11179 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #undef $ac_tr_decl
11185 #define $ac_tr_decl 1
11187 #include "ansidecl.h"
11188 #include "system.h"
11189 #ifdef HAVE_SYS_TIMES_H
11190 #include <sys/times.h>
11191 #endif
11195 main ()
11197 #ifndef $ac_func
11198 char *(*pfn) = (char *(*)) $ac_func ;
11199 #endif
11201 return 0;
11203 _ACEOF
11204 if ac_fn_cxx_try_compile "$LINENO"; then :
11205 eval "gcc_cv_have_decl_$ac_func=yes"
11206 else
11207 eval "gcc_cv_have_decl_$ac_func=no"
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11212 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11214 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11215 #define $ac_tr_decl 1
11216 _ACEOF
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11221 #define $ac_tr_decl 0
11222 _ACEOF
11226 done
11229 for ac_func in sigaltstack
11231 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11233 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11234 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 #undef $ac_tr_decl
11240 #define $ac_tr_decl 1
11242 #include "ansidecl.h"
11243 #include "system.h"
11244 #include <signal.h>
11248 main ()
11250 #ifndef $ac_func
11251 char *(*pfn) = (char *(*)) $ac_func ;
11252 #endif
11254 return 0;
11256 _ACEOF
11257 if ac_fn_cxx_try_compile "$LINENO"; then :
11258 eval "gcc_cv_have_decl_$ac_func=yes"
11259 else
11260 eval "gcc_cv_have_decl_$ac_func=no"
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11267 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11268 #define $ac_tr_decl 1
11269 _ACEOF
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11274 #define $ac_tr_decl 0
11275 _ACEOF
11279 done
11282 # More time-related stuff.
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11284 $as_echo_n "checking for struct tms... " >&6; }
11285 if test "${ac_cv_struct_tms+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 #include "ansidecl.h"
11293 #include "system.h"
11294 #ifdef HAVE_SYS_TIMES_H
11295 #include <sys/times.h>
11296 #endif
11299 main ()
11301 struct tms tms;
11303 return 0;
11305 _ACEOF
11306 if ac_fn_cxx_try_compile "$LINENO"; then :
11307 ac_cv_struct_tms=yes
11308 else
11309 ac_cv_struct_tms=no
11311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11314 $as_echo "$ac_cv_struct_tms" >&6; }
11315 if test $ac_cv_struct_tms = yes; then
11317 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11321 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11322 # revisit after autoconf 2.50.
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11324 $as_echo_n "checking for clock_t... " >&6; }
11325 if test "${gcc_cv_type_clock_t+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11332 #include "ansidecl.h"
11333 #include "system.h"
11336 main ()
11338 clock_t x;
11340 return 0;
11342 _ACEOF
11343 if ac_fn_cxx_try_compile "$LINENO"; then :
11344 gcc_cv_type_clock_t=yes
11345 else
11346 gcc_cv_type_clock_t=no
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11351 $as_echo "$gcc_cv_type_clock_t" >&6; }
11352 if test $gcc_cv_type_clock_t = yes; then
11354 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11358 # Check if F_SETLKW is supported by fcntl.
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11360 $as_echo_n "checking for F_SETLKW... " >&6; }
11361 if test "${ac_cv_f_setlkw+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11368 #include <fcntl.h>
11370 main ()
11373 struct flock fl;
11374 fl.l_whence = 0;
11375 fl.l_start = 0;
11376 fl.l_len = 0;
11377 fl.l_pid = 0;
11378 return fcntl (1, F_SETLKW, &fl);
11380 return 0;
11382 _ACEOF
11383 if ac_fn_cxx_try_compile "$LINENO"; then :
11384 ac_cv_f_setlkw=yes
11385 else
11386 ac_cv_f_setlkw=no
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11391 $as_echo "$ac_cv_f_setlkw" >&6; }
11392 if test $ac_cv_f_setlkw = yes; then
11394 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11398 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11399 CFLAGS="$saved_CFLAGS"
11400 CXXFLAGS="$saved_CXXFLAGS"
11402 # mkdir takes a single argument on some systems.
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11404 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11405 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11411 #include <sys/types.h>
11412 #ifdef HAVE_SYS_STAT_H
11413 # include <sys/stat.h>
11414 #endif
11415 #ifdef HAVE_UNISTD_H
11416 # include <unistd.h>
11417 #endif
11418 #ifdef HAVE_DIRECT_H
11419 # include <direct.h>
11420 #endif
11422 main ()
11424 mkdir ("foo", 0);
11426 return 0;
11428 _ACEOF
11429 if ac_fn_cxx_try_compile "$LINENO"; then :
11430 gcc_cv_mkdir_takes_one_arg=no
11431 else
11432 gcc_cv_mkdir_takes_one_arg=yes
11434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11437 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11438 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11440 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11445 # File extensions
11446 manext='.1'
11447 objext='.o'
11451 # With Setjmp/Longjmp based exception handling.
11452 # Check whether --enable-sjlj-exceptions was given.
11453 if test "${enable_sjlj_exceptions+set}" = set; then :
11454 enableval=$enable_sjlj_exceptions; case $target in
11455 *-*-hpux10*)
11456 if test $enableval != yes; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11458 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11459 enableval=yes
11462 esac
11463 force_sjlj_exceptions=yes
11464 else
11465 case $target in
11466 *-*-hpux10*)
11467 force_sjlj_exceptions=yes
11468 enableval=yes
11470 lm32*-*-*)
11471 force_sjlj_exceptions=yes
11472 enableval=yes
11475 force_sjlj_exceptions=no
11477 esac
11480 if test $force_sjlj_exceptions = yes; then
11481 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11483 cat >>confdefs.h <<_ACEOF
11484 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11485 _ACEOF
11489 # --------------------------------------------------------
11490 # Build, host, and target specific configuration fragments
11491 # --------------------------------------------------------
11493 # Collect build-machine-specific information.
11494 . ${srcdir}/config.build || exit 1
11496 # Collect host-machine-specific information.
11497 . ${srcdir}/config.host || exit 1
11499 target_gtfiles=
11501 # Collect target-machine-specific information.
11502 . ${srcdir}/config.gcc || exit 1
11504 extra_objs="${host_extra_objs} ${extra_objs}"
11505 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11507 # Default the target-machine variables that were not explicitly set.
11508 if test x"$tm_file" = x
11509 then tm_file=$cpu_type/$cpu_type.h; fi
11511 if test x"$extra_headers" = x
11512 then extra_headers=; fi
11514 if test x$md_file = x
11515 then md_file=$cpu_type/$cpu_type.md; fi
11517 if test x$out_file = x
11518 then out_file=$cpu_type/$cpu_type.c; fi
11520 if test x"$tmake_file" = x
11521 then tmake_file=$cpu_type/t-$cpu_type
11524 # Support --enable-initfini-array.
11525 if test x$enable_initfini_array != xno; then
11526 tm_file="${tm_file} initfini-array.h"
11529 if test x"$dwarf2" = xyes
11530 then tm_file="$tm_file tm-dwarf2.h"
11533 # Say what files are being used for the output code and MD file.
11534 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11535 echo "Using \`$srcdir/config/$md_file' as machine description file."
11537 # If any of the xm_file variables contain nonexistent files, warn
11538 # about them and drop them.
11541 for x in $build_xm_file; do
11542 if test -f $srcdir/config/$x
11543 then bx="$bx $x"
11544 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11545 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11547 done
11548 build_xm_file="$bx"
11551 for x in $host_xm_file; do
11552 if test -f $srcdir/config/$x
11553 then hx="$hx $x"
11554 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11555 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11557 done
11558 host_xm_file="$hx"
11561 for x in $xm_file; do
11562 if test -f $srcdir/config/$x
11563 then tx="$tx $x"
11564 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11565 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11567 done
11568 xm_file="$tx"
11570 count=a
11571 for f in $tm_file; do
11572 count=${count}x
11573 done
11574 if test $count = ax; then
11575 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11576 else
11577 echo "Using the following target machine macro files:"
11578 for f in $tm_file; do
11579 echo " $srcdir/config/$f"
11580 done
11583 if test x$use_long_long_for_widest_fast_int = xyes; then
11585 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11589 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11591 cat >>confdefs.h <<_ACEOF
11592 #define HAVE_GNU_LD $gnu_ld_bool
11593 _ACEOF
11596 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_GNU_AS $gnu_as_bool
11600 _ACEOF
11603 count=a
11604 for f in $host_xm_file; do
11605 count=${count}x
11606 done
11607 if test $count = a; then
11609 elif test $count = ax; then
11610 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11611 else
11612 echo "Using the following host machine macro files:"
11613 for f in $host_xm_file; do
11614 echo " $srcdir/config/$f"
11615 done
11617 echo "Using ${out_host_hook_obj} for host machine hooks."
11619 if test "$host_xm_file" != "$build_xm_file"; then
11620 count=a
11621 for f in $build_xm_file; do
11622 count=${count}x
11623 done
11624 if test $count = a; then
11626 elif test $count = ax; then
11627 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11628 else
11629 echo "Using the following build machine macro files:"
11630 for f in $build_xm_file; do
11631 echo " $srcdir/config/$f"
11632 done
11636 if test -n "$configured_native_system_header_dir"; then
11637 native_system_header_dir=$configured_native_system_header_dir
11639 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11642 case ${host} in
11643 powerpc*-*-darwin*)
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11645 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11646 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11652 #include <sys/cdefs.h>
11653 #include <sys/signal.h>
11654 #include <ucontext.h>
11655 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11657 _ACEOF
11658 if ac_fn_cxx_try_compile "$LINENO"; then :
11659 gcc_cv_mcontext_underscores=no
11660 else
11661 gcc_cv_mcontext_underscores=yes
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11666 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11667 if test $gcc_cv_mcontext_underscores = yes; then
11669 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11673 esac
11675 # ---------
11676 # Threading
11677 # ---------
11679 # Check if a valid thread package
11680 case ${enable_threads} in
11681 "" | no)
11682 # No threads
11683 target_thread_file='single'
11685 yes)
11686 # default
11687 target_thread_file='single'
11689 aix | dce | lynx | mipssde | posix | rtems | \
11690 single | tpf | vxworks | win32)
11691 target_thread_file=${enable_threads}
11694 echo "${enable_threads} is an unknown thread package" 1>&2
11695 exit 1
11697 esac
11699 if test x${thread_file} = x; then
11700 # No thread file set by target-specific clauses in config.gcc,
11701 # so use file chosen by default logic above
11702 thread_file=${target_thread_file}
11705 # --------
11706 # UNSORTED
11707 # --------
11709 use_cxa_atexit=no
11710 if test x$enable___cxa_atexit = xyes || \
11711 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11712 if test x$host = x$target; then
11713 case $host in
11714 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11715 # keyed to flag_use_cxa_atexit
11716 *-*-mingw32*)
11717 use_cxa_atexit=yes
11719 powerpc-ibm-aix*)
11720 use_cxa_atexit=yes
11723 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11724 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11725 use_cxa_atexit=yes
11726 else
11727 echo "__cxa_atexit can't be enabled on this target"
11731 esac
11732 else
11733 # We can't check for __cxa_atexit when building a cross, so assume
11734 # it is available
11735 use_cxa_atexit=yes
11737 if test x$use_cxa_atexit = xyes; then
11739 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11744 # Look for a file containing extra machine modes.
11745 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11746 extra_modes_file='$(srcdir)'/config/${extra_modes}
11749 cat >>confdefs.h <<_ACEOF
11750 #define EXTRA_MODES_FILE "config/$extra_modes"
11751 _ACEOF
11755 # Convert extra_options into a form suitable for Makefile use.
11756 extra_opt_files=
11757 all_opt_files=
11758 for f in $extra_options; do
11759 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11760 all_opt_files="$all_opt_files $srcdir/config/$f"
11761 done
11764 # auto-host.h is the file containing items generated by autoconf and is
11765 # the first file included by config.h.
11766 # If host=build, it is correct to have bconfig include auto-host.h
11767 # as well. If host!=build, we are in error and need to do more
11768 # work to find out the build config parameters.
11769 if test x$host = x$build
11770 then
11771 build_auto=auto-host.h
11772 else
11773 # We create a subdir, then run autoconf in the subdir.
11774 # To prevent recursion we set host and build for the new
11775 # invocation of configure to the build for this invocation
11776 # of configure.
11777 tempdir=build.$$
11778 rm -rf $tempdir
11779 mkdir $tempdir
11780 cd $tempdir
11781 case ${srcdir} in
11782 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11783 *) realsrcdir=../${srcdir};;
11784 esac
11785 # Clearing GMPINC is necessary to prevent host headers being
11786 # used by the build compiler. Defining GENERATOR_FILE stops
11787 # system.h from including gmp.h.
11788 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11789 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11790 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11791 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11792 ${realsrcdir}/configure \
11793 --enable-languages=${enable_languages-all} \
11794 --target=$target_alias --host=$build_alias --build=$build_alias
11796 # We just finished tests for the build machine, so rename
11797 # the file auto-build.h in the gcc directory.
11798 mv auto-host.h ../auto-build.h
11799 cd ..
11800 rm -rf $tempdir
11801 build_auto=auto-build.h
11805 tm_file="${tm_file} defaults.h"
11806 tm_p_file="${tm_p_file} tm-preds.h"
11807 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11808 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11809 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11810 # put this back in temporarily.
11811 xm_file="auto-host.h ansidecl.h ${xm_file}"
11813 # --------
11814 # UNSORTED
11815 # --------
11817 # Compile in configure arguments.
11818 if test -f configargs.h ; then
11819 # Being re-configured.
11820 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11821 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11822 else
11823 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11826 # Double all backslashes and backslash all quotes to turn
11827 # gcc_config_arguments into a C string.
11828 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11829 $gcc_config_arguments
11831 gcc_config_arguments_str=`cat conftest.out`
11832 rm -f conftest.out
11834 cat > configargs.h <<EOF
11835 /* Generated automatically. */
11836 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11837 static const char thread_model[] = "$thread_file";
11839 static const struct {
11840 const char *name, *value;
11841 } configure_default_options[] = $configure_default_options;
11844 gcc_BASEVER=`cat $srcdir/BASE-VER`
11845 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11846 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11847 if test -f $srcdir/REVISION ; then
11848 gcc_REVISION=`cat $srcdir/REVISION`
11849 else
11850 gcc_REVISION=""
11852 cat > plugin-version.h <<EOF
11853 #include "configargs.h"
11855 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11856 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11857 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11858 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11860 static char basever[] = "$gcc_BASEVER";
11861 static char datestamp[] = "$gcc_DATESTAMP";
11862 static char devphase[] = "$gcc_DEVPHASE";
11863 static char revision[] = "$gcc_REVISION";
11865 /* FIXME plugins: We should make the version information more precise.
11866 One way to do is to add a checksum. */
11868 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11869 devphase, revision,
11870 configuration_arguments};
11873 # Determine what GCC version number to use in filesystem paths.
11875 get_gcc_base_ver="cat"
11877 # Check whether --with-gcc-major-version-only was given.
11878 if test "${with_gcc_major_version_only+set}" = set; then :
11879 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11880 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11888 # Internationalization
11889 # If we haven't got the data from the intl directory,
11890 # assume NLS is disabled.
11891 USE_NLS=no
11892 LIBINTL=
11893 LIBINTL_DEP=
11894 INCINTL=
11895 XGETTEXT=
11896 GMSGFMT=
11897 POSUB=
11899 if test -f ../intl/config.intl; then
11900 . ../intl/config.intl
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11903 $as_echo_n "checking whether NLS is requested... " >&6; }
11904 if test x"$USE_NLS" != xyes; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11909 $as_echo "yes" >&6; }
11911 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11915 $as_echo_n "checking for catalogs to be installed... " >&6; }
11916 # Look for .po and .gmo files in the source directory.
11917 CATALOGS=
11918 XLINGUAS=
11919 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11920 # If there aren't any .gmo files the shell will give us the
11921 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11922 # weeded out.
11923 case "$cat" in *\**)
11924 continue;;
11925 esac
11926 # The quadruple backslash is collapsed to a double backslash
11927 # by the backticks, then collapsed again by the double quotes,
11928 # leaving us with one backslash in the sed expression (right
11929 # before the dot that mustn't act as a wildcard).
11930 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11931 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11932 # The user is allowed to set LINGUAS to a list of languages to
11933 # install catalogs for. If it's empty that means "all of them."
11934 if test "x$LINGUAS" = x; then
11935 CATALOGS="$CATALOGS $cat"
11936 XLINGUAS="$XLINGUAS $lang"
11937 else
11938 case "$LINGUAS" in *$lang*)
11939 CATALOGS="$CATALOGS $cat"
11940 XLINGUAS="$XLINGUAS $lang"
11942 esac
11944 done
11945 LINGUAS="$XLINGUAS"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11947 $as_echo "$LINGUAS" >&6; }
11950 DATADIRNAME=share
11952 INSTOBJEXT=.mo
11954 GENCAT=gencat
11956 CATOBJEXT=.gmo
11960 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11961 # -liconv on the link line twice.
11962 case "$LIBINTL" in *$LIBICONV*)
11963 LIBICONV= ;;
11964 esac
11966 # Check whether --enable-secureplt was given.
11967 if test "${enable_secureplt+set}" = set; then :
11968 enableval=$enable_secureplt;
11972 # Check whether --enable-mingw-wildcard was given.
11973 if test "${enable_mingw_wildcard+set}" = set; then :
11974 enableval=$enable_mingw_wildcard;
11975 else
11976 enable_mingw_wildcard=platform
11979 if test x"$enable_mingw_wildcard" != xplatform ; then :
11981 cat >>confdefs.h <<_ACEOF
11982 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11983 _ACEOF
11987 # Check whether --enable-leading-mingw64-underscores was given.
11988 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11989 enableval=$enable_leading_mingw64_underscores;
11992 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11994 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11998 # Check whether --enable-cld was given.
11999 if test "${enable_cld+set}" = set; then :
12000 enableval=$enable_cld;
12001 else
12002 enable_cld=no
12006 # Check whether --enable-frame-pointer was given.
12007 if test "${enable_frame_pointer+set}" = set; then :
12008 enableval=$enable_frame_pointer;
12009 else
12011 case $target_os in
12012 linux* | darwin[8912]*)
12013 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12014 # DWARF2.
12015 enable_frame_pointer=no
12018 enable_frame_pointer=yes
12020 esac
12025 # Windows32 Registry support for specifying GCC installation paths.
12026 # Check whether --enable-win32-registry was given.
12027 if test "${enable_win32_registry+set}" = set; then :
12028 enableval=$enable_win32_registry;
12032 case $host_os in
12033 win32 | pe | cygwin* | mingw32*)
12034 if test "x$enable_win32_registry" != xno; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12036 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12037 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 ac_func_search_save_LIBS=$LIBS
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char RegOpenKeyExA ();
12052 main ()
12054 return RegOpenKeyExA ();
12056 return 0;
12058 _ACEOF
12059 for ac_lib in '' advapi32; do
12060 if test -z "$ac_lib"; then
12061 ac_res="none required"
12062 else
12063 ac_res=-l$ac_lib
12064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12066 if ac_fn_cxx_try_link "$LINENO"; then :
12067 ac_cv_search_RegOpenKeyExA=$ac_res
12069 rm -f core conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext
12071 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12072 break
12074 done
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12077 else
12078 ac_cv_search_RegOpenKeyExA=no
12080 rm conftest.$ac_ext
12081 LIBS=$ac_func_search_save_LIBS
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12084 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12085 ac_res=$ac_cv_search_RegOpenKeyExA
12086 if test "$ac_res" != no; then :
12087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12089 else
12090 enable_win32_registry=no
12095 if test "x$enable_win32_registry" != xno; then
12097 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12100 if test "x$enable_win32_registry" != xyes \
12101 && test "x$enable_win32_registry" != x; then
12103 cat >>confdefs.h <<_ACEOF
12104 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12105 _ACEOF
12110 esac
12112 # Get an absolute path to the GCC top-level source directory
12113 holddir=`${PWDCMD-pwd}`
12114 cd $srcdir
12115 topdir=`${PWDCMD-pwd}`
12116 cd $holddir
12118 # Conditionalize the makefile for this host machine.
12119 xmake_file=
12120 for f in ${host_xmake_file}
12122 if test -f ${srcdir}/config/$f
12123 then
12124 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12126 done
12128 # Conditionalize the makefile for this target machine.
12129 tmake_file_=
12130 for f in ${tmake_file}
12132 if test -f ${srcdir}/config/$f
12133 then
12134 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12136 done
12137 tmake_file="${tmake_file_}"
12139 out_object_file=`basename $out_file .c`.o
12140 common_out_object_file=`basename $common_out_file .c`.o
12142 tm_file_list="options.h"
12143 tm_include_list="options.h insn-constants.h"
12144 for f in $tm_file; do
12145 case $f in
12146 ./* )
12147 f=`echo $f | sed 's/^..//'`
12148 tm_file_list="${tm_file_list} $f"
12149 tm_include_list="${tm_include_list} $f"
12151 defaults.h )
12152 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12153 tm_include_list="${tm_include_list} $f"
12156 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12157 tm_include_list="${tm_include_list} config/$f"
12159 esac
12160 done
12162 tm_p_file_list=
12163 tm_p_include_list=
12164 for f in $tm_p_file; do
12165 case $f in
12166 tm-preds.h )
12167 tm_p_file_list="${tm_p_file_list} $f"
12168 tm_p_include_list="${tm_p_include_list} $f"
12171 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12172 tm_p_include_list="${tm_p_include_list} config/$f"
12173 esac
12174 done
12176 xm_file_list=
12177 xm_include_list=
12178 for f in $xm_file; do
12179 case $f in
12180 ansidecl.h )
12181 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12182 xm_include_list="${xm_include_list} $f"
12184 auto-host.h )
12185 xm_file_list="${xm_file_list} $f"
12186 xm_include_list="${xm_include_list} $f"
12189 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12190 xm_include_list="${xm_include_list} config/$f"
12192 esac
12193 done
12195 host_xm_file_list=
12196 host_xm_include_list=
12197 for f in $host_xm_file; do
12198 case $f in
12199 ansidecl.h )
12200 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12201 host_xm_include_list="${host_xm_include_list} $f"
12203 auto-host.h )
12204 host_xm_file_list="${host_xm_file_list} $f"
12205 host_xm_include_list="${host_xm_include_list} $f"
12208 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12209 host_xm_include_list="${host_xm_include_list} config/$f"
12211 esac
12212 done
12214 build_xm_file_list=
12215 for f in $build_xm_file; do
12216 case $f in
12217 ansidecl.h )
12218 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12219 build_xm_include_list="${build_xm_include_list} $f"
12221 auto-build.h | auto-host.h )
12222 build_xm_file_list="${build_xm_file_list} $f"
12223 build_xm_include_list="${build_xm_include_list} $f"
12226 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12227 build_xm_include_list="${build_xm_include_list} config/$f"
12229 esac
12230 done
12232 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12233 # cross-compiler which does not use the native headers and libraries.
12234 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12235 CROSS=
12236 ALL=all.internal
12237 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12238 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12240 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12241 test x$build != x$host || test "x$with_build_sysroot" != x; then
12242 if test "x$with_build_sysroot" != x; then
12243 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12244 else
12245 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12248 if test x$host != x$target
12249 then
12250 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12251 ALL=all.cross
12252 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12253 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12254 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12257 if test "x$with_build_sysroot" != "x"; then
12258 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12259 elif test "x$with_sysroot" = x; then
12260 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12261 elif test "x$with_sysroot" = xyes; then
12262 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12263 else
12264 target_header_dir="${with_sysroot}${native_system_header_dir}"
12266 else
12267 target_header_dir=${native_system_header_dir}
12270 # If this is a cross-compiler that does not
12271 # have its own set of headers then define
12272 # inhibit_libc
12274 # If this is using newlib, without having the headers available now,
12275 # then define inhibit_libc in LIBGCC2_CFLAGS.
12276 # This prevents libgcc2 from containing any code which requires libc
12277 # support.
12278 : ${inhibit_libc=false}
12279 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12280 test x$with_newlib = xyes ; } &&
12281 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12282 inhibit_libc=true
12286 # When building gcc with a cross-compiler, we need to adjust things so
12287 # that the generator programs are still built with the native compiler.
12288 # Also, we cannot run fixincludes.
12290 # These are the normal (build=host) settings:
12291 CC_FOR_BUILD='$(CC)'
12292 CXX_FOR_BUILD='$(CXX)'
12293 BUILD_CFLAGS='$(ALL_CFLAGS)'
12294 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12295 BUILD_LDFLAGS='$(LDFLAGS)'
12296 STMP_FIXINC=stmp-fixinc
12298 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12299 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12301 # And these apply if build != host, or we are generating coverage data
12302 if test x$build != x$host || test "x$coverage_flags" != x
12303 then
12304 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12305 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12306 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12308 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12309 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12310 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12311 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12316 # Expand extra_headers to include complete path.
12317 # This substitutes for lots of t-* files.
12318 extra_headers_list=
12319 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12320 for file in ${extra_headers} ; do
12321 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12322 done
12324 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12325 if test x"$use_gcc_tgmath" = xyes
12326 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12329 # Define collect2 in Makefile.
12330 case $host_can_use_collect2 in
12331 no) collect2= ;;
12332 *) collect2='collect2$(exeext)' ;;
12333 esac
12336 # Add a definition of USE_COLLECT2 if system wants one.
12337 case $use_collect2 in
12338 no) use_collect2= ;;
12339 "") ;;
12341 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12342 xm_defines="${xm_defines} USE_COLLECT2"
12343 case $host_can_use_collect2 in
12345 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12347 esac
12349 esac
12352 cat >>confdefs.h <<_ACEOF
12353 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12354 _ACEOF
12357 # ---------------------------
12358 # Assembler & linker features
12359 # ---------------------------
12361 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12362 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12363 # However when ld-new is first executed from the build tree, libtool will
12364 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12365 # to the build tree. While doing this we need to use the previous-stage
12366 # linker, or we have an infinite loop. The presence of a shell script as
12367 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12368 # the gcc/collect-ld script. So we need to know how libtool works, or
12369 # exec-tool will fail.
12372 case `pwd` in
12373 *\ * | *\ *)
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12375 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12376 esac
12380 macro_version='2.2.7a'
12381 macro_revision='1.3134'
12395 ltmain="$ac_aux_dir/ltmain.sh"
12397 # Backslashify metacharacters that are still active within
12398 # double-quoted strings.
12399 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12401 # Same as above, but do not quote variable references.
12402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12404 # Sed substitution to delay expansion of an escaped shell variable in a
12405 # double_quote_subst'ed string.
12406 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12408 # Sed substitution to delay expansion of an escaped single quote.
12409 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12411 # Sed substitution to avoid accidental globbing in evaled expressions
12412 no_glob_subst='s/\*/\\\*/g'
12414 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12415 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12416 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12419 $as_echo_n "checking how to print strings... " >&6; }
12420 # Test print first, because it will be a builtin if present.
12421 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12422 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12423 ECHO='print -r --'
12424 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12425 ECHO='printf %s\n'
12426 else
12427 # Use this function as a fallback that always works.
12428 func_fallback_echo ()
12430 eval 'cat <<_LTECHO_EOF
12432 _LTECHO_EOF'
12434 ECHO='func_fallback_echo'
12437 # func_echo_all arg...
12438 # Invoke $ECHO with all args, space-separated.
12439 func_echo_all ()
12441 $ECHO ""
12444 case "$ECHO" in
12445 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12446 $as_echo "printf" >&6; } ;;
12447 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12448 $as_echo "print -r" >&6; } ;;
12449 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12450 $as_echo "cat" >&6; } ;;
12451 esac
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12467 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12468 if test "${ac_cv_path_SED+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12472 for ac_i in 1 2 3 4 5 6 7; do
12473 ac_script="$ac_script$as_nl$ac_script"
12474 done
12475 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12476 { ac_script=; unset ac_script;}
12477 if test -z "$SED"; then
12478 ac_path_SED_found=false
12479 # Loop through the user's path and test for each of PROGNAME-LIST
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_prog in sed gsed; do
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12488 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12489 # Check for GNU ac_path_SED and select it if it is found.
12490 # Check for GNU $ac_path_SED
12491 case `"$ac_path_SED" --version 2>&1` in
12492 *GNU*)
12493 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12495 ac_count=0
12496 $as_echo_n 0123456789 >"conftest.in"
12497 while :
12499 cat "conftest.in" "conftest.in" >"conftest.tmp"
12500 mv "conftest.tmp" "conftest.in"
12501 cp "conftest.in" "conftest.nl"
12502 $as_echo '' >> "conftest.nl"
12503 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12505 as_fn_arith $ac_count + 1 && ac_count=$as_val
12506 if test $ac_count -gt ${ac_path_SED_max-0}; then
12507 # Best one so far, save it but keep looking for a better one
12508 ac_cv_path_SED="$ac_path_SED"
12509 ac_path_SED_max=$ac_count
12511 # 10*(2^10) chars as input seems more than enough
12512 test $ac_count -gt 10 && break
12513 done
12514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12515 esac
12517 $ac_path_SED_found && break 3
12518 done
12519 done
12520 done
12521 IFS=$as_save_IFS
12522 if test -z "$ac_cv_path_SED"; then
12523 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12525 else
12526 ac_cv_path_SED=$SED
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12531 $as_echo "$ac_cv_path_SED" >&6; }
12532 SED="$ac_cv_path_SED"
12533 rm -f conftest.sed
12535 test -z "$SED" && SED=sed
12536 Xsed="$SED -e 1s/^X//"
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12549 $as_echo_n "checking for fgrep... " >&6; }
12550 if test "${ac_cv_path_FGREP+set}" = set; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12554 then ac_cv_path_FGREP="$GREP -F"
12555 else
12556 if test -z "$FGREP"; then
12557 ac_path_FGREP_found=false
12558 # Loop through the user's path and test for each of PROGNAME-LIST
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_prog in fgrep; do
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12567 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12568 # Check for GNU ac_path_FGREP and select it if it is found.
12569 # Check for GNU $ac_path_FGREP
12570 case `"$ac_path_FGREP" --version 2>&1` in
12571 *GNU*)
12572 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12574 ac_count=0
12575 $as_echo_n 0123456789 >"conftest.in"
12576 while :
12578 cat "conftest.in" "conftest.in" >"conftest.tmp"
12579 mv "conftest.tmp" "conftest.in"
12580 cp "conftest.in" "conftest.nl"
12581 $as_echo 'FGREP' >> "conftest.nl"
12582 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12584 as_fn_arith $ac_count + 1 && ac_count=$as_val
12585 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12586 # Best one so far, save it but keep looking for a better one
12587 ac_cv_path_FGREP="$ac_path_FGREP"
12588 ac_path_FGREP_max=$ac_count
12590 # 10*(2^10) chars as input seems more than enough
12591 test $ac_count -gt 10 && break
12592 done
12593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12594 esac
12596 $ac_path_FGREP_found && break 3
12597 done
12598 done
12599 done
12600 IFS=$as_save_IFS
12601 if test -z "$ac_cv_path_FGREP"; then
12602 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12604 else
12605 ac_cv_path_FGREP=$FGREP
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12611 $as_echo "$ac_cv_path_FGREP" >&6; }
12612 FGREP="$ac_cv_path_FGREP"
12615 test -z "$GREP" && GREP=grep
12635 # Check whether --with-gnu-ld was given.
12636 if test "${with_gnu_ld+set}" = set; then :
12637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12638 else
12639 with_gnu_ld=no
12642 ac_prog=ld
12643 if test "$GCC" = yes; then
12644 # Check if gcc -print-prog-name=ld gives a path.
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12646 $as_echo_n "checking for ld used by $CC... " >&6; }
12647 case $host in
12648 *-*-mingw*)
12649 # gcc leaves a trailing carriage return which upsets mingw
12650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12653 esac
12654 case $ac_prog in
12655 # Accept absolute paths.
12656 [\\/]* | ?:[\\/]*)
12657 re_direlt='/[^/][^/]*/\.\./'
12658 # Canonicalize the pathname of ld
12659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12662 done
12663 test -z "$LD" && LD="$ac_prog"
12666 # If it fails, then pretend we aren't using GCC.
12667 ac_prog=ld
12670 # If it is relative, then search for the first ld in PATH.
12671 with_gnu_ld=unknown
12673 esac
12674 elif test "$with_gnu_ld" = yes; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12676 $as_echo_n "checking for GNU ld... " >&6; }
12677 else
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12679 $as_echo_n "checking for non-GNU ld... " >&6; }
12681 if test "${lt_cv_path_LD+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 if test -z "$LD"; then
12685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12686 for ac_dir in $PATH; do
12687 IFS="$lt_save_ifs"
12688 test -z "$ac_dir" && ac_dir=.
12689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12690 lt_cv_path_LD="$ac_dir/$ac_prog"
12691 # Check to see if the program is GNU ld. I'd rather use --version,
12692 # but apparently some variants of GNU ld only accept -v.
12693 # Break only if it was the GNU/non-GNU ld that we prefer.
12694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12695 *GNU* | *'with BFD'*)
12696 test "$with_gnu_ld" != no && break
12699 test "$with_gnu_ld" != yes && break
12701 esac
12703 done
12704 IFS="$lt_save_ifs"
12705 else
12706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12710 LD="$lt_cv_path_LD"
12711 if test -n "$LD"; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12713 $as_echo "$LD" >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12718 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12720 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12721 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12725 case `$LD -v 2>&1 </dev/null` in
12726 *GNU* | *'with BFD'*)
12727 lt_cv_prog_gnu_ld=yes
12730 lt_cv_prog_gnu_ld=no
12732 esac
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12735 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12736 with_gnu_ld=$lt_cv_prog_gnu_ld
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12747 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12748 if test "${lt_cv_path_NM+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test -n "$NM"; then
12752 # Let the user override the test.
12753 lt_cv_path_NM="$NM"
12754 else
12755 lt_nm_to_check="${ac_tool_prefix}nm"
12756 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12757 lt_nm_to_check="$lt_nm_to_check nm"
12759 for lt_tmp_nm in $lt_nm_to_check; do
12760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12761 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12762 IFS="$lt_save_ifs"
12763 test -z "$ac_dir" && ac_dir=.
12764 tmp_nm="$ac_dir/$lt_tmp_nm"
12765 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12766 # Check to see if the nm accepts a BSD-compat flag.
12767 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12768 # nm: unknown option "B" ignored
12769 # Tru64's nm complains that /dev/null is an invalid object file
12770 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12771 */dev/null* | *'Invalid file or object type'*)
12772 lt_cv_path_NM="$tmp_nm -B"
12773 break
12776 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12777 */dev/null*)
12778 lt_cv_path_NM="$tmp_nm -p"
12779 break
12782 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12783 continue # so that we can try to find one that supports BSD flags
12785 esac
12787 esac
12789 done
12790 IFS="$lt_save_ifs"
12791 done
12792 : ${lt_cv_path_NM=no}
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12796 $as_echo "$lt_cv_path_NM" >&6; }
12797 if test "$lt_cv_path_NM" != "no"; then
12798 NM="$lt_cv_path_NM"
12799 else
12800 # Didn't find any BSD compatible name lister, look for dumpbin.
12801 if test -n "$DUMPBIN"; then :
12802 # Let the user override the test.
12803 else
12804 if test -n "$ac_tool_prefix"; then
12805 for ac_prog in dumpbin "link -dump"
12807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -n "$DUMPBIN"; then
12815 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12816 else
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12828 done
12829 done
12830 IFS=$as_save_IFS
12834 DUMPBIN=$ac_cv_prog_DUMPBIN
12835 if test -n "$DUMPBIN"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12837 $as_echo "$DUMPBIN" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12844 test -n "$DUMPBIN" && break
12845 done
12847 if test -z "$DUMPBIN"; then
12848 ac_ct_DUMPBIN=$DUMPBIN
12849 for ac_prog in dumpbin "link -dump"
12851 # Extract the first word of "$ac_prog", so it can be a program name with args.
12852 set dummy $ac_prog; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 $as_echo_n "checking for $ac_word... " >&6; }
12855 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 if test -n "$ac_ct_DUMPBIN"; then
12859 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12860 else
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12864 IFS=$as_save_IFS
12865 test -z "$as_dir" && as_dir=.
12866 for ac_exec_ext in '' $ac_executable_extensions; do
12867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12868 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12870 break 2
12872 done
12873 done
12874 IFS=$as_save_IFS
12878 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12879 if test -n "$ac_ct_DUMPBIN"; then
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12881 $as_echo "$ac_ct_DUMPBIN" >&6; }
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12884 $as_echo "no" >&6; }
12888 test -n "$ac_ct_DUMPBIN" && break
12889 done
12891 if test "x$ac_ct_DUMPBIN" = x; then
12892 DUMPBIN=":"
12893 else
12894 case $cross_compiling:$ac_tool_warned in
12895 yes:)
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12898 ac_tool_warned=yes ;;
12899 esac
12900 DUMPBIN=$ac_ct_DUMPBIN
12904 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12905 *COFF*)
12906 DUMPBIN="$DUMPBIN -symbols"
12909 DUMPBIN=:
12911 esac
12914 if test "$DUMPBIN" != ":"; then
12915 NM="$DUMPBIN"
12918 test -z "$NM" && NM=nm
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12926 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12927 if test "${lt_cv_nm_interface+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12929 else
12930 lt_cv_nm_interface="BSD nm"
12931 echo "int some_variable = 0;" > conftest.$ac_ext
12932 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12933 (eval "$ac_compile" 2>conftest.err)
12934 cat conftest.err >&5
12935 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12936 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12937 cat conftest.err >&5
12938 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12939 cat conftest.out >&5
12940 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12941 lt_cv_nm_interface="MS dumpbin"
12943 rm -f conftest*
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12946 $as_echo "$lt_cv_nm_interface" >&6; }
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12949 $as_echo_n "checking whether ln -s works... " >&6; }
12950 LN_S=$as_ln_s
12951 if test "$LN_S" = "ln -s"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953 $as_echo "yes" >&6; }
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12956 $as_echo "no, using $LN_S" >&6; }
12959 # find the maximum length of command line arguments
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12961 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12962 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12966 teststring="ABCD"
12968 case $build_os in
12969 msdosdjgpp*)
12970 # On DJGPP, this test can blow up pretty badly due to problems in libc
12971 # (any single argument exceeding 2000 bytes causes a buffer overrun
12972 # during glob expansion). Even if it were fixed, the result of this
12973 # check would be larger than it should be.
12974 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12977 gnu*)
12978 # Under GNU Hurd, this test is not required because there is
12979 # no limit to the length of command line arguments.
12980 # Libtool will interpret -1 as no limit whatsoever
12981 lt_cv_sys_max_cmd_len=-1;
12984 cygwin* | mingw* | cegcc*)
12985 # On Win9x/ME, this test blows up -- it succeeds, but takes
12986 # about 5 minutes as the teststring grows exponentially.
12987 # Worse, since 9x/ME are not pre-emptively multitasking,
12988 # you end up with a "frozen" computer, even though with patience
12989 # the test eventually succeeds (with a max line length of 256k).
12990 # Instead, let's just punt: use the minimum linelength reported by
12991 # all of the supported platforms: 8192 (on NT/2K/XP).
12992 lt_cv_sys_max_cmd_len=8192;
12995 mint*)
12996 # On MiNT this can take a long time and run out of memory.
12997 lt_cv_sys_max_cmd_len=8192;
13000 amigaos*)
13001 # On AmigaOS with pdksh, this test takes hours, literally.
13002 # So we just punt and use a minimum line length of 8192.
13003 lt_cv_sys_max_cmd_len=8192;
13006 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13007 # This has been around since 386BSD, at least. Likely further.
13008 if test -x /sbin/sysctl; then
13009 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13010 elif test -x /usr/sbin/sysctl; then
13011 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13012 else
13013 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13015 # And add a safety zone
13016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13020 interix*)
13021 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13022 lt_cv_sys_max_cmd_len=196608
13025 osf*)
13026 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13027 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13028 # nice to cause kernel panics so lets avoid the loop below.
13029 # First set a reasonable default.
13030 lt_cv_sys_max_cmd_len=16384
13032 if test -x /sbin/sysconfig; then
13033 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13034 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13035 esac
13038 sco3.2v5*)
13039 lt_cv_sys_max_cmd_len=102400
13041 sysv5* | sco5v6* | sysv4.2uw2*)
13042 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13043 if test -n "$kargmax"; then
13044 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13045 else
13046 lt_cv_sys_max_cmd_len=32768
13050 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13051 if test -n "$lt_cv_sys_max_cmd_len"; then
13052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13054 else
13055 # Make teststring a little bigger before we do anything with it.
13056 # a 1K string should be a reasonable start.
13057 for i in 1 2 3 4 5 6 7 8 ; do
13058 teststring=$teststring$teststring
13059 done
13060 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13061 # If test is not a shell built-in, we'll probably end up computing a
13062 # maximum length that is only half of the actual maximum length, but
13063 # we can't tell.
13064 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13065 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13066 test $i != 17 # 1/2 MB should be enough
13068 i=`expr $i + 1`
13069 teststring=$teststring$teststring
13070 done
13071 # Only check the string length outside the loop.
13072 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13073 teststring=
13074 # Add a significant safety factor because C++ compilers can tack on
13075 # massive amounts of additional arguments before passing them to the
13076 # linker. It appears as though 1/2 is a usable value.
13077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13080 esac
13084 if test -n $lt_cv_sys_max_cmd_len ; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13086 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13087 else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13089 $as_echo "none" >&6; }
13091 max_cmd_len=$lt_cv_sys_max_cmd_len
13098 : ${CP="cp -f"}
13099 : ${MV="mv -f"}
13100 : ${RM="rm -f"}
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13103 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13104 # Try some XSI features
13105 xsi_shell=no
13106 ( _lt_dummy="a/b/c"
13107 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13108 = c,a/b,, \
13109 && eval 'test $(( 1 + 1 )) -eq 2 \
13110 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13111 && xsi_shell=yes
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13113 $as_echo "$xsi_shell" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13117 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13118 lt_shell_append=no
13119 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13120 >/dev/null 2>&1 \
13121 && lt_shell_append=yes
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13123 $as_echo "$lt_shell_append" >&6; }
13126 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13127 lt_unset=unset
13128 else
13129 lt_unset=false
13136 # test EBCDIC or ASCII
13137 case `echo X|tr X '\101'` in
13138 A) # ASCII based system
13139 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13140 lt_SP2NL='tr \040 \012'
13141 lt_NL2SP='tr \015\012 \040\040'
13143 *) # EBCDIC based system
13144 lt_SP2NL='tr \100 \n'
13145 lt_NL2SP='tr \r\n \100\100'
13147 esac
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13158 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13159 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 lt_cv_ld_reload_flag='-r'
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13165 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13166 reload_flag=$lt_cv_ld_reload_flag
13167 case $reload_flag in
13168 "" | " "*) ;;
13169 *) reload_flag=" $reload_flag" ;;
13170 esac
13171 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13172 case $host_os in
13173 darwin*)
13174 if test "$GCC" = yes; then
13175 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13176 else
13177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13180 esac
13190 if test -n "$ac_tool_prefix"; then
13191 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13192 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 if test -n "$OBJDUMP"; then
13199 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13200 else
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13208 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13212 done
13213 done
13214 IFS=$as_save_IFS
13218 OBJDUMP=$ac_cv_prog_OBJDUMP
13219 if test -n "$OBJDUMP"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13221 $as_echo "$OBJDUMP" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13229 if test -z "$ac_cv_prog_OBJDUMP"; then
13230 ac_ct_OBJDUMP=$OBJDUMP
13231 # Extract the first word of "objdump", so it can be a program name with args.
13232 set dummy objdump; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 if test -n "$ac_ct_OBJDUMP"; then
13239 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13240 else
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13252 done
13253 done
13254 IFS=$as_save_IFS
13258 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13259 if test -n "$ac_ct_OBJDUMP"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13261 $as_echo "$ac_ct_OBJDUMP" >&6; }
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13267 if test "x$ac_ct_OBJDUMP" = x; then
13268 OBJDUMP="false"
13269 else
13270 case $cross_compiling:$ac_tool_warned in
13271 yes:)
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13274 ac_tool_warned=yes ;;
13275 esac
13276 OBJDUMP=$ac_ct_OBJDUMP
13278 else
13279 OBJDUMP="$ac_cv_prog_OBJDUMP"
13282 test -z "$OBJDUMP" && OBJDUMP=objdump
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13293 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13294 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 lt_cv_file_magic_cmd='$MAGIC_CMD'
13298 lt_cv_file_magic_test_file=
13299 lt_cv_deplibs_check_method='unknown'
13300 # Need to set the preceding variable on all platforms that support
13301 # interlibrary dependencies.
13302 # 'none' -- dependencies not supported.
13303 # `unknown' -- same as none, but documents that we really don't know.
13304 # 'pass_all' -- all dependencies passed with no checks.
13305 # 'test_compile' -- check by making test program.
13306 # 'file_magic [[regex]]' -- check by looking for files in library path
13307 # which responds to the $file_magic_cmd with a given extended regex.
13308 # If you have `file' or equivalent on your system and you're not sure
13309 # whether `pass_all' will *always* work, you probably want this one.
13311 case $host_os in
13312 aix[4-9]*)
13313 lt_cv_deplibs_check_method=pass_all
13316 beos*)
13317 lt_cv_deplibs_check_method=pass_all
13320 bsdi[45]*)
13321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13322 lt_cv_file_magic_cmd='/usr/bin/file -L'
13323 lt_cv_file_magic_test_file=/shlib/libc.so
13326 cygwin*)
13327 # func_win32_libid is a shell function defined in ltmain.sh
13328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13329 lt_cv_file_magic_cmd='func_win32_libid'
13332 mingw* | pw32*)
13333 # Base MSYS/MinGW do not provide the 'file' command needed by
13334 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13335 # unless we find 'file', for example because we are cross-compiling.
13336 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13337 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13339 lt_cv_file_magic_cmd='func_win32_libid'
13340 else
13341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13342 lt_cv_file_magic_cmd='$OBJDUMP -f'
13346 cegcc*)
13347 # use the weaker test based on 'objdump'. See mingw*.
13348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13349 lt_cv_file_magic_cmd='$OBJDUMP -f'
13352 darwin* | rhapsody*)
13353 lt_cv_deplibs_check_method=pass_all
13356 freebsd* | dragonfly*)
13357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13358 case $host_cpu in
13359 i*86 )
13360 # Not sure whether the presence of OpenBSD here was a mistake.
13361 # Let's accept both of them until this is cleared up.
13362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13363 lt_cv_file_magic_cmd=/usr/bin/file
13364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13366 esac
13367 else
13368 lt_cv_deplibs_check_method=pass_all
13372 gnu*)
13373 lt_cv_deplibs_check_method=pass_all
13376 haiku*)
13377 lt_cv_deplibs_check_method=pass_all
13380 hpux10.20* | hpux11*)
13381 lt_cv_file_magic_cmd=/usr/bin/file
13382 case $host_cpu in
13383 ia64*)
13384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13385 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13387 hppa*64*)
13388 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]'
13389 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13393 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13395 esac
13398 interix[3-9]*)
13399 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13403 irix5* | irix6* | nonstopux*)
13404 case $LD in
13405 *-32|*"-32 ") libmagic=32-bit;;
13406 *-n32|*"-n32 ") libmagic=N32;;
13407 *-64|*"-64 ") libmagic=64-bit;;
13408 *) libmagic=never-match;;
13409 esac
13410 lt_cv_deplibs_check_method=pass_all
13413 # This must be Linux ELF.
13414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13415 lt_cv_deplibs_check_method=pass_all
13418 netbsd*)
13419 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13421 else
13422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13426 newos6*)
13427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13428 lt_cv_file_magic_cmd=/usr/bin/file
13429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13432 *nto* | *qnx*)
13433 lt_cv_deplibs_check_method=pass_all
13436 openbsd*)
13437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13439 else
13440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13444 osf3* | osf4* | osf5*)
13445 lt_cv_deplibs_check_method=pass_all
13448 rdos*)
13449 lt_cv_deplibs_check_method=pass_all
13452 solaris*)
13453 lt_cv_deplibs_check_method=pass_all
13456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13457 lt_cv_deplibs_check_method=pass_all
13460 sysv4 | sysv4.3*)
13461 case $host_vendor in
13462 motorola)
13463 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]'
13464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13466 ncr)
13467 lt_cv_deplibs_check_method=pass_all
13469 sequent)
13470 lt_cv_file_magic_cmd='/bin/file'
13471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13473 sni)
13474 lt_cv_file_magic_cmd='/bin/file'
13475 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13476 lt_cv_file_magic_test_file=/lib/libc.so
13478 siemens)
13479 lt_cv_deplibs_check_method=pass_all
13482 lt_cv_deplibs_check_method=pass_all
13484 esac
13487 tpf*)
13488 lt_cv_deplibs_check_method=pass_all
13490 esac
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13494 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13495 file_magic_cmd=$lt_cv_file_magic_cmd
13496 deplibs_check_method=$lt_cv_deplibs_check_method
13497 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13510 if test -n "$ac_tool_prefix"; then
13511 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13512 set dummy ${ac_tool_prefix}ar; ac_word=$2
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13514 $as_echo_n "checking for $ac_word... " >&6; }
13515 if test "${ac_cv_prog_AR+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 if test -n "$AR"; then
13519 ac_cv_prog_AR="$AR" # Let the user override the test.
13520 else
13521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $PATH
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13528 ac_cv_prog_AR="${ac_tool_prefix}ar"
13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 break 2
13532 done
13533 done
13534 IFS=$as_save_IFS
13538 AR=$ac_cv_prog_AR
13539 if test -n "$AR"; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13541 $as_echo "$AR" >&6; }
13542 else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544 $as_echo "no" >&6; }
13549 if test -z "$ac_cv_prog_AR"; then
13550 ac_ct_AR=$AR
13551 # Extract the first word of "ar", so it can be a program name with args.
13552 set dummy ar; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 if test -n "$ac_ct_AR"; then
13559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13564 IFS=$as_save_IFS
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13568 ac_cv_prog_ac_ct_AR="ar"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13570 break 2
13572 done
13573 done
13574 IFS=$as_save_IFS
13578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13579 if test -n "$ac_ct_AR"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13581 $as_echo "$ac_ct_AR" >&6; }
13582 else
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13587 if test "x$ac_ct_AR" = x; then
13588 AR="false"
13589 else
13590 case $cross_compiling:$ac_tool_warned in
13591 yes:)
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13594 ac_tool_warned=yes ;;
13595 esac
13596 AR=$ac_ct_AR
13598 else
13599 AR="$ac_cv_prog_AR"
13602 test -z "$AR" && AR=ar
13603 test -z "$AR_FLAGS" && AR_FLAGS=cru
13615 if test -n "$ac_tool_prefix"; then
13616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13617 set dummy ${ac_tool_prefix}strip; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if test "${ac_cv_prog_STRIP+set}" = set; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 if test -n "$STRIP"; then
13624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13637 done
13638 done
13639 IFS=$as_save_IFS
13643 STRIP=$ac_cv_prog_STRIP
13644 if test -n "$STRIP"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13646 $as_echo "$STRIP" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13654 if test -z "$ac_cv_prog_STRIP"; then
13655 ac_ct_STRIP=$STRIP
13656 # Extract the first word of "strip", so it can be a program name with args.
13657 set dummy strip; ac_word=$2
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 if test -n "$ac_ct_STRIP"; then
13664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13665 else
13666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667 for as_dir in $PATH
13669 IFS=$as_save_IFS
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
13672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13673 ac_cv_prog_ac_ct_STRIP="strip"
13674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 break 2
13677 done
13678 done
13679 IFS=$as_save_IFS
13683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13684 if test -n "$ac_ct_STRIP"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13686 $as_echo "$ac_ct_STRIP" >&6; }
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13692 if test "x$ac_ct_STRIP" = x; then
13693 STRIP=":"
13694 else
13695 case $cross_compiling:$ac_tool_warned in
13696 yes:)
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13699 ac_tool_warned=yes ;;
13700 esac
13701 STRIP=$ac_ct_STRIP
13703 else
13704 STRIP="$ac_cv_prog_STRIP"
13707 test -z "$STRIP" && STRIP=:
13714 if test -n "$ac_tool_prefix"; then
13715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13716 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 if test -n "$RANLIB"; then
13723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13736 done
13737 done
13738 IFS=$as_save_IFS
13742 RANLIB=$ac_cv_prog_RANLIB
13743 if test -n "$RANLIB"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13745 $as_echo "$RANLIB" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13753 if test -z "$ac_cv_prog_RANLIB"; then
13754 ac_ct_RANLIB=$RANLIB
13755 # Extract the first word of "ranlib", so it can be a program name with args.
13756 set dummy ranlib; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 if test -n "$ac_ct_RANLIB"; then
13763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13772 ac_cv_prog_ac_ct_RANLIB="ranlib"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774 break 2
13776 done
13777 done
13778 IFS=$as_save_IFS
13782 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13783 if test -n "$ac_ct_RANLIB"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13785 $as_echo "$ac_ct_RANLIB" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13791 if test "x$ac_ct_RANLIB" = x; then
13792 RANLIB=":"
13793 else
13794 case $cross_compiling:$ac_tool_warned in
13795 yes:)
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13798 ac_tool_warned=yes ;;
13799 esac
13800 RANLIB=$ac_ct_RANLIB
13802 else
13803 RANLIB="$ac_cv_prog_RANLIB"
13806 test -z "$RANLIB" && RANLIB=:
13813 # Determine commands to create old-style static archives.
13814 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13815 old_postinstall_cmds='chmod 644 $oldlib'
13816 old_postuninstall_cmds=
13818 if test -n "$RANLIB"; then
13819 case $host_os in
13820 openbsd*)
13821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13826 esac
13827 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13830 case $host_os in
13831 darwin*)
13832 lock_old_archive_extraction=yes ;;
13834 lock_old_archive_extraction=no ;;
13835 esac
13875 # If no C compiler was specified, use CC.
13876 LTCC=${LTCC-"$CC"}
13878 # If no C compiler flags were specified, use CFLAGS.
13879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13881 # Allow CC to be a program name with arguments.
13882 compiler=$CC
13885 # Check for command to grab the raw symbol name followed by C symbol from nm.
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13887 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13888 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13892 # These are sane defaults that work on at least a few old systems.
13893 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13895 # Character class describing NM global symbol codes.
13896 symcode='[BCDEGRST]'
13898 # Regexp to match symbols that can be accessed directly from C.
13899 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13901 # Define system-specific variables.
13902 case $host_os in
13903 aix*)
13904 symcode='[BCDT]'
13906 cygwin* | mingw* | pw32* | cegcc*)
13907 symcode='[ABCDGISTW]'
13909 hpux*)
13910 if test "$host_cpu" = ia64; then
13911 symcode='[ABCDEGRST]'
13914 irix* | nonstopux*)
13915 symcode='[BCDEGRST]'
13917 osf*)
13918 symcode='[BCDEGQRST]'
13920 solaris*)
13921 symcode='[BDRT]'
13923 sco3.2v5*)
13924 symcode='[DT]'
13926 sysv4.2uw2*)
13927 symcode='[DT]'
13929 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13930 symcode='[ABDT]'
13932 sysv4)
13933 symcode='[DFNSTU]'
13935 esac
13937 # If we're using GNU nm, then use its standard symbol codes.
13938 case `$NM -V 2>&1` in
13939 *GNU* | *'with BFD'*)
13940 symcode='[ABCDGIRSTW]' ;;
13941 esac
13943 # Transform an extracted symbol line into a proper C declaration.
13944 # Some systems (esp. on ia64) link data and code symbols differently,
13945 # so use this general approach.
13946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13948 # Transform an extracted symbol line into symbol name and symbol address
13949 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13950 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'"
13952 # Handle CRLF in mingw tool chain
13953 opt_cr=
13954 case $build_os in
13955 mingw*)
13956 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13958 esac
13960 # Try without a prefix underscore, then with it.
13961 for ac_symprfx in "" "_"; do
13963 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13964 symxfrm="\\1 $ac_symprfx\\2 \\2"
13966 # Write the raw and C identifiers.
13967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13968 # Fake it for dumpbin and say T for any non-static function
13969 # and D for any global variable.
13970 # Also find C++ and __fastcall symbols from MSVC++,
13971 # which start with @ or ?.
13972 lt_cv_sys_global_symbol_pipe="$AWK '"\
13973 " {last_section=section; section=\$ 3};"\
13974 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13975 " \$ 0!~/External *\|/{next};"\
13976 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13977 " {if(hide[section]) next};"\
13978 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13979 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13980 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13981 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13982 " ' prfx=^$ac_symprfx"
13983 else
13984 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13987 # Check to see that the pipe works correctly.
13988 pipe_works=no
13990 rm -f conftest*
13991 cat > conftest.$ac_ext <<_LT_EOF
13992 #ifdef __cplusplus
13993 extern "C" {
13994 #endif
13995 char nm_test_var;
13996 void nm_test_func(void);
13997 void nm_test_func(void){}
13998 #ifdef __cplusplus
14000 #endif
14001 int main(){nm_test_var='a';nm_test_func();return(0);}
14002 _LT_EOF
14004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14005 (eval $ac_compile) 2>&5
14006 ac_status=$?
14007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008 test $ac_status = 0; }; then
14009 # Now try to grab the symbols.
14010 nlist=conftest.nm
14011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14012 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14013 ac_status=$?
14014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14015 test $ac_status = 0; } && test -s "$nlist"; then
14016 # Try sorting and uniquifying the output.
14017 if sort "$nlist" | uniq > "$nlist"T; then
14018 mv -f "$nlist"T "$nlist"
14019 else
14020 rm -f "$nlist"T
14023 # Make sure that we snagged all the symbols we need.
14024 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14025 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14026 cat <<_LT_EOF > conftest.$ac_ext
14027 #ifdef __cplusplus
14028 extern "C" {
14029 #endif
14031 _LT_EOF
14032 # Now generate the symbol file.
14033 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14035 cat <<_LT_EOF >> conftest.$ac_ext
14037 /* The mapping between symbol names and symbols. */
14038 const struct {
14039 const char *name;
14040 void *address;
14042 lt__PROGRAM__LTX_preloaded_symbols[] =
14044 { "@PROGRAM@", (void *) 0 },
14045 _LT_EOF
14046 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14047 cat <<\_LT_EOF >> conftest.$ac_ext
14048 {0, (void *) 0}
14051 /* This works around a problem in FreeBSD linker */
14052 #ifdef FREEBSD_WORKAROUND
14053 static const void *lt_preloaded_setup() {
14054 return lt__PROGRAM__LTX_preloaded_symbols;
14056 #endif
14058 #ifdef __cplusplus
14060 #endif
14061 _LT_EOF
14062 # Now try linking the two files.
14063 mv conftest.$ac_objext conftstm.$ac_objext
14064 lt_save_LIBS="$LIBS"
14065 lt_save_CFLAGS="$CFLAGS"
14066 LIBS="conftstm.$ac_objext"
14067 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14069 (eval $ac_link) 2>&5
14070 ac_status=$?
14071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14072 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14073 pipe_works=yes
14075 LIBS="$lt_save_LIBS"
14076 CFLAGS="$lt_save_CFLAGS"
14077 else
14078 echo "cannot find nm_test_func in $nlist" >&5
14080 else
14081 echo "cannot find nm_test_var in $nlist" >&5
14083 else
14084 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14086 else
14087 echo "$progname: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14090 rm -rf conftest* conftst*
14092 # Do not use the global_symbol_pipe unless it works.
14093 if test "$pipe_works" = yes; then
14094 break
14095 else
14096 lt_cv_sys_global_symbol_pipe=
14098 done
14102 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14103 lt_cv_sys_global_symbol_to_cdecl=
14105 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14107 $as_echo "failed" >&6; }
14108 else
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14110 $as_echo "ok" >&6; }
14134 # Check whether --enable-libtool-lock was given.
14135 if test "${enable_libtool_lock+set}" = set; then :
14136 enableval=$enable_libtool_lock;
14139 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14141 # Some flags need to be propagated to the compiler or linker for good
14142 # libtool support.
14143 case $host in
14144 ia64-*-hpux*)
14145 # Find out which ABI we are using.
14146 echo 'int i;' > conftest.$ac_ext
14147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14148 (eval $ac_compile) 2>&5
14149 ac_status=$?
14150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14151 test $ac_status = 0; }; then
14152 case `/usr/bin/file conftest.$ac_objext` in
14153 *ELF-32*)
14154 HPUX_IA64_MODE="32"
14156 *ELF-64*)
14157 HPUX_IA64_MODE="64"
14159 esac
14161 rm -rf conftest*
14163 *-*-irix6*)
14164 # Find out which ABI we are using.
14165 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14167 (eval $ac_compile) 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; then
14171 if test "$lt_cv_prog_gnu_ld" = yes; then
14172 case `/usr/bin/file conftest.$ac_objext` in
14173 *32-bit*)
14174 LD="${LD-ld} -melf32bsmip"
14176 *N32*)
14177 LD="${LD-ld} -melf32bmipn32"
14179 *64-bit*)
14180 LD="${LD-ld} -melf64bmip"
14182 esac
14183 else
14184 case `/usr/bin/file conftest.$ac_objext` in
14185 *32-bit*)
14186 LD="${LD-ld} -32"
14188 *N32*)
14189 LD="${LD-ld} -n32"
14191 *64-bit*)
14192 LD="${LD-ld} -64"
14194 esac
14197 rm -rf conftest*
14200 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14201 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14202 # Find out which ABI we are using.
14203 echo 'int i;' > conftest.$ac_ext
14204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14205 (eval $ac_compile) 2>&5
14206 ac_status=$?
14207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14208 test $ac_status = 0; }; then
14209 case `/usr/bin/file conftest.o` in
14210 *32-bit*)
14211 case $host in
14212 x86_64-*kfreebsd*-gnu)
14213 LD="${LD-ld} -m elf_i386_fbsd"
14215 x86_64-*linux*)
14216 case `/usr/bin/file conftest.o` in
14217 *x86-64*)
14218 LD="${LD-ld} -m elf32_x86_64"
14221 LD="${LD-ld} -m elf_i386"
14223 esac
14225 powerpc64le-*linux*)
14226 LD="${LD-ld} -m elf32lppclinux"
14228 powerpc64-*linux*)
14229 LD="${LD-ld} -m elf32ppclinux"
14231 s390x-*linux*)
14232 LD="${LD-ld} -m elf_s390"
14234 sparc64-*linux*)
14235 LD="${LD-ld} -m elf32_sparc"
14237 esac
14239 *64-bit*)
14240 case $host in
14241 x86_64-*kfreebsd*-gnu)
14242 LD="${LD-ld} -m elf_x86_64_fbsd"
14244 x86_64-*linux*)
14245 LD="${LD-ld} -m elf_x86_64"
14247 powerpcle-*linux*)
14248 LD="${LD-ld} -m elf64lppc"
14250 powerpc-*linux*)
14251 LD="${LD-ld} -m elf64ppc"
14253 s390*-*linux*|s390*-*tpf*)
14254 LD="${LD-ld} -m elf64_s390"
14256 sparc*-*linux*)
14257 LD="${LD-ld} -m elf64_sparc"
14259 esac
14261 esac
14263 rm -rf conftest*
14266 *-*-sco3.2v5*)
14267 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14268 SAVE_CFLAGS="$CFLAGS"
14269 CFLAGS="$CFLAGS -belf"
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14271 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14272 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 ac_ext=c
14276 ac_cpp='$CPP $CPPFLAGS'
14277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14285 main ()
14289 return 0;
14291 _ACEOF
14292 if ac_fn_c_try_link "$LINENO"; then :
14293 lt_cv_cc_needs_belf=yes
14294 else
14295 lt_cv_cc_needs_belf=no
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14299 ac_ext=c
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14307 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14308 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14309 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14310 CFLAGS="$SAVE_CFLAGS"
14313 sparc*-*solaris*)
14314 # Find out which ABI we are using.
14315 echo 'int i;' > conftest.$ac_ext
14316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14317 (eval $ac_compile) 2>&5
14318 ac_status=$?
14319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14320 test $ac_status = 0; }; then
14321 case `/usr/bin/file conftest.o` in
14322 *64-bit*)
14323 case $lt_cv_prog_gnu_ld in
14324 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14326 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14327 LD="${LD-ld} -64"
14330 esac
14332 esac
14334 rm -rf conftest*
14336 esac
14338 need_locks="$enable_libtool_lock"
14341 case $host_os in
14342 rhapsody* | darwin*)
14343 if test -n "$ac_tool_prefix"; then
14344 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14345 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14347 $as_echo_n "checking for $ac_word... " >&6; }
14348 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 if test -n "$DSYMUTIL"; then
14352 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14353 else
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14357 IFS=$as_save_IFS
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14361 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14363 break 2
14365 done
14366 done
14367 IFS=$as_save_IFS
14371 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14372 if test -n "$DSYMUTIL"; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14374 $as_echo "$DSYMUTIL" >&6; }
14375 else
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14382 if test -z "$ac_cv_prog_DSYMUTIL"; then
14383 ac_ct_DSYMUTIL=$DSYMUTIL
14384 # Extract the first word of "dsymutil", so it can be a program name with args.
14385 set dummy dsymutil; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 if test -n "$ac_ct_DSYMUTIL"; then
14392 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14401 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14405 done
14406 done
14407 IFS=$as_save_IFS
14411 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14412 if test -n "$ac_ct_DSYMUTIL"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14414 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14420 if test "x$ac_ct_DSYMUTIL" = x; then
14421 DSYMUTIL=":"
14422 else
14423 case $cross_compiling:$ac_tool_warned in
14424 yes:)
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14427 ac_tool_warned=yes ;;
14428 esac
14429 DSYMUTIL=$ac_ct_DSYMUTIL
14431 else
14432 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14435 if test -n "$ac_tool_prefix"; then
14436 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14437 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439 $as_echo_n "checking for $ac_word... " >&6; }
14440 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 if test -n "$NMEDIT"; then
14444 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14445 else
14446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447 for as_dir in $PATH
14449 IFS=$as_save_IFS
14450 test -z "$as_dir" && as_dir=.
14451 for ac_exec_ext in '' $ac_executable_extensions; do
14452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14453 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455 break 2
14457 done
14458 done
14459 IFS=$as_save_IFS
14463 NMEDIT=$ac_cv_prog_NMEDIT
14464 if test -n "$NMEDIT"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14466 $as_echo "$NMEDIT" >&6; }
14467 else
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14474 if test -z "$ac_cv_prog_NMEDIT"; then
14475 ac_ct_NMEDIT=$NMEDIT
14476 # Extract the first word of "nmedit", so it can be a program name with args.
14477 set dummy nmedit; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 if test -n "$ac_ct_NMEDIT"; then
14484 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14485 else
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14489 IFS=$as_save_IFS
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14493 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14495 break 2
14497 done
14498 done
14499 IFS=$as_save_IFS
14503 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14504 if test -n "$ac_ct_NMEDIT"; then
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14506 $as_echo "$ac_ct_NMEDIT" >&6; }
14507 else
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14512 if test "x$ac_ct_NMEDIT" = x; then
14513 NMEDIT=":"
14514 else
14515 case $cross_compiling:$ac_tool_warned in
14516 yes:)
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14519 ac_tool_warned=yes ;;
14520 esac
14521 NMEDIT=$ac_ct_NMEDIT
14523 else
14524 NMEDIT="$ac_cv_prog_NMEDIT"
14527 if test -n "$ac_tool_prefix"; then
14528 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14529 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14531 $as_echo_n "checking for $ac_word... " >&6; }
14532 if test "${ac_cv_prog_LIPO+set}" = set; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535 if test -n "$LIPO"; then
14536 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14537 else
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14541 IFS=$as_save_IFS
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14545 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547 break 2
14549 done
14550 done
14551 IFS=$as_save_IFS
14555 LIPO=$ac_cv_prog_LIPO
14556 if test -n "$LIPO"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14558 $as_echo "$LIPO" >&6; }
14559 else
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14566 if test -z "$ac_cv_prog_LIPO"; then
14567 ac_ct_LIPO=$LIPO
14568 # Extract the first word of "lipo", so it can be a program name with args.
14569 set dummy lipo; ac_word=$2
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14571 $as_echo_n "checking for $ac_word... " >&6; }
14572 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 if test -n "$ac_ct_LIPO"; then
14576 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14577 else
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $PATH
14581 IFS=$as_save_IFS
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
14584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14585 ac_cv_prog_ac_ct_LIPO="lipo"
14586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14587 break 2
14589 done
14590 done
14591 IFS=$as_save_IFS
14595 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14596 if test -n "$ac_ct_LIPO"; then
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14598 $as_echo "$ac_ct_LIPO" >&6; }
14599 else
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601 $as_echo "no" >&6; }
14604 if test "x$ac_ct_LIPO" = x; then
14605 LIPO=":"
14606 else
14607 case $cross_compiling:$ac_tool_warned in
14608 yes:)
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14611 ac_tool_warned=yes ;;
14612 esac
14613 LIPO=$ac_ct_LIPO
14615 else
14616 LIPO="$ac_cv_prog_LIPO"
14619 if test -n "$ac_tool_prefix"; then
14620 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14621 set dummy ${ac_tool_prefix}otool; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 if test -n "$OTOOL"; then
14628 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14629 else
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14633 IFS=$as_save_IFS
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 break 2
14641 done
14642 done
14643 IFS=$as_save_IFS
14647 OTOOL=$ac_cv_prog_OTOOL
14648 if test -n "$OTOOL"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14650 $as_echo "$OTOOL" >&6; }
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14658 if test -z "$ac_cv_prog_OTOOL"; then
14659 ac_ct_OTOOL=$OTOOL
14660 # Extract the first word of "otool", so it can be a program name with args.
14661 set dummy otool; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 $as_echo_n "checking for $ac_word... " >&6; }
14664 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 if test -n "$ac_ct_OTOOL"; then
14668 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14669 else
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14673 IFS=$as_save_IFS
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14677 ac_cv_prog_ac_ct_OTOOL="otool"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 break 2
14681 done
14682 done
14683 IFS=$as_save_IFS
14687 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14688 if test -n "$ac_ct_OTOOL"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14690 $as_echo "$ac_ct_OTOOL" >&6; }
14691 else
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14696 if test "x$ac_ct_OTOOL" = x; then
14697 OTOOL=":"
14698 else
14699 case $cross_compiling:$ac_tool_warned in
14700 yes:)
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14703 ac_tool_warned=yes ;;
14704 esac
14705 OTOOL=$ac_ct_OTOOL
14707 else
14708 OTOOL="$ac_cv_prog_OTOOL"
14711 if test -n "$ac_tool_prefix"; then
14712 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14713 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14715 $as_echo_n "checking for $ac_word... " >&6; }
14716 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 if test -n "$OTOOL64"; then
14720 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14721 else
14722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14723 for as_dir in $PATH
14725 IFS=$as_save_IFS
14726 test -z "$as_dir" && as_dir=.
14727 for ac_exec_ext in '' $ac_executable_extensions; do
14728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14729 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14731 break 2
14733 done
14734 done
14735 IFS=$as_save_IFS
14739 OTOOL64=$ac_cv_prog_OTOOL64
14740 if test -n "$OTOOL64"; then
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14742 $as_echo "$OTOOL64" >&6; }
14743 else
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14750 if test -z "$ac_cv_prog_OTOOL64"; then
14751 ac_ct_OTOOL64=$OTOOL64
14752 # Extract the first word of "otool64", so it can be a program name with args.
14753 set dummy otool64; ac_word=$2
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14755 $as_echo_n "checking for $ac_word... " >&6; }
14756 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 if test -n "$ac_ct_OTOOL64"; then
14760 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14761 else
14762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14763 for as_dir in $PATH
14765 IFS=$as_save_IFS
14766 test -z "$as_dir" && as_dir=.
14767 for ac_exec_ext in '' $ac_executable_extensions; do
14768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14769 ac_cv_prog_ac_ct_OTOOL64="otool64"
14770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14771 break 2
14773 done
14774 done
14775 IFS=$as_save_IFS
14779 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14780 if test -n "$ac_ct_OTOOL64"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14782 $as_echo "$ac_ct_OTOOL64" >&6; }
14783 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785 $as_echo "no" >&6; }
14788 if test "x$ac_ct_OTOOL64" = x; then
14789 OTOOL64=":"
14790 else
14791 case $cross_compiling:$ac_tool_warned in
14792 yes:)
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14795 ac_tool_warned=yes ;;
14796 esac
14797 OTOOL64=$ac_ct_OTOOL64
14799 else
14800 OTOOL64="$ac_cv_prog_OTOOL64"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14830 $as_echo_n "checking for -single_module linker flag... " >&6; }
14831 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14832 $as_echo_n "(cached) " >&6
14833 else
14834 lt_cv_apple_cc_single_mod=no
14835 if test -z "${LT_MULTI_MODULE}"; then
14836 # By default we will add the -single_module flag. You can override
14837 # by either setting the environment variable LT_MULTI_MODULE
14838 # non-empty at configure time, or by adding -multi_module to the
14839 # link flags.
14840 rm -rf libconftest.dylib*
14841 echo "int foo(void){return 1;}" > conftest.c
14842 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14843 -dynamiclib -Wl,-single_module conftest.c" >&5
14844 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14845 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14846 _lt_result=$?
14847 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14848 lt_cv_apple_cc_single_mod=yes
14849 else
14850 cat conftest.err >&5
14852 rm -rf libconftest.dylib*
14853 rm -f conftest.*
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14857 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14859 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14860 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 lt_cv_ld_exported_symbols_list=no
14864 save_LDFLAGS=$LDFLAGS
14865 echo "_main" > conftest.sym
14866 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14871 main ()
14875 return 0;
14877 _ACEOF
14878 if ac_fn_c_try_link "$LINENO"; then :
14879 lt_cv_ld_exported_symbols_list=yes
14880 else
14881 lt_cv_ld_exported_symbols_list=no
14883 rm -f core conftest.err conftest.$ac_objext \
14884 conftest$ac_exeext conftest.$ac_ext
14885 LDFLAGS="$save_LDFLAGS"
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14889 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14891 $as_echo_n "checking for -force_load linker flag... " >&6; }
14892 if test "${lt_cv_ld_force_load+set}" = set; then :
14893 $as_echo_n "(cached) " >&6
14894 else
14895 lt_cv_ld_force_load=no
14896 cat > conftest.c << _LT_EOF
14897 int forced_loaded() { return 2;}
14898 _LT_EOF
14899 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14900 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14901 echo "$AR cru libconftest.a conftest.o" >&5
14902 $AR cru libconftest.a conftest.o 2>&5
14903 cat > conftest.c << _LT_EOF
14904 int main() { return 0;}
14905 _LT_EOF
14906 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14907 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14908 _lt_result=$?
14909 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14910 lt_cv_ld_force_load=yes
14911 else
14912 cat conftest.err >&5
14914 rm -f conftest.err libconftest.a conftest conftest.c
14915 rm -rf conftest.dSYM
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14919 $as_echo "$lt_cv_ld_force_load" >&6; }
14920 case $host_os in
14921 rhapsody* | darwin1.[012])
14922 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14923 darwin1.*)
14924 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14925 darwin*) # darwin 5.x on
14926 # if running on 10.5 or later, the deployment target defaults
14927 # to the OS version, if on x86, and 10.4, the deployment
14928 # target defaults to 10.4. Don't you love it?
14929 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14930 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14931 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14932 10.[012][,.]*)
14933 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14934 10.*)
14935 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14936 esac
14938 esac
14939 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14940 _lt_dar_single_mod='$single_module'
14942 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14943 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14944 else
14945 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14947 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14948 _lt_dsymutil='~$DSYMUTIL $lib || :'
14949 else
14950 _lt_dsymutil=
14953 esac
14956 for ac_header in dlfcn.h
14957 do :
14958 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14959 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14960 cat >>confdefs.h <<_ACEOF
14961 #define HAVE_DLFCN_H 1
14962 _ACEOF
14965 done
14971 # Set options
14975 enable_dlopen=no
14978 enable_win32_dll=no
14981 # Check whether --enable-shared was given.
14982 if test "${enable_shared+set}" = set; then :
14983 enableval=$enable_shared; p=${PACKAGE-default}
14984 case $enableval in
14985 yes) enable_shared=yes ;;
14986 no) enable_shared=no ;;
14988 enable_shared=no
14989 # Look at the argument we got. We use all the common list separators.
14990 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14991 for pkg in $enableval; do
14992 IFS="$lt_save_ifs"
14993 if test "X$pkg" = "X$p"; then
14994 enable_shared=yes
14996 done
14997 IFS="$lt_save_ifs"
14999 esac
15000 else
15001 enable_shared=yes
15012 # Check whether --enable-static was given.
15013 if test "${enable_static+set}" = set; then :
15014 enableval=$enable_static; p=${PACKAGE-default}
15015 case $enableval in
15016 yes) enable_static=yes ;;
15017 no) enable_static=no ;;
15019 enable_static=no
15020 # Look at the argument we got. We use all the common list separators.
15021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15022 for pkg in $enableval; do
15023 IFS="$lt_save_ifs"
15024 if test "X$pkg" = "X$p"; then
15025 enable_static=yes
15027 done
15028 IFS="$lt_save_ifs"
15030 esac
15031 else
15032 enable_static=yes
15044 # Check whether --with-pic was given.
15045 if test "${with_pic+set}" = set; then :
15046 withval=$with_pic; pic_mode="$withval"
15047 else
15048 pic_mode=default
15052 test -z "$pic_mode" && pic_mode=default
15060 # Check whether --enable-fast-install was given.
15061 if test "${enable_fast_install+set}" = set; then :
15062 enableval=$enable_fast_install; p=${PACKAGE-default}
15063 case $enableval in
15064 yes) enable_fast_install=yes ;;
15065 no) enable_fast_install=no ;;
15067 enable_fast_install=no
15068 # Look at the argument we got. We use all the common list separators.
15069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15070 for pkg in $enableval; do
15071 IFS="$lt_save_ifs"
15072 if test "X$pkg" = "X$p"; then
15073 enable_fast_install=yes
15075 done
15076 IFS="$lt_save_ifs"
15078 esac
15079 else
15080 enable_fast_install=yes
15093 # This can be used to rebuild libtool when needed
15094 LIBTOOL_DEPS="$ltmain"
15096 # Always use our own libtool.
15097 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15124 test -z "$LN_S" && LN_S="ln -s"
15139 if test -n "${ZSH_VERSION+set}" ; then
15140 setopt NO_GLOB_SUBST
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15144 $as_echo_n "checking for objdir... " >&6; }
15145 if test "${lt_cv_objdir+set}" = set; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 rm -f .libs 2>/dev/null
15149 mkdir .libs 2>/dev/null
15150 if test -d .libs; then
15151 lt_cv_objdir=.libs
15152 else
15153 # MS-DOS does not allow filenames that begin with a dot.
15154 lt_cv_objdir=_libs
15156 rmdir .libs 2>/dev/null
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15159 $as_echo "$lt_cv_objdir" >&6; }
15160 objdir=$lt_cv_objdir
15166 cat >>confdefs.h <<_ACEOF
15167 #define LT_OBJDIR "$lt_cv_objdir/"
15168 _ACEOF
15173 case $host_os in
15174 aix3*)
15175 # AIX sometimes has problems with the GCC collect2 program. For some
15176 # reason, if we set the COLLECT_NAMES environment variable, the problems
15177 # vanish in a puff of smoke.
15178 if test "X${COLLECT_NAMES+set}" != Xset; then
15179 COLLECT_NAMES=
15180 export COLLECT_NAMES
15183 esac
15185 # Global variables:
15186 ofile=libtool
15187 can_build_shared=yes
15189 # All known linkers require a `.a' archive for static linking (except MSVC,
15190 # which needs '.lib').
15191 libext=a
15193 with_gnu_ld="$lt_cv_prog_gnu_ld"
15195 old_CC="$CC"
15196 old_CFLAGS="$CFLAGS"
15198 # Set sane defaults for various variables
15199 test -z "$CC" && CC=cc
15200 test -z "$LTCC" && LTCC=$CC
15201 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15202 test -z "$LD" && LD=ld
15203 test -z "$ac_objext" && ac_objext=o
15205 for cc_temp in $compiler""; do
15206 case $cc_temp in
15207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15209 \-*) ;;
15210 *) break;;
15211 esac
15212 done
15213 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15216 # Only perform the check for file, if the check method requires it
15217 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15218 case $deplibs_check_method in
15219 file_magic*)
15220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15222 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 case $MAGIC_CMD in
15227 [\\/*] | ?:[\\/]*)
15228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15231 lt_save_MAGIC_CMD="$MAGIC_CMD"
15232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15234 for ac_dir in $ac_dummy; do
15235 IFS="$lt_save_ifs"
15236 test -z "$ac_dir" && ac_dir=.
15237 if test -f $ac_dir/${ac_tool_prefix}file; then
15238 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15239 if test -n "$file_magic_test_file"; then
15240 case $deplibs_check_method in
15241 "file_magic "*)
15242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15245 $EGREP "$file_magic_regex" > /dev/null; then
15247 else
15248 cat <<_LT_EOF 1>&2
15250 *** Warning: the command libtool uses to detect shared libraries,
15251 *** $file_magic_cmd, produces output that libtool cannot recognize.
15252 *** The result is that libtool may fail to recognize shared libraries
15253 *** as such. This will affect the creation of libtool libraries that
15254 *** depend on shared libraries, but programs linked with such libtool
15255 *** libraries will work regardless of this problem. Nevertheless, you
15256 *** may want to report the problem to your system manager and/or to
15257 *** bug-libtool@gnu.org
15259 _LT_EOF
15260 fi ;;
15261 esac
15263 break
15265 done
15266 IFS="$lt_save_ifs"
15267 MAGIC_CMD="$lt_save_MAGIC_CMD"
15269 esac
15272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15273 if test -n "$MAGIC_CMD"; then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15275 $as_echo "$MAGIC_CMD" >&6; }
15276 else
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278 $as_echo "no" >&6; }
15285 if test -z "$lt_cv_path_MAGIC_CMD"; then
15286 if test -n "$ac_tool_prefix"; then
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15288 $as_echo_n "checking for file... " >&6; }
15289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 case $MAGIC_CMD in
15293 [\\/*] | ?:[\\/]*)
15294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15297 lt_save_MAGIC_CMD="$MAGIC_CMD"
15298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15300 for ac_dir in $ac_dummy; do
15301 IFS="$lt_save_ifs"
15302 test -z "$ac_dir" && ac_dir=.
15303 if test -f $ac_dir/file; then
15304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15305 if test -n "$file_magic_test_file"; then
15306 case $deplibs_check_method in
15307 "file_magic "*)
15308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15311 $EGREP "$file_magic_regex" > /dev/null; then
15313 else
15314 cat <<_LT_EOF 1>&2
15316 *** Warning: the command libtool uses to detect shared libraries,
15317 *** $file_magic_cmd, produces output that libtool cannot recognize.
15318 *** The result is that libtool may fail to recognize shared libraries
15319 *** as such. This will affect the creation of libtool libraries that
15320 *** depend on shared libraries, but programs linked with such libtool
15321 *** libraries will work regardless of this problem. Nevertheless, you
15322 *** may want to report the problem to your system manager and/or to
15323 *** bug-libtool@gnu.org
15325 _LT_EOF
15326 fi ;;
15327 esac
15329 break
15331 done
15332 IFS="$lt_save_ifs"
15333 MAGIC_CMD="$lt_save_MAGIC_CMD"
15335 esac
15338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15339 if test -n "$MAGIC_CMD"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15341 $as_echo "$MAGIC_CMD" >&6; }
15342 else
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15348 else
15349 MAGIC_CMD=:
15355 esac
15357 # Use C for the default configuration in the libtool script
15359 lt_save_CC="$CC"
15360 ac_ext=c
15361 ac_cpp='$CPP $CPPFLAGS'
15362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15367 # Source file extension for C test sources.
15368 ac_ext=c
15370 # Object file extension for compiled C test sources.
15371 objext=o
15372 objext=$objext
15374 # Code to be used in simple compile tests
15375 lt_simple_compile_test_code="int some_variable = 0;"
15377 # Code to be used in simple link tests
15378 lt_simple_link_test_code='int main(){return(0);}'
15386 # If no C compiler was specified, use CC.
15387 LTCC=${LTCC-"$CC"}
15389 # If no C compiler flags were specified, use CFLAGS.
15390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15392 # Allow CC to be a program name with arguments.
15393 compiler=$CC
15395 # Save the default compiler, since it gets overwritten when the other
15396 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15397 compiler_DEFAULT=$CC
15399 # save warnings/boilerplate of simple test code
15400 ac_outfile=conftest.$ac_objext
15401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15403 _lt_compiler_boilerplate=`cat conftest.err`
15404 $RM conftest*
15406 ac_outfile=conftest.$ac_objext
15407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15409 _lt_linker_boilerplate=`cat conftest.err`
15410 $RM -r conftest*
15413 ## CAVEAT EMPTOR:
15414 ## There is no encapsulation within the following macros, do not change
15415 ## the running order or otherwise move them around unless you know exactly
15416 ## what you are doing...
15417 if test -n "$compiler"; then
15419 lt_prog_compiler_no_builtin_flag=
15421 if test "$GCC" = yes; then
15422 case $cc_basename in
15423 nvcc*)
15424 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15426 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15427 esac
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15430 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15431 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15432 $as_echo_n "(cached) " >&6
15433 else
15434 lt_cv_prog_compiler_rtti_exceptions=no
15435 ac_outfile=conftest.$ac_objext
15436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15437 lt_compiler_flag="-fno-rtti -fno-exceptions"
15438 # Insert the option either (1) after the last *FLAGS variable, or
15439 # (2) before a word containing "conftest.", or (3) at the end.
15440 # Note that $ac_compile itself does not contain backslashes and begins
15441 # with a dollar sign (not a hyphen), so the echo should work correctly.
15442 # The option is referenced via a variable to avoid confusing sed.
15443 lt_compile=`echo "$ac_compile" | $SED \
15444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15446 -e 's:$: $lt_compiler_flag:'`
15447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15448 (eval "$lt_compile" 2>conftest.err)
15449 ac_status=$?
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 if (exit $ac_status) && test -s "$ac_outfile"; then
15453 # The compiler can only warn and ignore the option if not recognized
15454 # So say no if there are warnings other than the usual output.
15455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15458 lt_cv_prog_compiler_rtti_exceptions=yes
15461 $RM conftest*
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15465 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15468 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15469 else
15480 lt_prog_compiler_wl=
15481 lt_prog_compiler_pic=
15482 lt_prog_compiler_static=
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15485 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15487 if test "$GCC" = yes; then
15488 lt_prog_compiler_wl='-Wl,'
15489 lt_prog_compiler_static='-static'
15491 case $host_os in
15492 aix*)
15493 # All AIX code is PIC.
15494 if test "$host_cpu" = ia64; then
15495 # AIX 5 now supports IA64 processor
15496 lt_prog_compiler_static='-Bstatic'
15498 lt_prog_compiler_pic='-fPIC'
15501 amigaos*)
15502 case $host_cpu in
15503 powerpc)
15504 # see comment about AmigaOS4 .so support
15505 lt_prog_compiler_pic='-fPIC'
15507 m68k)
15508 # FIXME: we need at least 68020 code to build shared libraries, but
15509 # adding the `-m68020' flag to GCC prevents building anything better,
15510 # like `-m68040'.
15511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15513 esac
15516 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15517 # PIC is the default for these OSes.
15520 mingw* | cygwin* | pw32* | os2* | cegcc*)
15521 # This hack is so that the source file can tell whether it is being
15522 # built for inclusion in a dll (and should export symbols for example).
15523 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15524 # (--disable-auto-import) libraries
15525 lt_prog_compiler_pic='-DDLL_EXPORT'
15528 darwin* | rhapsody*)
15529 # PIC is the default on this platform
15530 # Common symbols not allowed in MH_DYLIB files
15531 lt_prog_compiler_pic='-fno-common'
15534 haiku*)
15535 # PIC is the default for Haiku.
15536 # The "-static" flag exists, but is broken.
15537 lt_prog_compiler_static=
15540 hpux*)
15541 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15542 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15543 # sets the default TLS model and affects inlining.
15544 case $host_cpu in
15545 hppa*64*)
15546 # +Z the default
15549 lt_prog_compiler_pic='-fPIC'
15551 esac
15554 interix[3-9]*)
15555 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15556 # Instead, we relocate shared libraries at runtime.
15559 msdosdjgpp*)
15560 # Just because we use GCC doesn't mean we suddenly get shared libraries
15561 # on systems that don't support them.
15562 lt_prog_compiler_can_build_shared=no
15563 enable_shared=no
15566 *nto* | *qnx*)
15567 # QNX uses GNU C++, but need to define -shared option too, otherwise
15568 # it will coredump.
15569 lt_prog_compiler_pic='-fPIC -shared'
15572 sysv4*MP*)
15573 if test -d /usr/nec; then
15574 lt_prog_compiler_pic=-Kconform_pic
15579 lt_prog_compiler_pic='-fPIC'
15581 esac
15583 case $cc_basename in
15584 nvcc*) # Cuda Compiler Driver 2.2
15585 lt_prog_compiler_wl='-Xlinker '
15586 lt_prog_compiler_pic='-Xcompiler -fPIC'
15588 esac
15589 else
15590 # PORTME Check for flag to pass linker flags through the system compiler.
15591 case $host_os in
15592 aix*)
15593 lt_prog_compiler_wl='-Wl,'
15594 if test "$host_cpu" = ia64; then
15595 # AIX 5 now supports IA64 processor
15596 lt_prog_compiler_static='-Bstatic'
15597 else
15598 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15602 mingw* | cygwin* | pw32* | os2* | cegcc*)
15603 # This hack is so that the source file can tell whether it is being
15604 # built for inclusion in a dll (and should export symbols for example).
15605 lt_prog_compiler_pic='-DDLL_EXPORT'
15608 hpux9* | hpux10* | hpux11*)
15609 lt_prog_compiler_wl='-Wl,'
15610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15611 # not for PA HP-UX.
15612 case $host_cpu in
15613 hppa*64*|ia64*)
15614 # +Z the default
15617 lt_prog_compiler_pic='+Z'
15619 esac
15620 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15621 lt_prog_compiler_static='${wl}-a ${wl}archive'
15624 irix5* | irix6* | nonstopux*)
15625 lt_prog_compiler_wl='-Wl,'
15626 # PIC (with -KPIC) is the default.
15627 lt_prog_compiler_static='-non_shared'
15630 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15631 case $cc_basename in
15632 # old Intel for x86_64 which still supported -KPIC.
15633 ecc*)
15634 lt_prog_compiler_wl='-Wl,'
15635 lt_prog_compiler_pic='-KPIC'
15636 lt_prog_compiler_static='-static'
15638 # icc used to be incompatible with GCC.
15639 # ICC 10 doesn't accept -KPIC any more.
15640 icc* | ifort*)
15641 lt_prog_compiler_wl='-Wl,'
15642 lt_prog_compiler_pic='-fPIC'
15643 lt_prog_compiler_static='-static'
15645 # Lahey Fortran 8.1.
15646 lf95*)
15647 lt_prog_compiler_wl='-Wl,'
15648 lt_prog_compiler_pic='--shared'
15649 lt_prog_compiler_static='--static'
15651 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15652 # Portland Group compilers (*not* the Pentium gcc compiler,
15653 # which looks to be a dead project)
15654 lt_prog_compiler_wl='-Wl,'
15655 lt_prog_compiler_pic='-fpic'
15656 lt_prog_compiler_static='-Bstatic'
15658 ccc*)
15659 lt_prog_compiler_wl='-Wl,'
15660 # All Alpha code is PIC.
15661 lt_prog_compiler_static='-non_shared'
15663 xl* | bgxl* | bgf* | mpixl*)
15664 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15665 lt_prog_compiler_wl='-Wl,'
15666 lt_prog_compiler_pic='-qpic'
15667 lt_prog_compiler_static='-qstaticlink'
15670 case `$CC -V 2>&1 | sed 5q` in
15671 *Sun\ F* | *Sun*Fortran*)
15672 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15673 lt_prog_compiler_pic='-KPIC'
15674 lt_prog_compiler_static='-Bstatic'
15675 lt_prog_compiler_wl=''
15677 *Sun\ C*)
15678 # Sun C 5.9
15679 lt_prog_compiler_pic='-KPIC'
15680 lt_prog_compiler_static='-Bstatic'
15681 lt_prog_compiler_wl='-Wl,'
15683 esac
15685 esac
15688 newsos6)
15689 lt_prog_compiler_pic='-KPIC'
15690 lt_prog_compiler_static='-Bstatic'
15693 *nto* | *qnx*)
15694 # QNX uses GNU C++, but need to define -shared option too, otherwise
15695 # it will coredump.
15696 lt_prog_compiler_pic='-fPIC -shared'
15699 osf3* | osf4* | osf5*)
15700 lt_prog_compiler_wl='-Wl,'
15701 # All OSF/1 code is PIC.
15702 lt_prog_compiler_static='-non_shared'
15705 rdos*)
15706 lt_prog_compiler_static='-non_shared'
15709 solaris*)
15710 lt_prog_compiler_pic='-KPIC'
15711 lt_prog_compiler_static='-Bstatic'
15712 case $cc_basename in
15713 f77* | f90* | f95*)
15714 lt_prog_compiler_wl='-Qoption ld ';;
15716 lt_prog_compiler_wl='-Wl,';;
15717 esac
15720 sunos4*)
15721 lt_prog_compiler_wl='-Qoption ld '
15722 lt_prog_compiler_pic='-PIC'
15723 lt_prog_compiler_static='-Bstatic'
15726 sysv4 | sysv4.2uw2* | sysv4.3*)
15727 lt_prog_compiler_wl='-Wl,'
15728 lt_prog_compiler_pic='-KPIC'
15729 lt_prog_compiler_static='-Bstatic'
15732 sysv4*MP*)
15733 if test -d /usr/nec ;then
15734 lt_prog_compiler_pic='-Kconform_pic'
15735 lt_prog_compiler_static='-Bstatic'
15739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15740 lt_prog_compiler_wl='-Wl,'
15741 lt_prog_compiler_pic='-KPIC'
15742 lt_prog_compiler_static='-Bstatic'
15745 unicos*)
15746 lt_prog_compiler_wl='-Wl,'
15747 lt_prog_compiler_can_build_shared=no
15750 uts4*)
15751 lt_prog_compiler_pic='-pic'
15752 lt_prog_compiler_static='-Bstatic'
15756 lt_prog_compiler_can_build_shared=no
15758 esac
15761 case $host_os in
15762 # For platforms which do not support PIC, -DPIC is meaningless:
15763 *djgpp*)
15764 lt_prog_compiler_pic=
15767 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15769 esac
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15771 $as_echo "$lt_prog_compiler_pic" >&6; }
15779 # Check to make sure the PIC flag actually works.
15781 if test -n "$lt_prog_compiler_pic"; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15783 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15784 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15785 $as_echo_n "(cached) " >&6
15786 else
15787 lt_cv_prog_compiler_pic_works=no
15788 ac_outfile=conftest.$ac_objext
15789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15791 # Insert the option either (1) after the last *FLAGS variable, or
15792 # (2) before a word containing "conftest.", or (3) at the end.
15793 # Note that $ac_compile itself does not contain backslashes and begins
15794 # with a dollar sign (not a hyphen), so the echo should work correctly.
15795 # The option is referenced via a variable to avoid confusing sed.
15796 lt_compile=`echo "$ac_compile" | $SED \
15797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15799 -e 's:$: $lt_compiler_flag:'`
15800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15801 (eval "$lt_compile" 2>conftest.err)
15802 ac_status=$?
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 if (exit $ac_status) && test -s "$ac_outfile"; then
15806 # The compiler can only warn and ignore the option if not recognized
15807 # So say no if there are warnings other than the usual output.
15808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15811 lt_cv_prog_compiler_pic_works=yes
15814 $RM conftest*
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15818 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15820 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15821 case $lt_prog_compiler_pic in
15822 "" | " "*) ;;
15823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15824 esac
15825 else
15826 lt_prog_compiler_pic=
15827 lt_prog_compiler_can_build_shared=no
15838 # Check to make sure the static flag actually works.
15840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15842 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15843 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15844 $as_echo_n "(cached) " >&6
15845 else
15846 lt_cv_prog_compiler_static_works=no
15847 save_LDFLAGS="$LDFLAGS"
15848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15851 # The linker can only warn and ignore the option if not recognized
15852 # So say no if there are warnings
15853 if test -s conftest.err; then
15854 # Append any errors to the config.log.
15855 cat conftest.err 1>&5
15856 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15858 if diff conftest.exp conftest.er2 >/dev/null; then
15859 lt_cv_prog_compiler_static_works=yes
15861 else
15862 lt_cv_prog_compiler_static_works=yes
15865 $RM -r conftest*
15866 LDFLAGS="$save_LDFLAGS"
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15870 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15872 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15874 else
15875 lt_prog_compiler_static=
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15886 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15887 $as_echo_n "(cached) " >&6
15888 else
15889 lt_cv_prog_compiler_c_o=no
15890 $RM -r conftest 2>/dev/null
15891 mkdir conftest
15892 cd conftest
15893 mkdir out
15894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15896 lt_compiler_flag="-o out/conftest2.$ac_objext"
15897 # Insert the option either (1) after the last *FLAGS variable, or
15898 # (2) before a word containing "conftest.", or (3) at the end.
15899 # Note that $ac_compile itself does not contain backslashes and begins
15900 # with a dollar sign (not a hyphen), so the echo should work correctly.
15901 lt_compile=`echo "$ac_compile" | $SED \
15902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15904 -e 's:$: $lt_compiler_flag:'`
15905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15906 (eval "$lt_compile" 2>out/conftest.err)
15907 ac_status=$?
15908 cat out/conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15911 then
15912 # The compiler can only warn and ignore the option if not recognized
15913 # So say no if there are warnings
15914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15917 lt_cv_prog_compiler_c_o=yes
15920 chmod u+w . 2>&5
15921 $RM conftest*
15922 # SGI C++ compiler will create directory out/ii_files/ for
15923 # template instantiation
15924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15925 $RM out/* && rmdir out
15926 cd ..
15927 $RM -r conftest
15928 $RM conftest*
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15932 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15941 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 lt_cv_prog_compiler_c_o=no
15945 $RM -r conftest 2>/dev/null
15946 mkdir conftest
15947 cd conftest
15948 mkdir out
15949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15951 lt_compiler_flag="-o out/conftest2.$ac_objext"
15952 # Insert the option either (1) after the last *FLAGS variable, or
15953 # (2) before a word containing "conftest.", or (3) at the end.
15954 # Note that $ac_compile itself does not contain backslashes and begins
15955 # with a dollar sign (not a hyphen), so the echo should work correctly.
15956 lt_compile=`echo "$ac_compile" | $SED \
15957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15959 -e 's:$: $lt_compiler_flag:'`
15960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15961 (eval "$lt_compile" 2>out/conftest.err)
15962 ac_status=$?
15963 cat out/conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15966 then
15967 # The compiler can only warn and ignore the option if not recognized
15968 # So say no if there are warnings
15969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15972 lt_cv_prog_compiler_c_o=yes
15975 chmod u+w . 2>&5
15976 $RM conftest*
15977 # SGI C++ compiler will create directory out/ii_files/ for
15978 # template instantiation
15979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15980 $RM out/* && rmdir out
15981 cd ..
15982 $RM -r conftest
15983 $RM conftest*
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15992 hard_links="nottested"
15993 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15994 # do not overwrite the value of need_locks provided by the user
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15996 $as_echo_n "checking if we can lock with hard links... " >&6; }
15997 hard_links=yes
15998 $RM conftest*
15999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16000 touch conftest.a
16001 ln conftest.a conftest.b 2>&5 || hard_links=no
16002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16004 $as_echo "$hard_links" >&6; }
16005 if test "$hard_links" = no; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16007 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16008 need_locks=warn
16010 else
16011 need_locks=no
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16022 runpath_var=
16023 allow_undefined_flag=
16024 always_export_symbols=no
16025 archive_cmds=
16026 archive_expsym_cmds=
16027 compiler_needs_object=no
16028 enable_shared_with_static_runtimes=no
16029 export_dynamic_flag_spec=
16030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16031 hardcode_automatic=no
16032 hardcode_direct=no
16033 hardcode_direct_absolute=no
16034 hardcode_libdir_flag_spec=
16035 hardcode_libdir_flag_spec_ld=
16036 hardcode_libdir_separator=
16037 hardcode_minus_L=no
16038 hardcode_shlibpath_var=unsupported
16039 inherit_rpath=no
16040 link_all_deplibs=unknown
16041 module_cmds=
16042 module_expsym_cmds=
16043 old_archive_from_new_cmds=
16044 old_archive_from_expsyms_cmds=
16045 thread_safe_flag_spec=
16046 whole_archive_flag_spec=
16047 # include_expsyms should be a list of space-separated symbols to be *always*
16048 # included in the symbol list
16049 include_expsyms=
16050 # exclude_expsyms can be an extended regexp of symbols to exclude
16051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16053 # as well as any symbol that contains `d'.
16054 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16056 # platforms (ab)use it in PIC code, but their linkers get confused if
16057 # the symbol is explicitly referenced. Since portable code cannot
16058 # rely on this symbol name, it's probably fine to never include it in
16059 # preloaded symbol tables.
16060 # Exclude shared library initialization/finalization symbols.
16061 extract_expsyms_cmds=
16063 case $host_os in
16064 cygwin* | mingw* | pw32* | cegcc*)
16065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16066 # When not using gcc, we currently assume that we are using
16067 # Microsoft Visual C++.
16068 if test "$GCC" != yes; then
16069 with_gnu_ld=no
16072 interix*)
16073 # we just hope/assume this is gcc and not c89 (= MSVC++)
16074 with_gnu_ld=yes
16076 openbsd*)
16077 with_gnu_ld=no
16079 esac
16081 ld_shlibs=yes
16083 # On some targets, GNU ld is compatible enough with the native linker
16084 # that we're better off using the native interface for both.
16085 lt_use_gnu_ld_interface=no
16086 if test "$with_gnu_ld" = yes; then
16087 case $host_os in
16088 aix*)
16089 # The AIX port of GNU ld has always aspired to compatibility
16090 # with the native linker. However, as the warning in the GNU ld
16091 # block says, versions before 2.19.5* couldn't really create working
16092 # shared libraries, regardless of the interface used.
16093 case `$LD -v 2>&1` in
16094 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16095 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16096 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16098 lt_use_gnu_ld_interface=yes
16100 esac
16103 lt_use_gnu_ld_interface=yes
16105 esac
16108 if test "$lt_use_gnu_ld_interface" = yes; then
16109 # If archive_cmds runs LD, not CC, wlarc should be empty
16110 wlarc='${wl}'
16112 # Set some defaults for GNU ld with shared library support. These
16113 # are reset later if shared libraries are not supported. Putting them
16114 # here allows them to be overridden if necessary.
16115 runpath_var=LD_RUN_PATH
16116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16117 export_dynamic_flag_spec='${wl}--export-dynamic'
16118 # ancient GNU ld didn't support --whole-archive et. al.
16119 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16120 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16121 else
16122 whole_archive_flag_spec=
16124 supports_anon_versioning=no
16125 case `$LD -v 2>&1` in
16126 *GNU\ gold*) supports_anon_versioning=yes ;;
16127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16130 *\ 2.11.*) ;; # other 2.11 versions
16131 *) supports_anon_versioning=yes ;;
16132 esac
16134 # See if GNU ld supports shared libraries.
16135 case $host_os in
16136 aix[3-9]*)
16137 # On AIX/PPC, the GNU linker is very broken
16138 if test "$host_cpu" != ia64; then
16139 ld_shlibs=no
16140 cat <<_LT_EOF 1>&2
16142 *** Warning: the GNU linker, at least up to release 2.19, is reported
16143 *** to be unable to reliably create shared libraries on AIX.
16144 *** Therefore, libtool is disabling shared libraries support. If you
16145 *** really care for shared libraries, you may want to install binutils
16146 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16147 *** You will then need to restart the configuration process.
16149 _LT_EOF
16153 amigaos*)
16154 case $host_cpu in
16155 powerpc)
16156 # see comment about AmigaOS4 .so support
16157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16158 archive_expsym_cmds=''
16160 m68k)
16161 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)'
16162 hardcode_libdir_flag_spec='-L$libdir'
16163 hardcode_minus_L=yes
16165 esac
16168 beos*)
16169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16170 allow_undefined_flag=unsupported
16171 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16172 # support --undefined. This deserves some investigation. FIXME
16173 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 else
16175 ld_shlibs=no
16179 cygwin* | mingw* | pw32* | cegcc*)
16180 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16181 # as there is no search path for DLLs.
16182 hardcode_libdir_flag_spec='-L$libdir'
16183 export_dynamic_flag_spec='${wl}--export-all-symbols'
16184 allow_undefined_flag=unsupported
16185 always_export_symbols=no
16186 enable_shared_with_static_runtimes=yes
16187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16189 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16191 # If the export-symbols file already is a .def file (1st line
16192 # is EXPORTS), use it as is; otherwise, prepend...
16193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16194 cp $export_symbols $output_objdir/$soname.def;
16195 else
16196 echo EXPORTS > $output_objdir/$soname.def;
16197 cat $export_symbols >> $output_objdir/$soname.def;
16199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16200 else
16201 ld_shlibs=no
16205 haiku*)
16206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16207 link_all_deplibs=yes
16210 interix[3-9]*)
16211 hardcode_direct=no
16212 hardcode_shlibpath_var=no
16213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16214 export_dynamic_flag_spec='${wl}-E'
16215 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16216 # Instead, shared libraries are loaded at an image base (0x10000000 by
16217 # default) and relocated if they conflict, which is a slow very memory
16218 # consuming and fragmenting process. To avoid this, we pick a random,
16219 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16220 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16222 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'
16225 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16226 tmp_diet=no
16227 if test "$host_os" = linux-dietlibc; then
16228 case $cc_basename in
16229 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16230 esac
16232 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16233 && test "$tmp_diet" = no
16234 then
16235 tmp_addflag=' $pic_flag'
16236 tmp_sharedflag='-shared'
16237 case $cc_basename,$host_cpu in
16238 pgcc*) # Portland Group C compiler
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 tmp_addflag=' $pic_flag'
16242 pgf77* | pgf90* | pgf95* | pgfortran*)
16243 # Portland Group f77 and f90 compilers
16244 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'
16245 tmp_addflag=' $pic_flag -Mnomain' ;;
16246 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16247 tmp_addflag=' -i_dynamic' ;;
16248 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16249 tmp_addflag=' -i_dynamic -nofor_main' ;;
16250 ifc* | ifort*) # Intel Fortran compiler
16251 tmp_addflag=' -nofor_main' ;;
16252 lf95*) # Lahey Fortran 8.1
16253 whole_archive_flag_spec=
16254 tmp_sharedflag='--shared' ;;
16255 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16256 tmp_sharedflag='-qmkshrobj'
16257 tmp_addflag= ;;
16258 nvcc*) # Cuda Compiler Driver 2.2
16259 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'
16260 compiler_needs_object=yes
16262 esac
16263 case `$CC -V 2>&1 | sed 5q` in
16264 *Sun\ C*) # Sun C 5.9
16265 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'
16266 compiler_needs_object=yes
16267 tmp_sharedflag='-G' ;;
16268 *Sun\ F*) # Sun Fortran 8.3
16269 tmp_sharedflag='-G' ;;
16270 esac
16271 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16273 if test "x$supports_anon_versioning" = xyes; then
16274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16276 echo "local: *; };" >> $output_objdir/$libname.ver~
16277 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16280 case $cc_basename in
16281 xlf* | bgf* | bgxlf* | mpixlf*)
16282 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16283 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16284 hardcode_libdir_flag_spec=
16285 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16286 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16287 if test "x$supports_anon_versioning" = xyes; then
16288 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16289 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16290 echo "local: *; };" >> $output_objdir/$libname.ver~
16291 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16294 esac
16295 else
16296 ld_shlibs=no
16300 netbsd*)
16301 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16302 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16303 wlarc=
16304 else
16305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16310 solaris*)
16311 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16312 ld_shlibs=no
16313 cat <<_LT_EOF 1>&2
16315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16316 *** create shared libraries on Solaris systems. Therefore, libtool
16317 *** is disabling shared libraries support. We urge you to upgrade GNU
16318 *** binutils to release 2.9.1 or newer. Another option is to modify
16319 *** your PATH or compiler configuration so that the native linker is
16320 *** used, and then restart.
16322 _LT_EOF
16323 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16326 else
16327 ld_shlibs=no
16331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16332 case `$LD -v 2>&1` in
16333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16334 ld_shlibs=no
16335 cat <<_LT_EOF 1>&2
16337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16338 *** reliably create shared libraries on SCO systems. Therefore, libtool
16339 *** is disabling shared libraries support. We urge you to upgrade GNU
16340 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16341 *** your PATH or compiler configuration so that the native linker is
16342 *** used, and then restart.
16344 _LT_EOF
16347 # For security reasons, it is highly recommended that you always
16348 # use absolute paths for naming shared libraries, and exclude the
16349 # DT_RUNPATH tag from executables and libraries. But doing so
16350 # requires that you compile everything twice, which is a pain.
16351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16355 else
16356 ld_shlibs=no
16359 esac
16362 sunos4*)
16363 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16364 wlarc=
16365 hardcode_direct=yes
16366 hardcode_shlibpath_var=no
16370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16373 else
16374 ld_shlibs=no
16377 esac
16379 if test "$ld_shlibs" = no; then
16380 runpath_var=
16381 hardcode_libdir_flag_spec=
16382 export_dynamic_flag_spec=
16383 whole_archive_flag_spec=
16385 else
16386 # PORTME fill in a description of your system's linker (not GNU ld)
16387 case $host_os in
16388 aix3*)
16389 allow_undefined_flag=unsupported
16390 always_export_symbols=yes
16391 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'
16392 # Note: this linker hardcodes the directories in LIBPATH if there
16393 # are no directories specified by -L.
16394 hardcode_minus_L=yes
16395 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16396 # Neither direct hardcoding nor static linking is supported with a
16397 # broken collect2.
16398 hardcode_direct=unsupported
16402 aix[4-9]*)
16403 if test "$host_cpu" = ia64; then
16404 # On IA64, the linker does run time linking by default, so we don't
16405 # have to do anything special.
16406 aix_use_runtimelinking=no
16407 exp_sym_flag='-Bexport'
16408 no_entry_flag=""
16409 else
16410 # If we're using GNU nm, then we don't want the "-C" option.
16411 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16412 # Also, AIX nm treats weak defined symbols like other global
16413 # defined symbols, whereas GNU nm marks them as "W".
16414 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16415 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'
16416 else
16417 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'
16419 aix_use_runtimelinking=no
16421 # Test if we are trying to use run time linking or normal
16422 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16423 # need to do runtime linking.
16424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16425 for ld_flag in $LDFLAGS; do
16426 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16427 aix_use_runtimelinking=yes
16428 break
16430 done
16432 esac
16434 exp_sym_flag='-bexport'
16435 no_entry_flag='-bnoentry'
16438 # When large executables or shared objects are built, AIX ld can
16439 # have problems creating the table of contents. If linking a library
16440 # or program results in "error TOC overflow" add -mminimal-toc to
16441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16444 archive_cmds=''
16445 hardcode_direct=yes
16446 hardcode_direct_absolute=yes
16447 hardcode_libdir_separator=':'
16448 link_all_deplibs=yes
16449 file_list_spec='${wl}-f,'
16451 if test "$GCC" = yes; then
16452 case $host_os in aix4.[012]|aix4.[012].*)
16453 # We only want to do this on AIX 4.2 and lower, the check
16454 # below for broken collect2 doesn't work under 4.3+
16455 collect2name=`${CC} -print-prog-name=collect2`
16456 if test -f "$collect2name" &&
16457 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16458 then
16459 # We have reworked collect2
16461 else
16462 # We have old collect2
16463 hardcode_direct=unsupported
16464 # It fails to find uninstalled libraries when the uninstalled
16465 # path is not listed in the libpath. Setting hardcode_minus_L
16466 # to unsupported forces relinking
16467 hardcode_minus_L=yes
16468 hardcode_libdir_flag_spec='-L$libdir'
16469 hardcode_libdir_separator=
16472 esac
16473 shared_flag='-shared'
16474 if test "$aix_use_runtimelinking" = yes; then
16475 shared_flag="$shared_flag "'${wl}-G'
16477 else
16478 # not using gcc
16479 if test "$host_cpu" = ia64; then
16480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16481 # chokes on -Wl,-G. The following line is correct:
16482 shared_flag='-G'
16483 else
16484 if test "$aix_use_runtimelinking" = yes; then
16485 shared_flag='${wl}-G'
16486 else
16487 shared_flag='${wl}-bM:SRE'
16492 export_dynamic_flag_spec='${wl}-bexpall'
16493 # It seems that -bexpall does not export symbols beginning with
16494 # underscore (_), so it is better to generate a list of symbols to export.
16495 always_export_symbols=yes
16496 if test "$aix_use_runtimelinking" = yes; then
16497 # Warning - without using the other runtime loading flags (-brtl),
16498 # -berok will link without error, but may produce a broken library.
16499 allow_undefined_flag='-berok'
16500 # Determine the default libpath from the value encoded in an
16501 # empty executable.
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16506 main ()
16510 return 0;
16512 _ACEOF
16513 if ac_fn_c_try_link "$LINENO"; then :
16515 lt_aix_libpath_sed='
16516 /Import File Strings/,/^$/ {
16517 /^0/ {
16518 s/^0 *\(.*\)$/\1/
16522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16523 # Check for a 64-bit object if we didn't find anything.
16524 if test -z "$aix_libpath"; then
16525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16528 rm -f core conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16533 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"
16534 else
16535 if test "$host_cpu" = ia64; then
16536 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16537 allow_undefined_flag="-z nodefs"
16538 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"
16539 else
16540 # Determine the default libpath from the value encoded in an
16541 # empty executable.
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16546 main ()
16550 return 0;
16552 _ACEOF
16553 if ac_fn_c_try_link "$LINENO"; then :
16555 lt_aix_libpath_sed='
16556 /Import File Strings/,/^$/ {
16557 /^0/ {
16558 s/^0 *\(.*\)$/\1/
16562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16563 # Check for a 64-bit object if we didn't find anything.
16564 if test -z "$aix_libpath"; then
16565 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16573 # Warning - without using the other run time loading flags,
16574 # -berok will link without error, but may produce a broken library.
16575 no_undefined_flag=' ${wl}-bernotok'
16576 allow_undefined_flag=' ${wl}-berok'
16577 if test "$with_gnu_ld" = yes; then
16578 # We only use this code for GNU lds that support --whole-archive.
16579 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16580 else
16581 # Exported symbols can be pulled into shared objects from archives
16582 whole_archive_flag_spec='$convenience'
16584 archive_cmds_need_lc=yes
16585 # This is similar to how AIX traditionally builds its shared libraries.
16586 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'
16591 amigaos*)
16592 case $host_cpu in
16593 powerpc)
16594 # see comment about AmigaOS4 .so support
16595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16596 archive_expsym_cmds=''
16598 m68k)
16599 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)'
16600 hardcode_libdir_flag_spec='-L$libdir'
16601 hardcode_minus_L=yes
16603 esac
16606 bsdi[45]*)
16607 export_dynamic_flag_spec=-rdynamic
16610 cygwin* | mingw* | pw32* | cegcc*)
16611 # When not using gcc, we currently assume that we are using
16612 # Microsoft Visual C++.
16613 # hardcode_libdir_flag_spec is actually meaningless, as there is
16614 # no search path for DLLs.
16615 hardcode_libdir_flag_spec=' '
16616 allow_undefined_flag=unsupported
16617 # Tell ltmain to make .lib files, not .a files.
16618 libext=lib
16619 # Tell ltmain to make .dll files, not .so files.
16620 shrext_cmds=".dll"
16621 # FIXME: Setting linknames here is a bad hack.
16622 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16623 # The linker will automatically build a .lib file if we build a DLL.
16624 old_archive_from_new_cmds='true'
16625 # FIXME: Should let the user specify the lib program.
16626 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16627 fix_srcfile_path='`cygpath -w "$srcfile"`'
16628 enable_shared_with_static_runtimes=yes
16631 darwin* | rhapsody*)
16634 archive_cmds_need_lc=no
16635 hardcode_direct=no
16636 hardcode_automatic=yes
16637 hardcode_shlibpath_var=unsupported
16638 if test "$lt_cv_ld_force_load" = "yes"; then
16639 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\"`'
16640 else
16641 whole_archive_flag_spec=''
16643 link_all_deplibs=yes
16644 allow_undefined_flag="$_lt_dar_allow_undefined"
16645 case $cc_basename in
16646 ifort*) _lt_dar_can_shared=yes ;;
16647 *) _lt_dar_can_shared=$GCC ;;
16648 esac
16649 if test "$_lt_dar_can_shared" = "yes"; then
16650 output_verbose_link_cmd=func_echo_all
16651 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16652 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16653 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}"
16654 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}"
16656 else
16657 ld_shlibs=no
16662 dgux*)
16663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_libdir_flag_spec='-L$libdir'
16665 hardcode_shlibpath_var=no
16668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16669 # support. Future versions do this automatically, but an explicit c++rt0.o
16670 # does not break anything, and helps significantly (at the cost of a little
16671 # extra space).
16672 freebsd2.2*)
16673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16674 hardcode_libdir_flag_spec='-R$libdir'
16675 hardcode_direct=yes
16676 hardcode_shlibpath_var=no
16679 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16680 freebsd2.*)
16681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16682 hardcode_direct=yes
16683 hardcode_minus_L=yes
16684 hardcode_shlibpath_var=no
16687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16688 freebsd* | dragonfly*)
16689 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16690 hardcode_libdir_flag_spec='-R$libdir'
16691 hardcode_direct=yes
16692 hardcode_shlibpath_var=no
16695 hpux9*)
16696 if test "$GCC" = yes; then
16697 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'
16698 else
16699 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'
16701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16702 hardcode_libdir_separator=:
16703 hardcode_direct=yes
16705 # hardcode_minus_L: Not really in the search PATH,
16706 # but as the default location of the library.
16707 hardcode_minus_L=yes
16708 export_dynamic_flag_spec='${wl}-E'
16711 hpux10*)
16712 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16713 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16714 else
16715 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16717 if test "$with_gnu_ld" = no; then
16718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16719 hardcode_libdir_flag_spec_ld='+b $libdir'
16720 hardcode_libdir_separator=:
16721 hardcode_direct=yes
16722 hardcode_direct_absolute=yes
16723 export_dynamic_flag_spec='${wl}-E'
16724 # hardcode_minus_L: Not really in the search PATH,
16725 # but as the default location of the library.
16726 hardcode_minus_L=yes
16730 hpux11*)
16731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16732 case $host_cpu in
16733 hppa*64*)
16734 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736 ia64*)
16737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16742 esac
16743 else
16744 case $host_cpu in
16745 hppa*64*)
16746 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 ia64*)
16749 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16753 # Older versions of the 11.00 compiler do not understand -b yet
16754 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16756 $as_echo_n "checking if $CC understands -b... " >&6; }
16757 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16758 $as_echo_n "(cached) " >&6
16759 else
16760 lt_cv_prog_compiler__b=no
16761 save_LDFLAGS="$LDFLAGS"
16762 LDFLAGS="$LDFLAGS -b"
16763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16765 # The linker can only warn and ignore the option if not recognized
16766 # So say no if there are warnings
16767 if test -s conftest.err; then
16768 # Append any errors to the config.log.
16769 cat conftest.err 1>&5
16770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16772 if diff conftest.exp conftest.er2 >/dev/null; then
16773 lt_cv_prog_compiler__b=yes
16775 else
16776 lt_cv_prog_compiler__b=yes
16779 $RM -r conftest*
16780 LDFLAGS="$save_LDFLAGS"
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16784 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16786 if test x"$lt_cv_prog_compiler__b" = xyes; then
16787 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16788 else
16789 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16793 esac
16795 if test "$with_gnu_ld" = no; then
16796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16797 hardcode_libdir_separator=:
16799 case $host_cpu in
16800 hppa*64*|ia64*)
16801 hardcode_direct=no
16802 hardcode_shlibpath_var=no
16805 hardcode_direct=yes
16806 hardcode_direct_absolute=yes
16807 export_dynamic_flag_spec='${wl}-E'
16809 # hardcode_minus_L: Not really in the search PATH,
16810 # but as the default location of the library.
16811 hardcode_minus_L=yes
16813 esac
16817 irix5* | irix6* | nonstopux*)
16818 if test "$GCC" = yes; then
16819 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'
16820 # Try to use the -exported_symbol ld option, if it does not
16821 # work, assume that -exports_file does not work either and
16822 # implicitly export all symbols.
16823 save_LDFLAGS="$LDFLAGS"
16824 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16827 int foo(void) {}
16828 _ACEOF
16829 if ac_fn_c_try_link "$LINENO"; then :
16830 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'
16833 rm -f core conftest.err conftest.$ac_objext \
16834 conftest$ac_exeext conftest.$ac_ext
16835 LDFLAGS="$save_LDFLAGS"
16836 else
16837 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'
16838 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'
16840 archive_cmds_need_lc='no'
16841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16842 hardcode_libdir_separator=:
16843 inherit_rpath=yes
16844 link_all_deplibs=yes
16847 netbsd*)
16848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16850 else
16851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16853 hardcode_libdir_flag_spec='-R$libdir'
16854 hardcode_direct=yes
16855 hardcode_shlibpath_var=no
16858 newsos6)
16859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16860 hardcode_direct=yes
16861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16862 hardcode_libdir_separator=:
16863 hardcode_shlibpath_var=no
16866 *nto* | *qnx*)
16869 openbsd*)
16870 if test -f /usr/libexec/ld.so; then
16871 hardcode_direct=yes
16872 hardcode_shlibpath_var=no
16873 hardcode_direct_absolute=yes
16874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16876 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16878 export_dynamic_flag_spec='${wl}-E'
16879 else
16880 case $host_os in
16881 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16883 hardcode_libdir_flag_spec='-R$libdir'
16886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16887 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16889 esac
16891 else
16892 ld_shlibs=no
16896 os2*)
16897 hardcode_libdir_flag_spec='-L$libdir'
16898 hardcode_minus_L=yes
16899 allow_undefined_flag=unsupported
16900 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'
16901 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16904 osf3*)
16905 if test "$GCC" = yes; then
16906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16907 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'
16908 else
16909 allow_undefined_flag=' -expect_unresolved \*'
16910 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'
16912 archive_cmds_need_lc='no'
16913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16914 hardcode_libdir_separator=:
16917 osf4* | osf5*) # as osf3* with the addition of -msym flag
16918 if test "$GCC" = yes; then
16919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16920 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'
16921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16922 else
16923 allow_undefined_flag=' -expect_unresolved \*'
16924 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'
16925 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~
16926 $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'
16928 # Both c and cxx compiler support -rpath directly
16929 hardcode_libdir_flag_spec='-rpath $libdir'
16931 archive_cmds_need_lc='no'
16932 hardcode_libdir_separator=:
16935 solaris*)
16936 no_undefined_flag=' -z defs'
16937 if test "$GCC" = yes; then
16938 wlarc='${wl}'
16939 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16941 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16942 else
16943 case `$CC -V 2>&1` in
16944 *"Compilers 5.0"*)
16945 wlarc=''
16946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16951 wlarc='${wl}'
16952 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16953 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16954 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16956 esac
16958 hardcode_libdir_flag_spec='-R$libdir'
16959 hardcode_shlibpath_var=no
16960 case $host_os in
16961 solaris2.[0-5] | solaris2.[0-5].*) ;;
16963 # The compiler driver will combine and reorder linker options,
16964 # but understands `-z linker_flag'. GCC discards it without `$wl',
16965 # but is careful enough not to reorder.
16966 # Supported since Solaris 2.6 (maybe 2.5.1?)
16967 if test "$GCC" = yes; then
16968 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16969 else
16970 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16973 esac
16974 link_all_deplibs=yes
16977 sunos4*)
16978 if test "x$host_vendor" = xsequent; then
16979 # Use $CC to link under sequent, because it throws in some extra .o
16980 # files that make .init and .fini sections work.
16981 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16982 else
16983 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16985 hardcode_libdir_flag_spec='-L$libdir'
16986 hardcode_direct=yes
16987 hardcode_minus_L=yes
16988 hardcode_shlibpath_var=no
16991 sysv4)
16992 case $host_vendor in
16993 sni)
16994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_direct=yes # is this really true???
16997 siemens)
16998 ## LD is ld it makes a PLAMLIB
16999 ## CC just makes a GrossModule.
17000 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17001 reload_cmds='$CC -r -o $output$reload_objs'
17002 hardcode_direct=no
17004 motorola)
17005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17008 esac
17009 runpath_var='LD_RUN_PATH'
17010 hardcode_shlibpath_var=no
17013 sysv4.3*)
17014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_shlibpath_var=no
17016 export_dynamic_flag_spec='-Bexport'
17019 sysv4*MP*)
17020 if test -d /usr/nec; then
17021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17022 hardcode_shlibpath_var=no
17023 runpath_var=LD_RUN_PATH
17024 hardcode_runpath_var=yes
17025 ld_shlibs=yes
17029 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17030 no_undefined_flag='${wl}-z,text'
17031 archive_cmds_need_lc=no
17032 hardcode_shlibpath_var=no
17033 runpath_var='LD_RUN_PATH'
17035 if test "$GCC" = yes; then
17036 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17038 else
17039 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044 sysv5* | sco3.2v5* | sco5v6*)
17045 # Note: We can NOT use -z defs as we might desire, because we do not
17046 # link with -lc, and that would cause any symbols used from libc to
17047 # always be unresolved, which means just about no library would
17048 # ever link correctly. If we're not using GNU ld we use -z text
17049 # though, which does catch some bad symbols but isn't as heavy-handed
17050 # as -z defs.
17051 no_undefined_flag='${wl}-z,text'
17052 allow_undefined_flag='${wl}-z,nodefs'
17053 archive_cmds_need_lc=no
17054 hardcode_shlibpath_var=no
17055 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17056 hardcode_libdir_separator=':'
17057 link_all_deplibs=yes
17058 export_dynamic_flag_spec='${wl}-Bexport'
17059 runpath_var='LD_RUN_PATH'
17061 if test "$GCC" = yes; then
17062 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17064 else
17065 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 uts4*)
17071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17072 hardcode_libdir_flag_spec='-L$libdir'
17073 hardcode_shlibpath_var=no
17077 ld_shlibs=no
17079 esac
17081 if test x$host_vendor = xsni; then
17082 case $host in
17083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17084 export_dynamic_flag_spec='${wl}-Blargedynsym'
17086 esac
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17091 $as_echo "$ld_shlibs" >&6; }
17092 test "$ld_shlibs" = no && can_build_shared=no
17094 with_gnu_ld=$with_gnu_ld
17111 # Do we need to explicitly link libc?
17113 case "x$archive_cmds_need_lc" in
17114 x|xyes)
17115 # Assume -lc should be added
17116 archive_cmds_need_lc=yes
17118 if test "$enable_shared" = yes && test "$GCC" = yes; then
17119 case $archive_cmds in
17120 *'~'*)
17121 # FIXME: we may have to deal with multi-command sequences.
17123 '$CC '*)
17124 # Test whether the compiler implicitly links with -lc since on some
17125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17126 # to ld, don't add -lc before -lgcc.
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17128 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17129 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17130 $as_echo_n "(cached) " >&6
17131 else
17132 $RM conftest*
17133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17136 (eval $ac_compile) 2>&5
17137 ac_status=$?
17138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17139 test $ac_status = 0; } 2>conftest.err; then
17140 soname=conftest
17141 lib=conftest
17142 libobjs=conftest.$ac_objext
17143 deplibs=
17144 wl=$lt_prog_compiler_wl
17145 pic_flag=$lt_prog_compiler_pic
17146 compiler_flags=-v
17147 linker_flags=-v
17148 verstring=
17149 output_objdir=.
17150 libname=conftest
17151 lt_save_allow_undefined_flag=$allow_undefined_flag
17152 allow_undefined_flag=
17153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17154 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17155 ac_status=$?
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; }
17158 then
17159 lt_cv_archive_cmds_need_lc=no
17160 else
17161 lt_cv_archive_cmds_need_lc=yes
17163 allow_undefined_flag=$lt_save_allow_undefined_flag
17164 else
17165 cat conftest.err 1>&5
17167 $RM conftest*
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17171 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17172 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17174 esac
17177 esac
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17336 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17338 if test "$GCC" = yes; then
17339 case $host_os in
17340 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17341 *) lt_awk_arg="/^libraries:/" ;;
17342 esac
17343 case $host_os in
17344 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17345 *) lt_sed_strip_eq="s,=/,/,g" ;;
17346 esac
17347 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17348 case $lt_search_path_spec in
17349 *\;*)
17350 # if the path contains ";" then we assume it to be the separator
17351 # otherwise default to the standard path separator (i.e. ":") - it is
17352 # assumed that no part of a normal pathname contains ";" but that should
17353 # okay in the real world where ";" in dirpaths is itself problematic.
17354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17357 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17359 esac
17360 # Ok, now we have the path, separated by spaces, we can step through it
17361 # and add multilib dir if necessary.
17362 lt_tmp_lt_search_path_spec=
17363 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17364 for lt_sys_path in $lt_search_path_spec; do
17365 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17367 else
17368 test -d "$lt_sys_path" && \
17369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17371 done
17372 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17373 BEGIN {RS=" "; FS="/|\n";} {
17374 lt_foo="";
17375 lt_count=0;
17376 for (lt_i = NF; lt_i > 0; lt_i--) {
17377 if ($lt_i != "" && $lt_i != ".") {
17378 if ($lt_i == "..") {
17379 lt_count++;
17380 } else {
17381 if (lt_count == 0) {
17382 lt_foo="/" $lt_i lt_foo;
17383 } else {
17384 lt_count--;
17389 if (lt_foo != "") { lt_freq[lt_foo]++; }
17390 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17392 # AWK program above erroneously prepends '/' to C:/dos/paths
17393 # for these hosts.
17394 case $host_os in
17395 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17396 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17397 esac
17398 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17399 else
17400 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17402 library_names_spec=
17403 libname_spec='lib$name'
17404 soname_spec=
17405 shrext_cmds=".so"
17406 postinstall_cmds=
17407 postuninstall_cmds=
17408 finish_cmds=
17409 finish_eval=
17410 shlibpath_var=
17411 shlibpath_overrides_runpath=unknown
17412 version_type=none
17413 dynamic_linker="$host_os ld.so"
17414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17415 need_lib_prefix=unknown
17416 hardcode_into_libs=no
17418 # when you set need_version to no, make sure it does not cause -set_version
17419 # flags to be left without arguments
17420 need_version=unknown
17422 case $host_os in
17423 aix3*)
17424 version_type=linux
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17426 shlibpath_var=LIBPATH
17428 # AIX 3 has no versioning support, so we append a major version to the name.
17429 soname_spec='${libname}${release}${shared_ext}$major'
17432 aix[4-9]*)
17433 version_type=linux
17434 need_lib_prefix=no
17435 need_version=no
17436 hardcode_into_libs=yes
17437 if test "$host_cpu" = ia64; then
17438 # AIX 5 supports IA64
17439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17440 shlibpath_var=LD_LIBRARY_PATH
17441 else
17442 # With GCC up to 2.95.x, collect2 would create an import file
17443 # for dependence libraries. The import file would start with
17444 # the line `#! .'. This would cause the generated library to
17445 # depend on `.', always an invalid library. This was fixed in
17446 # development snapshots of GCC prior to 3.0.
17447 case $host_os in
17448 aix4 | aix4.[01] | aix4.[01].*)
17449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17450 echo ' yes '
17451 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17453 else
17454 can_build_shared=no
17457 esac
17458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17459 # soname into executable. Probably we can add versioning support to
17460 # collect2, so additional links can be useful in future.
17461 if test "$aix_use_runtimelinking" = yes; then
17462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17463 # instead of lib<name>.a to let people know that these are not
17464 # typical AIX shared libraries.
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 else
17467 # We preserve .a as extension for shared libraries through AIX4.2
17468 # and later when we are not doing run time linking.
17469 library_names_spec='${libname}${release}.a $libname.a'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17472 shlibpath_var=LIBPATH
17476 amigaos*)
17477 case $host_cpu in
17478 powerpc)
17479 # Since July 2007 AmigaOS4 officially supports .so libraries.
17480 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483 m68k)
17484 library_names_spec='$libname.ixlibrary $libname.a'
17485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17486 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'
17488 esac
17491 beos*)
17492 library_names_spec='${libname}${shared_ext}'
17493 dynamic_linker="$host_os ld.so"
17494 shlibpath_var=LIBRARY_PATH
17497 bsdi[45]*)
17498 version_type=linux
17499 need_version=no
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 soname_spec='${libname}${release}${shared_ext}$major'
17502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17503 shlibpath_var=LD_LIBRARY_PATH
17504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17506 # the default ld.so.conf also contains /usr/contrib/lib and
17507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17508 # libtool to hard-code these into programs
17511 cygwin* | mingw* | pw32* | cegcc*)
17512 version_type=windows
17513 shrext_cmds=".dll"
17514 need_version=no
17515 need_lib_prefix=no
17517 case $GCC,$host_os in
17518 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17519 library_names_spec='$libname.dll.a'
17520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17521 postinstall_cmds='base_file=`basename \${file}`~
17522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17523 dldir=$destdir/`dirname \$dlpath`~
17524 test -d \$dldir || mkdir -p \$dldir~
17525 $install_prog $dir/$dlname \$dldir/$dlname~
17526 chmod a+x \$dldir/$dlname~
17527 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17528 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17531 dlpath=$dir/\$dldll~
17532 $RM \$dlpath'
17533 shlibpath_overrides_runpath=yes
17535 case $host_os in
17536 cygwin*)
17537 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17540 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17542 mingw* | cegcc*)
17543 # MinGW DLLs use traditional 'lib' prefix
17544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17546 pw32*)
17547 # pw32 DLLs use 'pw' prefix rather than 'lib'
17548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17550 esac
17554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17556 esac
17557 dynamic_linker='Win32 ld.exe'
17558 # FIXME: first we should search . and the directory the executable is in
17559 shlibpath_var=PATH
17562 darwin* | rhapsody*)
17563 dynamic_linker="$host_os dyld"
17564 version_type=darwin
17565 need_lib_prefix=no
17566 need_version=no
17567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17568 soname_spec='${libname}${release}${major}$shared_ext'
17569 shlibpath_overrides_runpath=yes
17570 shlibpath_var=DYLD_LIBRARY_PATH
17571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17577 dgux*)
17578 version_type=linux
17579 need_lib_prefix=no
17580 need_version=no
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17582 soname_spec='${libname}${release}${shared_ext}$major'
17583 shlibpath_var=LD_LIBRARY_PATH
17586 freebsd* | dragonfly*)
17587 # DragonFly does not have aout. When/if they implement a new
17588 # versioning mechanism, adjust this.
17589 if test -x /usr/bin/objformat; then
17590 objformat=`/usr/bin/objformat`
17591 else
17592 case $host_os in
17593 freebsd[23].*) objformat=aout ;;
17594 *) objformat=elf ;;
17595 esac
17597 version_type=freebsd-$objformat
17598 case $version_type in
17599 freebsd-elf*)
17600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17601 need_version=no
17602 need_lib_prefix=no
17604 freebsd-*)
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17606 need_version=yes
17608 esac
17609 shlibpath_var=LD_LIBRARY_PATH
17610 case $host_os in
17611 freebsd2.*)
17612 shlibpath_overrides_runpath=yes
17614 freebsd3.[01]* | freebsdelf3.[01]*)
17615 shlibpath_overrides_runpath=yes
17616 hardcode_into_libs=yes
17618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17620 shlibpath_overrides_runpath=no
17621 hardcode_into_libs=yes
17623 *) # from 4.6 on, and DragonFly
17624 shlibpath_overrides_runpath=yes
17625 hardcode_into_libs=yes
17627 esac
17630 gnu*)
17631 version_type=linux
17632 need_lib_prefix=no
17633 need_version=no
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 hardcode_into_libs=yes
17640 haiku*)
17641 version_type=linux
17642 need_lib_prefix=no
17643 need_version=no
17644 dynamic_linker="$host_os runtime_loader"
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LIBRARY_PATH
17648 shlibpath_overrides_runpath=yes
17649 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17650 hardcode_into_libs=yes
17653 hpux9* | hpux10* | hpux11*)
17654 # Give a soname corresponding to the major version so that dld.sl refuses to
17655 # link against other versions.
17656 version_type=sunos
17657 need_lib_prefix=no
17658 need_version=no
17659 case $host_cpu in
17660 ia64*)
17661 shrext_cmds='.so'
17662 hardcode_into_libs=yes
17663 dynamic_linker="$host_os dld.so"
17664 shlibpath_var=LD_LIBRARY_PATH
17665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667 soname_spec='${libname}${release}${shared_ext}$major'
17668 if test "X$HPUX_IA64_MODE" = X32; then
17669 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17670 else
17671 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17675 hppa*64*)
17676 shrext_cmds='.sl'
17677 hardcode_into_libs=yes
17678 dynamic_linker="$host_os dld.sl"
17679 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682 soname_spec='${libname}${release}${shared_ext}$major'
17683 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17687 shrext_cmds='.sl'
17688 dynamic_linker="$host_os dld.sl"
17689 shlibpath_var=SHLIB_PATH
17690 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17692 soname_spec='${libname}${release}${shared_ext}$major'
17694 esac
17695 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17696 postinstall_cmds='chmod 555 $lib'
17697 # or fails outright, so override atomically:
17698 install_override_mode=555
17701 interix[3-9]*)
17702 version_type=linux
17703 need_lib_prefix=no
17704 need_version=no
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17708 shlibpath_var=LD_LIBRARY_PATH
17709 shlibpath_overrides_runpath=no
17710 hardcode_into_libs=yes
17713 irix5* | irix6* | nonstopux*)
17714 case $host_os in
17715 nonstopux*) version_type=nonstopux ;;
17717 if test "$lt_cv_prog_gnu_ld" = yes; then
17718 version_type=linux
17719 else
17720 version_type=irix
17721 fi ;;
17722 esac
17723 need_lib_prefix=no
17724 need_version=no
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17727 case $host_os in
17728 irix5* | nonstopux*)
17729 libsuff= shlibsuff=
17732 case $LD in # libtool.m4 will add one of these switches to LD
17733 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17734 libsuff= shlibsuff= libmagic=32-bit;;
17735 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17736 libsuff=32 shlibsuff=N32 libmagic=N32;;
17737 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17738 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17739 *) libsuff= shlibsuff= libmagic=never-match;;
17740 esac
17742 esac
17743 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17744 shlibpath_overrides_runpath=no
17745 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17746 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17747 hardcode_into_libs=yes
17750 # No shared lib support for Linux oldld, aout, or coff.
17751 linux*oldld* | linux*aout* | linux*coff*)
17752 dynamic_linker=no
17755 # This must be Linux ELF.
17756 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17757 version_type=linux
17758 need_lib_prefix=no
17759 need_version=no
17760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17761 soname_spec='${libname}${release}${shared_ext}$major'
17762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17763 shlibpath_var=LD_LIBRARY_PATH
17764 shlibpath_overrides_runpath=no
17766 # Some binutils ld are patched to set DT_RUNPATH
17767 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17769 else
17770 lt_cv_shlibpath_overrides_runpath=no
17771 save_LDFLAGS=$LDFLAGS
17772 save_libdir=$libdir
17773 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17774 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17779 main ()
17783 return 0;
17785 _ACEOF
17786 if ac_fn_c_try_link "$LINENO"; then :
17787 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17788 lt_cv_shlibpath_overrides_runpath=yes
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 LDFLAGS=$save_LDFLAGS
17794 libdir=$save_libdir
17798 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17800 # This implies no fast_install, which is unacceptable.
17801 # Some rework will be needed to allow for fast_install
17802 # before this can be enabled.
17803 hardcode_into_libs=yes
17805 # Append ld.so.conf contents to the search path
17806 if test -f /etc/ld.so.conf; then
17807 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' ' '`
17808 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17811 # We used to test for /lib/ld.so.1 and disable shared libraries on
17812 # powerpc, because MkLinux only supported shared libraries with the
17813 # GNU dynamic linker. Since this was broken with cross compilers,
17814 # most powerpc-linux boxes support dynamic linking these days and
17815 # people can always --disable-shared, the test was removed, and we
17816 # assume the GNU/Linux dynamic linker is in use.
17817 dynamic_linker='GNU/Linux ld.so'
17820 netbsd*)
17821 version_type=sunos
17822 need_lib_prefix=no
17823 need_version=no
17824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17827 dynamic_linker='NetBSD (a.out) ld.so'
17828 else
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 dynamic_linker='NetBSD ld.elf_so'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath=yes
17835 hardcode_into_libs=yes
17838 newsos6)
17839 version_type=linux
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 shlibpath_overrides_runpath=yes
17845 *nto* | *qnx*)
17846 version_type=qnx
17847 need_lib_prefix=no
17848 need_version=no
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 shlibpath_var=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath=no
17853 hardcode_into_libs=yes
17854 dynamic_linker='ldqnx.so'
17857 openbsd*)
17858 version_type=sunos
17859 sys_lib_dlsearch_path_spec="/usr/lib"
17860 need_lib_prefix=no
17861 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17862 case $host_os in
17863 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17864 *) need_version=no ;;
17865 esac
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17870 case $host_os in
17871 openbsd2.[89] | openbsd2.[89].*)
17872 shlibpath_overrides_runpath=no
17875 shlibpath_overrides_runpath=yes
17877 esac
17878 else
17879 shlibpath_overrides_runpath=yes
17883 os2*)
17884 libname_spec='$name'
17885 shrext_cmds=".dll"
17886 need_lib_prefix=no
17887 library_names_spec='$libname${shared_ext} $libname.a'
17888 dynamic_linker='OS/2 ld.exe'
17889 shlibpath_var=LIBPATH
17892 osf3* | osf4* | osf5*)
17893 version_type=osf
17894 need_lib_prefix=no
17895 need_version=no
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 shlibpath_var=LD_LIBRARY_PATH
17899 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17900 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17903 rdos*)
17904 dynamic_linker=no
17907 solaris*)
17908 version_type=linux
17909 need_lib_prefix=no
17910 need_version=no
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=yes
17915 hardcode_into_libs=yes
17916 # ldd complains unless libraries are executable
17917 postinstall_cmds='chmod +x $lib'
17920 sunos4*)
17921 version_type=sunos
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17923 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 shlibpath_overrides_runpath=yes
17926 if test "$with_gnu_ld" = yes; then
17927 need_lib_prefix=no
17929 need_version=yes
17932 sysv4 | sysv4.3*)
17933 version_type=linux
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 soname_spec='${libname}${release}${shared_ext}$major'
17936 shlibpath_var=LD_LIBRARY_PATH
17937 case $host_vendor in
17938 sni)
17939 shlibpath_overrides_runpath=no
17940 need_lib_prefix=no
17941 runpath_var=LD_RUN_PATH
17943 siemens)
17944 need_lib_prefix=no
17946 motorola)
17947 need_lib_prefix=no
17948 need_version=no
17949 shlibpath_overrides_runpath=no
17950 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17952 esac
17955 sysv4*MP*)
17956 if test -d /usr/nec ;then
17957 version_type=linux
17958 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17959 soname_spec='$libname${shared_ext}.$major'
17960 shlibpath_var=LD_LIBRARY_PATH
17964 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17965 version_type=freebsd-elf
17966 need_lib_prefix=no
17967 need_version=no
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17969 soname_spec='${libname}${release}${shared_ext}$major'
17970 shlibpath_var=LD_LIBRARY_PATH
17971 shlibpath_overrides_runpath=yes
17972 hardcode_into_libs=yes
17973 if test "$with_gnu_ld" = yes; then
17974 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17975 else
17976 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17977 case $host_os in
17978 sco3.2v5*)
17979 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17981 esac
17983 sys_lib_dlsearch_path_spec='/usr/lib'
17986 tpf*)
17987 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17988 version_type=linux
17989 need_lib_prefix=no
17990 need_version=no
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992 shlibpath_var=LD_LIBRARY_PATH
17993 shlibpath_overrides_runpath=no
17994 hardcode_into_libs=yes
17997 uts4*)
17998 version_type=linux
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18000 soname_spec='${libname}${release}${shared_ext}$major'
18001 shlibpath_var=LD_LIBRARY_PATH
18005 dynamic_linker=no
18007 esac
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18009 $as_echo "$dynamic_linker" >&6; }
18010 test "$dynamic_linker" = no && can_build_shared=no
18012 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18013 if test "$GCC" = yes; then
18014 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18017 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18018 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18020 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18021 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18116 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18117 hardcode_action=
18118 if test -n "$hardcode_libdir_flag_spec" ||
18119 test -n "$runpath_var" ||
18120 test "X$hardcode_automatic" = "Xyes" ; then
18122 # We can hardcode non-existent directories.
18123 if test "$hardcode_direct" != no &&
18124 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18125 # have to relink, otherwise we might link with an installed library
18126 # when we should be linking with a yet-to-be-installed one
18127 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18128 test "$hardcode_minus_L" != no; then
18129 # Linking always hardcodes the temporary library directory.
18130 hardcode_action=relink
18131 else
18132 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18133 hardcode_action=immediate
18135 else
18136 # We cannot hardcode anything, or else we can only hardcode existing
18137 # directories.
18138 hardcode_action=unsupported
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18141 $as_echo "$hardcode_action" >&6; }
18143 if test "$hardcode_action" = relink ||
18144 test "$inherit_rpath" = yes; then
18145 # Fast installation is not supported
18146 enable_fast_install=no
18147 elif test "$shlibpath_overrides_runpath" = yes ||
18148 test "$enable_shared" = no; then
18149 # Fast installation is not necessary
18150 enable_fast_install=needless
18158 if test "x$enable_dlopen" != xyes; then
18159 enable_dlopen=unknown
18160 enable_dlopen_self=unknown
18161 enable_dlopen_self_static=unknown
18162 else
18163 lt_cv_dlopen=no
18164 lt_cv_dlopen_libs=
18166 case $host_os in
18167 beos*)
18168 lt_cv_dlopen="load_add_on"
18169 lt_cv_dlopen_libs=
18170 lt_cv_dlopen_self=yes
18173 mingw* | pw32* | cegcc*)
18174 lt_cv_dlopen="LoadLibrary"
18175 lt_cv_dlopen_libs=
18178 cygwin*)
18179 lt_cv_dlopen="dlopen"
18180 lt_cv_dlopen_libs=
18183 darwin*)
18184 # if libdl is installed we need to link against it
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18186 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18188 $as_echo_n "(cached) " >&6
18189 else
18190 ac_check_lib_save_LIBS=$LIBS
18191 LIBS="-ldl $LIBS"
18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18193 /* end confdefs.h. */
18195 /* Override any GCC internal prototype to avoid an error.
18196 Use char because int might match the return type of a GCC
18197 builtin and then its argument prototype would still apply. */
18198 #ifdef __cplusplus
18199 extern "C"
18200 #endif
18201 char dlopen ();
18203 main ()
18205 return dlopen ();
18207 return 0;
18209 _ACEOF
18210 if ac_fn_c_try_link "$LINENO"; then :
18211 ac_cv_lib_dl_dlopen=yes
18212 else
18213 ac_cv_lib_dl_dlopen=no
18215 rm -f core conftest.err conftest.$ac_objext \
18216 conftest$ac_exeext conftest.$ac_ext
18217 LIBS=$ac_check_lib_save_LIBS
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18220 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18221 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18223 else
18225 lt_cv_dlopen="dyld"
18226 lt_cv_dlopen_libs=
18227 lt_cv_dlopen_self=yes
18234 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18235 if test "x$ac_cv_func_shl_load" = x""yes; then :
18236 lt_cv_dlopen="shl_load"
18237 else
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18239 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18240 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18241 $as_echo_n "(cached) " >&6
18242 else
18243 ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-ldld $LIBS"
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18248 /* Override any GCC internal prototype to avoid an error.
18249 Use char because int might match the return type of a GCC
18250 builtin and then its argument prototype would still apply. */
18251 #ifdef __cplusplus
18252 extern "C"
18253 #endif
18254 char shl_load ();
18256 main ()
18258 return shl_load ();
18260 return 0;
18262 _ACEOF
18263 if ac_fn_c_try_link "$LINENO"; then :
18264 ac_cv_lib_dld_shl_load=yes
18265 else
18266 ac_cv_lib_dld_shl_load=no
18268 rm -f core conftest.err conftest.$ac_objext \
18269 conftest$ac_exeext conftest.$ac_ext
18270 LIBS=$ac_check_lib_save_LIBS
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18273 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18274 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18275 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18276 else
18277 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18278 if test "x$ac_cv_func_dlopen" = x""yes; then :
18279 lt_cv_dlopen="dlopen"
18280 else
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18282 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18283 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18284 $as_echo_n "(cached) " >&6
18285 else
18286 ac_check_lib_save_LIBS=$LIBS
18287 LIBS="-ldl $LIBS"
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18291 /* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18294 #ifdef __cplusplus
18295 extern "C"
18296 #endif
18297 char dlopen ();
18299 main ()
18301 return dlopen ();
18303 return 0;
18305 _ACEOF
18306 if ac_fn_c_try_link "$LINENO"; then :
18307 ac_cv_lib_dl_dlopen=yes
18308 else
18309 ac_cv_lib_dl_dlopen=no
18311 rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18316 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18317 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18319 else
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18321 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18323 $as_echo_n "(cached) " >&6
18324 else
18325 ac_check_lib_save_LIBS=$LIBS
18326 LIBS="-lsvld $LIBS"
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18330 /* Override any GCC internal prototype to avoid an error.
18331 Use char because int might match the return type of a GCC
18332 builtin and then its argument prototype would still apply. */
18333 #ifdef __cplusplus
18334 extern "C"
18335 #endif
18336 char dlopen ();
18338 main ()
18340 return dlopen ();
18342 return 0;
18344 _ACEOF
18345 if ac_fn_c_try_link "$LINENO"; then :
18346 ac_cv_lib_svld_dlopen=yes
18347 else
18348 ac_cv_lib_svld_dlopen=no
18350 rm -f core conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18355 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18356 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18358 else
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18360 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18361 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 ac_check_lib_save_LIBS=$LIBS
18365 LIBS="-ldld $LIBS"
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 char dld_link ();
18377 main ()
18379 return dld_link ();
18381 return 0;
18383 _ACEOF
18384 if ac_fn_c_try_link "$LINENO"; then :
18385 ac_cv_lib_dld_dld_link=yes
18386 else
18387 ac_cv_lib_dld_dld_link=no
18389 rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18394 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18395 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18415 esac
18417 if test "x$lt_cv_dlopen" != xno; then
18418 enable_dlopen=yes
18419 else
18420 enable_dlopen=no
18423 case $lt_cv_dlopen in
18424 dlopen)
18425 save_CPPFLAGS="$CPPFLAGS"
18426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18428 save_LDFLAGS="$LDFLAGS"
18429 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18431 save_LIBS="$LIBS"
18432 LIBS="$lt_cv_dlopen_libs $LIBS"
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18435 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18436 if test "${lt_cv_dlopen_self+set}" = set; then :
18437 $as_echo_n "(cached) " >&6
18438 else
18439 if test "$cross_compiling" = yes; then :
18440 lt_cv_dlopen_self=cross
18441 else
18442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18443 lt_status=$lt_dlunknown
18444 cat > conftest.$ac_ext <<_LT_EOF
18445 #line 18445 "configure"
18446 #include "confdefs.h"
18448 #if HAVE_DLFCN_H
18449 #include <dlfcn.h>
18450 #endif
18452 #include <stdio.h>
18454 #ifdef RTLD_GLOBAL
18455 # define LT_DLGLOBAL RTLD_GLOBAL
18456 #else
18457 # ifdef DL_GLOBAL
18458 # define LT_DLGLOBAL DL_GLOBAL
18459 # else
18460 # define LT_DLGLOBAL 0
18461 # endif
18462 #endif
18464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18465 find out it does not work in some platform. */
18466 #ifndef LT_DLLAZY_OR_NOW
18467 # ifdef RTLD_LAZY
18468 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18469 # else
18470 # ifdef DL_LAZY
18471 # define LT_DLLAZY_OR_NOW DL_LAZY
18472 # else
18473 # ifdef RTLD_NOW
18474 # define LT_DLLAZY_OR_NOW RTLD_NOW
18475 # else
18476 # ifdef DL_NOW
18477 # define LT_DLLAZY_OR_NOW DL_NOW
18478 # else
18479 # define LT_DLLAZY_OR_NOW 0
18480 # endif
18481 # endif
18482 # endif
18483 # endif
18484 #endif
18486 /* When -fvisbility=hidden is used, assume the code has been annotated
18487 correspondingly for the symbols needed. */
18488 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18489 void fnord () __attribute__((visibility("default")));
18490 #endif
18492 void fnord () { int i=42; }
18493 int main ()
18495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18496 int status = $lt_dlunknown;
18498 if (self)
18500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18501 else
18503 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18504 else puts (dlerror ());
18506 /* dlclose (self); */
18508 else
18509 puts (dlerror ());
18511 return status;
18513 _LT_EOF
18514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18515 (eval $ac_link) 2>&5
18516 ac_status=$?
18517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18518 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18519 (./conftest; exit; ) >&5 2>/dev/null
18520 lt_status=$?
18521 case x$lt_status in
18522 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18523 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18524 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18525 esac
18526 else :
18527 # compilation failed
18528 lt_cv_dlopen_self=no
18531 rm -fr conftest*
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18536 $as_echo "$lt_cv_dlopen_self" >&6; }
18538 if test "x$lt_cv_dlopen_self" = xyes; then
18539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18541 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18542 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18543 $as_echo_n "(cached) " >&6
18544 else
18545 if test "$cross_compiling" = yes; then :
18546 lt_cv_dlopen_self_static=cross
18547 else
18548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18549 lt_status=$lt_dlunknown
18550 cat > conftest.$ac_ext <<_LT_EOF
18551 #line 18551 "configure"
18552 #include "confdefs.h"
18554 #if HAVE_DLFCN_H
18555 #include <dlfcn.h>
18556 #endif
18558 #include <stdio.h>
18560 #ifdef RTLD_GLOBAL
18561 # define LT_DLGLOBAL RTLD_GLOBAL
18562 #else
18563 # ifdef DL_GLOBAL
18564 # define LT_DLGLOBAL DL_GLOBAL
18565 # else
18566 # define LT_DLGLOBAL 0
18567 # endif
18568 #endif
18570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18571 find out it does not work in some platform. */
18572 #ifndef LT_DLLAZY_OR_NOW
18573 # ifdef RTLD_LAZY
18574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18575 # else
18576 # ifdef DL_LAZY
18577 # define LT_DLLAZY_OR_NOW DL_LAZY
18578 # else
18579 # ifdef RTLD_NOW
18580 # define LT_DLLAZY_OR_NOW RTLD_NOW
18581 # else
18582 # ifdef DL_NOW
18583 # define LT_DLLAZY_OR_NOW DL_NOW
18584 # else
18585 # define LT_DLLAZY_OR_NOW 0
18586 # endif
18587 # endif
18588 # endif
18589 # endif
18590 #endif
18592 /* When -fvisbility=hidden is used, assume the code has been annotated
18593 correspondingly for the symbols needed. */
18594 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18595 void fnord () __attribute__((visibility("default")));
18596 #endif
18598 void fnord () { int i=42; }
18599 int main ()
18601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18602 int status = $lt_dlunknown;
18604 if (self)
18606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18607 else
18609 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18610 else puts (dlerror ());
18612 /* dlclose (self); */
18614 else
18615 puts (dlerror ());
18617 return status;
18619 _LT_EOF
18620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18621 (eval $ac_link) 2>&5
18622 ac_status=$?
18623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18624 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18625 (./conftest; exit; ) >&5 2>/dev/null
18626 lt_status=$?
18627 case x$lt_status in
18628 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18629 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18630 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18631 esac
18632 else :
18633 # compilation failed
18634 lt_cv_dlopen_self_static=no
18637 rm -fr conftest*
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18642 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18645 CPPFLAGS="$save_CPPFLAGS"
18646 LDFLAGS="$save_LDFLAGS"
18647 LIBS="$save_LIBS"
18649 esac
18651 case $lt_cv_dlopen_self in
18652 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18653 *) enable_dlopen_self=unknown ;;
18654 esac
18656 case $lt_cv_dlopen_self_static in
18657 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18658 *) enable_dlopen_self_static=unknown ;;
18659 esac
18678 striplib=
18679 old_striplib=
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18681 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18682 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18683 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18684 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18687 else
18688 # FIXME - insert some real tests, host_os isn't really good enough
18689 case $host_os in
18690 darwin*)
18691 if test -n "$STRIP" ; then
18692 striplib="$STRIP -x"
18693 old_striplib="$STRIP -S"
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18695 $as_echo "yes" >&6; }
18696 else
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18698 $as_echo "no" >&6; }
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; }
18705 esac
18719 # Report which library types will actually be built
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18721 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18723 $as_echo "$can_build_shared" >&6; }
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18726 $as_echo_n "checking whether to build shared libraries... " >&6; }
18727 test "$can_build_shared" = "no" && enable_shared=no
18729 # On AIX, shared libraries and static libraries use the same namespace, and
18730 # are all built from PIC.
18731 case $host_os in
18732 aix3*)
18733 test "$enable_shared" = yes && enable_static=no
18734 if test -n "$RANLIB"; then
18735 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18736 postinstall_cmds='$RANLIB $lib'
18740 aix[4-9]*)
18741 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18742 test "$enable_shared" = yes && enable_static=no
18745 esac
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18747 $as_echo "$enable_shared" >&6; }
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18750 $as_echo_n "checking whether to build static libraries... " >&6; }
18751 # Make sure either enable_shared or enable_static is yes.
18752 test "$enable_shared" = yes || enable_static=yes
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18754 $as_echo "$enable_static" >&6; }
18760 ac_ext=cpp
18761 ac_cpp='$CXXCPP $CPPFLAGS'
18762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18766 CC="$lt_save_CC"
18768 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18769 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18770 (test "X$CXX" != "Xg++"))) ; then
18771 ac_ext=cpp
18772 ac_cpp='$CXXCPP $CPPFLAGS'
18773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18777 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18778 if test -z "$CXXCPP"; then
18779 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18780 $as_echo_n "(cached) " >&6
18781 else
18782 # Double quotes because CXXCPP needs to be expanded
18783 for CXXCPP in "$CXX -E" "/lib/cpp"
18785 ac_preproc_ok=false
18786 for ac_cxx_preproc_warn_flag in '' yes
18788 # Use a header file that comes with gcc, so configuring glibc
18789 # with a fresh cross-compiler works.
18790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791 # <limits.h> exists even on freestanding compilers.
18792 # On the NeXT, cc -E runs the code through the compiler's parser,
18793 # not just through cpp. "Syntax error" is here to catch this case.
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 #ifdef __STDC__
18797 # include <limits.h>
18798 #else
18799 # include <assert.h>
18800 #endif
18801 Syntax error
18802 _ACEOF
18803 if ac_fn_cxx_try_cpp "$LINENO"; then :
18805 else
18806 # Broken: fails on valid input.
18807 continue
18809 rm -f conftest.err conftest.$ac_ext
18811 # OK, works on sane cases. Now check whether nonexistent headers
18812 # can be detected and how.
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18815 #include <ac_nonexistent.h>
18816 _ACEOF
18817 if ac_fn_cxx_try_cpp "$LINENO"; then :
18818 # Broken: success on invalid input.
18819 continue
18820 else
18821 # Passes both tests.
18822 ac_preproc_ok=:
18823 break
18825 rm -f conftest.err conftest.$ac_ext
18827 done
18828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18829 rm -f conftest.err conftest.$ac_ext
18830 if $ac_preproc_ok; then :
18831 break
18834 done
18835 ac_cv_prog_CXXCPP=$CXXCPP
18838 CXXCPP=$ac_cv_prog_CXXCPP
18839 else
18840 ac_cv_prog_CXXCPP=$CXXCPP
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18843 $as_echo "$CXXCPP" >&6; }
18844 ac_preproc_ok=false
18845 for ac_cxx_preproc_warn_flag in '' yes
18847 # Use a header file that comes with gcc, so configuring glibc
18848 # with a fresh cross-compiler works.
18849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18850 # <limits.h> exists even on freestanding compilers.
18851 # On the NeXT, cc -E runs the code through the compiler's parser,
18852 # not just through cpp. "Syntax error" is here to catch this case.
18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h. */
18855 #ifdef __STDC__
18856 # include <limits.h>
18857 #else
18858 # include <assert.h>
18859 #endif
18860 Syntax error
18861 _ACEOF
18862 if ac_fn_cxx_try_cpp "$LINENO"; then :
18864 else
18865 # Broken: fails on valid input.
18866 continue
18868 rm -f conftest.err conftest.$ac_ext
18870 # OK, works on sane cases. Now check whether nonexistent headers
18871 # can be detected and how.
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874 #include <ac_nonexistent.h>
18875 _ACEOF
18876 if ac_fn_cxx_try_cpp "$LINENO"; then :
18877 # Broken: success on invalid input.
18878 continue
18879 else
18880 # Passes both tests.
18881 ac_preproc_ok=:
18882 break
18884 rm -f conftest.err conftest.$ac_ext
18886 done
18887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18888 rm -f conftest.err conftest.$ac_ext
18889 if $ac_preproc_ok; then :
18891 else
18892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18894 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18895 See \`config.log' for more details." "$LINENO" 5; }
18898 ac_ext=cpp
18899 ac_cpp='$CXXCPP $CPPFLAGS'
18900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18904 else
18905 _lt_caught_CXX_error=yes
18908 ac_ext=cpp
18909 ac_cpp='$CXXCPP $CPPFLAGS'
18910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18914 archive_cmds_need_lc_CXX=no
18915 allow_undefined_flag_CXX=
18916 always_export_symbols_CXX=no
18917 archive_expsym_cmds_CXX=
18918 compiler_needs_object_CXX=no
18919 export_dynamic_flag_spec_CXX=
18920 hardcode_direct_CXX=no
18921 hardcode_direct_absolute_CXX=no
18922 hardcode_libdir_flag_spec_CXX=
18923 hardcode_libdir_flag_spec_ld_CXX=
18924 hardcode_libdir_separator_CXX=
18925 hardcode_minus_L_CXX=no
18926 hardcode_shlibpath_var_CXX=unsupported
18927 hardcode_automatic_CXX=no
18928 inherit_rpath_CXX=no
18929 module_cmds_CXX=
18930 module_expsym_cmds_CXX=
18931 link_all_deplibs_CXX=unknown
18932 old_archive_cmds_CXX=$old_archive_cmds
18933 reload_flag_CXX=$reload_flag
18934 reload_cmds_CXX=$reload_cmds
18935 no_undefined_flag_CXX=
18936 whole_archive_flag_spec_CXX=
18937 enable_shared_with_static_runtimes_CXX=no
18939 # Source file extension for C++ test sources.
18940 ac_ext=cpp
18942 # Object file extension for compiled C++ test sources.
18943 objext=o
18944 objext_CXX=$objext
18946 # No sense in running all these tests if we already determined that
18947 # the CXX compiler isn't working. Some variables (like enable_shared)
18948 # are currently assumed to apply to all compilers on this platform,
18949 # and will be corrupted by setting them based on a non-working compiler.
18950 if test "$_lt_caught_CXX_error" != yes; then
18951 # Code to be used in simple compile tests
18952 lt_simple_compile_test_code="int some_variable = 0;"
18954 # Code to be used in simple link tests
18955 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18964 # If no C compiler was specified, use CC.
18965 LTCC=${LTCC-"$CC"}
18967 # If no C compiler flags were specified, use CFLAGS.
18968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18970 # Allow CC to be a program name with arguments.
18971 compiler=$CC
18974 # save warnings/boilerplate of simple test code
18975 ac_outfile=conftest.$ac_objext
18976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18978 _lt_compiler_boilerplate=`cat conftest.err`
18979 $RM conftest*
18981 ac_outfile=conftest.$ac_objext
18982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18984 _lt_linker_boilerplate=`cat conftest.err`
18985 $RM -r conftest*
18988 # Allow CC to be a program name with arguments.
18989 lt_save_CC=$CC
18990 lt_save_LD=$LD
18991 lt_save_GCC=$GCC
18992 GCC=$GXX
18993 lt_save_with_gnu_ld=$with_gnu_ld
18994 lt_save_path_LD=$lt_cv_path_LD
18995 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18996 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18997 else
18998 $as_unset lt_cv_prog_gnu_ld
19000 if test -n "${lt_cv_path_LDCXX+set}"; then
19001 lt_cv_path_LD=$lt_cv_path_LDCXX
19002 else
19003 $as_unset lt_cv_path_LD
19005 test -z "${LDCXX+set}" || LD=$LDCXX
19006 CC=${CXX-"c++"}
19007 compiler=$CC
19008 compiler_CXX=$CC
19009 for cc_temp in $compiler""; do
19010 case $cc_temp in
19011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19013 \-*) ;;
19014 *) break;;
19015 esac
19016 done
19017 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19020 if test -n "$compiler"; then
19021 # We don't want -fno-exception when compiling C++ code, so set the
19022 # no_builtin_flag separately
19023 if test "$GXX" = yes; then
19024 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19025 else
19026 lt_prog_compiler_no_builtin_flag_CXX=
19029 if test "$GXX" = yes; then
19030 # Set up default GNU C++ configuration
19034 # Check whether --with-gnu-ld was given.
19035 if test "${with_gnu_ld+set}" = set; then :
19036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19037 else
19038 with_gnu_ld=no
19041 ac_prog=ld
19042 if test "$GCC" = yes; then
19043 # Check if gcc -print-prog-name=ld gives a path.
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19045 $as_echo_n "checking for ld used by $CC... " >&6; }
19046 case $host in
19047 *-*-mingw*)
19048 # gcc leaves a trailing carriage return which upsets mingw
19049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19052 esac
19053 case $ac_prog in
19054 # Accept absolute paths.
19055 [\\/]* | ?:[\\/]*)
19056 re_direlt='/[^/][^/]*/\.\./'
19057 # Canonicalize the pathname of ld
19058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19061 done
19062 test -z "$LD" && LD="$ac_prog"
19065 # If it fails, then pretend we aren't using GCC.
19066 ac_prog=ld
19069 # If it is relative, then search for the first ld in PATH.
19070 with_gnu_ld=unknown
19072 esac
19073 elif test "$with_gnu_ld" = yes; then
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19075 $as_echo_n "checking for GNU ld... " >&6; }
19076 else
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19078 $as_echo_n "checking for non-GNU ld... " >&6; }
19080 if test "${lt_cv_path_LD+set}" = set; then :
19081 $as_echo_n "(cached) " >&6
19082 else
19083 if test -z "$LD"; then
19084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19085 for ac_dir in $PATH; do
19086 IFS="$lt_save_ifs"
19087 test -z "$ac_dir" && ac_dir=.
19088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19089 lt_cv_path_LD="$ac_dir/$ac_prog"
19090 # Check to see if the program is GNU ld. I'd rather use --version,
19091 # but apparently some variants of GNU ld only accept -v.
19092 # Break only if it was the GNU/non-GNU ld that we prefer.
19093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19094 *GNU* | *'with BFD'*)
19095 test "$with_gnu_ld" != no && break
19098 test "$with_gnu_ld" != yes && break
19100 esac
19102 done
19103 IFS="$lt_save_ifs"
19104 else
19105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19109 LD="$lt_cv_path_LD"
19110 if test -n "$LD"; then
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19112 $as_echo "$LD" >&6; }
19113 else
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19115 $as_echo "no" >&6; }
19117 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19120 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19121 $as_echo_n "(cached) " >&6
19122 else
19123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19124 case `$LD -v 2>&1 </dev/null` in
19125 *GNU* | *'with BFD'*)
19126 lt_cv_prog_gnu_ld=yes
19129 lt_cv_prog_gnu_ld=no
19131 esac
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19135 with_gnu_ld=$lt_cv_prog_gnu_ld
19143 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19144 # archiving commands below assume that GNU ld is being used.
19145 if test "$with_gnu_ld" = yes; then
19146 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19147 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'
19149 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19150 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19152 # If archive_cmds runs LD, not CC, wlarc should be empty
19153 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19154 # investigate it a little bit more. (MM)
19155 wlarc='${wl}'
19157 # ancient GNU ld didn't support --whole-archive et. al.
19158 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19159 $GREP 'no-whole-archive' > /dev/null; then
19160 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19161 else
19162 whole_archive_flag_spec_CXX=
19164 else
19165 with_gnu_ld=no
19166 wlarc=
19168 # A generic and very simple default shared library creation
19169 # command for GNU C++ for the case where it uses the native
19170 # linker, instead of GNU ld. If possible, this setting should
19171 # overridden to take advantage of the native linker features on
19172 # the platform it is being used on.
19173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19176 # Commands to make compiler produce verbose output that lists
19177 # what "hidden" libraries, object files and flags are used when
19178 # linking a shared library.
19179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19181 else
19182 GXX=no
19183 with_gnu_ld=no
19184 wlarc=
19187 # PORTME: fill in a description of your system's C++ link characteristics
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19190 ld_shlibs_CXX=yes
19191 case $host_os in
19192 aix3*)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19196 aix[4-9]*)
19197 if test "$host_cpu" = ia64; then
19198 # On IA64, the linker does run time linking by default, so we don't
19199 # have to do anything special.
19200 aix_use_runtimelinking=no
19201 exp_sym_flag='-Bexport'
19202 no_entry_flag=""
19203 else
19204 aix_use_runtimelinking=no
19206 # Test if we are trying to use run time linking or normal
19207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19208 # need to do runtime linking.
19209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19210 for ld_flag in $LDFLAGS; do
19211 case $ld_flag in
19212 *-brtl*)
19213 aix_use_runtimelinking=yes
19214 break
19216 esac
19217 done
19219 esac
19221 exp_sym_flag='-bexport'
19222 no_entry_flag='-bnoentry'
19225 # When large executables or shared objects are built, AIX ld can
19226 # have problems creating the table of contents. If linking a library
19227 # or program results in "error TOC overflow" add -mminimal-toc to
19228 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19229 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19231 archive_cmds_CXX=''
19232 hardcode_direct_CXX=yes
19233 hardcode_direct_absolute_CXX=yes
19234 hardcode_libdir_separator_CXX=':'
19235 link_all_deplibs_CXX=yes
19236 file_list_spec_CXX='${wl}-f,'
19238 if test "$GXX" = yes; then
19239 case $host_os in aix4.[012]|aix4.[012].*)
19240 # We only want to do this on AIX 4.2 and lower, the check
19241 # below for broken collect2 doesn't work under 4.3+
19242 collect2name=`${CC} -print-prog-name=collect2`
19243 if test -f "$collect2name" &&
19244 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19245 then
19246 # We have reworked collect2
19248 else
19249 # We have old collect2
19250 hardcode_direct_CXX=unsupported
19251 # It fails to find uninstalled libraries when the uninstalled
19252 # path is not listed in the libpath. Setting hardcode_minus_L
19253 # to unsupported forces relinking
19254 hardcode_minus_L_CXX=yes
19255 hardcode_libdir_flag_spec_CXX='-L$libdir'
19256 hardcode_libdir_separator_CXX=
19258 esac
19259 shared_flag='-shared'
19260 if test "$aix_use_runtimelinking" = yes; then
19261 shared_flag="$shared_flag "'${wl}-G'
19263 else
19264 # not using gcc
19265 if test "$host_cpu" = ia64; then
19266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19267 # chokes on -Wl,-G. The following line is correct:
19268 shared_flag='-G'
19269 else
19270 if test "$aix_use_runtimelinking" = yes; then
19271 shared_flag='${wl}-G'
19272 else
19273 shared_flag='${wl}-bM:SRE'
19278 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19279 # It seems that -bexpall does not export symbols beginning with
19280 # underscore (_), so it is better to generate a list of symbols to
19281 # export.
19282 always_export_symbols_CXX=yes
19283 if test "$aix_use_runtimelinking" = yes; then
19284 # Warning - without using the other runtime loading flags (-brtl),
19285 # -berok will link without error, but may produce a broken library.
19286 allow_undefined_flag_CXX='-berok'
19287 # Determine the default libpath from the value encoded in an empty
19288 # executable.
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19293 main ()
19297 return 0;
19299 _ACEOF
19300 if ac_fn_cxx_try_link "$LINENO"; then :
19302 lt_aix_libpath_sed='
19303 /Import File Strings/,/^$/ {
19304 /^0/ {
19305 s/^0 *\(.*\)$/\1/
19309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19310 # Check for a 64-bit object if we didn't find anything.
19311 if test -z "$aix_libpath"; then
19312 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19315 rm -f core conftest.err conftest.$ac_objext \
19316 conftest$ac_exeext conftest.$ac_ext
19317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19319 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19321 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"
19322 else
19323 if test "$host_cpu" = ia64; then
19324 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19325 allow_undefined_flag_CXX="-z nodefs"
19326 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"
19327 else
19328 # Determine the default libpath from the value encoded in an
19329 # empty executable.
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19334 main ()
19338 return 0;
19340 _ACEOF
19341 if ac_fn_cxx_try_link "$LINENO"; then :
19343 lt_aix_libpath_sed='
19344 /Import File Strings/,/^$/ {
19345 /^0/ {
19346 s/^0 *\(.*\)$/\1/
19350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19351 # Check for a 64-bit object if we didn't find anything.
19352 if test -z "$aix_libpath"; then
19353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19356 rm -f core conftest.err conftest.$ac_objext \
19357 conftest$ac_exeext conftest.$ac_ext
19358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19360 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19361 # Warning - without using the other run time loading flags,
19362 # -berok will link without error, but may produce a broken library.
19363 no_undefined_flag_CXX=' ${wl}-bernotok'
19364 allow_undefined_flag_CXX=' ${wl}-berok'
19365 if test "$with_gnu_ld" = yes; then
19366 # We only use this code for GNU lds that support --whole-archive.
19367 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19368 else
19369 # Exported symbols can be pulled into shared objects from archives
19370 whole_archive_flag_spec_CXX='$convenience'
19372 archive_cmds_need_lc_CXX=yes
19373 # This is similar to how AIX traditionally builds its shared
19374 # libraries.
19375 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'
19380 beos*)
19381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19382 allow_undefined_flag_CXX=unsupported
19383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19384 # support --undefined. This deserves some investigation. FIXME
19385 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19386 else
19387 ld_shlibs_CXX=no
19391 chorus*)
19392 case $cc_basename in
19394 # FIXME: insert proper C++ library support
19395 ld_shlibs_CXX=no
19397 esac
19400 cygwin* | mingw* | pw32* | cegcc*)
19401 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19402 # as there is no search path for DLLs.
19403 hardcode_libdir_flag_spec_CXX='-L$libdir'
19404 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19405 allow_undefined_flag_CXX=unsupported
19406 always_export_symbols_CXX=no
19407 enable_shared_with_static_runtimes_CXX=yes
19409 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19410 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'
19411 # If the export-symbols file already is a .def file (1st line
19412 # is EXPORTS), use it as is; otherwise, prepend...
19413 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19414 cp $export_symbols $output_objdir/$soname.def;
19415 else
19416 echo EXPORTS > $output_objdir/$soname.def;
19417 cat $export_symbols >> $output_objdir/$soname.def;
19419 $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'
19420 else
19421 ld_shlibs_CXX=no
19424 darwin* | rhapsody*)
19427 archive_cmds_need_lc_CXX=no
19428 hardcode_direct_CXX=no
19429 hardcode_automatic_CXX=yes
19430 hardcode_shlibpath_var_CXX=unsupported
19431 if test "$lt_cv_ld_force_load" = "yes"; then
19432 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\"`'
19433 else
19434 whole_archive_flag_spec_CXX=''
19436 link_all_deplibs_CXX=yes
19437 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19438 case $cc_basename in
19439 ifort*) _lt_dar_can_shared=yes ;;
19440 *) _lt_dar_can_shared=$GCC ;;
19441 esac
19442 if test "$_lt_dar_can_shared" = "yes"; then
19443 output_verbose_link_cmd=func_echo_all
19444 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}"
19445 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19446 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}"
19447 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}"
19448 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19449 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}"
19450 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}"
19453 else
19454 ld_shlibs_CXX=no
19459 dgux*)
19460 case $cc_basename in
19461 ec++*)
19462 # FIXME: insert proper C++ library support
19463 ld_shlibs_CXX=no
19465 ghcx*)
19466 # Green Hills C++ Compiler
19467 # FIXME: insert proper C++ library support
19468 ld_shlibs_CXX=no
19471 # FIXME: insert proper C++ library support
19472 ld_shlibs_CXX=no
19474 esac
19477 freebsd2.*)
19478 # C++ shared libraries reported to be fairly broken before
19479 # switch to ELF
19480 ld_shlibs_CXX=no
19483 freebsd-elf*)
19484 archive_cmds_need_lc_CXX=no
19487 freebsd* | dragonfly*)
19488 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19489 # conventions
19490 ld_shlibs_CXX=yes
19493 gnu*)
19496 haiku*)
19497 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19498 link_all_deplibs_CXX=yes
19501 hpux9*)
19502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19503 hardcode_libdir_separator_CXX=:
19504 export_dynamic_flag_spec_CXX='${wl}-E'
19505 hardcode_direct_CXX=yes
19506 hardcode_minus_L_CXX=yes # Not in the search PATH,
19507 # but as the default
19508 # location of the library.
19510 case $cc_basename in
19511 CC*)
19512 # FIXME: insert proper C++ library support
19513 ld_shlibs_CXX=no
19515 aCC*)
19516 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'
19517 # Commands to make compiler produce verbose output that lists
19518 # what "hidden" libraries, object files and flags are used when
19519 # linking a shared library.
19521 # There doesn't appear to be a way to prevent this compiler from
19522 # explicitly linking system object files so we need to strip them
19523 # from the output so that they don't get included in the library
19524 # dependencies.
19525 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"'
19528 if test "$GXX" = yes; then
19529 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'
19530 else
19531 # FIXME: insert proper C++ library support
19532 ld_shlibs_CXX=no
19535 esac
19538 hpux10*|hpux11*)
19539 if test $with_gnu_ld = no; then
19540 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19541 hardcode_libdir_separator_CXX=:
19543 case $host_cpu in
19544 hppa*64*|ia64*)
19547 export_dynamic_flag_spec_CXX='${wl}-E'
19549 esac
19551 case $host_cpu in
19552 hppa*64*|ia64*)
19553 hardcode_direct_CXX=no
19554 hardcode_shlibpath_var_CXX=no
19557 hardcode_direct_CXX=yes
19558 hardcode_direct_absolute_CXX=yes
19559 hardcode_minus_L_CXX=yes # Not in the search PATH,
19560 # but as the default
19561 # location of the library.
19563 esac
19565 case $cc_basename in
19566 CC*)
19567 # FIXME: insert proper C++ library support
19568 ld_shlibs_CXX=no
19570 aCC*)
19571 case $host_cpu in
19572 hppa*64*)
19573 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19575 ia64*)
19576 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19579 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19581 esac
19582 # Commands to make compiler produce verbose output that lists
19583 # what "hidden" libraries, object files and flags are used when
19584 # linking a shared library.
19586 # There doesn't appear to be a way to prevent this compiler from
19587 # explicitly linking system object files so we need to strip them
19588 # from the output so that they don't get included in the library
19589 # dependencies.
19590 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"'
19593 if test "$GXX" = yes; then
19594 if test $with_gnu_ld = no; then
19595 case $host_cpu in
19596 hppa*64*)
19597 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19599 ia64*)
19600 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19603 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'
19605 esac
19607 else
19608 # FIXME: insert proper C++ library support
19609 ld_shlibs_CXX=no
19612 esac
19615 interix[3-9]*)
19616 hardcode_direct_CXX=no
19617 hardcode_shlibpath_var_CXX=no
19618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19619 export_dynamic_flag_spec_CXX='${wl}-E'
19620 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19621 # Instead, shared libraries are loaded at an image base (0x10000000 by
19622 # default) and relocated if they conflict, which is a slow very memory
19623 # consuming and fragmenting process. To avoid this, we pick a random,
19624 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19625 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19626 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'
19627 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'
19629 irix5* | irix6*)
19630 case $cc_basename in
19631 CC*)
19632 # SGI C++
19633 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'
19635 # Archives containing C++ object files must be created using
19636 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19637 # necessary to make sure instantiated templates are included
19638 # in the archive.
19639 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19642 if test "$GXX" = yes; then
19643 if test "$with_gnu_ld" = no; then
19644 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'
19645 else
19646 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'
19649 link_all_deplibs_CXX=yes
19651 esac
19652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19653 hardcode_libdir_separator_CXX=:
19654 inherit_rpath_CXX=yes
19657 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19658 case $cc_basename in
19659 KCC*)
19660 # Kuck and Associates, Inc. (KAI) C++ Compiler
19662 # KCC will only create a shared library if the output file
19663 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19664 # to its proper name (with version) after linking.
19665 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'
19666 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'
19667 # Commands to make compiler produce verbose output that lists
19668 # what "hidden" libraries, object files and flags are used when
19669 # linking a shared library.
19671 # There doesn't appear to be a way to prevent this compiler from
19672 # explicitly linking system object files so we need to strip them
19673 # from the output so that they don't get included in the library
19674 # dependencies.
19675 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"'
19677 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19680 # Archives containing C++ object files must be created using
19681 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19682 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19684 icpc* | ecpc* )
19685 # Intel C++
19686 with_gnu_ld=yes
19687 # version 8.0 and above of icpc choke on multiply defined symbols
19688 # if we add $predep_objects and $postdep_objects, however 7.1 and
19689 # earlier do not add the objects themselves.
19690 case `$CC -V 2>&1` in
19691 *"Version 7."*)
19692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19693 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'
19695 *) # Version 8.0 or newer
19696 tmp_idyn=
19697 case $host_cpu in
19698 ia64*) tmp_idyn=' -i_dynamic';;
19699 esac
19700 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19701 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'
19703 esac
19704 archive_cmds_need_lc_CXX=no
19705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19707 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19709 pgCC* | pgcpp*)
19710 # Portland Group C++ compiler
19711 case `$CC -V` in
19712 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19713 prelink_cmds_CXX='tpldir=Template.dir~
19714 rm -rf $tpldir~
19715 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19716 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19717 old_archive_cmds_CXX='tpldir=Template.dir~
19718 rm -rf $tpldir~
19719 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19720 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19721 $RANLIB $oldlib'
19722 archive_cmds_CXX='tpldir=Template.dir~
19723 rm -rf $tpldir~
19724 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19725 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19726 archive_expsym_cmds_CXX='tpldir=Template.dir~
19727 rm -rf $tpldir~
19728 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19729 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19731 *) # Version 6 and above use weak symbols
19732 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19733 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'
19735 esac
19737 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19739 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'
19741 cxx*)
19742 # Compaq C++
19743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19744 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'
19746 runpath_var=LD_RUN_PATH
19747 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19748 hardcode_libdir_separator_CXX=:
19750 # Commands to make compiler produce verbose output that lists
19751 # what "hidden" libraries, object files and flags are used when
19752 # linking a shared library.
19754 # There doesn't appear to be a way to prevent this compiler from
19755 # explicitly linking system object files so we need to strip them
19756 # from the output so that they don't get included in the library
19757 # dependencies.
19758 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'
19760 xl* | mpixl* | bgxl*)
19761 # IBM XL 8.0 on PPC, with GNU ld
19762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19764 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19765 if test "x$supports_anon_versioning" = xyes; then
19766 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19768 echo "local: *; };" >> $output_objdir/$libname.ver~
19769 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19773 case `$CC -V 2>&1 | sed 5q` in
19774 *Sun\ C*)
19775 # Sun C++ 5.9
19776 no_undefined_flag_CXX=' -zdefs'
19777 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19778 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'
19779 hardcode_libdir_flag_spec_CXX='-R$libdir'
19780 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'
19781 compiler_needs_object_CXX=yes
19783 # Not sure whether something based on
19784 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19785 # would be better.
19786 output_verbose_link_cmd='func_echo_all'
19788 # Archives containing C++ object files must be created using
19789 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19790 # necessary to make sure instantiated templates are included
19791 # in the archive.
19792 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19794 esac
19796 esac
19799 lynxos*)
19800 # FIXME: insert proper C++ library support
19801 ld_shlibs_CXX=no
19804 m88k*)
19805 # FIXME: insert proper C++ library support
19806 ld_shlibs_CXX=no
19809 mvs*)
19810 case $cc_basename in
19811 cxx*)
19812 # FIXME: insert proper C++ library support
19813 ld_shlibs_CXX=no
19816 # FIXME: insert proper C++ library support
19817 ld_shlibs_CXX=no
19819 esac
19822 netbsd*)
19823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19824 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19825 wlarc=
19826 hardcode_libdir_flag_spec_CXX='-R$libdir'
19827 hardcode_direct_CXX=yes
19828 hardcode_shlibpath_var_CXX=no
19830 # Workaround some broken pre-1.5 toolchains
19831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19834 *nto* | *qnx*)
19835 ld_shlibs_CXX=yes
19838 openbsd2*)
19839 # C++ shared libraries are fairly broken
19840 ld_shlibs_CXX=no
19843 openbsd*)
19844 if test -f /usr/libexec/ld.so; then
19845 hardcode_direct_CXX=yes
19846 hardcode_shlibpath_var_CXX=no
19847 hardcode_direct_absolute_CXX=yes
19848 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19851 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19852 export_dynamic_flag_spec_CXX='${wl}-E'
19853 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19855 output_verbose_link_cmd=func_echo_all
19856 else
19857 ld_shlibs_CXX=no
19861 osf3* | osf4* | osf5*)
19862 case $cc_basename in
19863 KCC*)
19864 # Kuck and Associates, Inc. (KAI) C++ Compiler
19866 # KCC will only create a shared library if the output file
19867 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19868 # to its proper name (with version) after linking.
19869 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'
19871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19872 hardcode_libdir_separator_CXX=:
19874 # Archives containing C++ object files must be created using
19875 # the KAI C++ compiler.
19876 case $host in
19877 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19878 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19879 esac
19881 RCC*)
19882 # Rational C++ 2.4.1
19883 # FIXME: insert proper C++ library support
19884 ld_shlibs_CXX=no
19886 cxx*)
19887 case $host in
19888 osf3*)
19889 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19890 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'
19891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19894 allow_undefined_flag_CXX=' -expect_unresolved \*'
19895 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'
19896 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19897 echo "-hidden">> $lib.exp~
19898 $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~
19899 $RM $lib.exp'
19900 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19902 esac
19904 hardcode_libdir_separator_CXX=:
19906 # Commands to make compiler produce verbose output that lists
19907 # what "hidden" libraries, object files and flags are used when
19908 # linking a shared library.
19910 # There doesn't appear to be a way to prevent this compiler from
19911 # explicitly linking system object files so we need to strip them
19912 # from the output so that they don't get included in the library
19913 # dependencies.
19914 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"'
19917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19919 case $host in
19920 osf3*)
19921 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'
19924 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'
19926 esac
19928 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19929 hardcode_libdir_separator_CXX=:
19931 # Commands to make compiler produce verbose output that lists
19932 # what "hidden" libraries, object files and flags are used when
19933 # linking a shared library.
19934 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19936 else
19937 # FIXME: insert proper C++ library support
19938 ld_shlibs_CXX=no
19941 esac
19944 psos*)
19945 # FIXME: insert proper C++ library support
19946 ld_shlibs_CXX=no
19949 sunos4*)
19950 case $cc_basename in
19951 CC*)
19952 # Sun C++ 4.x
19953 # FIXME: insert proper C++ library support
19954 ld_shlibs_CXX=no
19956 lcc*)
19957 # Lucid
19958 # FIXME: insert proper C++ library support
19959 ld_shlibs_CXX=no
19962 # FIXME: insert proper C++ library support
19963 ld_shlibs_CXX=no
19965 esac
19968 solaris*)
19969 case $cc_basename in
19970 CC*)
19971 # Sun C++ 4.2, 5.x and Centerline C++
19972 archive_cmds_need_lc_CXX=yes
19973 no_undefined_flag_CXX=' -zdefs'
19974 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19975 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19976 $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'
19978 hardcode_libdir_flag_spec_CXX='-R$libdir'
19979 hardcode_shlibpath_var_CXX=no
19980 case $host_os in
19981 solaris2.[0-5] | solaris2.[0-5].*) ;;
19983 # The compiler driver will combine and reorder linker options,
19984 # but understands `-z linker_flag'.
19985 # Supported since Solaris 2.6 (maybe 2.5.1?)
19986 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19988 esac
19989 link_all_deplibs_CXX=yes
19991 output_verbose_link_cmd='func_echo_all'
19993 # Archives containing C++ object files must be created using
19994 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19995 # necessary to make sure instantiated templates are included
19996 # in the archive.
19997 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19999 gcx*)
20000 # Green Hills C++ Compiler
20001 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20003 # The C++ compiler must be used to create the archive.
20004 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20007 # GNU C++ compiler with Solaris linker
20008 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20009 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20010 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20011 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20012 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20013 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20015 # Commands to make compiler produce verbose output that lists
20016 # what "hidden" libraries, object files and flags are used when
20017 # linking a shared library.
20018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20019 else
20020 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20021 # platform.
20022 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20023 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20024 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20026 # Commands to make compiler produce verbose output that lists
20027 # what "hidden" libraries, object files and flags are used when
20028 # linking a shared library.
20029 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20032 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20033 case $host_os in
20034 solaris2.[0-5] | solaris2.[0-5].*) ;;
20036 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20038 esac
20041 esac
20044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20045 no_undefined_flag_CXX='${wl}-z,text'
20046 archive_cmds_need_lc_CXX=no
20047 hardcode_shlibpath_var_CXX=no
20048 runpath_var='LD_RUN_PATH'
20050 case $cc_basename in
20051 CC*)
20052 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20053 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20056 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20059 esac
20062 sysv5* | sco3.2v5* | sco5v6*)
20063 # Note: We can NOT use -z defs as we might desire, because we do not
20064 # link with -lc, and that would cause any symbols used from libc to
20065 # always be unresolved, which means just about no library would
20066 # ever link correctly. If we're not using GNU ld we use -z text
20067 # though, which does catch some bad symbols but isn't as heavy-handed
20068 # as -z defs.
20069 no_undefined_flag_CXX='${wl}-z,text'
20070 allow_undefined_flag_CXX='${wl}-z,nodefs'
20071 archive_cmds_need_lc_CXX=no
20072 hardcode_shlibpath_var_CXX=no
20073 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20074 hardcode_libdir_separator_CXX=':'
20075 link_all_deplibs_CXX=yes
20076 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20077 runpath_var='LD_RUN_PATH'
20079 case $cc_basename in
20080 CC*)
20081 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20082 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20083 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20084 '"$old_archive_cmds_CXX"
20085 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20086 '"$reload_cmds_CXX"
20089 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20092 esac
20095 tandem*)
20096 case $cc_basename in
20097 NCC*)
20098 # NonStop-UX NCC 3.20
20099 # FIXME: insert proper C++ library support
20100 ld_shlibs_CXX=no
20103 # FIXME: insert proper C++ library support
20104 ld_shlibs_CXX=no
20106 esac
20109 vxworks*)
20110 # FIXME: insert proper C++ library support
20111 ld_shlibs_CXX=no
20115 # FIXME: insert proper C++ library support
20116 ld_shlibs_CXX=no
20118 esac
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20121 $as_echo "$ld_shlibs_CXX" >&6; }
20122 test "$ld_shlibs_CXX" = no && can_build_shared=no
20124 GCC_CXX="$GXX"
20125 LD_CXX="$LD"
20127 ## CAVEAT EMPTOR:
20128 ## There is no encapsulation within the following macros, do not change
20129 ## the running order or otherwise move them around unless you know exactly
20130 ## what you are doing...
20131 # Dependencies to place before and after the object being linked:
20132 predep_objects_CXX=
20133 postdep_objects_CXX=
20134 predeps_CXX=
20135 postdeps_CXX=
20136 compiler_lib_search_path_CXX=
20138 cat > conftest.$ac_ext <<_LT_EOF
20139 class Foo
20141 public:
20142 Foo (void) { a = 0; }
20143 private:
20144 int a;
20146 _LT_EOF
20148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20149 (eval $ac_compile) 2>&5
20150 ac_status=$?
20151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20152 test $ac_status = 0; }; then
20153 # Parse the compiler output and extract the necessary
20154 # objects, libraries and library flags.
20156 # Sentinel used to keep track of whether or not we are before
20157 # the conftest object file.
20158 pre_test_object_deps_done=no
20160 for p in `eval "$output_verbose_link_cmd"`; do
20161 case $p in
20163 -L* | -R* | -l*)
20164 # Some compilers place space between "-{L,R}" and the path.
20165 # Remove the space.
20166 if test $p = "-L" ||
20167 test $p = "-R"; then
20168 prev=$p
20169 continue
20170 else
20171 prev=
20174 if test "$pre_test_object_deps_done" = no; then
20175 case $p in
20176 -L* | -R*)
20177 # Internal compiler library paths should come after those
20178 # provided the user. The postdeps already come after the
20179 # user supplied libs so there is no need to process them.
20180 if test -z "$compiler_lib_search_path_CXX"; then
20181 compiler_lib_search_path_CXX="${prev}${p}"
20182 else
20183 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20186 # The "-l" case would never come before the object being
20187 # linked, so don't bother handling this case.
20188 esac
20189 else
20190 if test -z "$postdeps_CXX"; then
20191 postdeps_CXX="${prev}${p}"
20192 else
20193 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20198 *.$objext)
20199 # This assumes that the test object file only shows up
20200 # once in the compiler output.
20201 if test "$p" = "conftest.$objext"; then
20202 pre_test_object_deps_done=yes
20203 continue
20206 if test "$pre_test_object_deps_done" = no; then
20207 if test -z "$predep_objects_CXX"; then
20208 predep_objects_CXX="$p"
20209 else
20210 predep_objects_CXX="$predep_objects_CXX $p"
20212 else
20213 if test -z "$postdep_objects_CXX"; then
20214 postdep_objects_CXX="$p"
20215 else
20216 postdep_objects_CXX="$postdep_objects_CXX $p"
20221 *) ;; # Ignore the rest.
20223 esac
20224 done
20226 # Clean up.
20227 rm -f a.out a.exe
20228 else
20229 echo "libtool.m4: error: problem compiling CXX test program"
20232 $RM -f confest.$objext
20234 # PORTME: override above test on systems where it is broken
20235 case $host_os in
20236 interix[3-9]*)
20237 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20238 # hack all around it, let's just trust "g++" to DTRT.
20239 predep_objects_CXX=
20240 postdep_objects_CXX=
20241 postdeps_CXX=
20244 linux*)
20245 case `$CC -V 2>&1 | sed 5q` in
20246 *Sun\ C*)
20247 # Sun C++ 5.9
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 if test "$solaris_use_stlport4" != yes; then
20260 postdeps_CXX='-library=Cstd -library=Crun'
20263 esac
20266 solaris*)
20267 case $cc_basename in
20268 CC*)
20269 # The more standards-conforming stlport4 library is
20270 # incompatible with the Cstd library. Avoid specifying
20271 # it if it's in CXXFLAGS. Ignore libCrun as
20272 # -library=stlport4 depends on it.
20273 case " $CXX $CXXFLAGS " in
20274 *" -library=stlport4 "*)
20275 solaris_use_stlport4=yes
20277 esac
20279 # Adding this requires a known-good setup of shared libraries for
20280 # Sun compiler versions before 5.6, else PIC objects from an old
20281 # archive will be linked into the output, leading to subtle bugs.
20282 if test "$solaris_use_stlport4" != yes; then
20283 postdeps_CXX='-library=Cstd -library=Crun'
20286 esac
20288 esac
20291 case " $postdeps_CXX " in
20292 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20293 esac
20294 compiler_lib_search_dirs_CXX=
20295 if test -n "${compiler_lib_search_path_CXX}"; then
20296 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20329 lt_prog_compiler_wl_CXX=
20330 lt_prog_compiler_pic_CXX=
20331 lt_prog_compiler_static_CXX=
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20334 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20336 # C++ specific cases for pic, static, wl, etc.
20337 if test "$GXX" = yes; then
20338 lt_prog_compiler_wl_CXX='-Wl,'
20339 lt_prog_compiler_static_CXX='-static'
20341 case $host_os in
20342 aix*)
20343 # All AIX code is PIC.
20344 if test "$host_cpu" = ia64; then
20345 # AIX 5 now supports IA64 processor
20346 lt_prog_compiler_static_CXX='-Bstatic'
20348 lt_prog_compiler_pic_CXX='-fPIC'
20351 amigaos*)
20352 case $host_cpu in
20353 powerpc)
20354 # see comment about AmigaOS4 .so support
20355 lt_prog_compiler_pic_CXX='-fPIC'
20357 m68k)
20358 # FIXME: we need at least 68020 code to build shared libraries, but
20359 # adding the `-m68020' flag to GCC prevents building anything better,
20360 # like `-m68040'.
20361 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20363 esac
20366 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20367 # PIC is the default for these OSes.
20369 mingw* | cygwin* | os2* | pw32* | cegcc*)
20370 # This hack is so that the source file can tell whether it is being
20371 # built for inclusion in a dll (and should export symbols for example).
20372 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20373 # (--disable-auto-import) libraries
20374 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20376 darwin* | rhapsody*)
20377 # PIC is the default on this platform
20378 # Common symbols not allowed in MH_DYLIB files
20379 lt_prog_compiler_pic_CXX='-fno-common'
20381 *djgpp*)
20382 # DJGPP does not support shared libraries at all
20383 lt_prog_compiler_pic_CXX=
20385 haiku*)
20386 # PIC is the default for Haiku.
20387 # The "-static" flag exists, but is broken.
20388 lt_prog_compiler_static_CXX=
20390 interix[3-9]*)
20391 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20392 # Instead, we relocate shared libraries at runtime.
20394 sysv4*MP*)
20395 if test -d /usr/nec; then
20396 lt_prog_compiler_pic_CXX=-Kconform_pic
20399 hpux*)
20400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20402 # sets the default TLS model and affects inlining.
20403 case $host_cpu in
20404 hppa*64*)
20407 lt_prog_compiler_pic_CXX='-fPIC'
20409 esac
20411 *qnx* | *nto*)
20412 # QNX uses GNU C++, but need to define -shared option too, otherwise
20413 # it will coredump.
20414 lt_prog_compiler_pic_CXX='-fPIC -shared'
20417 lt_prog_compiler_pic_CXX='-fPIC'
20419 esac
20420 else
20421 case $host_os in
20422 aix[4-9]*)
20423 # All AIX code is PIC.
20424 if test "$host_cpu" = ia64; then
20425 # AIX 5 now supports IA64 processor
20426 lt_prog_compiler_static_CXX='-Bstatic'
20427 else
20428 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20431 chorus*)
20432 case $cc_basename in
20433 cxch68*)
20434 # Green Hills C++ Compiler
20435 # _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"
20437 esac
20439 dgux*)
20440 case $cc_basename in
20441 ec++*)
20442 lt_prog_compiler_pic_CXX='-KPIC'
20444 ghcx*)
20445 # Green Hills C++ Compiler
20446 lt_prog_compiler_pic_CXX='-pic'
20450 esac
20452 freebsd* | dragonfly*)
20453 # FreeBSD uses GNU C++
20455 hpux9* | hpux10* | hpux11*)
20456 case $cc_basename in
20457 CC*)
20458 lt_prog_compiler_wl_CXX='-Wl,'
20459 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20460 if test "$host_cpu" != ia64; then
20461 lt_prog_compiler_pic_CXX='+Z'
20464 aCC*)
20465 lt_prog_compiler_wl_CXX='-Wl,'
20466 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20467 case $host_cpu in
20468 hppa*64*|ia64*)
20469 # +Z the default
20472 lt_prog_compiler_pic_CXX='+Z'
20474 esac
20478 esac
20480 interix*)
20481 # This is c89, which is MS Visual C++ (no shared libs)
20482 # Anyone wants to do a port?
20484 irix5* | irix6* | nonstopux*)
20485 case $cc_basename in
20486 CC*)
20487 lt_prog_compiler_wl_CXX='-Wl,'
20488 lt_prog_compiler_static_CXX='-non_shared'
20489 # CC pic flag -KPIC is the default.
20493 esac
20495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20496 case $cc_basename in
20497 KCC*)
20498 # KAI C++ Compiler
20499 lt_prog_compiler_wl_CXX='--backend -Wl,'
20500 lt_prog_compiler_pic_CXX='-fPIC'
20502 ecpc* )
20503 # old Intel C++ for x86_64 which still supported -KPIC.
20504 lt_prog_compiler_wl_CXX='-Wl,'
20505 lt_prog_compiler_pic_CXX='-KPIC'
20506 lt_prog_compiler_static_CXX='-static'
20508 icpc* )
20509 # Intel C++, used to be incompatible with GCC.
20510 # ICC 10 doesn't accept -KPIC any more.
20511 lt_prog_compiler_wl_CXX='-Wl,'
20512 lt_prog_compiler_pic_CXX='-fPIC'
20513 lt_prog_compiler_static_CXX='-static'
20515 pgCC* | pgcpp*)
20516 # Portland Group C++ compiler
20517 lt_prog_compiler_wl_CXX='-Wl,'
20518 lt_prog_compiler_pic_CXX='-fpic'
20519 lt_prog_compiler_static_CXX='-Bstatic'
20521 cxx*)
20522 # Compaq C++
20523 # Make sure the PIC flag is empty. It appears that all Alpha
20524 # Linux and Compaq Tru64 Unix objects are PIC.
20525 lt_prog_compiler_pic_CXX=
20526 lt_prog_compiler_static_CXX='-non_shared'
20528 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20529 # IBM XL 8.0, 9.0 on PPC and BlueGene
20530 lt_prog_compiler_wl_CXX='-Wl,'
20531 lt_prog_compiler_pic_CXX='-qpic'
20532 lt_prog_compiler_static_CXX='-qstaticlink'
20535 case `$CC -V 2>&1 | sed 5q` in
20536 *Sun\ C*)
20537 # Sun C++ 5.9
20538 lt_prog_compiler_pic_CXX='-KPIC'
20539 lt_prog_compiler_static_CXX='-Bstatic'
20540 lt_prog_compiler_wl_CXX='-Qoption ld '
20542 esac
20544 esac
20546 lynxos*)
20548 m88k*)
20550 mvs*)
20551 case $cc_basename in
20552 cxx*)
20553 lt_prog_compiler_pic_CXX='-W c,exportall'
20557 esac
20559 netbsd*)
20561 *qnx* | *nto*)
20562 # QNX uses GNU C++, but need to define -shared option too, otherwise
20563 # it will coredump.
20564 lt_prog_compiler_pic_CXX='-fPIC -shared'
20566 osf3* | osf4* | osf5*)
20567 case $cc_basename in
20568 KCC*)
20569 lt_prog_compiler_wl_CXX='--backend -Wl,'
20571 RCC*)
20572 # Rational C++ 2.4.1
20573 lt_prog_compiler_pic_CXX='-pic'
20575 cxx*)
20576 # Digital/Compaq C++
20577 lt_prog_compiler_wl_CXX='-Wl,'
20578 # Make sure the PIC flag is empty. It appears that all Alpha
20579 # Linux and Compaq Tru64 Unix objects are PIC.
20580 lt_prog_compiler_pic_CXX=
20581 lt_prog_compiler_static_CXX='-non_shared'
20585 esac
20587 psos*)
20589 solaris*)
20590 case $cc_basename in
20591 CC*)
20592 # Sun C++ 4.2, 5.x and Centerline C++
20593 lt_prog_compiler_pic_CXX='-KPIC'
20594 lt_prog_compiler_static_CXX='-Bstatic'
20595 lt_prog_compiler_wl_CXX='-Qoption ld '
20597 gcx*)
20598 # Green Hills C++ Compiler
20599 lt_prog_compiler_pic_CXX='-PIC'
20603 esac
20605 sunos4*)
20606 case $cc_basename in
20607 CC*)
20608 # Sun C++ 4.x
20609 lt_prog_compiler_pic_CXX='-pic'
20610 lt_prog_compiler_static_CXX='-Bstatic'
20612 lcc*)
20613 # Lucid
20614 lt_prog_compiler_pic_CXX='-pic'
20618 esac
20620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20621 case $cc_basename in
20622 CC*)
20623 lt_prog_compiler_wl_CXX='-Wl,'
20624 lt_prog_compiler_pic_CXX='-KPIC'
20625 lt_prog_compiler_static_CXX='-Bstatic'
20627 esac
20629 tandem*)
20630 case $cc_basename in
20631 NCC*)
20632 # NonStop-UX NCC 3.20
20633 lt_prog_compiler_pic_CXX='-KPIC'
20637 esac
20639 vxworks*)
20642 lt_prog_compiler_can_build_shared_CXX=no
20644 esac
20647 case $host_os in
20648 # For platforms which do not support PIC, -DPIC is meaningless:
20649 *djgpp*)
20650 lt_prog_compiler_pic_CXX=
20653 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20655 esac
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20657 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20662 # Check to make sure the PIC flag actually works.
20664 if test -n "$lt_prog_compiler_pic_CXX"; then
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20666 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20667 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20668 $as_echo_n "(cached) " >&6
20669 else
20670 lt_cv_prog_compiler_pic_works_CXX=no
20671 ac_outfile=conftest.$ac_objext
20672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20673 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20674 # Insert the option either (1) after the last *FLAGS variable, or
20675 # (2) before a word containing "conftest.", or (3) at the end.
20676 # Note that $ac_compile itself does not contain backslashes and begins
20677 # with a dollar sign (not a hyphen), so the echo should work correctly.
20678 # The option is referenced via a variable to avoid confusing sed.
20679 lt_compile=`echo "$ac_compile" | $SED \
20680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20682 -e 's:$: $lt_compiler_flag:'`
20683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20684 (eval "$lt_compile" 2>conftest.err)
20685 ac_status=$?
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 if (exit $ac_status) && test -s "$ac_outfile"; then
20689 # The compiler can only warn and ignore the option if not recognized
20690 # So say no if there are warnings other than the usual output.
20691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20694 lt_cv_prog_compiler_pic_works_CXX=yes
20697 $RM conftest*
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20701 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20703 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20704 case $lt_prog_compiler_pic_CXX in
20705 "" | " "*) ;;
20706 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20707 esac
20708 else
20709 lt_prog_compiler_pic_CXX=
20710 lt_prog_compiler_can_build_shared_CXX=no
20718 # Check to make sure the static flag actually works.
20720 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20722 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20723 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20724 $as_echo_n "(cached) " >&6
20725 else
20726 lt_cv_prog_compiler_static_works_CXX=no
20727 save_LDFLAGS="$LDFLAGS"
20728 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20729 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20730 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20731 # The linker can only warn and ignore the option if not recognized
20732 # So say no if there are warnings
20733 if test -s conftest.err; then
20734 # Append any errors to the config.log.
20735 cat conftest.err 1>&5
20736 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20738 if diff conftest.exp conftest.er2 >/dev/null; then
20739 lt_cv_prog_compiler_static_works_CXX=yes
20741 else
20742 lt_cv_prog_compiler_static_works_CXX=yes
20745 $RM -r conftest*
20746 LDFLAGS="$save_LDFLAGS"
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20750 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20752 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20754 else
20755 lt_prog_compiler_static_CXX=
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20763 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20764 $as_echo_n "(cached) " >&6
20765 else
20766 lt_cv_prog_compiler_c_o_CXX=no
20767 $RM -r conftest 2>/dev/null
20768 mkdir conftest
20769 cd conftest
20770 mkdir out
20771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20773 lt_compiler_flag="-o out/conftest2.$ac_objext"
20774 # Insert the option either (1) after the last *FLAGS variable, or
20775 # (2) before a word containing "conftest.", or (3) at the end.
20776 # Note that $ac_compile itself does not contain backslashes and begins
20777 # with a dollar sign (not a hyphen), so the echo should work correctly.
20778 lt_compile=`echo "$ac_compile" | $SED \
20779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20781 -e 's:$: $lt_compiler_flag:'`
20782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20783 (eval "$lt_compile" 2>out/conftest.err)
20784 ac_status=$?
20785 cat out/conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20788 then
20789 # The compiler can only warn and ignore the option if not recognized
20790 # So say no if there are warnings
20791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20794 lt_cv_prog_compiler_c_o_CXX=yes
20797 chmod u+w . 2>&5
20798 $RM conftest*
20799 # SGI C++ compiler will create directory out/ii_files/ for
20800 # template instantiation
20801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20802 $RM out/* && rmdir out
20803 cd ..
20804 $RM -r conftest
20805 $RM conftest*
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20809 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20815 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20816 $as_echo_n "(cached) " >&6
20817 else
20818 lt_cv_prog_compiler_c_o_CXX=no
20819 $RM -r conftest 2>/dev/null
20820 mkdir conftest
20821 cd conftest
20822 mkdir out
20823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20825 lt_compiler_flag="-o out/conftest2.$ac_objext"
20826 # Insert the option either (1) after the last *FLAGS variable, or
20827 # (2) before a word containing "conftest.", or (3) at the end.
20828 # Note that $ac_compile itself does not contain backslashes and begins
20829 # with a dollar sign (not a hyphen), so the echo should work correctly.
20830 lt_compile=`echo "$ac_compile" | $SED \
20831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20833 -e 's:$: $lt_compiler_flag:'`
20834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20835 (eval "$lt_compile" 2>out/conftest.err)
20836 ac_status=$?
20837 cat out/conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20840 then
20841 # The compiler can only warn and ignore the option if not recognized
20842 # So say no if there are warnings
20843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20846 lt_cv_prog_compiler_c_o_CXX=yes
20849 chmod u+w . 2>&5
20850 $RM conftest*
20851 # SGI C++ compiler will create directory out/ii_files/ for
20852 # template instantiation
20853 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20854 $RM out/* && rmdir out
20855 cd ..
20856 $RM -r conftest
20857 $RM conftest*
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20861 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20866 hard_links="nottested"
20867 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20868 # do not overwrite the value of need_locks provided by the user
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20870 $as_echo_n "checking if we can lock with hard links... " >&6; }
20871 hard_links=yes
20872 $RM conftest*
20873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20874 touch conftest.a
20875 ln conftest.a conftest.b 2>&5 || hard_links=no
20876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20878 $as_echo "$hard_links" >&6; }
20879 if test "$hard_links" = no; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20881 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20882 need_locks=warn
20884 else
20885 need_locks=no
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20891 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20894 case $host_os in
20895 aix[4-9]*)
20896 # If we're using GNU nm, then we don't want the "-C" option.
20897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20898 # Also, AIX nm treats weak defined symbols like other global defined
20899 # symbols, whereas GNU nm marks them as "W".
20900 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20901 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'
20902 else
20903 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'
20906 pw32*)
20907 export_symbols_cmds_CXX="$ltdll_cmds"
20909 cygwin* | mingw* | cegcc*)
20910 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'
20913 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20915 esac
20916 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20919 $as_echo "$ld_shlibs_CXX" >&6; }
20920 test "$ld_shlibs_CXX" = no && can_build_shared=no
20922 with_gnu_ld_CXX=$with_gnu_ld
20930 # Do we need to explicitly link libc?
20932 case "x$archive_cmds_need_lc_CXX" in
20933 x|xyes)
20934 # Assume -lc should be added
20935 archive_cmds_need_lc_CXX=yes
20937 if test "$enable_shared" = yes && test "$GCC" = yes; then
20938 case $archive_cmds_CXX in
20939 *'~'*)
20940 # FIXME: we may have to deal with multi-command sequences.
20942 '$CC '*)
20943 # Test whether the compiler implicitly links with -lc since on some
20944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20945 # to ld, don't add -lc before -lgcc.
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20947 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20948 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20949 $as_echo_n "(cached) " >&6
20950 else
20951 $RM conftest*
20952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20955 (eval $ac_compile) 2>&5
20956 ac_status=$?
20957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20958 test $ac_status = 0; } 2>conftest.err; then
20959 soname=conftest
20960 lib=conftest
20961 libobjs=conftest.$ac_objext
20962 deplibs=
20963 wl=$lt_prog_compiler_wl_CXX
20964 pic_flag=$lt_prog_compiler_pic_CXX
20965 compiler_flags=-v
20966 linker_flags=-v
20967 verstring=
20968 output_objdir=.
20969 libname=conftest
20970 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20971 allow_undefined_flag_CXX=
20972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20973 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20974 ac_status=$?
20975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20976 test $ac_status = 0; }
20977 then
20978 lt_cv_archive_cmds_need_lc_CXX=no
20979 else
20980 lt_cv_archive_cmds_need_lc_CXX=yes
20982 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20983 else
20984 cat conftest.err 1>&5
20986 $RM conftest*
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20990 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20991 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20993 esac
20996 esac
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21062 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21064 library_names_spec=
21065 libname_spec='lib$name'
21066 soname_spec=
21067 shrext_cmds=".so"
21068 postinstall_cmds=
21069 postuninstall_cmds=
21070 finish_cmds=
21071 finish_eval=
21072 shlibpath_var=
21073 shlibpath_overrides_runpath=unknown
21074 version_type=none
21075 dynamic_linker="$host_os ld.so"
21076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21077 need_lib_prefix=unknown
21078 hardcode_into_libs=no
21080 # when you set need_version to no, make sure it does not cause -set_version
21081 # flags to be left without arguments
21082 need_version=unknown
21084 case $host_os in
21085 aix3*)
21086 version_type=linux
21087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21088 shlibpath_var=LIBPATH
21090 # AIX 3 has no versioning support, so we append a major version to the name.
21091 soname_spec='${libname}${release}${shared_ext}$major'
21094 aix[4-9]*)
21095 version_type=linux
21096 need_lib_prefix=no
21097 need_version=no
21098 hardcode_into_libs=yes
21099 if test "$host_cpu" = ia64; then
21100 # AIX 5 supports IA64
21101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21102 shlibpath_var=LD_LIBRARY_PATH
21103 else
21104 # With GCC up to 2.95.x, collect2 would create an import file
21105 # for dependence libraries. The import file would start with
21106 # the line `#! .'. This would cause the generated library to
21107 # depend on `.', always an invalid library. This was fixed in
21108 # development snapshots of GCC prior to 3.0.
21109 case $host_os in
21110 aix4 | aix4.[01] | aix4.[01].*)
21111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21112 echo ' yes '
21113 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21115 else
21116 can_build_shared=no
21119 esac
21120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21121 # soname into executable. Probably we can add versioning support to
21122 # collect2, so additional links can be useful in future.
21123 if test "$aix_use_runtimelinking" = yes; then
21124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21125 # instead of lib<name>.a to let people know that these are not
21126 # typical AIX shared libraries.
21127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21128 else
21129 # We preserve .a as extension for shared libraries through AIX4.2
21130 # and later when we are not doing run time linking.
21131 library_names_spec='${libname}${release}.a $libname.a'
21132 soname_spec='${libname}${release}${shared_ext}$major'
21134 shlibpath_var=LIBPATH
21138 amigaos*)
21139 case $host_cpu in
21140 powerpc)
21141 # Since July 2007 AmigaOS4 officially supports .so libraries.
21142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21145 m68k)
21146 library_names_spec='$libname.ixlibrary $libname.a'
21147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21148 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'
21150 esac
21153 beos*)
21154 library_names_spec='${libname}${shared_ext}'
21155 dynamic_linker="$host_os ld.so"
21156 shlibpath_var=LIBRARY_PATH
21159 bsdi[45]*)
21160 version_type=linux
21161 need_version=no
21162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21163 soname_spec='${libname}${release}${shared_ext}$major'
21164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21165 shlibpath_var=LD_LIBRARY_PATH
21166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21168 # the default ld.so.conf also contains /usr/contrib/lib and
21169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21170 # libtool to hard-code these into programs
21173 cygwin* | mingw* | pw32* | cegcc*)
21174 version_type=windows
21175 shrext_cmds=".dll"
21176 need_version=no
21177 need_lib_prefix=no
21179 case $GCC,$host_os in
21180 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21181 library_names_spec='$libname.dll.a'
21182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21183 postinstall_cmds='base_file=`basename \${file}`~
21184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21185 dldir=$destdir/`dirname \$dlpath`~
21186 test -d \$dldir || mkdir -p \$dldir~
21187 $install_prog $dir/$dlname \$dldir/$dlname~
21188 chmod a+x \$dldir/$dlname~
21189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21193 dlpath=$dir/\$dldll~
21194 $RM \$dlpath'
21195 shlibpath_overrides_runpath=yes
21197 case $host_os in
21198 cygwin*)
21199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21203 mingw* | cegcc*)
21204 # MinGW DLLs use traditional 'lib' prefix
21205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21207 pw32*)
21208 # pw32 DLLs use 'pw' prefix rather than 'lib'
21209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21211 esac
21215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21217 esac
21218 dynamic_linker='Win32 ld.exe'
21219 # FIXME: first we should search . and the directory the executable is in
21220 shlibpath_var=PATH
21223 darwin* | rhapsody*)
21224 dynamic_linker="$host_os dyld"
21225 version_type=darwin
21226 need_lib_prefix=no
21227 need_version=no
21228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21229 soname_spec='${libname}${release}${major}$shared_ext'
21230 shlibpath_overrides_runpath=yes
21231 shlibpath_var=DYLD_LIBRARY_PATH
21232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21237 dgux*)
21238 version_type=linux
21239 need_lib_prefix=no
21240 need_version=no
21241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21242 soname_spec='${libname}${release}${shared_ext}$major'
21243 shlibpath_var=LD_LIBRARY_PATH
21246 freebsd* | dragonfly*)
21247 # DragonFly does not have aout. When/if they implement a new
21248 # versioning mechanism, adjust this.
21249 if test -x /usr/bin/objformat; then
21250 objformat=`/usr/bin/objformat`
21251 else
21252 case $host_os in
21253 freebsd[23].*) objformat=aout ;;
21254 *) objformat=elf ;;
21255 esac
21257 version_type=freebsd-$objformat
21258 case $version_type in
21259 freebsd-elf*)
21260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21261 need_version=no
21262 need_lib_prefix=no
21264 freebsd-*)
21265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21266 need_version=yes
21268 esac
21269 shlibpath_var=LD_LIBRARY_PATH
21270 case $host_os in
21271 freebsd2.*)
21272 shlibpath_overrides_runpath=yes
21274 freebsd3.[01]* | freebsdelf3.[01]*)
21275 shlibpath_overrides_runpath=yes
21276 hardcode_into_libs=yes
21278 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21279 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21280 shlibpath_overrides_runpath=no
21281 hardcode_into_libs=yes
21283 *) # from 4.6 on, and DragonFly
21284 shlibpath_overrides_runpath=yes
21285 hardcode_into_libs=yes
21287 esac
21290 gnu*)
21291 version_type=linux
21292 need_lib_prefix=no
21293 need_version=no
21294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21295 soname_spec='${libname}${release}${shared_ext}$major'
21296 shlibpath_var=LD_LIBRARY_PATH
21297 hardcode_into_libs=yes
21300 haiku*)
21301 version_type=linux
21302 need_lib_prefix=no
21303 need_version=no
21304 dynamic_linker="$host_os runtime_loader"
21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21306 soname_spec='${libname}${release}${shared_ext}$major'
21307 shlibpath_var=LIBRARY_PATH
21308 shlibpath_overrides_runpath=yes
21309 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21310 hardcode_into_libs=yes
21313 hpux9* | hpux10* | hpux11*)
21314 # Give a soname corresponding to the major version so that dld.sl refuses to
21315 # link against other versions.
21316 version_type=sunos
21317 need_lib_prefix=no
21318 need_version=no
21319 case $host_cpu in
21320 ia64*)
21321 shrext_cmds='.so'
21322 hardcode_into_libs=yes
21323 dynamic_linker="$host_os dld.so"
21324 shlibpath_var=LD_LIBRARY_PATH
21325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21327 soname_spec='${libname}${release}${shared_ext}$major'
21328 if test "X$HPUX_IA64_MODE" = X32; then
21329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21330 else
21331 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21335 hppa*64*)
21336 shrext_cmds='.sl'
21337 hardcode_into_libs=yes
21338 dynamic_linker="$host_os dld.sl"
21339 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21342 soname_spec='${libname}${release}${shared_ext}$major'
21343 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21347 shrext_cmds='.sl'
21348 dynamic_linker="$host_os dld.sl"
21349 shlibpath_var=SHLIB_PATH
21350 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21352 soname_spec='${libname}${release}${shared_ext}$major'
21354 esac
21355 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21356 postinstall_cmds='chmod 555 $lib'
21357 # or fails outright, so override atomically:
21358 install_override_mode=555
21361 interix[3-9]*)
21362 version_type=linux
21363 need_lib_prefix=no
21364 need_version=no
21365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21366 soname_spec='${libname}${release}${shared_ext}$major'
21367 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21368 shlibpath_var=LD_LIBRARY_PATH
21369 shlibpath_overrides_runpath=no
21370 hardcode_into_libs=yes
21373 irix5* | irix6* | nonstopux*)
21374 case $host_os in
21375 nonstopux*) version_type=nonstopux ;;
21377 if test "$lt_cv_prog_gnu_ld" = yes; then
21378 version_type=linux
21379 else
21380 version_type=irix
21381 fi ;;
21382 esac
21383 need_lib_prefix=no
21384 need_version=no
21385 soname_spec='${libname}${release}${shared_ext}$major'
21386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21387 case $host_os in
21388 irix5* | nonstopux*)
21389 libsuff= shlibsuff=
21392 case $LD in # libtool.m4 will add one of these switches to LD
21393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21394 libsuff= shlibsuff= libmagic=32-bit;;
21395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21396 libsuff=32 shlibsuff=N32 libmagic=N32;;
21397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21399 *) libsuff= shlibsuff= libmagic=never-match;;
21400 esac
21402 esac
21403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21404 shlibpath_overrides_runpath=no
21405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21407 hardcode_into_libs=yes
21410 # No shared lib support for Linux oldld, aout, or coff.
21411 linux*oldld* | linux*aout* | linux*coff*)
21412 dynamic_linker=no
21415 # This must be Linux ELF.
21416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21417 version_type=linux
21418 need_lib_prefix=no
21419 need_version=no
21420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21421 soname_spec='${libname}${release}${shared_ext}$major'
21422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21423 shlibpath_var=LD_LIBRARY_PATH
21424 shlibpath_overrides_runpath=no
21426 # Some binutils ld are patched to set DT_RUNPATH
21427 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21428 $as_echo_n "(cached) " >&6
21429 else
21430 lt_cv_shlibpath_overrides_runpath=no
21431 save_LDFLAGS=$LDFLAGS
21432 save_libdir=$libdir
21433 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21434 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21439 main ()
21443 return 0;
21445 _ACEOF
21446 if ac_fn_cxx_try_link "$LINENO"; then :
21447 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21448 lt_cv_shlibpath_overrides_runpath=yes
21451 rm -f core conftest.err conftest.$ac_objext \
21452 conftest$ac_exeext conftest.$ac_ext
21453 LDFLAGS=$save_LDFLAGS
21454 libdir=$save_libdir
21458 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21460 # This implies no fast_install, which is unacceptable.
21461 # Some rework will be needed to allow for fast_install
21462 # before this can be enabled.
21463 hardcode_into_libs=yes
21465 # Append ld.so.conf contents to the search path
21466 if test -f /etc/ld.so.conf; then
21467 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' ' '`
21468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21471 # We used to test for /lib/ld.so.1 and disable shared libraries on
21472 # powerpc, because MkLinux only supported shared libraries with the
21473 # GNU dynamic linker. Since this was broken with cross compilers,
21474 # most powerpc-linux boxes support dynamic linking these days and
21475 # people can always --disable-shared, the test was removed, and we
21476 # assume the GNU/Linux dynamic linker is in use.
21477 dynamic_linker='GNU/Linux ld.so'
21480 netbsd*)
21481 version_type=sunos
21482 need_lib_prefix=no
21483 need_version=no
21484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21487 dynamic_linker='NetBSD (a.out) ld.so'
21488 else
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 dynamic_linker='NetBSD ld.elf_so'
21493 shlibpath_var=LD_LIBRARY_PATH
21494 shlibpath_overrides_runpath=yes
21495 hardcode_into_libs=yes
21498 newsos6)
21499 version_type=linux
21500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21501 shlibpath_var=LD_LIBRARY_PATH
21502 shlibpath_overrides_runpath=yes
21505 *nto* | *qnx*)
21506 version_type=qnx
21507 need_lib_prefix=no
21508 need_version=no
21509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21510 soname_spec='${libname}${release}${shared_ext}$major'
21511 shlibpath_var=LD_LIBRARY_PATH
21512 shlibpath_overrides_runpath=no
21513 hardcode_into_libs=yes
21514 dynamic_linker='ldqnx.so'
21517 openbsd*)
21518 version_type=sunos
21519 sys_lib_dlsearch_path_spec="/usr/lib"
21520 need_lib_prefix=no
21521 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21522 case $host_os in
21523 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21524 *) need_version=no ;;
21525 esac
21526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21528 shlibpath_var=LD_LIBRARY_PATH
21529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21530 case $host_os in
21531 openbsd2.[89] | openbsd2.[89].*)
21532 shlibpath_overrides_runpath=no
21535 shlibpath_overrides_runpath=yes
21537 esac
21538 else
21539 shlibpath_overrides_runpath=yes
21543 os2*)
21544 libname_spec='$name'
21545 shrext_cmds=".dll"
21546 need_lib_prefix=no
21547 library_names_spec='$libname${shared_ext} $libname.a'
21548 dynamic_linker='OS/2 ld.exe'
21549 shlibpath_var=LIBPATH
21552 osf3* | osf4* | osf5*)
21553 version_type=osf
21554 need_lib_prefix=no
21555 need_version=no
21556 soname_spec='${libname}${release}${shared_ext}$major'
21557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21558 shlibpath_var=LD_LIBRARY_PATH
21559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21560 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21563 rdos*)
21564 dynamic_linker=no
21567 solaris*)
21568 version_type=linux
21569 need_lib_prefix=no
21570 need_version=no
21571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21572 soname_spec='${libname}${release}${shared_ext}$major'
21573 shlibpath_var=LD_LIBRARY_PATH
21574 shlibpath_overrides_runpath=yes
21575 hardcode_into_libs=yes
21576 # ldd complains unless libraries are executable
21577 postinstall_cmds='chmod +x $lib'
21580 sunos4*)
21581 version_type=sunos
21582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21584 shlibpath_var=LD_LIBRARY_PATH
21585 shlibpath_overrides_runpath=yes
21586 if test "$with_gnu_ld" = yes; then
21587 need_lib_prefix=no
21589 need_version=yes
21592 sysv4 | sysv4.3*)
21593 version_type=linux
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 soname_spec='${libname}${release}${shared_ext}$major'
21596 shlibpath_var=LD_LIBRARY_PATH
21597 case $host_vendor in
21598 sni)
21599 shlibpath_overrides_runpath=no
21600 need_lib_prefix=no
21601 runpath_var=LD_RUN_PATH
21603 siemens)
21604 need_lib_prefix=no
21606 motorola)
21607 need_lib_prefix=no
21608 need_version=no
21609 shlibpath_overrides_runpath=no
21610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21612 esac
21615 sysv4*MP*)
21616 if test -d /usr/nec ;then
21617 version_type=linux
21618 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21619 soname_spec='$libname${shared_ext}.$major'
21620 shlibpath_var=LD_LIBRARY_PATH
21624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21625 version_type=freebsd-elf
21626 need_lib_prefix=no
21627 need_version=no
21628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21629 soname_spec='${libname}${release}${shared_ext}$major'
21630 shlibpath_var=LD_LIBRARY_PATH
21631 shlibpath_overrides_runpath=yes
21632 hardcode_into_libs=yes
21633 if test "$with_gnu_ld" = yes; then
21634 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21635 else
21636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21637 case $host_os in
21638 sco3.2v5*)
21639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21641 esac
21643 sys_lib_dlsearch_path_spec='/usr/lib'
21646 tpf*)
21647 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21648 version_type=linux
21649 need_lib_prefix=no
21650 need_version=no
21651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21652 shlibpath_var=LD_LIBRARY_PATH
21653 shlibpath_overrides_runpath=no
21654 hardcode_into_libs=yes
21657 uts4*)
21658 version_type=linux
21659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21660 soname_spec='${libname}${release}${shared_ext}$major'
21661 shlibpath_var=LD_LIBRARY_PATH
21665 dynamic_linker=no
21667 esac
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21669 $as_echo "$dynamic_linker" >&6; }
21670 test "$dynamic_linker" = no && can_build_shared=no
21672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21673 if test "$GCC" = yes; then
21674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21677 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21678 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21680 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21681 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21723 hardcode_action_CXX=
21724 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21725 test -n "$runpath_var_CXX" ||
21726 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21728 # We can hardcode non-existent directories.
21729 if test "$hardcode_direct_CXX" != no &&
21730 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21731 # have to relink, otherwise we might link with an installed library
21732 # when we should be linking with a yet-to-be-installed one
21733 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21734 test "$hardcode_minus_L_CXX" != no; then
21735 # Linking always hardcodes the temporary library directory.
21736 hardcode_action_CXX=relink
21737 else
21738 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21739 hardcode_action_CXX=immediate
21741 else
21742 # We cannot hardcode anything, or else we can only hardcode existing
21743 # directories.
21744 hardcode_action_CXX=unsupported
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21747 $as_echo "$hardcode_action_CXX" >&6; }
21749 if test "$hardcode_action_CXX" = relink ||
21750 test "$inherit_rpath_CXX" = yes; then
21751 # Fast installation is not supported
21752 enable_fast_install=no
21753 elif test "$shlibpath_overrides_runpath" = yes ||
21754 test "$enable_shared" = no; then
21755 # Fast installation is not necessary
21756 enable_fast_install=needless
21765 fi # test -n "$compiler"
21767 CC=$lt_save_CC
21768 LDCXX=$LD
21769 LD=$lt_save_LD
21770 GCC=$lt_save_GCC
21771 with_gnu_ld=$lt_save_with_gnu_ld
21772 lt_cv_path_LDCXX=$lt_cv_path_LD
21773 lt_cv_path_LD=$lt_save_path_LD
21774 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21775 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21776 fi # test "$_lt_caught_CXX_error" != yes
21778 ac_ext=cpp
21779 ac_cpp='$CXXCPP $CPPFLAGS'
21780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21799 # Only expand once:
21805 # Identify the assembler which will work hand-in-glove with the newly
21806 # built GCC, so that we can examine its features. This is the assembler
21807 # which will be driven by the driver program.
21809 # If build != host, and we aren't building gas in-tree, we identify a
21810 # build->target assembler and hope that it will have the same features
21811 # as the host->target assembler we'll be using.
21812 gcc_cv_gas_major_version=
21813 gcc_cv_gas_minor_version=
21814 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21816 if test "${gcc_cv_as+set}" = set; then :
21818 else
21820 if test -x "$DEFAULT_ASSEMBLER"; then
21821 gcc_cv_as="$DEFAULT_ASSEMBLER"
21822 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21823 && test -f ../gas/Makefile \
21824 && test x$build = x$host; then
21825 gcc_cv_as=../gas/as-new$build_exeext
21826 elif test -x as$build_exeext; then
21827 # Build using assembler in the current directory.
21828 gcc_cv_as=./as$build_exeext
21829 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21830 gcc_cv_as="$AS_FOR_TARGET"
21831 else
21832 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21833 set dummy $AS_FOR_TARGET; ac_word=$2
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21835 $as_echo_n "checking for $ac_word... " >&6; }
21836 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21837 $as_echo_n "(cached) " >&6
21838 else
21839 case $gcc_cv_as in
21840 [\\/]* | ?:[\\/]*)
21841 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21845 for as_dir in $PATH
21847 IFS=$as_save_IFS
21848 test -z "$as_dir" && as_dir=.
21849 for ac_exec_ext in '' $ac_executable_extensions; do
21850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21851 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21853 break 2
21855 done
21856 done
21857 IFS=$as_save_IFS
21860 esac
21862 gcc_cv_as=$ac_cv_path_gcc_cv_as
21863 if test -n "$gcc_cv_as"; then
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21865 $as_echo "$gcc_cv_as" >&6; }
21866 else
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21868 $as_echo "no" >&6; }
21875 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21877 case "$ORIGINAL_AS_FOR_TARGET" in
21878 ./as | ./as$build_exeext) ;;
21879 *) ac_config_files="$ac_config_files as:exec-tool.in"
21881 esac
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21884 $as_echo_n "checking what assembler to use... " >&6; }
21885 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21886 # Single tree build which includes gas. We want to prefer it
21887 # over whatever linker top-level may have detected, since
21888 # we'll use what we're building after installation anyway.
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21890 $as_echo "newly built gas" >&6; }
21891 in_tree_gas=yes
21892 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21893 for f in $gcc_cv_as_bfd_srcdir/configure \
21894 $gcc_cv_as_gas_srcdir/configure \
21895 $gcc_cv_as_gas_srcdir/configure.ac \
21896 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21897 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21898 if test x$gcc_cv_gas_version != x; then
21899 break
21901 done
21902 case $gcc_cv_gas_version in
21903 VERSION=[0-9]*) ;;
21904 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21905 esac
21906 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21907 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21908 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21909 case $gcc_cv_gas_patch_version in
21910 "") gcc_cv_gas_patch_version="0" ;;
21911 esac
21912 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21913 + $gcc_cv_gas_minor_version \) \* 1000 \
21914 + $gcc_cv_gas_patch_version`
21916 in_tree_gas_is_elf=no
21917 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21918 || (grep 'obj_format = multi' ../gas/Makefile \
21919 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21920 then
21921 in_tree_gas_is_elf=yes
21923 else
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21925 $as_echo "$gcc_cv_as" >&6; }
21926 in_tree_gas=no
21929 default_ld=
21930 # Check whether --enable-ld was given.
21931 if test "${enable_ld+set}" = set; then :
21932 enableval=$enable_ld; case "${enableval}" in
21934 default_ld=ld.gold
21936 esac
21940 install_gold_as_default=no
21941 # Check whether --enable-gold was given.
21942 if test "${enable_gold+set}" = set; then :
21943 enableval=$enable_gold; case "${enableval}" in
21944 default)
21945 install_gold_as_default=yes
21947 yes)
21948 if test x${default_ld} != x; then
21949 install_gold_as_default=yes
21955 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21957 esac
21961 # Identify the linker which will work hand-in-glove with the newly
21962 # built GCC, so that we can examine its features. This is the linker
21963 # which will be driven by the driver program.
21965 # If build != host, and we aren't building gas in-tree, we identify a
21966 # build->target linker and hope that it will have the same features
21967 # as the host->target linker we'll be using.
21968 gcc_cv_gld_major_version=
21969 gcc_cv_gld_minor_version=
21970 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21971 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21972 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21974 if test "${gcc_cv_ld+set}" = set; then :
21976 else
21978 if test -x "$DEFAULT_LINKER"; then
21979 gcc_cv_ld="$DEFAULT_LINKER"
21980 elif test $install_gold_as_default = yes \
21981 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21982 && test -f ../gold/Makefile \
21983 && test x$build = x$host; then
21984 gcc_cv_ld=../gold/ld-new$build_exeext
21985 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21986 && test -f ../ld/Makefile \
21987 && test x$build = x$host; then
21988 gcc_cv_ld=../ld/ld-new$build_exeext
21989 elif test -x collect-ld$build_exeext; then
21990 # Build using linker in the current directory.
21991 gcc_cv_ld=./collect-ld$build_exeext
21992 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21993 gcc_cv_ld="$LD_FOR_TARGET"
21994 else
21995 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21996 set dummy $LD_FOR_TARGET; ac_word=$2
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21998 $as_echo_n "checking for $ac_word... " >&6; }
21999 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22000 $as_echo_n "(cached) " >&6
22001 else
22002 case $gcc_cv_ld in
22003 [\\/]* | ?:[\\/]*)
22004 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22008 for as_dir in $PATH
22010 IFS=$as_save_IFS
22011 test -z "$as_dir" && as_dir=.
22012 for ac_exec_ext in '' $ac_executable_extensions; do
22013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22014 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22016 break 2
22018 done
22019 done
22020 IFS=$as_save_IFS
22023 esac
22025 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22026 if test -n "$gcc_cv_ld"; then
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22028 $as_echo "$gcc_cv_ld" >&6; }
22029 else
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22031 $as_echo "no" >&6; }
22038 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22039 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22040 # if the PLUGIN_LD is set ld-new, just have it as ld
22041 # as that is the installed named.
22042 if test x$PLUGIN_LD_SUFFIX = xld-new \
22043 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22044 PLUGIN_LD_SUFFIX=ld
22047 # Check whether --with-plugin-ld was given.
22048 if test "${with_plugin_ld+set}" = set; then :
22049 withval=$with_plugin_ld; if test x"$withval" != x; then
22050 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22051 PLUGIN_LD_SUFFIX="$withval"
22057 cat >>confdefs.h <<_ACEOF
22058 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22059 _ACEOF
22062 # Check to see if we are using gold instead of ld
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22064 $as_echo_n "checking whether we are using gold... " >&6; }
22065 ld_is_gold=no
22066 if test x$gcc_cv_ld != x; then
22067 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22068 | grep "GNU gold" > /dev/null; then
22069 ld_is_gold=yes
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22073 $as_echo "$ld_is_gold" >&6; }
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22076 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22077 # Check to see if default ld is not gold, but gold is
22078 # available and has support for split stack. If gcc was configured
22079 # with gold then no checking is done.
22081 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22083 # For platforms other than powerpc64*, enable as appropriate.
22085 gold_non_default=no
22086 ld_gold=`which ${gcc_cv_ld}.gold`
22087 # Make sure this gold has minimal split stack support
22088 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22089 ld_vers=`$ld_gold --version | sed 1q`
22090 gold_vers=`echo $ld_vers | sed -n \
22091 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22092 case $target in
22093 # check that the gold version contains the complete split stack support
22094 # on powerpc64 big and little endian
22095 powerpc64*-*-*)
22096 case "$gold_vers" in
22097 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22099 *) gold_non_default=no
22101 esac
22103 esac
22105 if test $gold_non_default = yes; then
22107 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22112 $as_echo "$gold_non_default" >&6; }
22114 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22116 case "$ORIGINAL_LD_FOR_TARGET" in
22117 ./collect-ld | ./collect-ld$build_exeext) ;;
22118 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22120 esac
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22123 $as_echo_n "checking what linker to use... " >&6; }
22124 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22125 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22126 # Single tree build which includes ld. We want to prefer it
22127 # over whatever linker top-level may have detected, since
22128 # we'll use what we're building after installation anyway.
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22130 $as_echo "newly built ld" >&6; }
22131 in_tree_ld=yes
22132 in_tree_ld_is_elf=no
22133 if (grep 'EMUL = .*elf' ../ld/Makefile \
22134 || grep 'EMUL = .*linux' ../ld/Makefile \
22135 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22136 in_tree_ld_is_elf=yes
22137 elif test "$ld_is_gold" = yes; then
22138 in_tree_ld_is_elf=yes
22140 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
22142 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22143 if test x$gcc_cv_gld_version != x; then
22144 break
22146 done
22147 case $gcc_cv_gld_version in
22148 VERSION=[0-9]*) ;;
22149 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22150 esac
22151 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22152 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22153 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22154 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22155 else
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22157 $as_echo "$gcc_cv_ld" >&6; }
22158 in_tree_ld=no
22159 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22160 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22161 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22167 # Figure out what nm we will be using.
22168 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22169 if test "${gcc_cv_nm+set}" = set; then :
22171 else
22173 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22174 && test -f ../binutils/Makefile \
22175 && test x$build = x$host; then
22176 gcc_cv_nm=../binutils/nm-new$build_exeext
22177 elif test -x nm$build_exeext; then
22178 gcc_cv_nm=./nm$build_exeext
22179 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22180 gcc_cv_nm="$NM_FOR_TARGET"
22181 else
22182 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22183 set dummy $NM_FOR_TARGET; ac_word=$2
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22185 $as_echo_n "checking for $ac_word... " >&6; }
22186 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22187 $as_echo_n "(cached) " >&6
22188 else
22189 case $gcc_cv_nm in
22190 [\\/]* | ?:[\\/]*)
22191 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195 for as_dir in $PATH
22197 IFS=$as_save_IFS
22198 test -z "$as_dir" && as_dir=.
22199 for ac_exec_ext in '' $ac_executable_extensions; do
22200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22201 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22203 break 2
22205 done
22206 done
22207 IFS=$as_save_IFS
22210 esac
22212 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22213 if test -n "$gcc_cv_nm"; then
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22215 $as_echo "$gcc_cv_nm" >&6; }
22216 else
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22218 $as_echo "no" >&6; }
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22226 $as_echo_n "checking what nm to use... " >&6; }
22227 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22228 # Single tree build which includes binutils.
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22230 $as_echo "newly built nm" >&6; }
22231 in_tree_nm=yes
22232 else
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22234 $as_echo "$gcc_cv_nm" >&6; }
22235 in_tree_nm=no
22238 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22240 case "$ORIGINAL_NM_FOR_TARGET" in
22241 ./nm | ./nm$build_exeext) ;;
22242 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22244 esac
22247 # Figure out what objdump we will be using.
22248 if test "${gcc_cv_objdump+set}" = set; then :
22250 else
22252 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22253 && test -f ../binutils/Makefile \
22254 && test x$build = x$host; then
22255 # Single tree build which includes binutils.
22256 gcc_cv_objdump=../binutils/objdump$build_exeext
22257 elif test -x objdump$build_exeext; then
22258 gcc_cv_objdump=./objdump$build_exeext
22259 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22260 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22261 else
22262 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22263 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22265 $as_echo_n "checking for $ac_word... " >&6; }
22266 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 case $gcc_cv_objdump in
22270 [\\/]* | ?:[\\/]*)
22271 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22275 for as_dir in $PATH
22277 IFS=$as_save_IFS
22278 test -z "$as_dir" && as_dir=.
22279 for ac_exec_ext in '' $ac_executable_extensions; do
22280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22281 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22283 break 2
22285 done
22286 done
22287 IFS=$as_save_IFS
22290 esac
22292 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22293 if test -n "$gcc_cv_objdump"; then
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22295 $as_echo "$gcc_cv_objdump" >&6; }
22296 else
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298 $as_echo "no" >&6; }
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22306 $as_echo_n "checking what objdump to use... " >&6; }
22307 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22308 # Single tree build which includes binutils.
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22310 $as_echo "newly built objdump" >&6; }
22311 elif test x$gcc_cv_objdump = x; then
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22313 $as_echo "not found" >&6; }
22314 else
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22316 $as_echo "$gcc_cv_objdump" >&6; }
22319 # Figure out what readelf we will be using.
22320 if test "${gcc_cv_readelf+set}" = set; then :
22322 else
22324 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22325 && test -f ../binutils/Makefile \
22326 && test x$build = x$host; then
22327 # Single tree build which includes binutils.
22328 gcc_cv_readelf=../binutils/readelf$build_exeext
22329 elif test -x readelf$build_exeext; then
22330 gcc_cv_readelf=./readelf$build_exeext
22331 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22332 gcc_cv_readelf="$READELF_FOR_TARGET"
22333 else
22334 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22335 set dummy $READELF_FOR_TARGET; ac_word=$2
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22337 $as_echo_n "checking for $ac_word... " >&6; }
22338 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22339 $as_echo_n "(cached) " >&6
22340 else
22341 case $gcc_cv_readelf in
22342 [\\/]* | ?:[\\/]*)
22343 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22347 for as_dir in $PATH
22349 IFS=$as_save_IFS
22350 test -z "$as_dir" && as_dir=.
22351 for ac_exec_ext in '' $ac_executable_extensions; do
22352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22353 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22355 break 2
22357 done
22358 done
22359 IFS=$as_save_IFS
22362 esac
22364 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22365 if test -n "$gcc_cv_readelf"; then
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22367 $as_echo "$gcc_cv_readelf" >&6; }
22368 else
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22370 $as_echo "no" >&6; }
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22378 $as_echo_n "checking what readelf to use... " >&6; }
22379 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22380 # Single tree build which includes binutils.
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22382 $as_echo "newly built readelf" >&6; }
22383 elif test x$gcc_cv_readelf = x; then
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22385 $as_echo "not found" >&6; }
22386 else
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22388 $as_echo "$gcc_cv_readelf" >&6; }
22391 # Figure out what assembler alignment features are present.
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22393 $as_echo_n "checking assembler flags... " >&6; }
22394 if test "${gcc_cv_as_flags+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22396 else
22397 case "$target" in
22398 i[34567]86-*-linux*)
22399 gcc_cv_as_flags=--32
22401 x86_64-*-linux-gnux32)
22402 gcc_cv_as_flags=--x32
22404 x86_64-*-linux*)
22405 gcc_cv_as_flags=--64
22407 powerpc*-*-darwin*)
22408 gcc_cv_as_flags="-arch ppc"
22411 gcc_cv_as_flags=" "
22413 esac
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22416 $as_echo "$gcc_cv_as_flags" >&6; }
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22419 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22420 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22422 else
22423 gcc_cv_as_balign_and_p2align=no
22424 if test $in_tree_gas = yes; then
22425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22426 then gcc_cv_as_balign_and_p2align=yes
22428 elif test x$gcc_cv_as != x; then
22429 $as_echo '.balign 4
22430 .p2align 2' > conftest.s
22431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22433 (eval $ac_try) 2>&5
22434 ac_status=$?
22435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22436 test $ac_status = 0; }; }
22437 then
22438 gcc_cv_as_balign_and_p2align=yes
22439 else
22440 echo "configure: failed program was" >&5
22441 cat conftest.s >&5
22443 rm -f conftest.o conftest.s
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22447 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22448 if test $gcc_cv_as_balign_and_p2align = yes; then
22450 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22456 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22457 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22458 $as_echo_n "(cached) " >&6
22459 else
22460 gcc_cv_as_max_skip_p2align=no
22461 if test $in_tree_gas = yes; then
22462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22463 then gcc_cv_as_max_skip_p2align=yes
22465 elif test x$gcc_cv_as != x; then
22466 $as_echo '.p2align 4,,7' > conftest.s
22467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22469 (eval $ac_try) 2>&5
22470 ac_status=$?
22471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22472 test $ac_status = 0; }; }
22473 then
22474 gcc_cv_as_max_skip_p2align=yes
22475 else
22476 echo "configure: failed program was" >&5
22477 cat conftest.s >&5
22479 rm -f conftest.o conftest.s
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22483 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22484 if test $gcc_cv_as_max_skip_p2align = yes; then
22486 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22492 $as_echo_n "checking assembler for .literal16... " >&6; }
22493 if test "${gcc_cv_as_literal16+set}" = set; then :
22494 $as_echo_n "(cached) " >&6
22495 else
22496 gcc_cv_as_literal16=no
22497 if test $in_tree_gas = yes; then
22498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22499 then gcc_cv_as_literal16=yes
22501 elif test x$gcc_cv_as != x; then
22502 $as_echo '.literal16' > conftest.s
22503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22505 (eval $ac_try) 2>&5
22506 ac_status=$?
22507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22508 test $ac_status = 0; }; }
22509 then
22510 gcc_cv_as_literal16=yes
22511 else
22512 echo "configure: failed program was" >&5
22513 cat conftest.s >&5
22515 rm -f conftest.o conftest.s
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22519 $as_echo "$gcc_cv_as_literal16" >&6; }
22520 if test $gcc_cv_as_literal16 = yes; then
22522 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22528 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22529 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22530 $as_echo_n "(cached) " >&6
22531 else
22532 gcc_cv_as_subsection_m1=no
22533 if test $in_tree_gas = yes; then
22534 if test $in_tree_gas_is_elf = yes \
22535 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22536 then gcc_cv_as_subsection_m1=yes
22538 elif test x$gcc_cv_as != x; then
22539 $as_echo 'conftest_label1: .word 0
22540 .subsection -1
22541 conftest_label2: .word 0
22542 .previous' > conftest.s
22543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
22547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22548 test $ac_status = 0; }; }
22549 then
22550 if test x$gcc_cv_nm != x; then
22551 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22552 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22553 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22554 then :
22555 else gcc_cv_as_subsection_m1=yes
22557 rm -f conftest.nm1 conftest.nm2
22559 else
22560 echo "configure: failed program was" >&5
22561 cat conftest.s >&5
22563 rm -f conftest.o conftest.s
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22567 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22568 if test $gcc_cv_as_subsection_m1 = yes; then
22570 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22576 $as_echo_n "checking assembler for .weak... " >&6; }
22577 if test "${gcc_cv_as_weak+set}" = set; then :
22578 $as_echo_n "(cached) " >&6
22579 else
22580 gcc_cv_as_weak=no
22581 if test $in_tree_gas = yes; then
22582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22583 then gcc_cv_as_weak=yes
22585 elif test x$gcc_cv_as != x; then
22586 $as_echo ' .weak foobar' > conftest.s
22587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22589 (eval $ac_try) 2>&5
22590 ac_status=$?
22591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22592 test $ac_status = 0; }; }
22593 then
22594 gcc_cv_as_weak=yes
22595 else
22596 echo "configure: failed program was" >&5
22597 cat conftest.s >&5
22599 rm -f conftest.o conftest.s
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22603 $as_echo "$gcc_cv_as_weak" >&6; }
22604 if test $gcc_cv_as_weak = yes; then
22606 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22612 $as_echo_n "checking assembler for .weakref... " >&6; }
22613 if test "${gcc_cv_as_weakref+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22615 else
22616 gcc_cv_as_weakref=no
22617 if test $in_tree_gas = yes; then
22618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22619 then gcc_cv_as_weakref=yes
22621 elif test x$gcc_cv_as != x; then
22622 $as_echo ' .weakref foobar, barfnot' > conftest.s
22623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22628 test $ac_status = 0; }; }
22629 then
22630 gcc_cv_as_weakref=yes
22631 else
22632 echo "configure: failed program was" >&5
22633 cat conftest.s >&5
22635 rm -f conftest.o conftest.s
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22639 $as_echo "$gcc_cv_as_weakref" >&6; }
22640 if test $gcc_cv_as_weakref = yes; then
22642 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22648 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22649 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22650 $as_echo_n "(cached) " >&6
22651 else
22652 gcc_cv_as_nsubspa_comdat=no
22653 if test $in_tree_gas = yes; then
22654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22655 then gcc_cv_as_nsubspa_comdat=yes
22657 elif test x$gcc_cv_as != x; then
22658 $as_echo ' .SPACE $TEXT$
22659 .NSUBSPA $CODE$,COMDAT' > conftest.s
22660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22662 (eval $ac_try) 2>&5
22663 ac_status=$?
22664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22665 test $ac_status = 0; }; }
22666 then
22667 gcc_cv_as_nsubspa_comdat=yes
22668 else
22669 echo "configure: failed program was" >&5
22670 cat conftest.s >&5
22672 rm -f conftest.o conftest.s
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22676 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22677 if test $gcc_cv_as_nsubspa_comdat = yes; then
22679 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22684 # .hidden needs to be supported in both the assembler and the linker,
22685 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22686 # This is irritatingly difficult to feature test for; we have to check the
22687 # date string after the version number. If we've got an in-tree
22688 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22689 # to be safe.
22690 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22691 case "${target}" in
22692 *-*-aix*)
22693 conftest_s=' .globl foobar,hidden'
22696 conftest_s=' .hidden foobar
22697 foobar:'
22699 esac
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22701 $as_echo_n "checking assembler for .hidden... " >&6; }
22702 if test "${gcc_cv_as_hidden+set}" = set; then :
22703 $as_echo_n "(cached) " >&6
22704 else
22705 gcc_cv_as_hidden=no
22706 if test $in_tree_gas = yes; then
22707 if test $in_tree_gas_is_elf = yes \
22708 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22709 then gcc_cv_as_hidden=yes
22711 elif test x$gcc_cv_as != x; then
22712 $as_echo "$conftest_s" > conftest.s
22713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22719 then
22720 gcc_cv_as_hidden=yes
22721 else
22722 echo "configure: failed program was" >&5
22723 cat conftest.s >&5
22725 rm -f conftest.o conftest.s
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22729 $as_echo "$gcc_cv_as_hidden" >&6; }
22732 case "${target}" in
22733 *-*-darwin*)
22734 # Darwin as has some visibility support, though with a different syntax.
22735 gcc_cv_as_hidden=yes
22737 esac
22739 # gnu_indirect_function type is an extension proposed at
22740 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22741 # selection of function implementation
22742 # Check whether --enable-gnu-indirect-function was given.
22743 if test "${enable_gnu_indirect_function+set}" = set; then :
22744 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22745 yes | no) ;;
22746 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22747 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22748 esac
22749 else
22750 enable_gnu_indirect_function="$default_gnu_indirect_function"
22754 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22756 cat >>confdefs.h <<_ACEOF
22757 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22758 _ACEOF
22762 if test $in_tree_ld != yes ; then
22763 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22764 if echo "$ld_ver" | grep GNU > /dev/null; then
22765 if test x"$ld_is_gold" = xyes; then
22766 # GNU gold --version looks like this:
22768 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22770 # We extract the binutils version which is more familiar and specific
22771 # than the gold version.
22772 ld_vers=`echo $ld_ver | sed -n \
22773 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22774 else
22775 # GNU ld --version looks like this:
22777 # GNU ld (GNU Binutils) 2.21.51.20110225
22778 ld_vers=`echo $ld_ver | sed -n \
22779 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22781 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'`
22782 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22783 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22784 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22785 else
22786 case "${target}" in
22787 *-*-solaris2*)
22788 # Solaris 2 ld -V output looks like this for a regular version:
22790 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22792 # but test versions add stuff at the end:
22794 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22796 # In Solaris 11.4, this was changed to
22798 # ld: Solaris ELF Utilities: 11.4-1.3123
22800 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22801 # numbers can be used in ld.so.1 feature checks even if a different
22802 # linker is configured.
22803 ld_ver=`$gcc_cv_ld -V 2>&1`
22804 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22805 ld_vers=`echo $ld_ver | sed -n \
22806 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22807 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22808 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22811 esac
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22816 $as_echo_n "checking linker for .hidden support... " >&6; }
22817 if test "${gcc_cv_ld_hidden+set}" = set; then :
22818 $as_echo_n "(cached) " >&6
22819 else
22820 if test $in_tree_ld = yes ; then
22821 gcc_cv_ld_hidden=no
22822 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 \
22823 && test $in_tree_ld_is_elf = yes; then
22824 gcc_cv_ld_hidden=yes
22826 else
22827 gcc_cv_ld_hidden=yes
22828 if test x"$ld_is_gold" = xyes; then
22830 elif echo "$ld_ver" | grep GNU > /dev/null; then
22831 case "${target}" in
22832 mmix-knuth-mmixware)
22833 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22834 gcc_cv_ld_hidden=no
22836 esac
22837 if test 0"$ld_date" -lt 20020404; then
22838 if test -n "$ld_date"; then
22839 # If there was date string, but was earlier than 2002-04-04, fail
22840 gcc_cv_ld_hidden=no
22841 elif test -z "$ld_vers"; then
22842 # If there was no date string nor ld version number, something is wrong
22843 gcc_cv_ld_hidden=no
22844 else
22845 test -z "$ld_vers_patch" && ld_vers_patch=0
22846 if test "$ld_vers_major" -lt 2; then
22847 gcc_cv_ld_hidden=no
22848 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22849 gcc_cv_ld_hidden="no"
22850 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22851 gcc_cv_ld_hidden=no
22855 else
22856 case "${target}" in
22857 *-*-aix[789]*)
22858 gcc_cv_ld_hidden=yes
22860 *-*-darwin*)
22861 # Darwin ld has some visibility support.
22862 gcc_cv_ld_hidden=yes
22864 hppa64*-*-hpux* | ia64*-*-hpux*)
22865 gcc_cv_ld_hidden=yes
22867 *-*-solaris2.1[0-9]*)
22868 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22869 # .symbolic was only added in Solaris 9 12/02.
22870 gcc_cv_ld_hidden=yes
22873 gcc_cv_ld_hidden=no
22875 esac
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22880 $as_echo "$gcc_cv_ld_hidden" >&6; }
22881 libgcc_visibility=no
22884 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22885 libgcc_visibility=yes
22887 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22892 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22893 gcc_cv_ld_ro_rw_mix=unknown
22894 if test $in_tree_ld = yes ; then
22895 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 \
22896 && test $in_tree_ld_is_elf = yes; then
22897 gcc_cv_ld_ro_rw_mix=read-write
22899 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22900 echo '.section myfoosect, "a"' > conftest1.s
22901 echo '.section myfoosect, "aw"' > conftest2.s
22902 echo '.byte 1' >> conftest2.s
22903 echo '.section myfoosect, "a"' > conftest3.s
22904 echo '.byte 0' >> conftest3.s
22905 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22906 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22907 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22908 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22909 conftest2.o conftest3.o > /dev/null 2>&1; then
22910 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22911 | sed -e '/myfoosect/!d' -e N`
22912 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22913 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22914 gcc_cv_ld_ro_rw_mix=read-only
22915 else
22916 gcc_cv_ld_ro_rw_mix=read-write
22920 rm -f conftest.* conftest[123].*
22922 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22924 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22928 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22930 # Check whether --enable-initfini-array was given.
22931 if test "${enable_initfini_array+set}" = set; then :
22932 enableval=$enable_initfini_array;
22933 else
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22936 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22937 if test "${gcc_cv_initfini_array+set}" = set; then :
22938 $as_echo_n "(cached) " >&6
22939 else
22940 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22941 case "${target}" in
22942 ia64-*)
22943 if test "$cross_compiling" = yes; then :
22944 gcc_cv_initfini_array=no
22945 else
22946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22947 /* end confdefs.h. */
22949 #ifndef __ELF__
22950 #error Not an ELF OS
22951 #endif
22952 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22953 if it can be used. */
22954 static int x = -1;
22955 int main (void) { return x; }
22956 int foo (void) { x = 0; }
22957 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22959 _ACEOF
22960 if ac_fn_cxx_try_run "$LINENO"; then :
22961 gcc_cv_initfini_array=yes
22962 else
22963 gcc_cv_initfini_array=no
22965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22966 conftest.$ac_objext conftest.beam conftest.$ac_ext
22970 gcc_cv_initfini_array=no
22971 if test $in_tree_ld = yes ; then
22972 if test "$gcc_cv_gld_major_version" -eq 2 \
22973 -a "$gcc_cv_gld_minor_version" -ge 22 \
22974 -o "$gcc_cv_gld_major_version" -gt 2 \
22975 && test $in_tree_ld_is_elf = yes; then
22976 gcc_cv_initfini_array=yes
22978 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22979 case $target:$gas in
22980 *:yes)
22981 sh_flags='"a"'
22982 sh_type='%progbits'
22984 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22985 sh_flags='"a"'
22986 sh_type='@progbits'
22988 sparc*-*-solaris2*:no)
22989 sh_flags='#alloc'
22990 sh_type='#progbits'
22991 sh_quote='"'
22993 esac
22994 case "$target:$gnu_ld" in
22995 *:yes)
22996 cat > conftest.s <<EOF
22997 .section .dtors,$sh_flags,$sh_type
22998 .balign 4
22999 .byte 'A', 'A', 'A', 'A'
23000 .section .ctors,$sh_flags,$sh_type
23001 .balign 4
23002 .byte 'B', 'B', 'B', 'B'
23003 .section .fini_array.65530,$sh_flags,$sh_type
23004 .balign 4
23005 .byte 'C', 'C', 'C', 'C'
23006 .section .init_array.65530,$sh_flags,$sh_type
23007 .balign 4
23008 .byte 'D', 'D', 'D', 'D'
23009 .section .dtors.64528,$sh_flags,$sh_type
23010 .balign 4
23011 .byte 'E', 'E', 'E', 'E'
23012 .section .ctors.64528,$sh_flags,$sh_type
23013 .balign 4
23014 .byte 'F', 'F', 'F', 'F'
23015 .section .fini_array.01005,$sh_flags,$sh_type
23016 .balign 4
23017 .byte 'G', 'G', 'G', 'G'
23018 .section .init_array.01005,$sh_flags,$sh_type
23019 .balign 4
23020 .byte 'H', 'H', 'H', 'H'
23021 .text
23022 .globl _start
23023 _start:
23025 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23026 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23027 && $gcc_cv_objdump -s -j .init_array conftest \
23028 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23029 && $gcc_cv_objdump -s -j .fini_array conftest \
23030 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23031 gcc_cv_initfini_array=yes
23034 *-*-solaris2*:no)
23035 # When Solaris ld added constructor priority support, it was
23036 # decided to only handle .init_array.N/.fini_array.N since
23037 # there was no need for backwards compatibility with
23038 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23039 # sections with correct execution order resp. to
23040 # .init_array/.fini_array, while gld merges them into
23041 # .init_array/.fini_array.
23042 cat > conftest.s <<EOF
23043 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23044 .align 4
23045 .byte 'C', 'C', 'C', 'C'
23046 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23047 .align 4
23048 .byte 'D', 'D', 'D', 'D'
23049 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23050 .align 4
23051 .byte 'G', 'G', 'G', 'G'
23052 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23053 .align 4
23054 .byte 'H', 'H', 'H', 'H'
23055 .text
23056 .globl _start
23057 _start:
23059 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23060 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23061 && $gcc_cv_objdump -s -j .init_array conftest \
23062 | grep HHHHDDDD > /dev/null 2>&1 \
23063 && $gcc_cv_objdump -s -j .fini_array conftest \
23064 | grep GGGGCCCC > /dev/null 2>&1; then
23065 gcc_cv_initfini_array=yes
23068 esac
23069 rm -f conftest conftest.*
23071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23072 /* end confdefs.h. */
23074 #ifndef __ELF__
23075 # error Not an ELF OS
23076 #endif
23077 #include <stdlib.h>
23078 #if defined __GLIBC_PREREQ
23079 # if __GLIBC_PREREQ (2, 4)
23080 # else
23081 # error GLIBC 2.4 required
23082 # endif
23083 #else
23084 # if defined __sun__ && defined __svr4__
23085 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23086 # else
23087 # error The C library not known to support .init_array/.fini_array
23088 # endif
23089 #endif
23091 _ACEOF
23092 if ac_fn_cxx_try_cpp "$LINENO"; then :
23094 else
23095 gcc_cv_initfini_array=no
23097 rm -f conftest.err conftest.$ac_ext;;
23098 esac
23099 else
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23101 $as_echo_n "checking cross compile... guessing... " >&6; }
23102 gcc_cv_initfini_array=no
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23106 $as_echo "$gcc_cv_initfini_array" >&6; }
23107 enable_initfini_array=$gcc_cv_initfini_array
23112 cat >>confdefs.h <<_ACEOF
23113 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23114 _ACEOF
23118 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23120 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23121 if test "${gcc_cv_as_leb128+set}" = set; then :
23122 $as_echo_n "(cached) " >&6
23123 else
23124 gcc_cv_as_leb128=no
23125 if test $in_tree_gas = yes; then
23126 if test $in_tree_gas_is_elf = yes \
23127 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23128 then gcc_cv_as_leb128=yes
23130 elif test x$gcc_cv_as != x; then
23131 $as_echo ' .data
23132 .uleb128 L2 - L1
23134 .uleb128 1280
23135 .sleb128 -1010
23136 L2:' > conftest.s
23137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23142 test $ac_status = 0; }; }
23143 then
23144 # GAS versions before 2.11 do not support uleb128,
23145 # despite appearing to.
23146 # ??? There exists an elf-specific test that will crash
23147 # the assembler. Perhaps it's better to figure out whether
23148 # arbitrary sections are supported and try the test.
23149 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23150 if echo "$as_ver" | grep GNU > /dev/null; then
23151 as_vers=`echo $as_ver | sed -n \
23152 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23153 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23154 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23155 if test $as_major -eq 2 && test $as_minor -lt 11
23156 then :
23157 else gcc_cv_as_leb128=yes
23160 else
23161 echo "configure: failed program was" >&5
23162 cat conftest.s >&5
23164 rm -f conftest.o conftest.s
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23168 $as_echo "$gcc_cv_as_leb128" >&6; }
23169 if test $gcc_cv_as_leb128 = yes; then
23171 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23174 if test $gcc_cv_as_leb128 != yes; then
23176 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23180 # Check if we have assembler support for unwind directives.
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23182 $as_echo_n "checking assembler for cfi directives... " >&6; }
23183 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23185 else
23186 gcc_cv_as_cfi_directive=no
23187 if test x$gcc_cv_as != x; then
23188 $as_echo ' .text
23189 .cfi_startproc
23190 .cfi_offset 0, 0
23191 .cfi_same_value 1
23192 .cfi_def_cfa 1, 2
23193 .cfi_escape 1, 2, 3, 4, 5
23194 .cfi_endproc' > conftest.s
23195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23200 test $ac_status = 0; }; }
23201 then
23202 case "$target" in
23203 *-*-solaris*)
23204 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23205 # read-only and read-write sections, we need to make sure that the
23206 # assembler used emits read-write .eh_frame sections.
23207 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23208 if test "x$gcc_cv_objdump" != x; then
23209 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23210 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23211 gcc_cv_as_cfi_directive=no
23212 else
23213 case "$target" in
23214 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23215 # On Solaris/x86, make sure that GCC and assembler agree on using
23216 # read-only .eh_frame sections for 64-bit.
23217 if test x$gas = xyes; then
23218 as_ix86_64_opt="--64"
23219 else
23220 as_ix86_64_opt="-xarch=amd64"
23222 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23223 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23224 sed -e /.eh_frame/!d -e N | \
23225 grep READONLY > /dev/null; then
23226 gcc_cv_as_cfi_directive=yes
23227 else
23228 gcc_cv_as_cfi_directive=no
23232 gcc_cv_as_cfi_directive=yes
23234 esac
23236 else
23237 # no objdump, err on the side of caution
23238 gcc_cv_as_cfi_directive=no
23240 else
23241 gcc_cv_as_cfi_directive=yes
23244 *-*-*)
23245 gcc_cv_as_cfi_directive=yes
23247 esac
23248 else
23249 echo "configure: failed program was" >&5
23250 cat conftest.s >&5
23252 rm -f conftest.o conftest.s
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23256 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23259 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23261 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23262 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23263 $as_echo_n "(cached) " >&6
23264 else
23265 gcc_cv_as_cfi_advance_working=no
23266 if test x$gcc_cv_as != x; then
23267 $as_echo ' .text
23268 .cfi_startproc
23269 .cfi_adjust_cfa_offset 64
23270 .skip 75040, 0
23271 .cfi_adjust_cfa_offset 128
23272 .cfi_endproc' > conftest.s
23273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23275 (eval $ac_try) 2>&5
23276 ac_status=$?
23277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23278 test $ac_status = 0; }; }
23279 then
23281 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23282 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23283 gcc_cv_as_cfi_advance_working=yes
23286 else
23287 echo "configure: failed program was" >&5
23288 cat conftest.s >&5
23290 rm -f conftest.o conftest.s
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23294 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23297 else
23298 # no objdump, err on the side of caution
23299 gcc_cv_as_cfi_advance_working=no
23303 cat >>confdefs.h <<_ACEOF
23304 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23305 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23306 _ACEOF
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23311 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23312 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23313 $as_echo_n "(cached) " >&6
23314 else
23315 gcc_cv_as_cfi_personality_directive=no
23316 if test x$gcc_cv_as != x; then
23317 $as_echo ' .text
23318 .cfi_startproc
23319 .cfi_personality 0, symbol
23320 .cfi_endproc' > conftest.s
23321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23326 test $ac_status = 0; }; }
23327 then
23328 gcc_cv_as_cfi_personality_directive=yes
23329 else
23330 echo "configure: failed program was" >&5
23331 cat conftest.s >&5
23333 rm -f conftest.o conftest.s
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23337 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23341 cat >>confdefs.h <<_ACEOF
23342 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23343 then echo 1; else echo 0; fi`
23344 _ACEOF
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23348 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23349 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23350 $as_echo_n "(cached) " >&6
23351 else
23352 gcc_cv_as_cfi_sections_directive=no
23353 if test x$gcc_cv_as != x; then
23354 $as_echo ' .text
23355 .cfi_sections .debug_frame, .eh_frame
23356 .cfi_startproc
23357 .cfi_endproc' > conftest.s
23358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23360 (eval $ac_try) 2>&5
23361 ac_status=$?
23362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23363 test $ac_status = 0; }; }
23364 then
23365 case $target_os in
23366 win32 | pe | cygwin* | mingw32*)
23367 # Need to check that we generated the correct relocation for the
23368 # .debug_frame section. This was fixed for binutils 2.21.
23369 gcc_cv_as_cfi_sections_directive=no
23370 if test "x$gcc_cv_objdump" != x; then
23371 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23372 grep secrel > /dev/null; then
23373 gcc_cv_as_cfi_sections_directive=yes
23378 gcc_cv_as_cfi_sections_directive=yes
23380 esac
23381 else
23382 echo "configure: failed program was" >&5
23383 cat conftest.s >&5
23385 rm -f conftest.o conftest.s
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23389 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23394 cat >>confdefs.h <<_ACEOF
23395 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23396 then echo 1; else echo 0; fi`
23397 _ACEOF
23400 # GAS versions up to and including 2.11.0 may mis-optimize
23401 # .eh_frame data.
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23403 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23404 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23405 $as_echo_n "(cached) " >&6
23406 else
23407 gcc_cv_as_eh_frame=no
23408 if test $in_tree_gas = yes; then
23409 if test $in_tree_gas_is_elf = yes \
23410 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23411 then gcc_cv_as_eh_frame=yes
23413 elif test x$gcc_cv_as != x; then
23414 $as_echo ' .text
23415 .LFB1:
23416 .4byte 0
23417 .L1:
23418 .4byte 0
23419 .LFE1:
23420 .section .eh_frame,"aw",@progbits
23421 __FRAME_BEGIN__:
23422 .4byte .LECIE1-.LSCIE1
23423 .LSCIE1:
23424 .4byte 0x0
23425 .byte 0x1
23426 .ascii "z\0"
23427 .byte 0x1
23428 .byte 0x78
23429 .byte 0x1a
23430 .byte 0x0
23431 .byte 0x4
23432 .4byte 1
23433 .p2align 1
23434 .LECIE1:
23435 .LSFDE1:
23436 .4byte .LEFDE1-.LASFDE1
23437 .LASFDE1:
23438 .4byte .LASFDE1-__FRAME_BEGIN__
23439 .4byte .LFB1
23440 .4byte .LFE1-.LFB1
23441 .byte 0x4
23442 .4byte .LFE1-.LFB1
23443 .byte 0x4
23444 .4byte .L1-.LFB1
23445 .LEFDE1:' > conftest.s
23446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23448 (eval $ac_try) 2>&5
23449 ac_status=$?
23450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23451 test $ac_status = 0; }; }
23452 then
23453 cat > conftest.lit <<EOF
23454 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23455 0010 01000000 12000000 18000000 00000000 ................
23456 0020 08000000 04080000 0044 .........D
23458 cat > conftest.big <<EOF
23459 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23460 0010 00000001 00000012 00000018 00000000 ................
23461 0020 00000008 04000000 0844 .........D
23463 # If the assembler didn't choke, and we can objdump,
23464 # and we got the correct data, then succeed.
23465 # The text in the here-document typically retains its unix-style line
23466 # endings, while the output of objdump will use host line endings.
23467 # Therefore, use diff -b for the comparisons.
23468 if test x$gcc_cv_objdump != x \
23469 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23470 | tail -3 > conftest.got \
23471 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23472 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23473 then
23474 gcc_cv_as_eh_frame=yes
23475 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23477 (eval $ac_try) 2>&5
23478 ac_status=$?
23479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23480 test $ac_status = 0; }; }; then
23481 gcc_cv_as_eh_frame=buggy
23482 else
23483 # Uh oh, what do we do now?
23484 gcc_cv_as_eh_frame=no
23486 else
23487 echo "configure: failed program was" >&5
23488 cat conftest.s >&5
23490 rm -f conftest.o conftest.s
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23494 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23498 if test $gcc_cv_as_eh_frame = buggy; then
23500 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23505 $as_echo_n "checking assembler for section merging support... " >&6; }
23506 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23507 $as_echo_n "(cached) " >&6
23508 else
23509 gcc_cv_as_shf_merge=no
23510 if test $in_tree_gas = yes; then
23511 if test $in_tree_gas_is_elf = yes \
23512 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23513 then gcc_cv_as_shf_merge=yes
23515 elif test x$gcc_cv_as != x; then
23516 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23519 (eval $ac_try) 2>&5
23520 ac_status=$?
23521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23522 test $ac_status = 0; }; }
23523 then
23524 gcc_cv_as_shf_merge=yes
23525 else
23526 echo "configure: failed program was" >&5
23527 cat conftest.s >&5
23529 rm -f conftest.o conftest.s
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23533 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23536 if test $gcc_cv_as_shf_merge = no; then
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23538 $as_echo_n "checking assembler for section merging support... " >&6; }
23539 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23540 $as_echo_n "(cached) " >&6
23541 else
23542 gcc_cv_as_shf_merge=no
23543 if test $in_tree_gas = yes; then
23544 if test $in_tree_gas_is_elf = yes \
23545 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23546 then gcc_cv_as_shf_merge=yes
23548 elif test x$gcc_cv_as != x; then
23549 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }
23556 then
23557 gcc_cv_as_shf_merge=yes
23558 else
23559 echo "configure: failed program was" >&5
23560 cat conftest.s >&5
23562 rm -f conftest.o conftest.s
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23566 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23571 cat >>confdefs.h <<_ACEOF
23572 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23573 _ACEOF
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23577 $as_echo_n "checking assembler for stabs directive... " >&6; }
23578 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23579 $as_echo_n "(cached) " >&6
23580 else
23581 gcc_cv_as_stabs_directive=no
23582 if test x$gcc_cv_as != x; then
23583 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23586 (eval $ac_try) 2>&5
23587 ac_status=$?
23588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23589 test $ac_status = 0; }; }
23590 then
23591 gcc_cv_as_stabs_directive=yes
23592 else
23593 echo "configure: failed program was" >&5
23594 cat conftest.s >&5
23596 rm -f conftest.o conftest.s
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23600 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23601 if test $gcc_cv_as_stabs_directive = yes; then
23603 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23609 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23610 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23611 $as_echo_n "(cached) " >&6
23612 else
23613 gcc_cv_as_comdat_group=no
23614 if test $in_tree_gas = yes; then
23615 if test $in_tree_gas_is_elf = yes \
23616 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23617 then gcc_cv_as_comdat_group=yes
23619 elif test x$gcc_cv_as != x; then
23620 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626 test $ac_status = 0; }; }
23627 then
23628 gcc_cv_as_comdat_group=yes
23629 else
23630 echo "configure: failed program was" >&5
23631 cat conftest.s >&5
23633 rm -f conftest.o conftest.s
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23637 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23640 if test $gcc_cv_as_comdat_group = yes; then
23641 gcc_cv_as_comdat_group_percent=no
23642 gcc_cv_as_comdat_group_group=no
23643 else
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23645 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23646 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23647 $as_echo_n "(cached) " >&6
23648 else
23649 gcc_cv_as_comdat_group_percent=no
23650 if test $in_tree_gas = yes; then
23651 if test $in_tree_gas_is_elf = yes \
23652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23653 then gcc_cv_as_comdat_group_percent=yes
23655 elif test x$gcc_cv_as != x; then
23656 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23662 test $ac_status = 0; }; }
23663 then
23664 gcc_cv_as_comdat_group_percent=yes
23665 else
23666 echo "configure: failed program was" >&5
23667 cat conftest.s >&5
23669 rm -f conftest.o conftest.s
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23673 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23676 if test $gcc_cv_as_comdat_group_percent = yes; then
23677 gcc_cv_as_comdat_group_group=no
23678 else
23679 case "${target}" in
23680 # Sun as uses a completely different syntax.
23681 *-*-solaris2*)
23682 case "${target}" in
23683 sparc*-*-solaris2*)
23684 conftest_s='
23685 .group foo,".text%foo",#comdat
23686 .section ".text%foo", #alloc,#execinstr,#progbits
23687 .globl foo
23688 foo:
23691 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23692 conftest_s='
23693 .group foo,.text%foo,#comdat
23694 .section .text%foo, "ax", @progbits
23695 .globl foo
23696 foo:
23699 esac
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23701 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23702 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23703 $as_echo_n "(cached) " >&6
23704 else
23705 gcc_cv_as_comdat_group_group=no
23706 if test x$gcc_cv_as != x; then
23707 $as_echo "$conftest_s" > conftest.s
23708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23710 (eval $ac_try) 2>&5
23711 ac_status=$?
23712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23713 test $ac_status = 0; }; }
23714 then
23715 gcc_cv_as_comdat_group_group=yes
23716 else
23717 echo "configure: failed program was" >&5
23718 cat conftest.s >&5
23720 rm -f conftest.o conftest.s
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23724 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23728 esac
23729 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23730 gcc_cv_as_comdat_group_group=no
23734 if test x"$ld_is_gold" = xyes; then
23735 comdat_group=yes
23736 elif test $in_tree_ld = yes ; then
23737 comdat_group=no
23738 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 \
23739 && test $in_tree_ld_is_elf = yes; then
23740 comdat_group=yes
23742 elif echo "$ld_ver" | grep GNU > /dev/null; then
23743 comdat_group=yes
23744 if test 0"$ld_date" -lt 20050308; then
23745 if test -n "$ld_date"; then
23746 # If there was date string, but was earlier than 2005-03-08, fail
23747 comdat_group=no
23748 elif test "$ld_vers_major" -lt 2; then
23749 comdat_group=no
23750 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23751 comdat_group=no
23754 else
23755 case "${target}" in
23756 *-*-solaris2.1[1-9]*)
23757 comdat_group=no
23758 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23759 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23760 # version 1.688.
23762 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23763 # least ld version 1.2267.
23764 if test "$ld_vers_major" -gt 1; then
23765 comdat_group=yes
23766 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23767 comdat_group=yes
23768 elif test "$ld_vers_minor" -ge 2267; then
23769 comdat_group=yes
23773 # Assume linkers other than GNU ld don't support COMDAT group.
23774 comdat_group=no
23776 esac
23778 # Allow overriding the automatic COMDAT group tests above.
23779 # Check whether --enable-comdat was given.
23780 if test "${enable_comdat+set}" = set; then :
23781 enableval=$enable_comdat; comdat_group="$enable_comdat"
23784 if test $comdat_group = no; then
23785 gcc_cv_as_comdat_group=no
23786 gcc_cv_as_comdat_group_percent=no
23787 gcc_cv_as_comdat_group_group=no
23790 cat >>confdefs.h <<_ACEOF
23791 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23792 || test $gcc_cv_as_comdat_group_percent = yes \
23793 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23794 _ACEOF
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23798 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23799 if test "${gcc_cv_as_discriminator+set}" = set; then :
23800 $as_echo_n "(cached) " >&6
23801 else
23802 gcc_cv_as_discriminator=no
23803 if test $in_tree_gas = yes; then
23804 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23805 then gcc_cv_as_discriminator=yes
23807 elif test x$gcc_cv_as != x; then
23808 $as_echo ' .text
23809 .file 1 "conf.c"
23810 .loc 1 1 0 discriminator 1' > conftest.s
23811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23813 (eval $ac_try) 2>&5
23814 ac_status=$?
23815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816 test $ac_status = 0; }; }
23817 then
23818 gcc_cv_as_discriminator=yes
23819 else
23820 echo "configure: failed program was" >&5
23821 cat conftest.s >&5
23823 rm -f conftest.o conftest.s
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23827 $as_echo "$gcc_cv_as_discriminator" >&6; }
23828 if test $gcc_cv_as_discriminator = yes; then
23830 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23835 # Thread-local storage - the check is heavily parameterized.
23836 conftest_s=
23837 tls_first_major=
23838 tls_first_minor=
23839 tls_as_opt=
23840 case "$target" in
23841 alpha*-*-*)
23842 conftest_s='
23843 .section ".tdata","awT",@progbits
23844 foo: .long 25
23845 .text
23846 ldq $27,__tls_get_addr($29) !literal!1
23847 lda $16,foo($29) !tlsgd!1
23848 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23849 ldq $27,__tls_get_addr($29) !literal!2
23850 lda $16,foo($29) !tlsldm!2
23851 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23852 ldq $1,foo($29) !gotdtprel
23853 ldah $2,foo($29) !dtprelhi
23854 lda $3,foo($2) !dtprello
23855 lda $4,foo($29) !dtprel
23856 ldq $1,foo($29) !gottprel
23857 ldah $2,foo($29) !tprelhi
23858 lda $3,foo($2) !tprello
23859 lda $4,foo($29) !tprel'
23860 tls_first_major=2
23861 tls_first_minor=13
23862 tls_as_opt=--fatal-warnings
23864 arc*-*-*)
23865 conftest_s='
23866 add_s r0,r0, @foo@tpoff'
23867 tls_first_major=2
23868 tls_first_minor=23
23870 cris-*-*|crisv32-*-*)
23871 conftest_s='
23872 .section ".tdata","awT",@progbits
23873 x: .long 25
23874 .text
23875 move.d x:IE,$r10
23876 nop'
23877 tls_first_major=2
23878 tls_first_minor=20
23879 tls_as_opt=--fatal-warnings
23881 frv*-*-*)
23882 conftest_s='
23883 .section ".tdata","awT",@progbits
23884 x: .long 25
23885 .text
23886 call #gettlsoff(x)'
23887 tls_first_major=2
23888 tls_first_minor=14
23890 hppa*-*-linux*)
23891 conftest_s='
23892 t1: .reg %r20
23893 t2: .reg %r21
23894 gp: .reg %r19
23895 .section ".tdata","awT",@progbits
23896 foo: .long 25
23897 .text
23898 .align 4
23899 addil LT%foo-$tls_gdidx$,gp
23900 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23901 b __tls_get_addr
23903 addil LT%foo-$tls_ldidx$,gp
23904 b __tls_get_addr
23905 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23906 addil LR%foo-$tls_dtpoff$,%ret0
23907 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23908 mfctl %cr27,%t1
23909 addil LT%foo-$tls_ieoff$,gp
23910 ldw RT%foo-$tls_ieoff$(%r1),%t2
23911 add %t1,%t2,%t3
23912 mfctl %cr27,%t1
23913 addil LR%foo-$tls_leoff$,%t1
23914 ldo RR%foo-$tls_leoff$(%r1),%t2'
23915 tls_first_major=2
23916 tls_first_minor=15
23917 tls_as_opt=--fatal-warnings
23919 arm*-*-*)
23920 conftest_s='
23921 .section ".tdata","awT",%progbits
23922 foo: .long 25
23923 .text
23924 .word foo(gottpoff)
23925 .word foo(tpoff)
23926 .word foo(tlsgd)
23927 .word foo(tlsldm)
23928 .word foo(tlsldo)'
23929 tls_first_major=2
23930 tls_first_minor=17
23932 i[34567]86-*-* | x86_64-*-*)
23933 case "$target" in
23934 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23935 on_solaris=yes
23938 on_solaris=no
23940 esac
23941 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23942 conftest_s='
23943 .section .tdata,"awt",@progbits'
23944 tls_first_major=0
23945 tls_first_minor=0
23946 tls_section_flag=t
23948 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23950 else
23951 conftest_s='
23952 .section ".tdata","awT",@progbits'
23953 tls_first_major=2
23954 tls_first_minor=14
23955 tls_section_flag=T
23956 tls_as_opt="--fatal-warnings"
23958 case "$target" in
23959 i[34567]86-*-*)
23960 conftest_s="$conftest_s
23961 foo: .long 25
23962 .text
23963 movl %gs:0, %eax
23964 leal foo@tlsgd(,%ebx,1), %eax
23965 leal foo@tlsldm(%ebx), %eax
23966 leal foo@dtpoff(%eax), %edx
23967 movl foo@gottpoff(%ebx), %eax
23968 subl foo@gottpoff(%ebx), %eax
23969 addl foo@gotntpoff(%ebx), %eax
23970 movl foo@indntpoff, %eax
23971 movl \$foo@tpoff, %eax
23972 subl \$foo@tpoff, %eax
23973 leal foo@ntpoff(%ecx), %eax"
23975 x86_64-*-*)
23976 if test x$on_solaris = xyes; then
23977 case $gas_flag in
23978 yes) tls_as_opt="$tls_as_opt --64" ;;
23979 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23980 esac
23982 conftest_s="$conftest_s
23983 foo: .long 25
23984 .text
23985 movq %fs:0, %rax
23986 leaq foo@tlsgd(%rip), %rdi
23987 leaq foo@tlsld(%rip), %rdi
23988 leaq foo@dtpoff(%rax), %rdx
23989 movq foo@gottpoff(%rip), %rax
23990 movq \$foo@tpoff, %rax"
23992 esac
23994 ia64-*-*)
23995 conftest_s='
23996 .section ".tdata","awT",@progbits
23997 foo: data8 25
23998 .text
23999 addl r16 = @ltoff(@dtpmod(foo#)), gp
24000 addl r17 = @ltoff(@dtprel(foo#)), gp
24001 addl r18 = @ltoff(@tprel(foo#)), gp
24002 addl r19 = @dtprel(foo#), gp
24003 adds r21 = @dtprel(foo#), r13
24004 movl r23 = @dtprel(foo#)
24005 addl r20 = @tprel(foo#), gp
24006 adds r22 = @tprel(foo#), r13
24007 movl r24 = @tprel(foo#)'
24008 tls_first_major=2
24009 tls_first_minor=13
24010 tls_as_opt=--fatal-warnings
24012 microblaze*-*-*)
24013 conftest_s='
24014 .section .tdata,"awT",@progbits
24016 .word 2
24017 .text
24018 addik r5,r20,x@TLSGD
24019 addik r5,r20,x@TLSLDM'
24020 tls_first_major=2
24021 tls_first_minor=20
24022 tls_as_opt='--fatal-warnings'
24024 mips*-*-*)
24025 conftest_s='
24026 .section .tdata,"awT",@progbits
24028 .word 2
24029 .text
24030 addiu $4, $28, %tlsgd(x)
24031 addiu $4, $28, %tlsldm(x)
24032 lui $4, %dtprel_hi(x)
24033 addiu $4, $4, %dtprel_lo(x)
24034 lw $4, %gottprel(x)($28)
24035 lui $4, %tprel_hi(x)
24036 addiu $4, $4, %tprel_lo(x)'
24037 tls_first_major=2
24038 tls_first_minor=16
24039 tls_as_opt='-32 --fatal-warnings'
24041 m68k-*-*)
24042 conftest_s='
24043 .section .tdata,"awT",@progbits
24045 .word 2
24046 .text
24047 foo:
24048 move.l x@TLSGD(%a5),%a0
24049 move.l x@TLSLDM(%a5),%a0
24050 move.l x@TLSLDO(%a5),%a0
24051 move.l x@TLSIE(%a5),%a0
24052 move.l x@TLSLE(%a5),%a0'
24053 tls_first_major=2
24054 tls_first_minor=19
24055 tls_as_opt='--fatal-warnings'
24057 nios2-*-*)
24058 conftest_s='
24059 .section ".tdata","awT",@progbits'
24060 tls_first_major=2
24061 tls_first_minor=23
24062 tls_as_opt="--fatal-warnings"
24064 aarch64*-*-*)
24065 conftest_s='
24066 .section ".tdata","awT",%progbits
24067 foo: .long 25
24068 .text
24069 adrp x0, :tlsgd:x
24070 add x0, x0, #:tlsgd_lo12:x
24071 bl __tls_get_addr
24072 nop'
24073 tls_first_major=2
24074 tls_first_minor=20
24075 tls_as_opt='--fatal-warnings'
24077 powerpc-ibm-aix*)
24078 conftest_s='
24079 .extern __get_tpointer
24080 .toc
24081 LC..1:
24082 .tc a[TC],a[TL]@le
24083 .csect .text[PR]
24084 .tlstest:
24085 lwz 9,LC..1(2)
24086 bla __get_tpointer
24087 lwzx 3,9,3
24088 .globl a
24089 .csect a[TL],4
24091 .space 4'
24092 tls_first_major=0
24093 tls_first_minor=0
24095 powerpc64*-*-*)
24096 conftest_s='
24097 .section ".tdata","awT",@progbits
24098 .align 3
24099 ld0: .space 8
24100 ld1: .space 8
24101 x1: .space 8
24102 x2: .space 8
24103 x3: .space 8
24104 .text
24105 addi 3,2,ld0@got@tlsgd
24106 bl .__tls_get_addr
24108 addi 3,2,ld1@toc
24109 bl .__tls_get_addr
24111 addi 3,2,x1@got@tlsld
24112 bl .__tls_get_addr
24114 addi 9,3,x1@dtprel
24115 bl .__tls_get_addr
24117 addis 9,3,x2@dtprel@ha
24118 addi 9,9,x2@dtprel@l
24119 bl .__tls_get_addr
24121 ld 9,x3@got@dtprel(2)
24122 add 9,9,3
24123 bl .__tls_get_addr
24124 nop'
24125 tls_first_major=2
24126 tls_first_minor=14
24127 tls_as_opt="-a64 --fatal-warnings"
24129 powerpc*-*-*)
24130 conftest_s='
24131 .section ".tdata","awT",@progbits
24132 .align 2
24133 ld0: .space 4
24134 ld1: .space 4
24135 x1: .space 4
24136 x2: .space 4
24137 x3: .space 4
24138 .text
24139 addi 3,31,ld0@got@tlsgd
24140 bl __tls_get_addr
24141 addi 3,31,x1@got@tlsld
24142 bl __tls_get_addr
24143 addi 9,3,x1@dtprel
24144 addis 9,3,x2@dtprel@ha
24145 addi 9,9,x2@dtprel@l
24146 lwz 9,x3@got@tprel(31)
24147 add 9,9,x@tls
24148 addi 9,2,x1@tprel
24149 addis 9,2,x2@tprel@ha
24150 addi 9,9,x2@tprel@l'
24151 tls_first_major=2
24152 tls_first_minor=14
24153 tls_as_opt="-a32 --fatal-warnings"
24155 riscv*-*-*)
24156 conftest_s='
24157 .section .tdata,"awT",@progbits
24158 x: .word 2
24159 .text
24160 la.tls.gd a0,x
24161 call __tls_get_addr'
24162 tls_first_major=2
24163 tls_first_minor=21
24164 tls_as_opt='--fatal-warnings'
24166 s390-*-*)
24167 conftest_s='
24168 .section ".tdata","awT",@progbits
24169 foo: .long 25
24170 .text
24171 .long foo@TLSGD
24172 .long foo@TLSLDM
24173 .long foo@DTPOFF
24174 .long foo@NTPOFF
24175 .long foo@GOTNTPOFF
24176 .long foo@INDNTPOFF
24177 l %r1,foo@GOTNTPOFF(%r12)
24178 l %r1,0(%r1):tls_load:foo
24179 bas %r14,0(%r1,%r13):tls_gdcall:foo
24180 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24181 tls_first_major=2
24182 tls_first_minor=14
24183 tls_as_opt="-m31 --fatal-warnings"
24185 s390x-*-*)
24186 conftest_s='
24187 .section ".tdata","awT",@progbits
24188 foo: .long 25
24189 .text
24190 .quad foo@TLSGD
24191 .quad foo@TLSLDM
24192 .quad foo@DTPOFF
24193 .quad foo@NTPOFF
24194 .quad foo@GOTNTPOFF
24195 lg %r1,foo@GOTNTPOFF(%r12)
24196 larl %r1,foo@INDNTPOFF
24197 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24198 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24199 tls_first_major=2
24200 tls_first_minor=14
24201 tls_as_opt="-m64 -Aesame --fatal-warnings"
24203 sh-*-* | sh[123456789lbe]*-*-*)
24204 conftest_s='
24205 .section ".tdata","awT",@progbits
24206 foo: .long 25
24207 .text
24208 .long foo@TLSGD
24209 .long foo@TLSLDM
24210 .long foo@DTPOFF
24211 .long foo@GOTTPOFF
24212 .long foo@TPOFF'
24213 tls_first_major=2
24214 tls_first_minor=13
24215 tls_as_opt=--fatal-warnings
24217 sparc*-*-*)
24218 case "$target" in
24219 sparc*-sun-solaris2.*)
24220 on_solaris=yes
24223 on_solaris=no
24225 esac
24226 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24227 conftest_s='
24228 .section ".tdata",#alloc,#write,#tls'
24229 tls_first_major=0
24230 tls_first_minor=0
24231 else
24232 conftest_s='
24233 .section ".tdata","awT",@progbits'
24234 tls_first_major=2
24235 tls_first_minor=14
24236 tls_as_opt="-32 --fatal-warnings"
24238 conftest_s="$conftest_s
24239 foo: .long 25
24240 .text
24241 sethi %tgd_hi22(foo), %o0
24242 add %o0, %tgd_lo10(foo), %o1
24243 add %l7, %o1, %o0, %tgd_add(foo)
24244 call __tls_get_addr, %tgd_call(foo)
24245 sethi %tldm_hi22(foo), %l1
24246 add %l1, %tldm_lo10(foo), %l2
24247 add %l7, %l2, %o0, %tldm_add(foo)
24248 call __tls_get_addr, %tldm_call(foo)
24249 sethi %tldo_hix22(foo), %l3
24250 xor %l3, %tldo_lox10(foo), %l4
24251 add %o0, %l4, %l5, %tldo_add(foo)
24252 sethi %tie_hi22(foo), %o3
24253 add %o3, %tie_lo10(foo), %o3
24254 ld [%l7 + %o3], %o2, %tie_ld(foo)
24255 add %g7, %o2, %o4, %tie_add(foo)
24256 sethi %tle_hix22(foo), %l1
24257 xor %l1, %tle_lox10(foo), %o5
24258 ld [%g7 + %o5], %o1"
24260 tilepro*-*-*)
24261 conftest_s='
24262 .section ".tdata","awT",@progbits
24263 foo: .long 25
24264 .text
24265 addli r0, zero, tls_gd(foo)
24266 auli r0, zero, tls_gd_ha16(foo)
24267 addli r0, r0, tls_gd_lo16(foo)
24268 jal __tls_get_addr
24269 addli r0, zero, tls_ie(foo)
24270 auli r0, r0, tls_ie_ha16(foo)
24271 addli r0, r0, tls_ie_lo16(foo)'
24272 tls_first_major=2
24273 tls_first_minor=22
24274 tls_as_opt="--fatal-warnings"
24276 tilegx*-*-*)
24277 conftest_s='
24278 .section ".tdata","awT",@progbits
24279 foo: .long 25
24280 .text
24281 shl16insli r0, zero, hw0_last_tls_gd(foo)
24282 shl16insli r0, zero, hw1_last_tls_gd(foo)
24283 shl16insli r0, r0, hw0_tls_gd(foo)
24284 jal __tls_get_addr
24285 shl16insli r0, zero, hw1_last_tls_ie(foo)
24286 shl16insli r0, r0, hw0_tls_ie(foo)'
24287 tls_first_major=2
24288 tls_first_minor=22
24289 tls_as_opt="--fatal-warnings"
24291 xtensa*-*-*)
24292 conftest_s='
24293 .section ".tdata","awT",@progbits
24294 foo: .long 25
24295 .text
24296 movi a8, foo@TLSFUNC
24297 movi a10, foo@TLSARG
24298 callx8.tls a8, foo@TLSCALL'
24299 tls_first_major=2
24300 tls_first_minor=19
24302 esac
24303 set_have_as_tls=no
24304 if test "x$enable_tls" = xno ; then
24305 : # TLS explicitly disabled.
24306 elif test "x$enable_tls" = xyes ; then
24307 set_have_as_tls=yes # TLS explicitly enabled.
24308 elif test -z "$tls_first_major"; then
24309 : # If we don't have a check, assume no support.
24310 else
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24312 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24313 if test "${gcc_cv_as_tls+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24315 else
24316 gcc_cv_as_tls=no
24317 if test $in_tree_gas = yes; then
24318 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24319 then gcc_cv_as_tls=yes
24321 elif test x$gcc_cv_as != x; then
24322 $as_echo "$conftest_s" > conftest.s
24323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24325 (eval $ac_try) 2>&5
24326 ac_status=$?
24327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24328 test $ac_status = 0; }; }
24329 then
24330 gcc_cv_as_tls=yes
24331 else
24332 echo "configure: failed program was" >&5
24333 cat conftest.s >&5
24335 rm -f conftest.o conftest.s
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24339 $as_echo "$gcc_cv_as_tls" >&6; }
24340 if test $gcc_cv_as_tls = yes; then
24341 set_have_as_tls=yes
24345 if test $set_have_as_tls = yes ; then
24347 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24351 # Target-specific assembler checks.
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24354 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24355 gcc_cv_ld_static_dynamic=no
24356 gcc_cv_ld_static_option='-Bstatic'
24357 gcc_cv_ld_dynamic_option='-Bdynamic'
24358 if test $in_tree_ld = yes ; then
24359 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
24360 gcc_cv_ld_static_dynamic=yes
24362 elif test x$gcc_cv_ld != x; then
24363 # Check if linker supports -Bstatic/-Bdynamic option
24364 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24365 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24366 gcc_cv_ld_static_dynamic=yes
24367 else
24368 case "$target" in
24369 # AIX ld uses -b flags
24370 *-*-aix4.[23]* | *-*-aix[5-9]*)
24371 gcc_cv_ld_static_dynamic=yes
24372 gcc_cv_ld_static_option="-bstatic"
24373 gcc_cv_ld_dynamic_option="-bdynamic"
24375 # HP-UX ld uses -a flags to select between shared and archive.
24376 *-*-hpux*)
24377 if test x"$gnu_ld" = xno; then
24378 gcc_cv_ld_static_dynamic=yes
24379 gcc_cv_ld_static_option="-aarchive_shared"
24380 gcc_cv_ld_dynamic_option="-adefault"
24383 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24384 *-*-solaris2*)
24385 gcc_cv_ld_static_dynamic=yes
24387 esac
24390 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24392 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24395 cat >>confdefs.h <<_ACEOF
24396 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24397 _ACEOF
24400 cat >>confdefs.h <<_ACEOF
24401 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24402 _ACEOF
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24406 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24408 if test x"$demangler_in_ld" = xyes; then
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24410 $as_echo_n "checking linker --demangle support... " >&6; }
24411 gcc_cv_ld_demangle=no
24412 if test $in_tree_ld = yes; then
24413 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 \
24414 gcc_cv_ld_demangle=yes
24416 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24417 # Check if the GNU linker supports --demangle option
24418 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24419 gcc_cv_ld_demangle=yes
24422 if test x"$gcc_cv_ld_demangle" = xyes; then
24424 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24428 $as_echo "$gcc_cv_ld_demangle" >&6; }
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24432 $as_echo_n "checking linker plugin support... " >&6; }
24433 gcc_cv_lto_plugin=0
24434 if test -f liblto_plugin.la; then
24435 save_ld_ver="$ld_ver"
24436 save_ld_vers_major="$ld_vers_major"
24437 save_ld_vers_minor="$ld_vers_minor"
24438 save_ld_is_gold="$ld_is_gold"
24440 ld_is_gold=no
24442 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24443 ld_ver="GNU ld"
24444 # FIXME: ld_is_gold?
24445 ld_vers_major="$gcc_cv_gld_major_version"
24446 ld_vers_minor="$gcc_cv_gld_minor_version"
24447 else
24448 # Determine plugin linker version.
24449 # FIXME: Partial duplicate from above, generalize.
24450 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24451 if echo "$ld_ver" | grep GNU > /dev/null; then
24452 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24453 ld_is_gold=yes
24454 ld_vers=`echo $ld_ver | sed -n \
24455 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24456 else
24457 ld_vers=`echo $ld_ver | sed -n \
24458 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24460 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24461 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24465 # Determine plugin support.
24466 if echo "$ld_ver" | grep GNU > /dev/null; then
24467 # Require GNU ld or gold 2.21+ for plugin support by default.
24468 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24469 gcc_cv_lto_plugin=2
24470 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24471 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24472 gcc_cv_lto_plugin=1
24476 ld_ver="$save_ld_ver"
24477 ld_vers_major="$save_ld_vers_major"
24478 ld_vers_minor="$save_ld_vers_minor"
24479 ld_is_gold="$save_ld_is_gold"
24482 cat >>confdefs.h <<_ACEOF
24483 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24484 _ACEOF
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24487 $as_echo "$gcc_cv_lto_plugin" >&6; }
24489 # Target OS-specific assembler checks.
24491 case "$target_os" in
24492 darwin*)
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24494 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24495 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24496 $as_echo_n "(cached) " >&6
24497 else
24498 gcc_cv_as_mmacosx_version_min=no
24499 if test x$gcc_cv_as != x; then
24500 $as_echo '.text' > conftest.s
24501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24507 then
24508 gcc_cv_as_mmacosx_version_min=yes
24509 else
24510 echo "configure: failed program was" >&5
24511 cat conftest.s >&5
24513 rm -f conftest.o conftest.s
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24517 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24518 if test $gcc_cv_as_mmacosx_version_min = yes; then
24520 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24525 esac
24527 # Target CPU-specific assembler checks.
24529 case "$target" in
24530 aarch64*-*-*)
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24532 $as_echo_n "checking assembler for -mabi option... " >&6; }
24533 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24534 $as_echo_n "(cached) " >&6
24535 else
24536 gcc_cv_as_aarch64_mabi=no
24537 if test x$gcc_cv_as != x; then
24538 $as_echo '.text' > conftest.s
24539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
24543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24544 test $ac_status = 0; }; }
24545 then
24546 gcc_cv_as_aarch64_mabi=yes
24547 else
24548 echo "configure: failed program was" >&5
24549 cat conftest.s >&5
24551 rm -f conftest.o conftest.s
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24555 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24558 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24560 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24562 else
24563 if test x$with_abi = xilp32; then
24564 as_fn_error "Assembler does not support -mabi=ilp32.\
24565 Upgrade the Assembler." "$LINENO" 5
24567 if test x"$with_multilib_list" = xdefault; then
24568 TM_MULTILIB_CONFIG=lp64
24569 else
24570 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24571 for aarch64_multilib in ${aarch64_multilibs}; do
24572 case ${aarch64_multilib} in
24573 ilp32)
24574 as_fn_error "Assembler does not support -mabi=ilp32.\
24575 Upgrade the Assembler." "$LINENO" 5
24579 esac
24580 done
24583 # Check if we have binutils support for relocations types needed by -fpic
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24585 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24586 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24587 $as_echo_n "(cached) " >&6
24588 else
24589 gcc_cv_as_aarch64_picreloc=no
24590 if test x$gcc_cv_as != x; then
24591 $as_echo '
24592 .text
24593 ldr x0, [x2, #:gotpage_lo15:globalsym]
24594 ' > conftest.s
24595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24597 (eval $ac_try) 2>&5
24598 ac_status=$?
24599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24600 test $ac_status = 0; }; }
24601 then
24602 gcc_cv_as_aarch64_picreloc=yes
24603 else
24604 echo "configure: failed program was" >&5
24605 cat conftest.s >&5
24607 rm -f conftest.o conftest.s
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24611 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24612 if test $gcc_cv_as_aarch64_picreloc = yes; then
24614 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24618 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24619 # Check whether --enable-fix-cortex-a53-835769 was given.
24620 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24621 enableval=$enable_fix_cortex_a53_835769;
24622 case $enableval in
24623 yes)
24624 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24629 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24630 Valid choices are 'yes' and 'no'." "$LINENO" 5
24633 esac
24637 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24638 # Check whether --enable-fix-cortex-a53-843419 was given.
24639 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24640 enableval=$enable_fix_cortex_a53_843419;
24641 case $enableval in
24642 yes)
24643 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24648 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24649 Valid choices are 'yes' and 'no'." "$LINENO" 5
24652 esac
24658 # All TARGET_ABI_OSF targets.
24659 alpha*-*-linux* | alpha*-*-*bsd*)
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24661 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24662 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24663 $as_echo_n "(cached) " >&6
24664 else
24665 gcc_cv_as_alpha_explicit_relocs=no
24666 if test $in_tree_gas = yes; then
24667 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24668 then gcc_cv_as_alpha_explicit_relocs=yes
24670 elif test x$gcc_cv_as != x; then
24671 $as_echo ' .set nomacro
24672 .text
24673 extbl $3, $2, $3 !lituse_bytoff!1
24674 ldq $2, a($29) !literal!1
24675 ldq $4, b($29) !literal!2
24676 ldq_u $3, 0($2) !lituse_base!1
24677 ldq $27, f($29) !literal!5
24678 jsr $26, ($27), f !lituse_jsr!5
24679 ldah $29, 0($26) !gpdisp!3
24680 lda $0, c($29) !gprel
24681 ldah $1, d($29) !gprelhigh
24682 lda $1, d($1) !gprellow
24683 lda $29, 0($29) !gpdisp!3' > conftest.s
24684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24689 test $ac_status = 0; }; }
24690 then
24691 gcc_cv_as_alpha_explicit_relocs=yes
24692 else
24693 echo "configure: failed program was" >&5
24694 cat conftest.s >&5
24696 rm -f conftest.o conftest.s
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24700 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24701 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24703 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24708 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24709 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 gcc_cv_as_alpha_jsrdirect_relocs=no
24713 if test $in_tree_gas = yes; then
24714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24715 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24717 elif test x$gcc_cv_as != x; then
24718 $as_echo ' .set nomacro
24719 .text
24720 ldq $27, a($29) !literal!1
24721 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24727 test $ac_status = 0; }; }
24728 then
24729 gcc_cv_as_alpha_jsrdirect_relocs=yes
24730 else
24731 echo "configure: failed program was" >&5
24732 cat conftest.s >&5
24734 rm -f conftest.o conftest.s
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24738 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24739 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24741 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24747 avr-*-*)
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24749 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24750 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24751 $as_echo_n "(cached) " >&6
24752 else
24753 gcc_cv_as_avr_mlink_relax=no
24754 if test x$gcc_cv_as != x; then
24755 $as_echo '.text' > conftest.s
24756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24758 (eval $ac_try) 2>&5
24759 ac_status=$?
24760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761 test $ac_status = 0; }; }
24762 then
24763 gcc_cv_as_avr_mlink_relax=yes
24764 else
24765 echo "configure: failed program was" >&5
24766 cat conftest.s >&5
24768 rm -f conftest.o conftest.s
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24772 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24773 if test $gcc_cv_as_avr_mlink_relax = yes; then
24775 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24781 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24782 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24783 $as_echo_n "(cached) " >&6
24784 else
24785 gcc_cv_as_avr_mrmw=no
24786 if test x$gcc_cv_as != x; then
24787 $as_echo '.text' > conftest.s
24788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24794 then
24795 gcc_cv_as_avr_mrmw=yes
24796 else
24797 echo "configure: failed program was" >&5
24798 cat conftest.s >&5
24800 rm -f conftest.o conftest.s
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24804 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24805 if test $gcc_cv_as_avr_mrmw = yes; then
24807 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
24813 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
24814 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
24815 $as_echo_n "(cached) " >&6
24816 else
24817 gcc_cv_as_avr_mgccisr=no
24818 if test x$gcc_cv_as != x; then
24819 $as_echo '.text
24820 __gcc_isr 1
24821 __gcc_isr 2
24822 __gcc_isr 0,r24
24823 ' > conftest.s
24824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
24825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24826 (eval $ac_try) 2>&5
24827 ac_status=$?
24828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24829 test $ac_status = 0; }; }
24830 then
24831 gcc_cv_as_avr_mgccisr=yes
24832 else
24833 echo "configure: failed program was" >&5
24834 cat conftest.s >&5
24836 rm -f conftest.o conftest.s
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
24840 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
24841 if test $gcc_cv_as_avr_mgccisr = yes; then
24843 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
24848 # Check how default linker description file implements .rodata for
24849 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
24850 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
24852 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
24853 cat > conftest.s <<EOF
24854 .section .rodata,"a",@progbits
24855 .global xxvaryy
24856 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
24857 xxvaryy:
24858 .word 1
24860 rm -f conftest.nm
24861 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }
24867 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24873 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
24874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24875 (eval $ac_try) 2>&5
24876 ac_status=$?
24877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24878 test $ac_status = 0; }; }
24879 if test -s conftest.nm
24880 then
24881 if grep ' R xxvaryy' conftest.nm > /dev/null; then
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24883 $as_echo "yes" >&6; }
24885 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
24887 else
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
24889 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
24890 echo "$as_me: nm output was" >&5
24891 cat conftest.nm >&5
24892 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
24894 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
24896 else
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
24898 $as_echo "test failed" >&6; }
24899 echo "$as_me: failed program was" >&5
24900 cat conftest.s >&5
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
24902 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
24904 rm -f conftest.s conftest.o conftest.elf conftest.nm
24907 cris-*-*)
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24909 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24910 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 gcc_cv_as_cris_no_mul_bug=no
24914 if test $in_tree_gas = yes; then
24915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24916 then gcc_cv_as_cris_no_mul_bug=yes
24918 elif test x$gcc_cv_as != x; then
24919 $as_echo '.text' > conftest.s
24920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925 test $ac_status = 0; }; }
24926 then
24927 gcc_cv_as_cris_no_mul_bug=yes
24928 else
24929 echo "configure: failed program was" >&5
24930 cat conftest.s >&5
24932 rm -f conftest.o conftest.s
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24936 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24937 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24939 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24945 sparc*-*-*)
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24947 $as_echo_n "checking assembler for .register... " >&6; }
24948 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24949 $as_echo_n "(cached) " >&6
24950 else
24951 gcc_cv_as_sparc_register_op=no
24952 if test x$gcc_cv_as != x; then
24953 $as_echo '.register %g2, #scratch' > conftest.s
24954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24959 test $ac_status = 0; }; }
24960 then
24961 gcc_cv_as_sparc_register_op=yes
24962 else
24963 echo "configure: failed program was" >&5
24964 cat conftest.s >&5
24966 rm -f conftest.o conftest.s
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24970 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24971 if test $gcc_cv_as_sparc_register_op = yes; then
24973 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24979 $as_echo_n "checking assembler for -relax option... " >&6; }
24980 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24982 else
24983 gcc_cv_as_sparc_relax=no
24984 if test x$gcc_cv_as != x; then
24985 $as_echo '.text' > conftest.s
24986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24988 (eval $ac_try) 2>&5
24989 ac_status=$?
24990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24991 test $ac_status = 0; }; }
24992 then
24993 gcc_cv_as_sparc_relax=yes
24994 else
24995 echo "configure: failed program was" >&5
24996 cat conftest.s >&5
24998 rm -f conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25002 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25003 if test $gcc_cv_as_sparc_relax = yes; then
25005 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25011 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25012 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015 gcc_cv_as_sparc_gotdata_op=no
25016 if test x$gcc_cv_as != x; then
25017 $as_echo '.text
25018 .align 4
25019 foo:
25021 bar:
25022 sethi %gdop_hix22(foo), %g1
25023 xor %g1, %gdop_lox10(foo), %g1
25024 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25030 test $ac_status = 0; }; }
25031 then
25032 if test x$gcc_cv_ld != x \
25033 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25034 if test x$gcc_cv_objdump != x; then
25035 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25036 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25037 gcc_cv_as_sparc_gotdata_op=no
25038 else
25039 gcc_cv_as_sparc_gotdata_op=yes
25043 rm -f conftest
25044 else
25045 echo "configure: failed program was" >&5
25046 cat conftest.s >&5
25048 rm -f conftest.o conftest.s
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25052 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25053 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25055 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25061 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25062 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25063 $as_echo_n "(cached) " >&6
25064 else
25065 gcc_cv_as_sparc_ua_pcrel=no
25066 if test x$gcc_cv_as != x; then
25067 $as_echo '.text
25068 foo:
25070 .data
25071 .align 4
25072 .byte 0
25073 .uaword %r_disp32(foo)' > conftest.s
25074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25080 then
25081 if test x$gcc_cv_ld != x \
25082 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25083 gcc_cv_as_sparc_ua_pcrel=yes
25085 rm -f conftest
25086 else
25087 echo "configure: failed program was" >&5
25088 cat conftest.s >&5
25090 rm -f conftest.o conftest.s
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25094 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25095 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25097 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25101 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25102 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25103 $as_echo_n "(cached) " >&6
25104 else
25105 gcc_cv_as_sparc_ua_pcrel_hidden=no
25106 if test x$gcc_cv_as != x; then
25107 $as_echo '.data
25108 .align 4
25109 .byte 0x31
25110 .uaword %r_disp32(foo)
25111 .byte 0x32, 0x33, 0x34
25112 .global foo
25113 .hidden foo
25114 foo:
25115 .skip 4' > conftest.s
25116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25121 test $ac_status = 0; }; }
25122 then
25123 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25124 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25125 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25126 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25127 if $gcc_cv_objdump -R conftest 2> /dev/null \
25128 | grep 'DISP32' > /dev/null 2>&1; then
25130 else
25131 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25134 rm -f conftest
25135 else
25136 echo "configure: failed program was" >&5
25137 cat conftest.s >&5
25139 rm -f conftest.o conftest.s
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25143 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25144 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25146 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25152 # unaligned pcrel relocs
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25155 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25156 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25157 $as_echo_n "(cached) " >&6
25158 else
25159 gcc_cv_as_sparc_offsetable_lo10=no
25160 if test x$gcc_cv_as != x; then
25161 $as_echo '.text
25162 or %g1, %lo(ab) + 12, %g1
25163 or %g1, %lo(ab + 12), %g1' > conftest.s
25164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166 (eval $ac_try) 2>&5
25167 ac_status=$?
25168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169 test $ac_status = 0; }; }
25170 then
25171 if test x$gcc_cv_objdump != x \
25172 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25173 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25174 gcc_cv_as_sparc_offsetable_lo10=yes
25176 else
25177 echo "configure: failed program was" >&5
25178 cat conftest.s >&5
25180 rm -f conftest.o conftest.s
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25184 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25185 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25187 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25193 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25194 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25195 $as_echo_n "(cached) " >&6
25196 else
25197 gcc_cv_as_sparc_fmaf=no
25198 if test x$gcc_cv_as != x; then
25199 $as_echo '.text
25200 .register %g2, #scratch
25201 .register %g3, #scratch
25202 .align 4
25203 fmaddd %f0, %f2, %f4, %f6
25204 addxccc %g1, %g2, %g3
25205 fsrl32 %f2, %f4, %f8
25206 fnaddd %f10, %f12, %f14' > conftest.s
25207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25212 test $ac_status = 0; }; }
25213 then
25214 gcc_cv_as_sparc_fmaf=yes
25215 else
25216 echo "configure: failed program was" >&5
25217 cat conftest.s >&5
25219 rm -f conftest.o conftest.s
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25223 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25224 if test $gcc_cv_as_sparc_fmaf = yes; then
25226 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25232 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25233 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25234 $as_echo_n "(cached) " >&6
25235 else
25236 gcc_cv_as_sparc_sparc4=no
25237 if test x$gcc_cv_as != x; then
25238 $as_echo '.text
25239 .register %g2, #scratch
25240 .register %g3, #scratch
25241 .align 4
25242 cxbe %g2, %g3, 1f
25243 1: cwbneg %g2, %g3, 1f
25244 1: sha1
25246 aes_kexpand0 %f4, %f6, %f8
25247 des_round %f38, %f40, %f42, %f44
25248 camellia_f %f54, %f56, %f58, %f60
25249 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25256 then
25257 gcc_cv_as_sparc_sparc4=yes
25258 else
25259 echo "configure: failed program was" >&5
25260 cat conftest.s >&5
25262 rm -f conftest.o conftest.s
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25266 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25267 if test $gcc_cv_as_sparc_sparc4 = yes; then
25269 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25275 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25276 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25277 $as_echo_n "(cached) " >&6
25278 else
25279 gcc_cv_as_sparc_sparc5=no
25280 if test x$gcc_cv_as != x; then
25281 $as_echo '.text
25282 .register %g2, #scratch
25283 .register %g3, #scratch
25284 .align 4
25285 subxc %g1, %g2, %g3
25286 fpadd8 %f0, %f2, %f4' > conftest.s
25287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25292 test $ac_status = 0; }; }
25293 then
25294 gcc_cv_as_sparc_sparc5=yes
25295 else
25296 echo "configure: failed program was" >&5
25297 cat conftest.s >&5
25299 rm -f conftest.o conftest.s
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25303 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25304 if test $gcc_cv_as_sparc_sparc5 = yes; then
25306 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25312 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25313 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316 gcc_cv_as_sparc_sparc6=no
25317 if test x$gcc_cv_as != x; then
25318 $as_echo '.text
25319 .register %g2, #scratch
25320 .register %g3, #scratch
25321 .align 4
25322 rd %entropy, %g1
25323 fpsll64x %f0, %f2, %f4' > conftest.s
25324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25326 (eval $ac_try) 2>&5
25327 ac_status=$?
25328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25329 test $ac_status = 0; }; }
25330 then
25331 gcc_cv_as_sparc_sparc6=yes
25332 else
25333 echo "configure: failed program was" >&5
25334 cat conftest.s >&5
25336 rm -f conftest.o conftest.s
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25340 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25341 if test $gcc_cv_as_sparc_sparc6 = yes; then
25343 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25349 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25350 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25352 else
25353 gcc_cv_as_sparc_leon=no
25354 if test x$gcc_cv_as != x; then
25355 $as_echo '.text
25356 .register %g2, #scratch
25357 .register %g3, #scratch
25358 .align 4
25359 smac %g2, %g3, %g1
25360 umac %g2, %g3, %g1
25361 casa [%g2] 0xb, %g3, %g1' > conftest.s
25362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25364 (eval $ac_try) 2>&5
25365 ac_status=$?
25366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }; }
25368 then
25369 gcc_cv_as_sparc_leon=yes
25370 else
25371 echo "configure: failed program was" >&5
25372 cat conftest.s >&5
25374 rm -f conftest.o conftest.s
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25378 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25379 if test $gcc_cv_as_sparc_leon = yes; then
25381 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25387 i[34567]86-*-* | x86_64-*-*)
25388 case $target_os in
25389 cygwin*)
25390 # Full C++ conformance when using a shared libstdc++-v3 requires some
25391 # support from the Cygwin DLL, which in more recent versions exports
25392 # wrappers to aid in interposing and redirecting operators new, delete,
25393 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25394 # are configuring for a version of Cygwin that exports the wrappers.
25395 if test x$host = x$target && test x$host_cpu = xi686; then
25396 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25397 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25398 gcc_ac_cygwin_dll_wrappers=yes
25399 else
25400 gcc_ac_cygwin_dll_wrappers=no
25403 else
25404 # Can't check presence of libc functions during cross-compile, so
25405 # we just have to assume we're building for an up-to-date target.
25406 gcc_ac_cygwin_dll_wrappers=yes
25409 cat >>confdefs.h <<_ACEOF
25410 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25411 _ACEOF
25413 esac
25414 case $target_os in
25415 cygwin* | pe | mingw32*)
25416 # Recent binutils allows the three-operand form of ".comm" on PE. This
25417 # definition is used unconditionally to initialise the default state of
25418 # the target option variable that governs usage of the feature.
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25420 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25421 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 gcc_cv_as_comm_has_align=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25427 then gcc_cv_as_comm_has_align=yes
25429 elif test x$gcc_cv_as != x; then
25430 $as_echo '.comm foo,1,32' > conftest.s
25431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25433 (eval $ac_try) 2>&5
25434 ac_status=$?
25435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25436 test $ac_status = 0; }; }
25437 then
25438 gcc_cv_as_comm_has_align=yes
25439 else
25440 echo "configure: failed program was" >&5
25441 cat conftest.s >&5
25443 rm -f conftest.o conftest.s
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25447 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25451 cat >>confdefs.h <<_ACEOF
25452 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25453 _ACEOF
25455 # Used for DWARF 2 in PE
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25457 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25458 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25459 $as_echo_n "(cached) " >&6
25460 else
25461 gcc_cv_as_ix86_pe_secrel32=no
25462 if test $in_tree_gas = yes; then
25463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25464 then gcc_cv_as_ix86_pe_secrel32=yes
25466 elif test x$gcc_cv_as != x; then
25467 $as_echo '.text
25468 foo: nop
25469 .data
25470 .secrel32 foo' > conftest.s
25471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25477 then
25478 if test x$gcc_cv_ld != x \
25479 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25480 gcc_cv_as_ix86_pe_secrel32=yes
25482 rm -f conftest
25483 else
25484 echo "configure: failed program was" >&5
25485 cat conftest.s >&5
25487 rm -f conftest.o conftest.s
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25491 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25492 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25494 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25498 # Test if the assembler supports the extended form of the .section
25499 # directive that specifies section alignment. LTO support uses this,
25500 # but normally only after installation, so we warn but don't fail the
25501 # configure if LTO is enabled but the assembler does not support it.
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25503 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25504 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25506 else
25507 gcc_cv_as_section_has_align=no
25508 if test $in_tree_gas = yes; then
25509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25510 then gcc_cv_as_section_has_align=yes
25512 elif test x$gcc_cv_as != x; then
25513 $as_echo '.section lto_test,"dr0"' > conftest.s
25514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25516 (eval $ac_try) 2>&5
25517 ac_status=$?
25518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25519 test $ac_status = 0; }; }
25520 then
25521 gcc_cv_as_section_has_align=yes
25522 else
25523 echo "configure: failed program was" >&5
25524 cat conftest.s >&5
25526 rm -f conftest.o conftest.s
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25530 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25533 if test x$gcc_cv_as_section_has_align != xyes; then
25534 case ",$enable_languages," in
25535 *,lto,*)
25536 { $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
25537 $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;}
25539 esac
25542 esac
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25545 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25546 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25547 $as_echo_n "(cached) " >&6
25548 else
25549 gcc_cv_as_ix86_xbrace_comment=no
25550 if test x$gcc_cv_as != x; then
25551 $as_echo '.text' > conftest.s
25552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557 test $ac_status = 0; }; }
25558 then
25559 gcc_cv_as_ix86_xbrace_comment=yes
25560 else
25561 echo "configure: failed program was" >&5
25562 cat conftest.s >&5
25564 rm -f conftest.o conftest.s
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25568 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25569 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25571 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25576 # Test if the assembler supports the section flag 'e' for specifying
25577 # an excluded section.
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25579 $as_echo_n "checking assembler for .section with e... " >&6; }
25580 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25582 else
25583 gcc_cv_as_section_has_e=no
25584 if test $in_tree_gas = yes; then
25585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25586 then gcc_cv_as_section_has_e=yes
25588 elif test x$gcc_cv_as != x; then
25589 $as_echo '.section foo1,"e"
25590 .byte 0,0,0,0' > conftest.s
25591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25597 then
25598 gcc_cv_as_section_has_e=yes
25599 else
25600 echo "configure: failed program was" >&5
25601 cat conftest.s >&5
25603 rm -f conftest.o conftest.s
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25607 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25611 cat >>confdefs.h <<_ACEOF
25612 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25613 _ACEOF
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25617 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25618 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 gcc_cv_as_ix86_filds=no
25622 if test x$gcc_cv_as != x; then
25623 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25629 test $ac_status = 0; }; }
25630 then
25631 gcc_cv_as_ix86_filds=yes
25632 else
25633 echo "configure: failed program was" >&5
25634 cat conftest.s >&5
25636 rm -f conftest.o conftest.s
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25640 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25641 if test $gcc_cv_as_ix86_filds = yes; then
25643 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25649 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25650 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25651 $as_echo_n "(cached) " >&6
25652 else
25653 gcc_cv_as_ix86_fildq=no
25654 if test x$gcc_cv_as != x; then
25655 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25658 (eval $ac_try) 2>&5
25659 ac_status=$?
25660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25661 test $ac_status = 0; }; }
25662 then
25663 gcc_cv_as_ix86_fildq=yes
25664 else
25665 echo "configure: failed program was" >&5
25666 cat conftest.s >&5
25668 rm -f conftest.o conftest.s
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25672 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25673 if test $gcc_cv_as_ix86_fildq = yes; then
25675 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25681 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25682 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25683 $as_echo_n "(cached) " >&6
25684 else
25685 gcc_cv_as_ix86_cmov_sun_syntax=no
25686 if test x$gcc_cv_as != x; then
25687 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25690 (eval $ac_try) 2>&5
25691 ac_status=$?
25692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25693 test $ac_status = 0; }; }
25694 then
25695 gcc_cv_as_ix86_cmov_sun_syntax=yes
25696 else
25697 echo "configure: failed program was" >&5
25698 cat conftest.s >&5
25700 rm -f conftest.o conftest.s
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25704 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25705 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25707 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25713 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25714 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25715 $as_echo_n "(cached) " >&6
25716 else
25717 gcc_cv_as_ix86_ffreep=no
25718 if test x$gcc_cv_as != x; then
25719 $as_echo 'ffreep %st(1)' > conftest.s
25720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25722 (eval $ac_try) 2>&5
25723 ac_status=$?
25724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25725 test $ac_status = 0; }; }
25726 then
25727 gcc_cv_as_ix86_ffreep=yes
25728 else
25729 echo "configure: failed program was" >&5
25730 cat conftest.s >&5
25732 rm -f conftest.o conftest.s
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25736 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25737 if test $gcc_cv_as_ix86_ffreep = yes; then
25739 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25745 $as_echo_n "checking assembler for .quad directive... " >&6; }
25746 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25747 $as_echo_n "(cached) " >&6
25748 else
25749 gcc_cv_as_ix86_quad=no
25750 if test x$gcc_cv_as != x; then
25751 $as_echo '.quad 0' > 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_quad=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_quad" >&5
25768 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25769 if test $gcc_cv_as_ix86_quad = yes; then
25771 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25777 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25778 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25779 $as_echo_n "(cached) " >&6
25780 else
25781 gcc_cv_as_ix86_sahf=no
25782 if test x$gcc_cv_as != x; then
25783 $as_echo '.code64
25784 sahf' > conftest.s
25785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25787 (eval $ac_try) 2>&5
25788 ac_status=$?
25789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25790 test $ac_status = 0; }; }
25791 then
25792 gcc_cv_as_ix86_sahf=yes
25793 else
25794 echo "configure: failed program was" >&5
25795 cat conftest.s >&5
25797 rm -f conftest.o conftest.s
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25801 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25802 if test $gcc_cv_as_ix86_sahf = yes; then
25804 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25810 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25811 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25812 $as_echo_n "(cached) " >&6
25813 else
25814 gcc_cv_as_ix86_interunit_movq=no
25815 if test x$gcc_cv_as != x; then
25816 $as_echo '.code64
25817 movq %mm0, %rax
25818 movq %rax, %xmm0' > conftest.s
25819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25822 ac_status=$?
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25825 then
25826 gcc_cv_as_ix86_interunit_movq=yes
25827 else
25828 echo "configure: failed program was" >&5
25829 cat conftest.s >&5
25831 rm -f conftest.o conftest.s
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25835 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25839 cat >>confdefs.h <<_ACEOF
25840 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25841 _ACEOF
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25845 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25846 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25847 $as_echo_n "(cached) " >&6
25848 else
25849 gcc_cv_as_ix86_hle=no
25850 if test x$gcc_cv_as != x; then
25851 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25857 test $ac_status = 0; }; }
25858 then
25859 gcc_cv_as_ix86_hle=yes
25860 else
25861 echo "configure: failed program was" >&5
25862 cat conftest.s >&5
25864 rm -f conftest.o conftest.s
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25868 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25869 if test $gcc_cv_as_ix86_hle = yes; then
25871 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25877 $as_echo_n "checking assembler for swap suffix... " >&6; }
25878 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25879 $as_echo_n "(cached) " >&6
25880 else
25881 gcc_cv_as_ix86_swap=no
25882 if test x$gcc_cv_as != x; then
25883 $as_echo 'movl.s %esp, %ebp' > conftest.s
25884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25889 test $ac_status = 0; }; }
25890 then
25891 gcc_cv_as_ix86_swap=yes
25892 else
25893 echo "configure: failed program was" >&5
25894 cat conftest.s >&5
25896 rm -f conftest.o conftest.s
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25900 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25901 if test $gcc_cv_as_ix86_swap = yes; then
25903 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25909 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25910 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25912 else
25913 gcc_cv_as_ix86_diff_sect_delta=no
25914 if test x$gcc_cv_as != x; then
25915 $as_echo '.section .rodata
25916 .L1:
25917 .long .L2-.L1
25918 .long .L3-.L1
25919 .text
25920 .L3: nop
25921 .L2: nop' > conftest.s
25922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25927 test $ac_status = 0; }; }
25928 then
25929 gcc_cv_as_ix86_diff_sect_delta=yes
25930 else
25931 echo "configure: failed program was" >&5
25932 cat conftest.s >&5
25934 rm -f conftest.o conftest.s
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25938 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25939 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25941 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25947 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25948 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25949 $as_echo_n "(cached) " >&6
25950 else
25951 gcc_cv_as_ix86_rep_lock_prefix=no
25952 if test x$gcc_cv_as != x; then
25953 $as_echo 'rep movsl
25954 rep ret
25955 rep nop
25956 rep bsf %ecx, %eax
25957 rep bsr %ecx, %eax
25958 lock addl %edi, (%eax,%esi)
25959 lock orl $0, (%esp)' > conftest.s
25960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25965 test $ac_status = 0; }; }
25966 then
25967 gcc_cv_as_ix86_rep_lock_prefix=yes
25968 else
25969 echo "configure: failed program was" >&5
25970 cat conftest.s >&5
25972 rm -f conftest.o conftest.s
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25976 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25977 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25979 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25985 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25986 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25987 $as_echo_n "(cached) " >&6
25988 else
25989 gcc_cv_as_ix86_ud2=no
25990 if test x$gcc_cv_as != x; then
25991 $as_echo 'ud2' > conftest.s
25992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25994 (eval $ac_try) 2>&5
25995 ac_status=$?
25996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25997 test $ac_status = 0; }; }
25998 then
25999 gcc_cv_as_ix86_ud2=yes
26000 else
26001 echo "configure: failed program was" >&5
26002 cat conftest.s >&5
26004 rm -f conftest.o conftest.s
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26008 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26009 if test $gcc_cv_as_ix86_ud2 = yes; then
26011 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26016 # Enforce 32-bit output with gas and gld.
26017 if test x$gas = xyes; then
26018 as_ix86_gas_32_opt="--32"
26020 if echo "$ld_ver" | grep GNU > /dev/null; then
26021 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26022 ld_ix86_gld_32_opt="-melf_i386_sol2"
26023 else
26024 ld_ix86_gld_32_opt="-melf_i386"
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26029 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26030 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26031 $as_echo_n "(cached) " >&6
26032 else
26033 gcc_cv_as_ix86_tlsgdplt=no
26034 if test x$gcc_cv_as != x; then
26035 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26038 (eval $ac_try) 2>&5
26039 ac_status=$?
26040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26041 test $ac_status = 0; }; }
26042 then
26043 if test x$gcc_cv_ld != x \
26044 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26045 gcc_cv_as_ix86_tlsgdplt=yes
26047 rm -f conftest
26048 else
26049 echo "configure: failed program was" >&5
26050 cat conftest.s >&5
26052 rm -f conftest.o conftest.s
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26056 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26057 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26059 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26064 conftest_s='
26065 .section .tdata,"aw'$tls_section_flag'",@progbits
26066 tls_ld:
26067 .section .text,"ax",@progbits
26068 call tls_ld@tlsldmplt'
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26071 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26072 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26073 $as_echo_n "(cached) " >&6
26074 else
26075 gcc_cv_as_ix86_tlsldmplt=no
26076 if test x$gcc_cv_as != x; then
26077 $as_echo "$conftest_s" > conftest.s
26078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26084 then
26085 if test x$gcc_cv_ld != x \
26086 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26087 gcc_cv_as_ix86_tlsldmplt=yes
26089 rm -f conftest
26090 else
26091 echo "configure: failed program was" >&5
26092 cat conftest.s >&5
26094 rm -f conftest.o conftest.s
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26098 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26102 cat >>confdefs.h <<_ACEOF
26103 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26104 _ACEOF
26107 conftest_s='
26108 .section .text,"ax",@progbits
26109 .globl _start
26110 .type _start, @function
26111 _start:
26112 leal value@tlsldm(%ebx), %eax
26113 call ___tls_get_addr@plt
26115 .section .tdata,"aw'$tls_section_flag'",@progbits
26116 .type value, @object
26117 value:'
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26119 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26120 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26121 $as_echo_n "(cached) " >&6
26122 else
26123 gcc_cv_as_ix86_tlsldm=no
26124 if test x$gcc_cv_as != x; then
26125 $as_echo "$conftest_s" > conftest.s
26126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26128 (eval $ac_try) 2>&5
26129 ac_status=$?
26130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26131 test $ac_status = 0; }; }
26132 then
26133 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26134 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26135 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26136 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26137 gcc_cv_as_ix86_tlsldm=yes
26140 rm -f conftest
26141 else
26142 echo "configure: failed program was" >&5
26143 cat conftest.s >&5
26145 rm -f conftest.o conftest.s
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26149 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26153 cat >>confdefs.h <<_ACEOF
26154 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26155 _ACEOF
26158 conftest_s='
26159 .data
26160 bar:
26161 .byte 1
26162 .text
26163 .global _start
26164 _start:
26165 cmpl $0, bar@GOT
26166 jmp *_start@GOT'
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26168 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26169 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26170 $as_echo_n "(cached) " >&6
26171 else
26172 gcc_cv_as_ix86_got32x=no
26173 if test x$gcc_cv_as != x; then
26174 $as_echo "$conftest_s" > conftest.s
26175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26177 (eval $ac_try) 2>&5
26178 ac_status=$?
26179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26180 test $ac_status = 0; }; }
26181 then
26182 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26183 && test x$gcc_cv_readelf != x \
26184 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26185 | grep R_386_GOT32X > /dev/null 2>&1 \
26186 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26187 if $gcc_cv_objdump -dw conftest 2>&1 \
26188 | grep 0xffffff > /dev/null 2>&1; then
26189 gcc_cv_as_ix86_got32x=no
26190 else
26191 gcc_cv_as_ix86_got32x=yes
26194 rm -f conftest
26195 else
26196 echo "configure: failed program was" >&5
26197 cat conftest.s >&5
26199 rm -f conftest.o conftest.s
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26203 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26207 cat >>confdefs.h <<_ACEOF
26208 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26209 _ACEOF
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26213 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26214 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26215 $as_echo_n "(cached) " >&6
26216 else
26217 gcc_cv_as_ix86_gotoff_in_data=no
26218 if test $in_tree_gas = yes; then
26219 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26220 then gcc_cv_as_ix86_gotoff_in_data=yes
26222 elif test x$gcc_cv_as != x; then
26223 $as_echo ' .text
26224 .L0:
26226 .data
26227 .long .L0@GOTOFF' > conftest.s
26228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26230 (eval $ac_try) 2>&5
26231 ac_status=$?
26232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26233 test $ac_status = 0; }; }
26234 then
26235 gcc_cv_as_ix86_gotoff_in_data=yes
26236 else
26237 echo "configure: failed program was" >&5
26238 cat conftest.s >&5
26240 rm -f conftest.o conftest.s
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26244 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26248 cat >>confdefs.h <<_ACEOF
26249 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26250 _ACEOF
26253 conftest_s='
26254 .section .text,"ax",@progbits
26255 .globl _start
26256 .type _start, @function
26257 _start:
26258 leal ld@tlsldm(%ecx), %eax
26259 call *___tls_get_addr@GOT(%ecx)
26260 leal gd@tlsgd(%ecx), %eax
26261 call *___tls_get_addr@GOT(%ecx)
26263 .section .tdata,"aw'$tls_section_flag'",@progbits
26264 .type ld, @object
26266 .byte 0
26267 .globl gd
26268 .type gd, @object
26270 .byte 0'
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26272 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26273 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26274 $as_echo_n "(cached) " >&6
26275 else
26276 gcc_cv_as_ix86_tls_get_addr_via_got=no
26277 if test x$gcc_cv_as != x; then
26278 $as_echo "$conftest_s" > conftest.s
26279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26284 test $ac_status = 0; }; }
26285 then
26286 if test x$gcc_cv_ld != x \
26287 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26288 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26290 rm -f conftest
26291 else
26292 echo "configure: failed program was" >&5
26293 cat conftest.s >&5
26295 rm -f conftest.o conftest.s
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26299 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26303 cat >>confdefs.h <<_ACEOF
26304 #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`
26305 _ACEOF
26309 ia64*-*-*)
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26311 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26312 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26313 $as_echo_n "(cached) " >&6
26314 else
26315 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26316 if test $in_tree_gas = yes; then
26317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26318 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26320 elif test x$gcc_cv_as != x; then
26321 $as_echo ' .text
26322 addl r15 = @ltoffx(x#), gp
26324 ld8.mov r16 = [r15], x#' > conftest.s
26325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26331 then
26332 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26333 else
26334 echo "configure: failed program was" >&5
26335 cat conftest.s >&5
26337 rm -f conftest.o conftest.s
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26341 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26342 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26344 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26351 powerpc*-*-*)
26353 case $target in
26354 *-*-darwin*)
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26356 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26357 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26358 $as_echo_n "(cached) " >&6
26359 else
26360 gcc_cv_as_machine_directive=no
26361 if test x$gcc_cv_as != x; then
26362 $as_echo ' .machine ppc7400' > conftest.s
26363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26368 test $ac_status = 0; }; }
26369 then
26370 gcc_cv_as_machine_directive=yes
26371 else
26372 echo "configure: failed program was" >&5
26373 cat conftest.s >&5
26375 rm -f conftest.o conftest.s
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26379 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26382 if test x$gcc_cv_as_machine_directive != xyes; then
26383 echo "*** This target requires an assembler supporting \".machine\"" >&2
26384 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26385 test x$build = x$target && exit 1
26388 esac
26390 case $target in
26391 *-*-aix*) conftest_s=' .machine "pwr5"
26392 .csect .text[PR]
26393 mfcr 3,128';;
26394 *-*-darwin*) conftest_s=' .text
26395 mfcr r3,128';;
26396 *) conftest_s=' .machine power4
26397 .text
26398 mfcr 3,128';;
26399 esac
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26402 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26403 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26404 $as_echo_n "(cached) " >&6
26405 else
26406 gcc_cv_as_powerpc_mfcrf=no
26407 if test $in_tree_gas = yes; then
26408 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26409 then gcc_cv_as_powerpc_mfcrf=yes
26411 elif test x$gcc_cv_as != x; then
26412 $as_echo "$conftest_s" > conftest.s
26413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26415 (eval $ac_try) 2>&5
26416 ac_status=$?
26417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26418 test $ac_status = 0; }; }
26419 then
26420 gcc_cv_as_powerpc_mfcrf=yes
26421 else
26422 echo "configure: failed program was" >&5
26423 cat conftest.s >&5
26425 rm -f conftest.o conftest.s
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26429 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26430 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26432 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26437 case $target in
26438 *-*-aix*) conftest_s=' .machine "pwr5"
26439 .csect .text[PR]
26440 popcntb 3,3';;
26441 *) conftest_s=' .machine power5
26442 .text
26443 popcntb 3,3';;
26444 esac
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26447 $as_echo_n "checking assembler for popcntb support... " >&6; }
26448 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26449 $as_echo_n "(cached) " >&6
26450 else
26451 gcc_cv_as_powerpc_popcntb=no
26452 if test $in_tree_gas = yes; then
26453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26454 then gcc_cv_as_powerpc_popcntb=yes
26456 elif test x$gcc_cv_as != x; then
26457 $as_echo "$conftest_s" > conftest.s
26458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463 test $ac_status = 0; }; }
26464 then
26465 gcc_cv_as_powerpc_popcntb=yes
26466 else
26467 echo "configure: failed program was" >&5
26468 cat conftest.s >&5
26470 rm -f conftest.o conftest.s
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26474 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26475 if test $gcc_cv_as_powerpc_popcntb = yes; then
26477 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26482 case $target in
26483 *-*-aix*) conftest_s=' .machine "pwr5x"
26484 .csect .text[PR]
26485 frin 1,1';;
26486 *) conftest_s=' .machine power5
26487 .text
26488 frin 1,1';;
26489 esac
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26492 $as_echo_n "checking assembler for fp round support... " >&6; }
26493 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26494 $as_echo_n "(cached) " >&6
26495 else
26496 gcc_cv_as_powerpc_fprnd=no
26497 if test $in_tree_gas = yes; then
26498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26499 then gcc_cv_as_powerpc_fprnd=yes
26501 elif test x$gcc_cv_as != x; then
26502 $as_echo "$conftest_s" > conftest.s
26503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26508 test $ac_status = 0; }; }
26509 then
26510 gcc_cv_as_powerpc_fprnd=yes
26511 else
26512 echo "configure: failed program was" >&5
26513 cat conftest.s >&5
26515 rm -f conftest.o conftest.s
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26519 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26520 if test $gcc_cv_as_powerpc_fprnd = yes; then
26522 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26527 case $target in
26528 *-*-aix*) conftest_s=' .machine "pwr6"
26529 .csect .text[PR]
26530 mffgpr 1,3';;
26531 *) conftest_s=' .machine power6
26532 .text
26533 mffgpr 1,3';;
26534 esac
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26537 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26538 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26539 $as_echo_n "(cached) " >&6
26540 else
26541 gcc_cv_as_powerpc_mfpgpr=no
26542 if test $in_tree_gas = yes; then
26543 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26544 then gcc_cv_as_powerpc_mfpgpr=yes
26546 elif test x$gcc_cv_as != x; then
26547 $as_echo "$conftest_s" > conftest.s
26548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26550 (eval $ac_try) 2>&5
26551 ac_status=$?
26552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26553 test $ac_status = 0; }; }
26554 then
26555 gcc_cv_as_powerpc_mfpgpr=yes
26556 else
26557 echo "configure: failed program was" >&5
26558 cat conftest.s >&5
26560 rm -f conftest.o conftest.s
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26564 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26565 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26567 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26572 case $target in
26573 *-*-aix*) conftest_s=' .csect .text[PR]
26574 LCF..0:
26575 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26576 *-*-darwin*)
26577 conftest_s=' .text
26578 LCF0:
26579 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26580 *) conftest_s=' .text
26581 .LCF0:
26582 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26583 esac
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26586 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26587 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26589 else
26590 gcc_cv_as_powerpc_rel16=no
26591 if test $in_tree_gas = yes; then
26592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26593 then gcc_cv_as_powerpc_rel16=yes
26595 elif test x$gcc_cv_as != x; then
26596 $as_echo "$conftest_s" > conftest.s
26597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26602 test $ac_status = 0; }; }
26603 then
26604 gcc_cv_as_powerpc_rel16=yes
26605 else
26606 echo "configure: failed program was" >&5
26607 cat conftest.s >&5
26609 rm -f conftest.o conftest.s
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26613 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26614 if test $gcc_cv_as_powerpc_rel16 = yes; then
26616 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26621 case $target in
26622 *-*-aix*) conftest_s=' .machine "pwr6"
26623 .csect .text[PR]
26624 cmpb 3,4,5';;
26625 *) conftest_s=' .machine power6
26626 .text
26627 cmpb 3,4,5';;
26628 esac
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26631 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26632 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26634 else
26635 gcc_cv_as_powerpc_cmpb=no
26636 if test $in_tree_gas = yes; then
26637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26638 then gcc_cv_as_powerpc_cmpb=yes
26640 elif test x$gcc_cv_as != x; then
26641 $as_echo "$conftest_s" > conftest.s
26642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26647 test $ac_status = 0; }; }
26648 then
26649 gcc_cv_as_powerpc_cmpb=yes
26650 else
26651 echo "configure: failed program was" >&5
26652 cat conftest.s >&5
26654 rm -f conftest.o conftest.s
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26658 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26659 if test $gcc_cv_as_powerpc_cmpb = yes; then
26661 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26666 case $target in
26667 *-*-aix*) conftest_s=' .machine "pwr6"
26668 .csect .text[PR]
26669 dadd 1,2,3';;
26670 *) conftest_s=' .machine power6
26671 .text
26672 dadd 1,2,3';;
26673 esac
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26676 $as_echo_n "checking assembler for decimal float support... " >&6; }
26677 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26678 $as_echo_n "(cached) " >&6
26679 else
26680 gcc_cv_as_powerpc_dfp=no
26681 if test $in_tree_gas = yes; then
26682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26683 then gcc_cv_as_powerpc_dfp=yes
26685 elif test x$gcc_cv_as != x; then
26686 $as_echo "$conftest_s" > conftest.s
26687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26689 (eval $ac_try) 2>&5
26690 ac_status=$?
26691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26692 test $ac_status = 0; }; }
26693 then
26694 gcc_cv_as_powerpc_dfp=yes
26695 else
26696 echo "configure: failed program was" >&5
26697 cat conftest.s >&5
26699 rm -f conftest.o conftest.s
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26703 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26704 if test $gcc_cv_as_powerpc_dfp = yes; then
26706 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26711 case $target in
26712 *-*-aix*) conftest_s=' .machine "pwr7"
26713 .csect .text[PR]
26714 lxvd2x 1,2,3';;
26715 *) conftest_s=' .machine power7
26716 .text
26717 lxvd2x 1,2,3';;
26718 esac
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26721 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26722 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26723 $as_echo_n "(cached) " >&6
26724 else
26725 gcc_cv_as_powerpc_vsx=no
26726 if test $in_tree_gas = yes; then
26727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26728 then gcc_cv_as_powerpc_vsx=yes
26730 elif test x$gcc_cv_as != x; then
26731 $as_echo "$conftest_s" > conftest.s
26732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26734 (eval $ac_try) 2>&5
26735 ac_status=$?
26736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26737 test $ac_status = 0; }; }
26738 then
26739 gcc_cv_as_powerpc_vsx=yes
26740 else
26741 echo "configure: failed program was" >&5
26742 cat conftest.s >&5
26744 rm -f conftest.o conftest.s
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26748 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26749 if test $gcc_cv_as_powerpc_vsx = yes; then
26751 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26756 case $target in
26757 *-*-aix*) conftest_s=' .machine "pwr7"
26758 .csect .text[PR]
26759 popcntd 3,3';;
26760 *) conftest_s=' .machine power7
26761 .text
26762 popcntd 3,3';;
26763 esac
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26766 $as_echo_n "checking assembler for popcntd support... " >&6; }
26767 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26768 $as_echo_n "(cached) " >&6
26769 else
26770 gcc_cv_as_powerpc_popcntd=no
26771 if test $in_tree_gas = yes; then
26772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26773 then gcc_cv_as_powerpc_popcntd=yes
26775 elif test x$gcc_cv_as != x; then
26776 $as_echo "$conftest_s" > conftest.s
26777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26782 test $ac_status = 0; }; }
26783 then
26784 gcc_cv_as_powerpc_popcntd=yes
26785 else
26786 echo "configure: failed program was" >&5
26787 cat conftest.s >&5
26789 rm -f conftest.o conftest.s
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26793 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26794 if test $gcc_cv_as_powerpc_popcntd = yes; then
26796 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26801 case $target in
26802 *-*-aix*) conftest_s=' .machine "pwr8"
26803 .csect .text[PR]';;
26804 *) conftest_s=' .machine power8
26805 .text';;
26806 esac
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26809 $as_echo_n "checking assembler for power8 support... " >&6; }
26810 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26811 $as_echo_n "(cached) " >&6
26812 else
26813 gcc_cv_as_powerpc_power8=no
26814 if test $in_tree_gas = yes; then
26815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26816 then gcc_cv_as_powerpc_power8=yes
26818 elif test x$gcc_cv_as != x; then
26819 $as_echo "$conftest_s" > conftest.s
26820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26822 (eval $ac_try) 2>&5
26823 ac_status=$?
26824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26825 test $ac_status = 0; }; }
26826 then
26827 gcc_cv_as_powerpc_power8=yes
26828 else
26829 echo "configure: failed program was" >&5
26830 cat conftest.s >&5
26832 rm -f conftest.o conftest.s
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26836 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26837 if test $gcc_cv_as_powerpc_power8 = yes; then
26839 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26844 case $target in
26845 *-*-aix*) conftest_s=' .machine "pwr9"
26846 .csect .text[PR]';;
26847 *) conftest_s=' .machine power9
26848 .text';;
26849 esac
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26852 $as_echo_n "checking assembler for power9 support... " >&6; }
26853 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26854 $as_echo_n "(cached) " >&6
26855 else
26856 gcc_cv_as_powerpc_power9=no
26857 if test $in_tree_gas = yes; then
26858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26859 then gcc_cv_as_powerpc_power9=yes
26861 elif test x$gcc_cv_as != x; then
26862 $as_echo "$conftest_s" > conftest.s
26863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26865 (eval $ac_try) 2>&5
26866 ac_status=$?
26867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26868 test $ac_status = 0; }; }
26869 then
26870 gcc_cv_as_powerpc_power9=yes
26871 else
26872 echo "configure: failed program was" >&5
26873 cat conftest.s >&5
26875 rm -f conftest.o conftest.s
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26879 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26880 if test $gcc_cv_as_powerpc_power9 = yes; then
26882 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26887 case $target in
26888 *-*-aix*) conftest_s=' .csect .text[PR]
26889 lwsync';;
26890 *) conftest_s=' .text
26891 lwsync';;
26892 esac
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26895 $as_echo_n "checking assembler for lwsync support... " >&6; }
26896 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26897 $as_echo_n "(cached) " >&6
26898 else
26899 gcc_cv_as_powerpc_lwsync=no
26900 if test $in_tree_gas = yes; then
26901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26902 then gcc_cv_as_powerpc_lwsync=yes
26904 elif test x$gcc_cv_as != x; then
26905 $as_echo "$conftest_s" > conftest.s
26906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
26910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26911 test $ac_status = 0; }; }
26912 then
26913 gcc_cv_as_powerpc_lwsync=yes
26914 else
26915 echo "configure: failed program was" >&5
26916 cat conftest.s >&5
26918 rm -f conftest.o conftest.s
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26922 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26923 if test $gcc_cv_as_powerpc_lwsync = yes; then
26925 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26930 case $target in
26931 *-*-aix*) conftest_s=' .machine "476"
26932 .csect .text[PR]
26933 dci 0';;
26934 *) conftest_s=' .machine "476"
26935 .text
26936 dci 0';;
26937 esac
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26940 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26941 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26942 $as_echo_n "(cached) " >&6
26943 else
26944 gcc_cv_as_powerpc_dci=no
26945 if test $in_tree_gas = yes; then
26946 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26947 then gcc_cv_as_powerpc_dci=yes
26949 elif test x$gcc_cv_as != x; then
26950 $as_echo "$conftest_s" > conftest.s
26951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26956 test $ac_status = 0; }; }
26957 then
26958 gcc_cv_as_powerpc_dci=yes
26959 else
26960 echo "configure: failed program was" >&5
26961 cat conftest.s >&5
26963 rm -f conftest.o conftest.s
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26967 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26968 if test $gcc_cv_as_powerpc_dci = yes; then
26970 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26976 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26977 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26978 $as_echo_n "(cached) " >&6
26979 else
26980 gcc_cv_as_powerpc_gnu_attribute=no
26981 if test $in_tree_gas = yes; then
26982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26983 then gcc_cv_as_powerpc_gnu_attribute=yes
26985 elif test x$gcc_cv_as != x; then
26986 $as_echo '.gnu_attribute 4,1' > conftest.s
26987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26992 test $ac_status = 0; }; }
26993 then
26994 gcc_cv_as_powerpc_gnu_attribute=yes
26995 else
26996 echo "configure: failed program was" >&5
26997 cat conftest.s >&5
26999 rm -f conftest.o conftest.s
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27003 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27004 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27006 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27012 $as_echo_n "checking assembler for tls marker support... " >&6; }
27013 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
27014 $as_echo_n "(cached) " >&6
27015 else
27016 gcc_cv_as_powerpc_tls_markers=no
27017 if test $in_tree_gas = yes; then
27018 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27019 then gcc_cv_as_powerpc_tls_markers=yes
27021 elif test x$gcc_cv_as != x; then
27022 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27028 test $ac_status = 0; }; }
27029 then
27030 gcc_cv_as_powerpc_tls_markers=yes
27031 else
27032 echo "configure: failed program was" >&5
27033 cat conftest.s >&5
27035 rm -f conftest.o conftest.s
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27039 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27040 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27042 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27048 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27049 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27050 $as_echo_n "(cached) " >&6
27051 else
27052 gcc_cv_as_powerpc_entry_markers=no
27053 if test $in_tree_gas = yes; then
27054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27055 then gcc_cv_as_powerpc_entry_markers=yes
27057 elif test x$gcc_cv_as != x; then
27058 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27065 then
27066 gcc_cv_as_powerpc_entry_markers=yes
27067 else
27068 echo "configure: failed program was" >&5
27069 cat conftest.s >&5
27071 rm -f conftest.o conftest.s
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27075 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27076 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27078 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27083 case $target in
27084 *-*-aix*)
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27086 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27087 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27088 $as_echo_n "(cached) " >&6
27089 else
27090 gcc_cv_as_aix_ref=no
27091 if test $in_tree_gas = yes; then
27092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27093 then gcc_cv_as_aix_ref=yes
27095 elif test x$gcc_cv_as != x; then
27096 $as_echo ' .csect stuff[rw]
27097 stuff:
27098 .long 1
27099 .extern sym
27100 .ref sym
27101 ' > conftest.s
27102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27107 test $ac_status = 0; }; }
27108 then
27109 gcc_cv_as_aix_ref=yes
27110 else
27111 echo "configure: failed program was" >&5
27112 cat conftest.s >&5
27114 rm -f conftest.o conftest.s
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27118 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27119 if test $gcc_cv_as_aix_ref = yes; then
27121 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27127 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27128 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27129 $as_echo_n "(cached) " >&6
27130 else
27131 gcc_cv_as_aix_dwloc=no
27132 if test $in_tree_gas = yes; then
27133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27134 then gcc_cv_as_aix_dwloc=yes
27136 elif test x$gcc_cv_as != x; then
27137 $as_echo ' .dwsect 0xA0000
27138 Lframe..0:
27139 .vbyte 4,Lframe..0
27140 ' > conftest.s
27141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27143 (eval $ac_try) 2>&5
27144 ac_status=$?
27145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27146 test $ac_status = 0; }; }
27147 then
27148 gcc_cv_as_aix_dwloc=yes
27149 else
27150 echo "configure: failed program was" >&5
27151 cat conftest.s >&5
27153 rm -f conftest.o conftest.s
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27157 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27158 if test $gcc_cv_as_aix_dwloc = yes; then
27160 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27165 esac
27168 mips*-*-*)
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27170 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27171 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27172 $as_echo_n "(cached) " >&6
27173 else
27174 gcc_cv_as_mips_explicit_relocs=no
27175 if test $in_tree_gas = yes; then
27176 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27177 then gcc_cv_as_mips_explicit_relocs=yes
27179 elif test x$gcc_cv_as != x; then
27180 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27183 (eval $ac_try) 2>&5
27184 ac_status=$?
27185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27186 test $ac_status = 0; }; }
27187 then
27188 gcc_cv_as_mips_explicit_relocs=yes
27189 else
27190 echo "configure: failed program was" >&5
27191 cat conftest.s >&5
27193 rm -f conftest.o conftest.s
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27197 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27198 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27199 if test x$target_cpu_default = x
27200 then target_cpu_default=MASK_EXPLICIT_RELOCS
27201 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27207 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27208 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27209 $as_echo_n "(cached) " >&6
27210 else
27211 gcc_cv_as_mips_no_shared=no
27212 if test $in_tree_gas = yes; then
27213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27214 then gcc_cv_as_mips_no_shared=yes
27216 elif test x$gcc_cv_as != x; then
27217 $as_echo 'nop' > conftest.s
27218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27220 (eval $ac_try) 2>&5
27221 ac_status=$?
27222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27223 test $ac_status = 0; }; }
27224 then
27225 gcc_cv_as_mips_no_shared=yes
27226 else
27227 echo "configure: failed program was" >&5
27228 cat conftest.s >&5
27230 rm -f conftest.o conftest.s
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27234 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27235 if test $gcc_cv_as_mips_no_shared = yes; then
27237 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27243 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27244 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27245 $as_echo_n "(cached) " >&6
27246 else
27247 gcc_cv_as_mips_gnu_attribute=no
27248 if test $in_tree_gas = yes; then
27249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27250 then gcc_cv_as_mips_gnu_attribute=yes
27252 elif test x$gcc_cv_as != x; then
27253 $as_echo '.gnu_attribute 4,1' > conftest.s
27254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27259 test $ac_status = 0; }; }
27260 then
27261 gcc_cv_as_mips_gnu_attribute=yes
27262 else
27263 echo "configure: failed program was" >&5
27264 cat conftest.s >&5
27266 rm -f conftest.o conftest.s
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27270 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27271 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27273 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27279 $as_echo_n "checking assembler for .module support... " >&6; }
27280 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27281 $as_echo_n "(cached) " >&6
27282 else
27283 gcc_cv_as_mips_dot_module=no
27284 if test x$gcc_cv_as != x; then
27285 $as_echo '.module mips2
27286 .module fp=xx' > conftest.s
27287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27289 (eval $ac_try) 2>&5
27290 ac_status=$?
27291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27292 test $ac_status = 0; }; }
27293 then
27294 gcc_cv_as_mips_dot_module=yes
27295 else
27296 echo "configure: failed program was" >&5
27297 cat conftest.s >&5
27299 rm -f conftest.o conftest.s
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27303 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27304 if test $gcc_cv_as_mips_dot_module = yes; then
27306 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27310 if test x$gcc_cv_as_mips_dot_module = xno \
27311 && test x$with_fp_32 != x; then
27312 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27316 $as_echo_n "checking assembler for .micromips support... " >&6; }
27317 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27318 $as_echo_n "(cached) " >&6
27319 else
27320 gcc_cv_as_micromips_support=no
27321 if test x$gcc_cv_as != x; then
27322 $as_echo '.set micromips' > conftest.s
27323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27325 (eval $ac_try) 2>&5
27326 ac_status=$?
27327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27328 test $ac_status = 0; }; }
27329 then
27330 gcc_cv_as_micromips_support=yes
27331 else
27332 echo "configure: failed program was" >&5
27333 cat conftest.s >&5
27335 rm -f conftest.o conftest.s
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27339 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27340 if test $gcc_cv_as_micromips_support = yes; then
27342 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27348 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27349 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27350 $as_echo_n "(cached) " >&6
27351 else
27352 gcc_cv_as_mips_dtprelword=no
27353 if test $in_tree_gas = yes; then
27354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27355 then gcc_cv_as_mips_dtprelword=yes
27357 elif test x$gcc_cv_as != x; then
27358 $as_echo '.section .tdata,"awT",@progbits
27360 .word 2
27361 .text
27362 .dtprelword x+0x8000' > conftest.s
27363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27365 (eval $ac_try) 2>&5
27366 ac_status=$?
27367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27368 test $ac_status = 0; }; }
27369 then
27370 gcc_cv_as_mips_dtprelword=yes
27371 else
27372 echo "configure: failed program was" >&5
27373 cat conftest.s >&5
27375 rm -f conftest.o conftest.s
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27379 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27380 if test $gcc_cv_as_mips_dtprelword = yes; then
27382 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27388 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27389 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27390 $as_echo_n "(cached) " >&6
27391 else
27392 gcc_cv_as_mips_dspr1_mult=no
27393 if test x$gcc_cv_as != x; then
27394 $as_echo ' .set mips32r2
27395 .set nodspr2
27396 .set dsp
27397 madd $ac3,$4,$5
27398 maddu $ac3,$4,$5
27399 msub $ac3,$4,$5
27400 msubu $ac3,$4,$5
27401 mult $ac3,$4,$5
27402 multu $ac3,$4,$5' > conftest.s
27403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27408 test $ac_status = 0; }; }
27409 then
27410 gcc_cv_as_mips_dspr1_mult=yes
27411 else
27412 echo "configure: failed program was" >&5
27413 cat conftest.s >&5
27415 rm -f conftest.o conftest.s
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27419 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27420 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27422 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27428 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27429 gcc_cv_as_ld_jalr_reloc=no
27430 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27431 if test $in_tree_ld = yes ; then
27432 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 \
27433 && test $in_tree_ld_is_elf = yes; then
27434 gcc_cv_as_ld_jalr_reloc=yes
27436 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27437 echo ' .ent x' > conftest.s
27438 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27439 echo ' lw $25,%call16(y)($28)' >> conftest.s
27440 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27441 echo '1: jalr $25' >> conftest.s
27442 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27443 echo '1: jalr $25' >> conftest.s
27444 echo ' .end x' >> conftest.s
27445 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27446 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27447 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27448 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27449 gcc_cv_as_ld_jalr_reloc=yes
27452 rm -f conftest.*
27455 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27456 if test x$target_cpu_default = x; then
27457 target_cpu_default=MASK_RELAX_PIC_CALLS
27458 else
27459 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27463 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27466 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27467 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27468 $as_echo_n "(cached) " >&6
27469 else
27470 gcc_cv_ld_mips_personality_relaxation=no
27471 if test $in_tree_ld = yes ; then
27472 if test "$gcc_cv_gld_major_version" -eq 2 \
27473 -a "$gcc_cv_gld_minor_version" -ge 21 \
27474 -o "$gcc_cv_gld_major_version" -gt 2; then
27475 gcc_cv_ld_mips_personality_relaxation=yes
27477 elif test x$gcc_cv_as != x \
27478 -a x$gcc_cv_ld != x \
27479 -a x$gcc_cv_readelf != x ; then
27480 cat > conftest.s <<EOF
27481 .cfi_startproc
27482 .cfi_personality 0x80,indirect_ptr
27483 .ent test
27484 test:
27486 .end test
27487 .cfi_endproc
27489 .section .data,"aw",@progbits
27490 indirect_ptr:
27491 .dc.a personality
27493 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27494 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27495 if $gcc_cv_readelf -d conftest 2>&1 \
27496 | grep TEXTREL > /dev/null 2>&1; then
27498 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27499 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27501 else
27502 gcc_cv_ld_mips_personality_relaxation=yes
27506 rm -f conftest.s conftest.o conftest
27508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27509 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27510 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27512 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27517 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27518 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27519 $as_echo_n "(cached) " >&6
27520 else
27521 gcc_cv_as_mips_nan=no
27522 if test x$gcc_cv_as != x; then
27523 $as_echo '' > conftest.s
27524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27526 (eval $ac_try) 2>&5
27527 ac_status=$?
27528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27529 test $ac_status = 0; }; }
27530 then
27531 gcc_cv_as_mips_nan=yes
27532 else
27533 echo "configure: failed program was" >&5
27534 cat conftest.s >&5
27536 rm -f conftest.o conftest.s
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27540 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27541 if test $gcc_cv_as_mips_nan = yes; then
27543 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27547 if test x$gcc_cv_as_mips_nan = xno \
27548 && test x$with_nan != x; then
27549 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27552 s390*-*-*)
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27554 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27555 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27556 $as_echo_n "(cached) " >&6
27557 else
27558 gcc_cv_as_s390_gnu_attribute=no
27559 if test $in_tree_gas = yes; then
27560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27561 then gcc_cv_as_s390_gnu_attribute=yes
27563 elif test x$gcc_cv_as != x; then
27564 $as_echo '.gnu_attribute 8,1' > conftest.s
27565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27567 (eval $ac_try) 2>&5
27568 ac_status=$?
27569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27570 test $ac_status = 0; }; }
27571 then
27572 gcc_cv_as_s390_gnu_attribute=yes
27573 else
27574 echo "configure: failed program was" >&5
27575 cat conftest.s >&5
27577 rm -f conftest.o conftest.s
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27581 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27582 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27584 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27589 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27590 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27591 $as_echo_n "(cached) " >&6
27592 else
27593 gcc_cv_as_s390_machine_machinemode=no
27594 if test $in_tree_gas = yes; then
27595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27596 then gcc_cv_as_s390_machine_machinemode=yes
27598 elif test x$gcc_cv_as != x; then
27599 $as_echo ' .machinemode push
27600 .machinemode pop
27601 .machine push
27602 .machine pop' > conftest.s
27603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27605 (eval $ac_try) 2>&5
27606 ac_status=$?
27607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27608 test $ac_status = 0; }; }
27609 then
27610 gcc_cv_as_s390_machine_machinemode=yes
27611 else
27612 echo "configure: failed program was" >&5
27613 cat conftest.s >&5
27615 rm -f conftest.o conftest.s
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27619 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27620 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27622 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27627 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27628 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27629 $as_echo_n "(cached) " >&6
27630 else
27631 gcc_cv_as_s390_architecture_modifiers=no
27632 if test $in_tree_gas = yes; then
27633 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27634 then gcc_cv_as_s390_architecture_modifiers=yes
27636 elif test x$gcc_cv_as != x; then
27637 $as_echo ' .machine z13+vx ' > conftest.s
27638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27640 (eval $ac_try) 2>&5
27641 ac_status=$?
27642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27643 test $ac_status = 0; }; }
27644 then
27645 gcc_cv_as_s390_architecture_modifiers=yes
27646 else
27647 echo "configure: failed program was" >&5
27648 cat conftest.s >&5
27650 rm -f conftest.o conftest.s
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27654 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27655 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27657 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27662 esac
27664 # Mips and HP-UX need the GNU assembler.
27665 # Linux on IA64 might be able to use the Intel assembler.
27667 case "$target" in
27668 mips*-*-* | *-*-hpux* )
27669 if test x$gas_flag = xyes \
27670 || test x"$host" != x"$build" \
27671 || test ! -x "$gcc_cv_as" \
27672 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27674 else
27675 echo "*** This configuration requires the GNU assembler" >&2
27676 exit 1
27679 esac
27681 # ??? Not all targets support dwarf2 debug_line, even within a version
27682 # of gas. Moreover, we need to emit a valid instruction to trigger any
27683 # info to the output file. So, as supported targets are added to gas 2.11,
27684 # add some instruction here to (also) show we expect this might work.
27685 # ??? Once 2.11 is released, probably need to add first known working
27686 # version to the per-target configury.
27687 case "$cpu_type" in
27688 aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
27689 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27690 | tilegx | tilepro | visium | xstormy16 | xtensa)
27691 insn="nop"
27693 ia64 | s390)
27694 insn="nop 0"
27696 mmix)
27697 insn="swym 0"
27699 esac
27700 if test x"$insn" != x; then
27701 conftest_s="\
27702 .file 1 \"conftest.s\"
27703 .loc 1 3 0
27704 $insn"
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27706 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27707 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27708 $as_echo_n "(cached) " >&6
27709 else
27710 gcc_cv_as_dwarf2_debug_line=no
27711 if test $in_tree_gas = yes; then
27712 if test $in_tree_gas_is_elf = yes \
27713 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27714 then gcc_cv_as_dwarf2_debug_line=yes
27716 elif test x$gcc_cv_as != x; then
27717 $as_echo "$conftest_s" > conftest.s
27718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27723 test $ac_status = 0; }; }
27724 then
27725 if test x$gcc_cv_objdump != x \
27726 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27727 | grep debug_line > /dev/null 2>&1; then
27728 gcc_cv_as_dwarf2_debug_line=yes
27730 else
27731 echo "configure: failed program was" >&5
27732 cat conftest.s >&5
27734 rm -f conftest.o conftest.s
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27738 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27742 # The .debug_line file table must be in the exact order that
27743 # we specified the files, since these indices are also used
27744 # by DW_AT_decl_file. Approximate this test by testing if
27745 # the assembler bitches if the same index is assigned twice.
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27747 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27748 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27749 $as_echo_n "(cached) " >&6
27750 else
27751 gcc_cv_as_dwarf2_file_buggy=no
27752 if test x$gcc_cv_as != x; then
27753 $as_echo ' .file 1 "foo.s"
27754 .file 1 "bar.s"' > conftest.s
27755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27757 (eval $ac_try) 2>&5
27758 ac_status=$?
27759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27760 test $ac_status = 0; }; }
27761 then
27762 gcc_cv_as_dwarf2_file_buggy=yes
27763 else
27764 echo "configure: failed program was" >&5
27765 cat conftest.s >&5
27767 rm -f conftest.o conftest.s
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27771 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27775 if test $gcc_cv_as_dwarf2_debug_line = yes \
27776 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27778 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27783 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27784 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27785 $as_echo_n "(cached) " >&6
27786 else
27787 gcc_cv_as_gdwarf2_flag=no
27788 if test $in_tree_gas = yes; then
27789 if test $in_tree_gas_is_elf = yes \
27790 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27791 then gcc_cv_as_gdwarf2_flag=yes
27793 elif test x$gcc_cv_as != x; then
27794 $as_echo "$insn" > conftest.s
27795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -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_gdwarf2_flag=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_gdwarf2_flag" >&5
27811 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27812 if test $gcc_cv_as_gdwarf2_flag = yes; then
27814 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27820 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27821 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27822 $as_echo_n "(cached) " >&6
27823 else
27824 gcc_cv_as_gstabs_flag=no
27825 if test $in_tree_gas = yes; then
27826 if test $in_tree_gas_is_elf = yes \
27827 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27828 then gcc_cv_as_gstabs_flag=yes
27830 elif test x$gcc_cv_as != x; then
27831 $as_echo "$insn" > conftest.s
27832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27834 (eval $ac_try) 2>&5
27835 ac_status=$?
27836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27837 test $ac_status = 0; }; }
27838 then
27839 gcc_cv_as_gstabs_flag=yes
27840 else
27841 echo "configure: failed program was" >&5
27842 cat conftest.s >&5
27844 rm -f conftest.o conftest.s
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27848 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27849 if test $gcc_cv_as_gstabs_flag = yes; then
27851 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27857 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27858 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27859 $as_echo_n "(cached) " >&6
27860 else
27861 gcc_cv_as_debug_prefix_map_flag=no
27862 if test $in_tree_gas = yes; then
27863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27864 then gcc_cv_as_debug_prefix_map_flag=yes
27866 elif test x$gcc_cv_as != x; then
27867 $as_echo "$insn" > conftest.s
27868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27870 (eval $ac_try) 2>&5
27871 ac_status=$?
27872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27873 test $ac_status = 0; }; }
27874 then
27875 gcc_cv_as_debug_prefix_map_flag=yes
27876 else
27877 echo "configure: failed program was" >&5
27878 cat conftest.s >&5
27880 rm -f conftest.o conftest.s
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27884 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27885 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27887 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27894 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27895 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27896 $as_echo_n "(cached) " >&6
27897 else
27898 gcc_cv_as_compress_debug=no
27899 if test x$gcc_cv_as != x; then
27900 $as_echo '' > conftest.s
27901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27903 (eval $ac_try) 2>&5
27904 ac_status=$?
27905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27906 test $ac_status = 0; }; }
27907 then
27908 # gas compiled without zlib cannot compress debug sections and warns
27909 # about it, but still exits successfully. So check for this, too.
27910 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27911 then
27912 gcc_cv_as_compress_debug=0
27913 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27914 # defaulting to the ELF gABI format.
27915 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27916 then
27917 gcc_cv_as_compress_debug=2
27918 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27919 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27920 # Before binutils 2.26, gas only supported --compress-debug-options and
27921 # emitted the traditional GNU format.
27922 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27923 then
27924 gcc_cv_as_compress_debug=1
27925 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27926 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27927 else
27928 gcc_cv_as_compress_debug=0
27930 else
27931 echo "configure: failed program was" >&5
27932 cat conftest.s >&5
27934 rm -f conftest.o conftest.s
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27938 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27942 cat >>confdefs.h <<_ACEOF
27943 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27944 _ACEOF
27947 cat >>confdefs.h <<_ACEOF
27948 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27949 _ACEOF
27952 cat >>confdefs.h <<_ACEOF
27953 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27954 _ACEOF
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27958 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27959 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27960 $as_echo_n "(cached) " >&6
27961 else
27962 gcc_cv_as_lcomm_with_alignment=no
27963 if test x$gcc_cv_as != x; then
27964 $as_echo '.lcomm bar,4,16' > conftest.s
27965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27967 (eval $ac_try) 2>&5
27968 ac_status=$?
27969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27970 test $ac_status = 0; }; }
27971 then
27972 gcc_cv_as_lcomm_with_alignment=yes
27973 else
27974 echo "configure: failed program was" >&5
27975 cat conftest.s >&5
27977 rm -f conftest.o conftest.s
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27981 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27982 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27984 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27989 if test x$with_sysroot = x && test x$host = x$target \
27990 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27991 && test "$prefix" != "NONE"; then
27993 cat >>confdefs.h <<_ACEOF
27994 #define PREFIX_INCLUDE_DIR "$prefix/include"
27995 _ACEOF
27999 # Determine the version of glibc, if any, used on the target.
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28001 $as_echo_n "checking for target glibc version... " >&6; }
28003 # Check whether --with-glibc-version was given.
28004 if test "${with_glibc_version+set}" = set; then :
28005 withval=$with_glibc_version;
28006 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28007 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28008 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28009 else
28010 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28012 else
28014 glibc_version_major=0
28015 glibc_version_minor=0
28016 if test -f $target_header_dir/features.h \
28017 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28018 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28019 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28020 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28025 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28027 cat >>confdefs.h <<_ACEOF
28028 #define TARGET_GLIBC_MAJOR $glibc_version_major
28029 _ACEOF
28032 cat >>confdefs.h <<_ACEOF
28033 #define TARGET_GLIBC_MINOR $glibc_version_minor
28034 _ACEOF
28037 # Check whether --enable-gnu-unique-object was given.
28038 if test "${enable_gnu_unique_object+set}" = set; then :
28039 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28040 yes | no) ;;
28041 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28042 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28043 esac
28044 else
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28046 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28047 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28048 $as_echo_n "(cached) " >&6
28049 else
28050 gcc_cv_as_gnu_unique_object=no
28051 if test $in_tree_gas = yes; then
28052 if test $in_tree_gas_is_elf = yes \
28053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28054 then gcc_cv_as_gnu_unique_object=yes
28056 elif test x$gcc_cv_as != x; then
28057 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28063 test $ac_status = 0; }; }
28064 then
28065 gcc_cv_as_gnu_unique_object=yes
28066 else
28067 echo "configure: failed program was" >&5
28068 cat conftest.s >&5
28070 rm -f conftest.o conftest.s
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28074 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28075 if test $gcc_cv_as_gnu_unique_object = yes; then
28076 # We need to unquote above to to use the definition from config.gcc.
28077 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28079 if test $glibc_version_major -gt 2 \
28080 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28081 enable_gnu_unique_object=yes
28088 if test x$enable_gnu_unique_object = xyes; then
28090 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28095 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28096 if test "${gcc_cv_as_line_zero+set}" = set; then :
28097 $as_echo_n "(cached) " >&6
28098 else
28099 gcc_cv_as_line_zero=no
28100 if test $in_tree_gas = yes; then
28101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28102 then gcc_cv_as_line_zero=yes
28104 elif test "x$gcc_cv_as" != x; then
28105 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28106 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28108 (eval $ac_try) 2>&5
28109 ac_status=$?
28110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28111 test $ac_status = 0; }; } &&
28112 test "x`cat conftest.out`" = x
28113 then
28114 gcc_cv_as_line_zero=yes
28115 else
28116 echo "configure: failed program was" >&5
28117 cat conftest.s >&5
28118 echo "configure: error output was" >&5
28119 cat conftest.out >&5
28121 rm -f conftest.o conftest.s conftest.out
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28125 $as_echo "$gcc_cv_as_line_zero" >&6; }
28126 if test "x$gcc_cv_as_line_zero" = xyes; then
28128 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28133 $as_echo_n "checking support for thin archives... " >&6; }
28134 thin_archive_support=no
28135 echo 'int main (void) { return 0; }' > conftest.c
28136 if ($AR --version | sed 1q | grep "GNU ar" \
28137 && $CC $CFLAGS -c conftest.c \
28138 && $AR rcT conftest.a conftest.o \
28139 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28140 thin_archive_support=yes
28142 rm -f conftest.c conftest.o conftest.a conftest
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28144 $as_echo "$thin_archive_support" >&6; }
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28148 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28149 gcc_cv_ld_eh_frame_hdr=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 12 -o "$gcc_cv_gld_major_version" -gt 2 \
28152 && test $in_tree_ld_is_elf = yes; then
28153 gcc_cv_ld_eh_frame_hdr=yes
28155 elif test x$gcc_cv_ld != x; then
28156 if echo "$ld_ver" | grep GNU > /dev/null; then
28157 # Check if linker supports --eh-frame-hdr option
28158 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28159 gcc_cv_ld_eh_frame_hdr=yes
28161 else
28162 case "$target" in
28163 *-*-solaris2*)
28164 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28165 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28166 gcc_cv_ld_eh_frame_hdr=yes
28169 esac
28173 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28175 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28179 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28182 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28183 gcc_cv_ld_eh_frame_ciev3=no
28184 if test $in_tree_ld = yes ; then
28185 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 \
28186 && test $in_tree_ld_is_elf = yes; then
28187 gcc_cv_ld_eh_frame_ciev3=yes
28189 elif test x$gcc_cv_ld != x; then
28190 if echo "$ld_ver" | grep GNU > /dev/null; then
28191 gcc_cv_ld_eh_frame_ciev3=yes
28192 if test 0"$ld_date" -lt 20040513; then
28193 if test -n "$ld_date"; then
28194 # If there was date string, but was earlier than 2004-05-13, fail
28195 gcc_cv_ld_eh_frame_ciev3=no
28196 elif test "$ld_vers_major" -lt 2; then
28197 gcc_cv_ld_eh_frame_ciev3=no
28198 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28199 gcc_cv_ld_eh_frame_ciev3=no
28202 else
28203 case "$target" in
28204 *-*-solaris2*)
28205 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28206 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28207 gcc_cv_ld_eh_frame_ciev3=yes
28210 esac
28214 cat >>confdefs.h <<_ACEOF
28215 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28216 _ACEOF
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28219 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28222 $as_echo_n "checking linker position independent executable support... " >&6; }
28223 gcc_cv_ld_pie=no
28224 if test $in_tree_ld = yes ; then
28225 case "$target" in
28226 # Full PIE support on Solaris was only introduced in gld 2.26.
28227 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28228 *) gcc_gld_pie_min_version=15 ;;
28229 esac
28230 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 \
28231 && test $in_tree_ld_is_elf = yes; then
28232 gcc_cv_ld_pie=yes
28234 elif test x$gcc_cv_ld != x; then
28235 # Check if linker supports -pie option
28236 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28237 gcc_cv_ld_pie=yes
28238 case "$target" in
28239 *-*-solaris2*)
28240 if echo "$ld_ver" | grep GNU > /dev/null \
28241 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28242 gcc_cv_ld_pie=no
28245 esac
28246 else
28247 case "$target" in
28248 *-*-solaris2.1[1-9]*)
28249 # Solaris 11.3 added PIE support.
28250 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28251 gcc_cv_ld_pie=yes
28254 esac
28257 if test x"$gcc_cv_ld_pie" = xyes; then
28259 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28263 $as_echo "$gcc_cv_ld_pie" >&6; }
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28266 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28267 gcc_cv_ld_pie_copyreloc=no
28268 if test $gcc_cv_ld_pie = yes ; then
28269 if test $in_tree_ld = yes ; then
28270 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
28271 gcc_cv_ld_pie_copyreloc=yes
28273 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28274 # Check if linker supports -pie option with copy reloc
28275 case "$target" in
28276 i?86-*-linux* | x86_64-*-linux*)
28277 cat > conftest1.s <<EOF
28278 .globl a_glob
28279 .data
28280 .type a_glob, @object
28281 .size a_glob, 4
28282 a_glob:
28283 .long 2
28285 cat > conftest2.s <<EOF
28286 .text
28287 .globl main
28288 .type main, @function
28289 main:
28290 movl %eax, a_glob(%rip)
28291 .size main, .-main
28292 .globl ptr
28293 .section .data.rel,"aw",@progbits
28294 .type ptr, @object
28295 ptr:
28296 .quad a_glob
28298 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28299 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28300 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28301 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28302 gcc_cv_ld_pie_copyreloc=yes
28304 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28306 esac
28310 cat >>confdefs.h <<_ACEOF
28311 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28312 _ACEOF
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28315 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28318 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28319 gcc_cv_ld_eh_gc_sections=no
28320 if test $in_tree_ld = yes ; then
28321 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 \
28322 && test $in_tree_ld_is_elf = yes; then
28323 gcc_cv_ld_eh_gc_sections=yes
28325 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28326 cat > conftest.s <<EOF
28327 .section .text
28328 .globl _start
28329 .type _start, @function
28330 _start:
28331 .long foo
28332 .size _start, .-_start
28333 .section .text.foo,"ax",@progbits
28334 .type foo, @function
28335 foo:
28336 .long 0
28337 .size foo, .-foo
28338 .section .gcc_except_table.foo,"a",@progbits
28339 .L0:
28340 .long 0
28341 .section .eh_frame,"a",@progbits
28342 .long .L0
28344 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28345 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28346 | grep "gc-sections option ignored" > /dev/null; then
28347 gcc_cv_ld_eh_gc_sections=no
28348 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28349 | grep gcc_except_table > /dev/null; then
28350 gcc_cv_ld_eh_gc_sections=yes
28351 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28352 if test x$gcc_cv_as_comdat_group != xyes; then
28353 gcc_cv_ld_eh_gc_sections=no
28354 cat > conftest.s <<EOF
28355 .section .text
28356 .globl _start
28357 .type _start, @function
28358 _start:
28359 .long foo
28360 .size _start, .-_start
28361 .section .gnu.linkonce.t.foo,"ax",@progbits
28362 .type foo, @function
28363 foo:
28364 .long 0
28365 .size foo, .-foo
28366 .section .gcc_except_table.foo,"a",@progbits
28367 .L0:
28368 .long 0
28369 .section .eh_frame,"a",@progbits
28370 .long .L0
28372 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28373 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28374 | grep "gc-sections option ignored" > /dev/null; then
28375 gcc_cv_ld_eh_gc_sections=no
28376 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28377 | grep gcc_except_table > /dev/null; then
28378 gcc_cv_ld_eh_gc_sections=yes
28384 rm -f conftest.s conftest.o conftest
28386 case "$target" in
28387 hppa*-*-linux*)
28388 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28389 gcc_cv_ld_eh_gc_sections=no
28391 esac
28392 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28394 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28398 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28401 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28402 gcc_cv_ld_eh_gc_sections_bug=no
28403 if test $in_tree_ld = yes ; then
28404 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 \
28405 && test $in_tree_ld_is_elf = yes; then
28406 gcc_cv_ld_eh_gc_sections_bug=yes
28408 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
28409 gcc_cv_ld_eh_gc_sections_bug=yes
28410 cat > conftest.s <<EOF
28411 .section .text
28412 .globl _start
28413 .type _start, @function
28414 _start:
28415 .long foo
28416 .size _start, .-_start
28417 .section .text.startup.foo,"ax",@progbits
28418 .type foo, @function
28419 foo:
28420 .long 0
28421 .size foo, .-foo
28422 .section .gcc_except_table.foo,"a",@progbits
28423 .L0:
28424 .long 0
28425 .section .eh_frame,"a",@progbits
28426 .long .L0
28428 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28429 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28430 | grep "gc-sections option ignored" > /dev/null; then
28432 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28433 | grep gcc_except_table > /dev/null; then
28434 gcc_cv_ld_eh_gc_sections_bug=no
28437 rm -f conftest.s conftest.o conftest
28439 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28441 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28445 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28448 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28449 # gold/gld support compressed debug sections since binutils 2.19/2.21
28450 # In binutils 2.26, gld gained support for the ELF gABI format.
28451 if test $in_tree_ld = yes ; then
28452 gcc_cv_ld_compress_debug=0
28453 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 \
28454 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28455 gcc_cv_ld_compress_debug=2
28456 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28457 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 \
28458 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28459 gcc_cv_ld_compress_debug=3
28460 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28461 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 \
28462 && test $in_tree_ld_is_elf = yes; then
28463 gcc_cv_ld_compress_debug=1
28465 elif echo "$ld_ver" | grep GNU > /dev/null; then
28466 if test "$ld_vers_major" -lt 2 \
28467 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28468 gcc_cv_ld_compress_debug=0
28469 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28470 gcc_cv_ld_compress_debug=1
28471 else
28472 gcc_cv_ld_compress_debug=3
28473 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28475 if test $ld_is_gold = yes; then
28476 gcc_cv_ld_compress_debug=2
28477 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28479 else
28480 case "${target}" in
28481 *-*-solaris2*)
28482 # Introduced in Solaris 11.2.
28483 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28484 gcc_cv_ld_compress_debug=3
28485 gcc_cv_ld_compress_debug_option="-z compress-sections"
28486 else
28487 gcc_cv_ld_compress_debug=0
28491 # Assume linkers other than GNU ld don't support compessed debug
28492 # sections.
28493 gcc_cv_ld_compress_debug=0
28495 esac
28498 cat >>confdefs.h <<_ACEOF
28499 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28500 _ACEOF
28503 cat >>confdefs.h <<_ACEOF
28504 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28505 _ACEOF
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28508 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28510 if test x"$ld64_flag" = x"yes"; then
28512 # Set defaults for possibly untestable items.
28513 gcc_cv_ld64_export_dynamic=0
28515 if test "$build" = "$host"; then
28516 darwin_try_test=1
28517 else
28518 darwin_try_test=0
28521 # On Darwin, because of FAT library support, it is often possible to execute
28522 # exes from compatible archs even when the host differs from the build system.
28523 case "$build","$host" in
28524 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28525 darwin_try_test=1;;
28526 *) ;;
28527 esac
28529 # If the configurer specified a minimum ld64 version to be supported, then use
28530 # that to determine feature support.
28531 if test x"${gcc_cv_ld64_version}" != x; then
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28533 $as_echo_n "checking ld64 specified version... " >&6; }
28534 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28536 $as_echo "$gcc_cv_ld64_major" >&6; }
28537 if test "$gcc_cv_ld64_major" -ge 236; then
28538 gcc_cv_ld64_export_dynamic=1
28540 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28541 # If the version was not specified, try to find it.
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28543 $as_echo_n "checking linker version... " >&6; }
28544 if test x"${gcc_cv_ld64_version}" = x; then
28545 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28548 $as_echo "$gcc_cv_ld64_version" >&6; }
28550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28551 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28552 gcc_cv_ld64_export_dynamic=1
28553 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28554 gcc_cv_ld64_export_dynamic=0
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28557 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28560 if test x"${gcc_cv_ld64_version}" != x; then
28562 cat >>confdefs.h <<_ACEOF
28563 #define LD64_VERSION "${gcc_cv_ld64_version}"
28564 _ACEOF
28569 cat >>confdefs.h <<_ACEOF
28570 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28571 _ACEOF
28575 # --------
28576 # UNSORTED
28577 # --------
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28580 $as_echo_n "checking linker --as-needed support... " >&6; }
28581 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28582 $as_echo_n "(cached) " >&6
28583 else
28584 gcc_cv_ld_as_needed=no
28585 gcc_cv_ld_as_needed_option='--as-needed'
28586 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28587 if test $in_tree_ld = yes ; then
28588 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 \
28589 && test $in_tree_ld_is_elf = yes; then
28590 gcc_cv_ld_as_needed=yes
28592 elif test x$gcc_cv_ld != x; then
28593 # Check if linker supports --as-needed and --no-as-needed options
28594 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28595 gcc_cv_ld_as_needed=yes
28597 case "$target:$gnu_ld" in
28598 *-*-solaris2*:no)
28599 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28600 # forms.
28601 gcc_cv_ld_as_needed=yes
28602 gcc_cv_ld_as_needed_option="-z ignore"
28603 gcc_cv_ld_no_as_needed_option="-z record"
28605 esac
28607 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28608 # dl_iterate_phdr, i.e. since Solaris 11.
28609 case "$target" in
28610 *-*-solaris2.1[1-9]*)
28611 case "$target" in
28612 i?86-*-* | x86_64-*-*)
28613 if echo "$ld_ver" | grep GNU > /dev/null; then
28614 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28615 gcc_cv_ld_as_needed=no
28618 esac
28620 *-*-solaris2*)
28621 gcc_cv_ld_as_needed=no
28623 esac
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28627 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28628 if test x"$gcc_cv_ld_as_needed" = xyes; then
28630 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28633 cat >>confdefs.h <<_ACEOF
28634 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28635 _ACEOF
28638 cat >>confdefs.h <<_ACEOF
28639 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28640 _ACEOF
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28645 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28646 saved_LDFLAGS="$LDFLAGS"
28647 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28648 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28650 /* end confdefs.h. */
28651 int main(void) {return 0;}
28652 _ACEOF
28653 if ac_fn_cxx_try_link "$LINENO"; then :
28654 gcc_cv_ld_clearcap=yes; break
28655 else
28656 gcc_cv_ld_clearcap=no
28658 rm -f core conftest.err conftest.$ac_objext \
28659 conftest$ac_exeext conftest.$ac_ext
28660 done
28661 LDFLAGS="$saved_LDFLAGS"
28662 if test "x$gcc_cv_ld_clearcap" = xyes; then
28664 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28666 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28670 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28672 case "$target" in
28673 powerpc*-*-*)
28674 case "$target" in
28675 *le-*-linux*)
28676 emul_name="-melf32lppc"
28679 emul_name="-melf32ppc"
28681 esac
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28683 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28684 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28685 $as_echo_n "(cached) " >&6
28686 else
28687 gcc_cv_ld_ppc_attr=no
28688 if test x"$ld_is_gold" = xyes; then
28689 gcc_cv_ld_ppc_attr=yes
28690 elif test $in_tree_ld = yes ; then
28691 if test "$gcc_cv_gld_major_version" -eq 2 \
28692 -a "$gcc_cv_gld_minor_version" -ge 28 \
28693 -o "$gcc_cv_gld_major_version" -gt 2; then
28694 gcc_cv_ld_ppc_attr=yes
28696 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28697 # check that merging the long double .gnu_attribute doesn't warn
28698 cat > conftest1.s <<EOF
28699 .gnu_attribute 4,1
28701 cat > conftest2.s <<EOF
28702 .gnu_attribute 4,9
28704 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28705 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28706 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28707 && test ! -s conftest.err; then
28708 gcc_cv_ld_ppc_attr=yes
28710 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28715 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28716 if test x$gcc_cv_ld_ppc_attr = xyes; then
28718 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28722 esac
28724 case "$target:$tm_file" in
28725 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28726 case "$target" in
28727 *le-*-linux*)
28728 emul_name="-melf64lppc"
28730 *-*-linux*)
28731 emul_name="-melf64ppc"
28733 *-*-freebsd*)
28734 emul_name="-melf64ppc_fbsd"
28736 esac
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28738 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28739 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28740 $as_echo_n "(cached) " >&6
28741 else
28742 gcc_cv_ld_no_dot_syms=no
28743 if test x"$ld_is_gold" = xyes; then
28744 gcc_cv_ld_no_dot_syms=yes
28745 elif test $in_tree_ld = yes ; then
28746 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
28747 gcc_cv_ld_no_dot_syms=yes
28749 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28750 cat > conftest1.s <<EOF
28751 .text
28752 bl .foo
28754 cat > conftest2.s <<EOF
28755 .section ".opd","aw"
28756 .align 3
28757 .globl foo
28758 .type foo,@function
28759 foo:
28760 .quad .LEfoo,.TOC.@tocbase,0
28761 .text
28762 .LEfoo:
28764 .size foo,.-.LEfoo
28766 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28767 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28768 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28769 gcc_cv_ld_no_dot_syms=yes
28771 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28776 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28777 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28779 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28784 $as_echo_n "checking linker large toc support... " >&6; }
28785 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28786 $as_echo_n "(cached) " >&6
28787 else
28788 gcc_cv_ld_large_toc=no
28789 if test x"$ld_is_gold" = xyes; then
28790 gcc_cv_ld_large_toc=yes
28791 elif test $in_tree_ld = yes ; then
28792 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
28793 gcc_cv_ld_large_toc=yes
28795 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28796 cat > conftest.s <<EOF
28797 .section ".tbss","awT",@nobits
28798 .align 3
28799 ie0: .space 8
28800 .global _start
28801 .text
28802 _start:
28803 addis 9,13,ie0@got@tprel@ha
28804 ld 9,ie0@got@tprel@l(9)
28806 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28807 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28808 gcc_cv_ld_large_toc=yes
28810 rm -f conftest conftest.o conftest.s
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28815 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28816 if test x"$gcc_cv_ld_large_toc" = xyes; then
28818 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28823 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28824 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28825 $as_echo_n "(cached) " >&6
28826 else
28827 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28828 cat > conftest.s <<EOF
28829 .global _start
28830 .text
28831 _start:
28832 addis 9,2,x@got@ha
28833 .section .data.rel.ro,"aw",@progbits
28834 .p2align 16
28835 .space 32768
28836 x: .quad .TOC.
28838 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28839 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28840 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)) }'`
28842 rm -f conftest conftest.o conftest.s
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28847 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28848 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28850 cat >>confdefs.h <<_ACEOF
28851 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28852 _ACEOF
28856 esac
28858 case "$target" in
28859 *-*-aix*)
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28861 $as_echo_n "checking linker large toc support... " >&6; }
28862 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28863 $as_echo_n "(cached) " >&6
28864 else
28865 gcc_cv_ld_large_toc=no
28866 if test x$gcc_cv_as != x ; then
28867 cat > conftest.s <<EOF
28868 .toc
28869 LC..1:
28870 .tc a[TC],a[RW]
28871 .extern a[RW]
28872 .csect .text[PR]
28873 .largetoctest:
28874 addis 9,LC..1@u(2)
28875 ld 3,LC..1@l(9)
28877 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28878 gcc_cv_ld_large_toc=yes
28880 rm -f conftest conftest.o conftest.s
28884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28885 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28886 if test x"$gcc_cv_ld_large_toc" = xyes; then
28888 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28892 esac
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28895 $as_echo_n "checking linker --build-id support... " >&6; }
28896 if test "${gcc_cv_ld_buildid+set}" = set; then :
28897 $as_echo_n "(cached) " >&6
28898 else
28899 gcc_cv_ld_buildid=no
28900 if test $in_tree_ld = yes ; then
28901 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28902 "$gcc_cv_gld_minor_version" -ge 18 -o \
28903 "$gcc_cv_gld_major_version" -gt 2 \
28904 && test $in_tree_ld_is_elf = yes; then
28905 gcc_cv_ld_buildid=yes
28907 elif test x$gcc_cv_ld != x; then
28908 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28909 gcc_cv_ld_buildid=yes
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28914 $as_echo "$gcc_cv_ld_buildid" >&6; }
28915 if test x"$gcc_cv_ld_buildid" = xyes; then
28917 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28921 # Check whether --enable-linker-build-id was given.
28922 if test "${enable_linker_build_id+set}" = set; then :
28923 enableval=$enable_linker_build_id;
28924 else
28925 enable_linker_build_id=no
28929 if test x"$enable_linker_build_id" = xyes; then
28930 if test x"$gcc_cv_ld_buildid" = xyes; then
28932 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28934 else
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28936 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28940 # In binutils 2.21, GNU ld gained support for new emulations fully
28941 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28943 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28944 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28945 $as_echo_n "(cached) " >&6
28946 else
28947 gcc_cv_ld_sol2_emulation=no
28948 if test $in_tree_ld = yes ; then
28949 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28950 "$gcc_cv_gld_minor_version" -ge 21 -o \
28951 "$gcc_cv_gld_major_version" -gt 2 \
28952 && test $in_tree_ld_is_elf = yes; then
28953 gcc_cv_ld_sol2_emulation=yes
28955 elif test x$gcc_cv_ld != x; then
28956 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28957 grep _sol2 > /dev/null; then
28958 gcc_cv_ld_sol2_emulation=yes
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28963 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28964 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28966 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28971 $as_echo_n "checking linker --sysroot support... " >&6; }
28972 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28973 $as_echo_n "(cached) " >&6
28974 else
28975 gcc_cv_ld_sysroot=no
28976 if test $in_tree_ld = yes ; then
28977 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
28978 gcc_cv_ld_sysroot=yes
28980 elif test x$gcc_cv_ld != x; then
28981 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28982 gcc_cv_ld_sysroot=yes
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28987 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28988 if test x"$gcc_cv_ld_sysroot" = xyes; then
28990 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28994 case $target in
28995 *-*-solaris2*)
28996 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28998 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28999 if test "${gcc_cv_solaris_crts+set}" = set; then :
29000 $as_echo_n "(cached) " >&6
29001 else
29002 gcc_cv_solaris_crts=no
29003 if test x$host != x$target; then
29004 if test "x$with_sysroot" = xyes; then
29005 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29006 else
29007 target_sysroot="${with_sysroot}"
29010 target_libdir="$target_sysroot/usr/lib"
29011 # At the time they were added, gcrt1.o became a symlink for backwards
29012 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29013 case $target in
29014 i?86-*-solaris2* | x86_64-*-solaris2*)
29015 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29017 sparc*-*-solaris2*)
29018 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29020 esac
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29023 $as_echo "$gcc_cv_solaris_crts" >&6; }
29025 esac
29026 if test x$gcc_cv_solaris_crts = xyes; then
29028 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29032 # Check whether --enable-libssp was given.
29033 if test "${enable_libssp+set}" = set; then :
29034 enableval=$enable_libssp; case "${enableval}" in
29035 yes|no)
29038 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
29040 esac
29044 # Test for stack protector support in target C library.
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29046 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29047 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29048 $as_echo_n "(cached) " >&6
29049 else
29050 gcc_cv_libc_provides_ssp=no
29051 if test "x$enable_libssp" = "xno"; then
29052 gcc_cv_libc_provides_ssp=yes
29053 elif test "x$enable_libssp" = "xyes"; then
29054 gcc_cv_libc_provides_ssp=no
29055 else
29056 case "$target" in
29057 *-*-musl*)
29058 # All versions of musl provide stack protector
29059 gcc_cv_libc_provides_ssp=yes;;
29060 *-*-linux* | *-*-kfreebsd*-gnu)
29061 # glibc 2.4 and later provides __stack_chk_fail and
29062 # either __stack_chk_guard, or TLS access to stack guard canary.
29064 if test $glibc_version_major -gt 2 \
29065 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29066 gcc_cv_libc_provides_ssp=yes
29067 else
29069 if test -f $target_header_dir/features.h \
29070 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29071 $target_header_dir/features.h > /dev/null; then
29072 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29073 $target_header_dir/features.h > /dev/null && \
29074 test -f $target_header_dir/bits/uClibc_config.h && \
29075 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29076 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29077 gcc_cv_libc_provides_ssp=yes
29079 # all versions of Bionic support stack protector
29080 elif test -f $target_header_dir/sys/cdefs.h \
29081 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29082 $target_header_dir/sys/cdefs.h > /dev/null; then
29083 gcc_cv_libc_provides_ssp=yes
29087 *-*-gnu*)
29088 # Avoid complicated tests (see
29089 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29090 # simply assert that glibc does provide this, which is true for all
29091 # realistically usable GNU/Hurd configurations.
29092 # All supported versions of musl provide it as well
29093 gcc_cv_libc_provides_ssp=yes;;
29094 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29095 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29096 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
29097 gcc_cv_libc_provides_ssp=yes
29098 else
29099 echo "no __stack_chk_fail on this target"
29103 *) gcc_cv_libc_provides_ssp=no ;;
29104 esac
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29108 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29110 if test x$gcc_cv_libc_provides_ssp = xyes; then
29112 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29116 # Check whether --enable-default-ssp was given.
29117 # Check whether --enable-default-ssp was given.
29118 if test "${enable_default_ssp+set}" = set; then :
29119 enableval=$enable_default_ssp;
29120 if test x$gcc_cv_libc_provides_ssp = xyes; then
29121 case "$target" in
29122 ia64*-*-*) enable_default_ssp=no ;;
29123 *) enable_default_ssp=$enableval ;;
29124 esac
29125 else
29126 enable_default_ssp=no
29128 else
29129 enable_default_ssp=no
29132 if test x$enable_default_ssp = xyes ; then
29134 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29139 # Test for <sys/sdt.h> on the target.
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29142 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29143 have_sys_sdt_h=no
29144 if test -f $target_header_dir/sys/sdt.h; then
29145 have_sys_sdt_h=yes
29147 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29151 $as_echo "$have_sys_sdt_h" >&6; }
29153 # Check if TFmode long double should be used by default or not.
29154 # Some glibc targets used DFmode long double, but with glibc 2.4
29155 # and later they can use TFmode.
29156 case "$target" in
29157 powerpc*-*-linux* | \
29158 sparc*-*-linux* | \
29159 s390*-*-linux* | \
29160 alpha*-*-linux*)
29162 # Check whether --with-long-double-128 was given.
29163 if test "${with_long_double_128+set}" = set; then :
29164 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29165 else
29167 if test $glibc_version_major -gt 2 \
29168 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29169 gcc_cv_target_ldbl128=yes
29170 else
29172 gcc_cv_target_ldbl128=no
29173 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29174 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29175 && gcc_cv_target_ldbl128=yes
29181 esac
29182 if test x$gcc_cv_target_ldbl128 = xyes; then
29184 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29188 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29189 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29190 gcc_cv_libc_provides_hwcap_in_tcb=no
29191 case "$target" in
29192 powerpc*-*-linux*)
29194 if test $glibc_version_major -gt 2 \
29195 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29196 gcc_cv_libc_provides_hwcap_in_tcb=yes
29199 esac
29200 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29202 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29207 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29208 gcc_cv_target_dl_iterate_phdr=unknown
29209 case "$target" in
29210 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29211 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29212 # libdl there, both complicating its use and breaking compatibility
29213 # between Solaris 10 updates.
29214 *-*-solaris2.1[1-9]*)
29215 # <link.h> needs both a dl_iterate_phdr declaration and support for
29216 # compilation with largefile support.
29217 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29218 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29219 gcc_cv_target_dl_iterate_phdr=yes
29220 else
29221 gcc_cv_target_dl_iterate_phdr=no
29224 *-*-dragonfly* | *-*-freebsd*)
29225 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29226 gcc_cv_target_dl_iterate_phdr=yes
29227 else
29228 gcc_cv_target_dl_iterate_phdr=no
29231 *-linux-musl*)
29232 gcc_cv_target_dl_iterate_phdr=yes
29234 esac
29236 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29238 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29242 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29244 # We no longer support different GC mechanisms. Emit an error if
29245 # the user configures with --with-gc.
29247 # Check whether --with-gc was given.
29248 if test "${with_gc+set}" = set; then :
29249 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29253 # Libraries to use on the host. This will normally be set by the top
29254 # level Makefile. Here we simply capture the value for our Makefile.
29255 if test -z "${HOST_LIBS+set}"; then
29256 HOST_LIBS=
29260 # Use the system's zlib library.
29262 # Use the system's zlib library.
29263 zlibdir="-L\$(top_builddir)/../zlib"
29264 zlibinc="-I\$(top_srcdir)/../zlib"
29266 # Check whether --with-system-zlib was given.
29267 if test "${with_system_zlib+set}" = set; then :
29268 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29269 zlibdir=
29270 zlibinc=
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29281 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29282 # Check whether --enable-maintainer-mode was given.
29283 if test "${enable_maintainer_mode+set}" = set; then :
29284 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29285 else
29286 maintainer_mode=no
29290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29291 $as_echo "$maintainer_mode" >&6; }
29293 if test "$maintainer_mode" = "yes"; then
29294 MAINT=''
29295 else
29296 MAINT='#'
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29301 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29302 # Check whether --enable-link-mutex was given.
29303 if test "${enable_link_mutex+set}" = set; then :
29304 enableval=$enable_link_mutex; do_link_mutex=$enableval
29305 else
29306 do_link_mutex=no
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29310 $as_echo "$do_link_mutex" >&6; }
29312 if test "$do_link_mutex" = "yes"; then
29313 DO_LINK_MUTEX=true
29314 else
29315 DO_LINK_MUTEX=false
29319 # --------------
29320 # Language hooks
29321 # --------------
29323 # Make empty files to contain the specs and options for each language.
29324 # Then add #include lines to for a compiler that has specs and/or options.
29326 subdirs=
29327 lang_opt_files=
29328 lang_specs_files=
29329 lang_tree_files=
29330 # These (without "all_") are set in each config-lang.in.
29331 # `language' must be a single word so is spelled singularly.
29332 all_languages=
29333 all_compilers=
29334 all_outputs='Makefile'
29335 # List of language makefile fragments.
29336 all_lang_makefrags=
29337 # Additional files for gengtype
29338 all_gtfiles="$target_gtfiles"
29340 # These are the languages that are set in --enable-languages,
29341 # and are available in the GCC tree.
29342 all_selected_languages=
29344 # Add the language fragments.
29345 # Languages are added via two mechanisms. Some information must be
29346 # recorded in makefile variables, these are defined in config-lang.in.
29347 # We accumulate them and plug them into the main Makefile.
29348 # The other mechanism is a set of hooks for each of the main targets
29349 # like `clean', `install', etc.
29351 language_hooks="Make-hooks"
29353 for lang in ${srcdir}/*/config-lang.in
29355 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29357 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29358 if test "x$lang_alias" = x
29359 then
29360 echo "$lang doesn't set \$language." 1>&2
29361 exit 1
29363 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29364 subdirs="$subdirs $subdir"
29366 # $gcc_subdir is where the gcc integration files are to be found
29367 # for a language, both for internal compiler purposes (compiler
29368 # sources implementing front-end to GCC tree converters), and for
29369 # build infrastructure purposes (Make-lang.in, etc.)
29371 # This will be <subdir> (relative to $srcdir) if a line like
29372 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29373 # is found in <langdir>/config-lang.in, and will remain <langdir>
29374 # otherwise.
29376 # Except for the language alias (fetched above), the regular
29377 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29378 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29379 # only this and the language alias.
29381 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29382 if [ "$gcc_subdir" = "" ]; then
29383 gcc_subdir="$subdir"
29386 case ",$enable_languages," in
29387 *,$lang_alias,*)
29388 all_selected_languages="$all_selected_languages $lang_alias"
29389 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29390 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29393 esac
29395 language=
29396 boot_language=
29397 compilers=
29398 outputs=
29399 gtfiles=
29400 subdir_requires=
29401 . ${srcdir}/$gcc_subdir/config-lang.in
29402 if test "x$language" = x
29403 then
29404 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29405 exit 1
29408 ok=:
29409 case ",$enable_languages," in
29410 *,$lang_alias,*) ;;
29412 for i in $subdir_requires; do
29413 test -f "${srcdir}/$i/config-lang.in" && continue
29414 ok=false
29415 break
29416 done
29418 esac
29419 $ok || continue
29421 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29422 if test -f $srcdir/$gcc_subdir/lang.opt; then
29423 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29424 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29426 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29427 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29429 all_languages="$all_languages $language"
29430 all_compilers="$all_compilers $compilers"
29431 all_outputs="$all_outputs $outputs"
29432 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29433 case ",$enable_languages," in
29434 *,lto,*)
29436 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29438 enable_lto=yes
29441 *) ;;
29442 esac
29443 done
29445 check_languages=
29446 for language in $all_selected_languages
29448 check_languages="$check_languages check-$language"
29449 done
29451 # We link each language in with a set of hooks, reached indirectly via
29452 # lang.${target}. Only do so for selected languages.
29454 rm -f Make-hooks
29455 touch Make-hooks
29456 target_list="all.cross start.encap rest.encap tags \
29457 install-common install-man install-info install-pdf install-html dvi \
29458 pdf html uninstall info man srcextra srcman srcinfo \
29459 mostlyclean clean distclean maintainer-clean install-plugin"
29461 for t in $target_list
29464 for lang in $all_selected_languages
29466 x="$x $lang.$t"
29467 done
29468 echo "lang.$t: $x" >> Make-hooks
29469 done
29471 # --------
29472 # Option include files
29473 # --------
29475 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29476 option_includes="option-includes.mk"
29479 # --------
29480 # UNSORTED
29481 # --------
29483 # Create .gdbinit.
29485 echo "dir ." > .gdbinit
29486 echo "dir ${srcdir}" >> .gdbinit
29487 if test x$gdb_needs_out_file_path = xyes
29488 then
29489 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29491 if test "x$subdirs" != x; then
29492 for s in $subdirs
29494 echo "dir ${srcdir}/$s" >> .gdbinit
29495 done
29497 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29498 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29500 # Put a breakpoint on __asan_report_error to help with debugging buffer
29501 # overflow.
29502 case "$CFLAGS" in
29503 *-fsanitize=address*)
29504 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29506 esac
29508 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29512 # Find a directory in which to install a shared libgcc.
29514 # Check whether --enable-version-specific-runtime-libs was given.
29515 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29516 enableval=$enable_version_specific_runtime_libs;
29520 # Substitute configuration variables
29583 # Echo link setup.
29584 if test x${build} = x${host} ; then
29585 if test x${host} = x${target} ; then
29586 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29587 else
29588 echo "Links are now set up to build a cross-compiler" 1>&2
29589 echo " from ${host} to ${target}." 1>&2
29591 else
29592 if test x${host} = x${target} ; then
29593 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29594 echo " for ${target}." 1>&2
29595 else
29596 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29597 echo " from ${host} to ${target}." 1>&2
29606 if test "x${ISLLIBS}" != "x" ; then
29608 $as_echo "#define HAVE_isl 1" >>confdefs.h
29612 # Check for plugin support
29613 # Check whether --enable-plugin was given.
29614 if test "${enable_plugin+set}" = set; then :
29615 enableval=$enable_plugin; enable_plugin=$enableval
29616 else
29617 enable_plugin=yes; default_plugin=yes
29621 pluginlibs=
29622 plugin_check=yes
29624 case "${host}" in
29625 *-*-mingw*)
29626 # Since plugin support under MinGW is not as straightforward as on
29627 # other platforms (e.g., we have to link import library, etc), we
29628 # only enable it if explicitly requested.
29629 if test x"$default_plugin" = x"yes"; then
29630 enable_plugin=no
29631 elif test x"$enable_plugin" = x"yes"; then
29632 # Use make's target variable to derive import library name.
29633 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29634 plugin_check=no
29637 *-*-darwin*)
29638 if test x$build = x$host; then
29639 export_sym_check="nm${exeext} -g"
29640 elif test x$host = x$target; then
29641 export_sym_check="$gcc_cv_nm -g"
29642 else
29643 export_sym_check=
29647 if test x$build = x$host; then
29648 export_sym_check="objdump${exeext} -T"
29649 elif test x$host = x$target; then
29650 export_sym_check="$gcc_cv_objdump -T"
29651 else
29652 export_sym_check=
29655 esac
29657 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29660 $as_echo_n "checking for exported symbols... " >&6; }
29661 if test "x$export_sym_check" != x; then
29662 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29663 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29664 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29665 : # No need to use a flag
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29667 $as_echo "yes" >&6; }
29668 else
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29670 $as_echo "yes" >&6; }
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29672 $as_echo_n "checking for -rdynamic... " >&6; }
29673 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29674 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29675 plugin_rdynamic=yes
29676 pluginlibs="-rdynamic"
29677 else
29678 plugin_rdynamic=no
29679 enable_plugin=no
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29682 $as_echo "$plugin_rdynamic" >&6; }
29684 else
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29686 $as_echo "unable to check" >&6; }
29689 # Check -ldl
29690 saved_LIBS="$LIBS"
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29692 $as_echo_n "checking for library containing dlopen... " >&6; }
29693 if test "${ac_cv_search_dlopen+set}" = set; then :
29694 $as_echo_n "(cached) " >&6
29695 else
29696 ac_func_search_save_LIBS=$LIBS
29697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29698 /* end confdefs.h. */
29700 /* Override any GCC internal prototype to avoid an error.
29701 Use char because int might match the return type of a GCC
29702 builtin and then its argument prototype would still apply. */
29703 #ifdef __cplusplus
29704 extern "C"
29705 #endif
29706 char dlopen ();
29708 main ()
29710 return dlopen ();
29712 return 0;
29714 _ACEOF
29715 for ac_lib in '' dl; do
29716 if test -z "$ac_lib"; then
29717 ac_res="none required"
29718 else
29719 ac_res=-l$ac_lib
29720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29722 if ac_fn_cxx_try_link "$LINENO"; then :
29723 ac_cv_search_dlopen=$ac_res
29725 rm -f core conftest.err conftest.$ac_objext \
29726 conftest$ac_exeext
29727 if test "${ac_cv_search_dlopen+set}" = set; then :
29728 break
29730 done
29731 if test "${ac_cv_search_dlopen+set}" = set; then :
29733 else
29734 ac_cv_search_dlopen=no
29736 rm conftest.$ac_ext
29737 LIBS=$ac_func_search_save_LIBS
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29740 $as_echo "$ac_cv_search_dlopen" >&6; }
29741 ac_res=$ac_cv_search_dlopen
29742 if test "$ac_res" != no; then :
29743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29747 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29748 pluginlibs="$pluginlibs -ldl"
29750 LIBS="$saved_LIBS"
29752 # Check that we can build shared objects with -fPIC -shared
29753 saved_LDFLAGS="$LDFLAGS"
29754 saved_CFLAGS="$CFLAGS"
29755 case "${host}" in
29756 *-*-darwin*)
29757 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29758 CFLAGS="$CFLAGS -fPIC"
29759 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29762 CFLAGS="$CFLAGS -fPIC"
29763 LDFLAGS="$LDFLAGS -fPIC -shared"
29765 esac
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29767 $as_echo_n "checking for -fPIC -shared... " >&6; }
29768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29769 /* end confdefs.h. */
29770 extern int X;
29772 main ()
29774 return X == 0;
29776 return 0;
29778 _ACEOF
29779 if ac_fn_cxx_try_link "$LINENO"; then :
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29781 $as_echo "yes" >&6; }; have_pic_shared=yes
29782 else
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29784 $as_echo "no" >&6; }; have_pic_shared=no
29786 rm -f core conftest.err conftest.$ac_objext \
29787 conftest$ac_exeext conftest.$ac_ext
29788 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29789 pluginlibs=
29790 enable_plugin=no
29792 LDFLAGS="$saved_LDFLAGS"
29793 CFLAGS="$saved_CFLAGS"
29795 # If plugin support had been requested but not available, fail.
29796 if test x"$enable_plugin" = x"no" ; then
29797 if test x"$default_plugin" != x"yes"; then
29798 as_fn_error "
29799 Building GCC with plugin support requires a host that supports
29800 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29807 if test x"$enable_plugin" = x"yes"; then
29809 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29814 # Enable --enable-host-shared
29815 # Check whether --enable-host-shared was given.
29816 if test "${enable_host_shared+set}" = set; then :
29817 enableval=$enable_host_shared; PICFLAG=-fPIC
29818 else
29819 PICFLAG=
29826 # Check whether --enable-libquadmath-support was given.
29827 if test "${enable_libquadmath_support+set}" = set; then :
29828 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29829 else
29830 ENABLE_LIBQUADMATH_SUPPORT=yes
29833 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29835 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29840 # Specify what hash style to use by default.
29842 # Check whether --with-linker-hash-style was given.
29843 if test "${with_linker_hash_style+set}" = set; then :
29844 withval=$with_linker_hash_style; case x"$withval" in
29845 xsysv)
29846 LINKER_HASH_STYLE=sysv
29848 xgnu)
29849 LINKER_HASH_STYLE=gnu
29851 xboth)
29852 LINKER_HASH_STYLE=both
29855 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29857 esac
29858 else
29859 LINKER_HASH_STYLE=''
29862 if test x"${LINKER_HASH_STYLE}" != x; then
29864 cat >>confdefs.h <<_ACEOF
29865 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29866 _ACEOF
29870 # Specify what should be the default of -fdiagnostics-color option.
29872 # Check whether --with-diagnostics-color was given.
29873 if test "${with_diagnostics_color+set}" = set; then :
29874 withval=$with_diagnostics_color; case x"$withval" in
29875 xnever)
29876 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29878 xauto)
29879 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29881 xauto-if-env)
29882 DIAGNOSTICS_COLOR_DEFAULT=-1
29884 xalways)
29885 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29888 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29890 esac
29891 else
29892 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29896 cat >>confdefs.h <<_ACEOF
29897 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29898 _ACEOF
29901 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29902 # of jit/jit-playback.c.
29903 cat > gcc-driver-name.h <<EOF
29904 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29907 # Check whether --enable-default-pie was given.
29908 # Check whether --enable-default-pie was given.
29909 if test "${enable_default_pie+set}" = set; then :
29910 enableval=$enable_default_pie; enable_default_pie=$enableval
29911 else
29912 enable_default_pie=no
29915 if test x$enable_default_pie = xyes ; then
29917 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29922 # Check if -fno-PIE works.
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29924 $as_echo_n "checking for -fno-PIE option... " >&6; }
29925 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29926 $as_echo_n "(cached) " >&6
29927 else
29928 saved_CXXFLAGS="$CXXFLAGS"
29929 CXXFLAGS="$CXXFLAGS -fno-PIE"
29930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29931 /* end confdefs.h. */
29932 int main(void) {return 0;}
29933 _ACEOF
29934 if ac_fn_cxx_try_compile "$LINENO"; then :
29935 gcc_cv_c_no_fpie=yes
29936 else
29937 gcc_cv_c_no_fpie=no
29939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29940 CXXFLAGS="$saved_CXXFLAGS"
29942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29943 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29944 if test "$gcc_cv_c_no_fpie" = "yes"; then
29945 NO_PIE_CFLAGS="-fno-PIE"
29949 # Check if -no-pie works.
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29951 $as_echo_n "checking for -no-pie option... " >&6; }
29952 if test "${gcc_cv_no_pie+set}" = set; then :
29953 $as_echo_n "(cached) " >&6
29954 else
29955 saved_LDFLAGS="$LDFLAGS"
29956 LDFLAGS="$LDFLAGS -no-pie"
29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29958 /* end confdefs.h. */
29959 int main(void) {return 0;}
29960 _ACEOF
29961 if ac_fn_cxx_try_link "$LINENO"; then :
29962 gcc_cv_no_pie=yes
29963 else
29964 gcc_cv_no_pie=no
29966 rm -f core conftest.err conftest.$ac_objext \
29967 conftest$ac_exeext conftest.$ac_ext
29968 LDFLAGS="$saved_LDFLAGS"
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29971 $as_echo "$gcc_cv_no_pie" >&6; }
29972 if test "$gcc_cv_no_pie" = "yes"; then
29973 NO_PIE_FLAG="-no-pie"
29977 # Check linker supports '-z bndplt'
29978 ld_bndplt_support=no
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29980 $as_echo_n "checking linker -z bndplt option... " >&6; }
29981 if test x"$ld_is_gold" = xno; then
29982 if test $in_tree_ld = yes ; then
29983 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
29984 ld_bndplt_support=yes
29986 elif test x$gcc_cv_ld != x; then
29987 # Check if linker supports -a bndplt option
29988 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29989 ld_bndplt_support=yes
29993 if test x"$ld_bndplt_support" = xyes; then
29995 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29999 $as_echo "$ld_bndplt_support" >&6; }
30001 # Check linker supports '--push-state'/'--pop-state'
30002 ld_pushpopstate_support=no
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30004 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30005 if test x"$ld_is_gold" = xno; then
30006 if test $in_tree_ld = yes ; then
30007 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
30008 ld_pushpopstate_support=yes
30010 elif test x$gcc_cv_ld != x; then
30011 # Check if linker supports --push-state/--pop-state options
30012 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30013 ld_pushpopstate_support=yes
30017 if test x"$ld_pushpopstate_support" = xyes; then
30019 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30023 $as_echo "$ld_pushpopstate_support" >&6; }
30025 # Configure the subdirectories
30026 # AC_CONFIG_SUBDIRS($subdirs)
30028 # Create the Makefile
30029 # and configure language subdirectories
30030 ac_config_files="$ac_config_files $all_outputs"
30033 ac_config_commands="$ac_config_commands default"
30035 cat >confcache <<\_ACEOF
30036 # This file is a shell script that caches the results of configure
30037 # tests run on this system so they can be shared between configure
30038 # scripts and configure runs, see configure's option --config-cache.
30039 # It is not useful on other systems. If it contains results you don't
30040 # want to keep, you may remove or edit it.
30042 # config.status only pays attention to the cache file if you give it
30043 # the --recheck option to rerun configure.
30045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30047 # following values.
30049 _ACEOF
30051 # The following way of writing the cache mishandles newlines in values,
30052 # but we know of no workaround that is simple, portable, and efficient.
30053 # So, we kill variables containing newlines.
30054 # Ultrix sh set writes to stderr and can't be redirected directly,
30055 # and sets the high bit in the cache file unless we assign to the vars.
30057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30058 eval ac_val=\$$ac_var
30059 case $ac_val in #(
30060 *${as_nl}*)
30061 case $ac_var in #(
30062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30064 esac
30065 case $ac_var in #(
30066 _ | IFS | as_nl) ;; #(
30067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30068 *) { eval $ac_var=; unset $ac_var;} ;;
30069 esac ;;
30070 esac
30071 done
30073 (set) 2>&1 |
30074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30075 *${as_nl}ac_space=\ *)
30076 # `set' does not quote correctly, so add quotes: double-quote
30077 # substitution turns \\\\ into \\, and sed turns \\ into \.
30078 sed -n \
30079 "s/'/'\\\\''/g;
30080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30081 ;; #(
30083 # `set' quotes correctly as required by POSIX, so do not add quotes.
30084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30086 esac |
30087 sort
30089 sed '
30090 /^ac_cv_env_/b end
30091 t clear
30092 :clear
30093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30094 t end
30095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30096 :end' >>confcache
30097 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30098 if test -w "$cache_file"; then
30099 test "x$cache_file" != "x/dev/null" &&
30100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30101 $as_echo "$as_me: updating cache $cache_file" >&6;}
30102 cat confcache >$cache_file
30103 else
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30105 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30108 rm -f confcache
30110 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30111 # Let make expand exec_prefix.
30112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30114 DEFS=-DHAVE_CONFIG_H
30116 ac_libobjs=
30117 ac_ltlibobjs=
30118 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30119 # 1. Remove the extension, and $U if already installed.
30120 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30121 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30122 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30123 # will be set to the directory where LIBOBJS objects are built.
30124 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30125 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30126 done
30127 LIBOBJS=$ac_libobjs
30129 LTLIBOBJS=$ac_ltlibobjs
30134 : ${CONFIG_STATUS=./config.status}
30135 ac_write_fail=0
30136 ac_clean_files_save=$ac_clean_files
30137 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30139 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30140 as_write_fail=0
30141 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30142 #! $SHELL
30143 # Generated by $as_me.
30144 # Run this file to recreate the current configuration.
30145 # Compiler output produced by configure, useful for debugging
30146 # configure, is in config.log if it exists.
30148 debug=false
30149 ac_cs_recheck=false
30150 ac_cs_silent=false
30152 SHELL=\${CONFIG_SHELL-$SHELL}
30153 export SHELL
30154 _ASEOF
30155 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30156 ## -------------------- ##
30157 ## M4sh Initialization. ##
30158 ## -------------------- ##
30160 # Be more Bourne compatible
30161 DUALCASE=1; export DUALCASE # for MKS sh
30162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30163 emulate sh
30164 NULLCMD=:
30165 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30166 # is contrary to our usage. Disable this feature.
30167 alias -g '${1+"$@"}'='"$@"'
30168 setopt NO_GLOB_SUBST
30169 else
30170 case `(set -o) 2>/dev/null` in #(
30171 *posix*) :
30172 set -o posix ;; #(
30173 *) :
30175 esac
30179 as_nl='
30181 export as_nl
30182 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30183 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30185 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30186 # Prefer a ksh shell builtin over an external printf program on Solaris,
30187 # but without wasting forks for bash or zsh.
30188 if test -z "$BASH_VERSION$ZSH_VERSION" \
30189 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30190 as_echo='print -r --'
30191 as_echo_n='print -rn --'
30192 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30193 as_echo='printf %s\n'
30194 as_echo_n='printf %s'
30195 else
30196 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30197 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30198 as_echo_n='/usr/ucb/echo -n'
30199 else
30200 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30201 as_echo_n_body='eval
30202 arg=$1;
30203 case $arg in #(
30204 *"$as_nl"*)
30205 expr "X$arg" : "X\\(.*\\)$as_nl";
30206 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30207 esac;
30208 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30210 export as_echo_n_body
30211 as_echo_n='sh -c $as_echo_n_body as_echo'
30213 export as_echo_body
30214 as_echo='sh -c $as_echo_body as_echo'
30217 # The user is always right.
30218 if test "${PATH_SEPARATOR+set}" != set; then
30219 PATH_SEPARATOR=:
30220 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30221 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30222 PATH_SEPARATOR=';'
30227 # IFS
30228 # We need space, tab and new line, in precisely that order. Quoting is
30229 # there to prevent editors from complaining about space-tab.
30230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30231 # splitting by setting IFS to empty value.)
30232 IFS=" "" $as_nl"
30234 # Find who we are. Look in the path if we contain no directory separator.
30235 case $0 in #((
30236 *[\\/]* ) as_myself=$0 ;;
30237 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30238 for as_dir in $PATH
30240 IFS=$as_save_IFS
30241 test -z "$as_dir" && as_dir=.
30242 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30243 done
30244 IFS=$as_save_IFS
30247 esac
30248 # We did not find ourselves, most probably we were run as `sh COMMAND'
30249 # in which case we are not to be found in the path.
30250 if test "x$as_myself" = x; then
30251 as_myself=$0
30253 if test ! -f "$as_myself"; then
30254 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30255 exit 1
30258 # Unset variables that we do not need and which cause bugs (e.g. in
30259 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30260 # suppresses any "Segmentation fault" message there. '((' could
30261 # trigger a bug in pdksh 5.2.14.
30262 for as_var in BASH_ENV ENV MAIL MAILPATH
30263 do eval test x\${$as_var+set} = xset \
30264 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30265 done
30266 PS1='$ '
30267 PS2='> '
30268 PS4='+ '
30270 # NLS nuisances.
30271 LC_ALL=C
30272 export LC_ALL
30273 LANGUAGE=C
30274 export LANGUAGE
30276 # CDPATH.
30277 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30280 # as_fn_error ERROR [LINENO LOG_FD]
30281 # ---------------------------------
30282 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30283 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30284 # script with status $?, using 1 if that was 0.
30285 as_fn_error ()
30287 as_status=$?; test $as_status -eq 0 && as_status=1
30288 if test "$3"; then
30289 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30290 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30292 $as_echo "$as_me: error: $1" >&2
30293 as_fn_exit $as_status
30294 } # as_fn_error
30297 # as_fn_set_status STATUS
30298 # -----------------------
30299 # Set $? to STATUS, without forking.
30300 as_fn_set_status ()
30302 return $1
30303 } # as_fn_set_status
30305 # as_fn_exit STATUS
30306 # -----------------
30307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30308 as_fn_exit ()
30310 set +e
30311 as_fn_set_status $1
30312 exit $1
30313 } # as_fn_exit
30315 # as_fn_unset VAR
30316 # ---------------
30317 # Portably unset VAR.
30318 as_fn_unset ()
30320 { eval $1=; unset $1;}
30322 as_unset=as_fn_unset
30323 # as_fn_append VAR VALUE
30324 # ----------------------
30325 # Append the text in VALUE to the end of the definition contained in VAR. Take
30326 # advantage of any shell optimizations that allow amortized linear growth over
30327 # repeated appends, instead of the typical quadratic growth present in naive
30328 # implementations.
30329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30330 eval 'as_fn_append ()
30332 eval $1+=\$2
30334 else
30335 as_fn_append ()
30337 eval $1=\$$1\$2
30339 fi # as_fn_append
30341 # as_fn_arith ARG...
30342 # ------------------
30343 # Perform arithmetic evaluation on the ARGs, and store the result in the
30344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30345 # must be portable across $(()) and expr.
30346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30347 eval 'as_fn_arith ()
30349 as_val=$(( $* ))
30351 else
30352 as_fn_arith ()
30354 as_val=`expr "$@" || test $? -eq 1`
30356 fi # as_fn_arith
30359 if expr a : '\(a\)' >/dev/null 2>&1 &&
30360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30361 as_expr=expr
30362 else
30363 as_expr=false
30366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30367 as_basename=basename
30368 else
30369 as_basename=false
30372 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30373 as_dirname=dirname
30374 else
30375 as_dirname=false
30378 as_me=`$as_basename -- "$0" ||
30379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30380 X"$0" : 'X\(//\)$' \| \
30381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30382 $as_echo X/"$0" |
30383 sed '/^.*\/\([^/][^/]*\)\/*$/{
30384 s//\1/
30387 /^X\/\(\/\/\)$/{
30388 s//\1/
30391 /^X\/\(\/\).*/{
30392 s//\1/
30395 s/.*/./; q'`
30397 # Avoid depending upon Character Ranges.
30398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30401 as_cr_digits='0123456789'
30402 as_cr_alnum=$as_cr_Letters$as_cr_digits
30404 ECHO_C= ECHO_N= ECHO_T=
30405 case `echo -n x` in #(((((
30406 -n*)
30407 case `echo 'xy\c'` in
30408 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30409 xy) ECHO_C='\c';;
30410 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30411 ECHO_T=' ';;
30412 esac;;
30414 ECHO_N='-n';;
30415 esac
30417 rm -f conf$$ conf$$.exe conf$$.file
30418 if test -d conf$$.dir; then
30419 rm -f conf$$.dir/conf$$.file
30420 else
30421 rm -f conf$$.dir
30422 mkdir conf$$.dir 2>/dev/null
30424 if (echo >conf$$.file) 2>/dev/null; then
30425 if ln -s conf$$.file conf$$ 2>/dev/null; then
30426 as_ln_s='ln -s'
30427 # ... but there are two gotchas:
30428 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30429 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30430 # In both cases, we have to default to `cp -p'.
30431 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30432 as_ln_s='cp -p'
30433 elif ln conf$$.file conf$$ 2>/dev/null; then
30434 as_ln_s=ln
30435 else
30436 as_ln_s='cp -p'
30438 else
30439 as_ln_s='cp -p'
30441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30442 rmdir conf$$.dir 2>/dev/null
30445 # as_fn_mkdir_p
30446 # -------------
30447 # Create "$as_dir" as a directory, including parents if necessary.
30448 as_fn_mkdir_p ()
30451 case $as_dir in #(
30452 -*) as_dir=./$as_dir;;
30453 esac
30454 test -d "$as_dir" || eval $as_mkdir_p || {
30455 as_dirs=
30456 while :; do
30457 case $as_dir in #(
30458 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30459 *) as_qdir=$as_dir;;
30460 esac
30461 as_dirs="'$as_qdir' $as_dirs"
30462 as_dir=`$as_dirname -- "$as_dir" ||
30463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30464 X"$as_dir" : 'X\(//\)[^/]' \| \
30465 X"$as_dir" : 'X\(//\)$' \| \
30466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30467 $as_echo X"$as_dir" |
30468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30469 s//\1/
30472 /^X\(\/\/\)[^/].*/{
30473 s//\1/
30476 /^X\(\/\/\)$/{
30477 s//\1/
30480 /^X\(\/\).*/{
30481 s//\1/
30484 s/.*/./; q'`
30485 test -d "$as_dir" && break
30486 done
30487 test -z "$as_dirs" || eval "mkdir $as_dirs"
30488 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30491 } # as_fn_mkdir_p
30492 if mkdir -p . 2>/dev/null; then
30493 as_mkdir_p='mkdir -p "$as_dir"'
30494 else
30495 test -d ./-p && rmdir ./-p
30496 as_mkdir_p=false
30499 if test -x / >/dev/null 2>&1; then
30500 as_test_x='test -x'
30501 else
30502 if ls -dL / >/dev/null 2>&1; then
30503 as_ls_L_option=L
30504 else
30505 as_ls_L_option=
30507 as_test_x='
30508 eval sh -c '\''
30509 if test -d "$1"; then
30510 test -d "$1/.";
30511 else
30512 case $1 in #(
30513 -*)set "./$1";;
30514 esac;
30515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30516 ???[sx]*):;;*)false;;esac;fi
30517 '\'' sh
30520 as_executable_p=$as_test_x
30522 # Sed expression to map a string onto a valid CPP name.
30523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30525 # Sed expression to map a string onto a valid variable name.
30526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30529 exec 6>&1
30530 ## ----------------------------------- ##
30531 ## Main body of $CONFIG_STATUS script. ##
30532 ## ----------------------------------- ##
30533 _ASEOF
30534 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30537 # Save the log message, to keep $0 and so on meaningful, and to
30538 # report actual input values of CONFIG_FILES etc. instead of their
30539 # values after options handling.
30540 ac_log="
30541 This file was extended by $as_me, which was
30542 generated by GNU Autoconf 2.64. Invocation command line was
30544 CONFIG_FILES = $CONFIG_FILES
30545 CONFIG_HEADERS = $CONFIG_HEADERS
30546 CONFIG_LINKS = $CONFIG_LINKS
30547 CONFIG_COMMANDS = $CONFIG_COMMANDS
30548 $ $0 $@
30550 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30553 _ACEOF
30555 case $ac_config_files in *"
30556 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30557 esac
30559 case $ac_config_headers in *"
30560 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30561 esac
30564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30565 # Files that config.status was made for.
30566 config_files="$ac_config_files"
30567 config_headers="$ac_config_headers"
30568 config_links="$ac_config_links"
30569 config_commands="$ac_config_commands"
30571 _ACEOF
30573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30574 ac_cs_usage="\
30575 \`$as_me' instantiates files and other configuration actions
30576 from templates according to the current configuration. Unless the files
30577 and actions are specified as TAGs, all are instantiated by default.
30579 Usage: $0 [OPTION]... [TAG]...
30581 -h, --help print this help, then exit
30582 -V, --version print version number and configuration settings, then exit
30583 -q, --quiet, --silent
30584 do not print progress messages
30585 -d, --debug don't remove temporary files
30586 --recheck update $as_me by reconfiguring in the same conditions
30587 --file=FILE[:TEMPLATE]
30588 instantiate the configuration file FILE
30589 --header=FILE[:TEMPLATE]
30590 instantiate the configuration header FILE
30592 Configuration files:
30593 $config_files
30595 Configuration headers:
30596 $config_headers
30598 Configuration links:
30599 $config_links
30601 Configuration commands:
30602 $config_commands
30604 Report bugs to the package provider."
30606 _ACEOF
30607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30608 ac_cs_version="\\
30609 config.status
30610 configured by $0, generated by GNU Autoconf 2.64,
30611 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30613 Copyright (C) 2009 Free Software Foundation, Inc.
30614 This config.status script is free software; the Free Software Foundation
30615 gives unlimited permission to copy, distribute and modify it."
30617 ac_pwd='$ac_pwd'
30618 srcdir='$srcdir'
30619 AWK='$AWK'
30620 test -n "\$AWK" || AWK=awk
30621 _ACEOF
30623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30624 # The default lists apply if the user does not specify any file.
30625 ac_need_defaults=:
30626 while test $# != 0
30628 case $1 in
30629 --*=*)
30630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30632 ac_shift=:
30635 ac_option=$1
30636 ac_optarg=$2
30637 ac_shift=shift
30639 esac
30641 case $ac_option in
30642 # Handling of the options.
30643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30644 ac_cs_recheck=: ;;
30645 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30646 $as_echo "$ac_cs_version"; exit ;;
30647 --debug | --debu | --deb | --de | --d | -d )
30648 debug=: ;;
30649 --file | --fil | --fi | --f )
30650 $ac_shift
30651 case $ac_optarg in
30652 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30653 esac
30654 as_fn_append CONFIG_FILES " '$ac_optarg'"
30655 ac_need_defaults=false;;
30656 --header | --heade | --head | --hea )
30657 $ac_shift
30658 case $ac_optarg in
30659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30660 esac
30661 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30662 ac_need_defaults=false;;
30663 --he | --h)
30664 # Conflict between --help and --header
30665 as_fn_error "ambiguous option: \`$1'
30666 Try \`$0 --help' for more information.";;
30667 --help | --hel | -h )
30668 $as_echo "$ac_cs_usage"; exit ;;
30669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30671 ac_cs_silent=: ;;
30673 # This is an error.
30674 -*) as_fn_error "unrecognized option: \`$1'
30675 Try \`$0 --help' for more information." ;;
30677 *) as_fn_append ac_config_targets " $1"
30678 ac_need_defaults=false ;;
30680 esac
30681 shift
30682 done
30684 ac_configure_extra_args=
30686 if $ac_cs_silent; then
30687 exec 6>/dev/null
30688 ac_configure_extra_args="$ac_configure_extra_args --silent"
30691 _ACEOF
30692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30693 if \$ac_cs_recheck; then
30694 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30695 shift
30696 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30697 CONFIG_SHELL='$SHELL'
30698 export CONFIG_SHELL
30699 exec "\$@"
30702 _ACEOF
30703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30704 exec 5>>config.log
30706 echo
30707 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30708 ## Running $as_me. ##
30709 _ASBOX
30710 $as_echo "$ac_log"
30711 } >&5
30713 _ACEOF
30714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30716 # INIT-COMMANDS
30718 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30719 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30720 subdirs='$subdirs'
30722 _ACEOF
30724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30726 # Handling of arguments.
30727 for ac_config_target in $ac_config_targets
30729 case $ac_config_target in
30730 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30731 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30732 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30733 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30734 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30735 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30736 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30737 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30738 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30740 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30741 esac
30742 done
30745 # If the user did not use the arguments to specify the items to instantiate,
30746 # then the envvar interface is used. Set only those that are not.
30747 # We use the long form for the default assignment because of an extremely
30748 # bizarre bug on SunOS 4.1.3.
30749 if $ac_need_defaults; then
30750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30752 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30756 # Have a temporary directory for convenience. Make it in the build tree
30757 # simply because there is no reason against having it here, and in addition,
30758 # creating and moving files from /tmp can sometimes cause problems.
30759 # Hook for its removal unless debugging.
30760 # Note that there is a small window in which the directory will not be cleaned:
30761 # after its creation but before its name has been assigned to `$tmp'.
30762 $debug ||
30764 tmp=
30765 trap 'exit_status=$?
30766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30768 trap 'as_fn_exit 1' 1 2 13 15
30770 # Create a (secure) tmp directory for tmp files.
30773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30774 test -n "$tmp" && test -d "$tmp"
30775 } ||
30777 tmp=./conf$$-$RANDOM
30778 (umask 077 && mkdir "$tmp")
30779 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30781 # Set up the scripts for CONFIG_FILES section.
30782 # No need to generate them if there are no CONFIG_FILES.
30783 # This happens for instance with `./config.status config.h'.
30784 if test -n "$CONFIG_FILES"; then
30786 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30787 ac_cs_awk_getline=:
30788 ac_cs_awk_pipe_init=
30789 ac_cs_awk_read_file='
30790 while ((getline aline < (F[key])) > 0)
30791 print(aline)
30792 close(F[key])'
30793 ac_cs_awk_pipe_fini=
30794 else
30795 ac_cs_awk_getline=false
30796 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30797 ac_cs_awk_read_file='
30798 print "|#_!!_#|"
30799 print "cat " F[key] " &&"
30800 '$ac_cs_awk_pipe_init
30801 # The final `:' finishes the AND list.
30802 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30804 ac_cr=`echo X | tr X '\015'`
30805 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30806 # But we know of no other shell where ac_cr would be empty at this
30807 # point, so we can use a bashism as a fallback.
30808 if test "x$ac_cr" = x; then
30809 eval ac_cr=\$\'\\r\'
30811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30813 ac_cs_awk_cr='\r'
30814 else
30815 ac_cs_awk_cr=$ac_cr
30818 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30819 _ACEOF
30821 # Create commands to substitute file output variables.
30823 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30824 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30825 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30826 echo "_ACAWK" &&
30827 echo "_ACEOF"
30828 } >conf$$files.sh &&
30829 . ./conf$$files.sh ||
30830 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30831 rm -f conf$$files.sh
30834 echo "cat >conf$$subs.awk <<_ACEOF" &&
30835 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30836 echo "_ACEOF"
30837 } >conf$$subs.sh ||
30838 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30839 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30840 ac_delim='%!_!# '
30841 for ac_last_try in false false false false false :; do
30842 . ./conf$$subs.sh ||
30843 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30846 if test $ac_delim_n = $ac_delim_num; then
30847 break
30848 elif $ac_last_try; then
30849 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30850 else
30851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30853 done
30854 rm -f conf$$subs.sh
30856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30857 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30858 _ACEOF
30859 sed -n '
30861 s/^/S["/; s/!.*/"]=/
30864 s/^[^!]*!//
30865 :repl
30866 t repl
30867 s/'"$ac_delim"'$//
30868 t delim
30871 s/\(.\{148\}\).*/\1/
30872 t more1
30873 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30876 b repl
30877 :more1
30878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30881 s/.\{148\}//
30882 t nl
30883 :delim
30885 s/\(.\{148\}\).*/\1/
30886 t more2
30887 s/["\\]/\\&/g; s/^/"/; s/$/"/
30890 :more2
30891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30894 s/.\{148\}//
30895 t delim
30896 ' <conf$$subs.awk | sed '
30897 /^[^""]/{
30899 s/\n//
30901 ' >>$CONFIG_STATUS || ac_write_fail=1
30902 rm -f conf$$subs.awk
30903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30904 _ACAWK
30905 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30906 for (key in S) S_is_set[key] = 1
30907 FS = "\a"
30908 \$ac_cs_awk_pipe_init
30911 line = $ 0
30912 nfields = split(line, field, "@")
30913 substed = 0
30914 len = length(field[1])
30915 for (i = 2; i < nfields; i++) {
30916 key = field[i]
30917 keylen = length(key)
30918 if (S_is_set[key]) {
30919 value = S[key]
30920 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30921 len += length(value) + length(field[++i])
30922 substed = 1
30923 } else
30924 len += 1 + keylen
30926 if (nfields == 3 && !substed) {
30927 key = field[2]
30928 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30929 \$ac_cs_awk_read_file
30930 next
30933 print line
30935 \$ac_cs_awk_pipe_fini
30936 _ACAWK
30937 _ACEOF
30938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30939 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30941 else
30943 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30944 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30945 _ACEOF
30947 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30948 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30949 # trailing colons and then remove the whole line if VPATH becomes empty
30950 # (actually we leave an empty line to preserve line numbers).
30951 if test "x$srcdir" = x.; then
30952 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30953 s/:*\$(srcdir):*/:/
30954 s/:*\${srcdir}:*/:/
30955 s/:*@srcdir@:*/:/
30956 s/^\([^=]*=[ ]*\):*/\1/
30957 s/:*$//
30958 s/^[^=]*=[ ]*$//
30962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30963 fi # test -n "$CONFIG_FILES"
30965 # Set up the scripts for CONFIG_HEADERS section.
30966 # No need to generate them if there are no CONFIG_HEADERS.
30967 # This happens for instance with `./config.status Makefile'.
30968 if test -n "$CONFIG_HEADERS"; then
30969 cat >"$tmp/defines.awk" <<\_ACAWK ||
30970 BEGIN {
30971 _ACEOF
30973 # Transform confdefs.h into an awk script `defines.awk', embedded as
30974 # here-document in config.status, that substitutes the proper values into
30975 # config.h.in to produce config.h.
30977 # Create a delimiter string that does not exist in confdefs.h, to ease
30978 # handling of long lines.
30979 ac_delim='%!_!# '
30980 for ac_last_try in false false :; do
30981 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30982 if test -z "$ac_t"; then
30983 break
30984 elif $ac_last_try; then
30985 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30986 else
30987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30989 done
30991 # For the awk script, D is an array of macro values keyed by name,
30992 # likewise P contains macro parameters if any. Preserve backslash
30993 # newline sequences.
30995 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30996 sed -n '
30997 s/.\{148\}/&'"$ac_delim"'/g
30998 t rset
30999 :rset
31000 s/^[ ]*#[ ]*define[ ][ ]*/ /
31001 t def
31003 :def
31004 s/\\$//
31005 t bsnl
31006 s/["\\]/\\&/g
31007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31008 D["\1"]=" \3"/p
31009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31011 :bsnl
31012 s/["\\]/\\&/g
31013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31014 D["\1"]=" \3\\\\\\n"\\/p
31015 t cont
31016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31017 t cont
31019 :cont
31021 s/.\{148\}/&'"$ac_delim"'/g
31022 t clear
31023 :clear
31024 s/\\$//
31025 t bsnlc
31026 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31028 :bsnlc
31029 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31030 b cont
31031 ' <confdefs.h | sed '
31032 s/'"$ac_delim"'/"\\\
31033 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31036 for (key in D) D_is_set[key] = 1
31037 FS = "\a"
31039 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31040 line = \$ 0
31041 split(line, arg, " ")
31042 if (arg[1] == "#") {
31043 defundef = arg[2]
31044 mac1 = arg[3]
31045 } else {
31046 defundef = substr(arg[1], 2)
31047 mac1 = arg[2]
31049 split(mac1, mac2, "(") #)
31050 macro = mac2[1]
31051 prefix = substr(line, 1, index(line, defundef) - 1)
31052 if (D_is_set[macro]) {
31053 # Preserve the white space surrounding the "#".
31054 print prefix "define", macro P[macro] D[macro]
31055 next
31056 } else {
31057 # Replace #undef with comments. This is necessary, for example,
31058 # in the case of _POSIX_SOURCE, which is predefined and required
31059 # on some systems where configure will not decide to define it.
31060 if (defundef == "undef") {
31061 print "/*", prefix defundef, macro, "*/"
31062 next
31066 { print }
31067 _ACAWK
31068 _ACEOF
31069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31070 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31071 fi # test -n "$CONFIG_HEADERS"
31074 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31075 shift
31076 for ac_tag
31078 case $ac_tag in
31079 :[FHLC]) ac_mode=$ac_tag; continue;;
31080 esac
31081 case $ac_mode$ac_tag in
31082 :[FHL]*:*);;
31083 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31084 :[FH]-) ac_tag=-:-;;
31085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31086 esac
31087 ac_save_IFS=$IFS
31088 IFS=:
31089 set x $ac_tag
31090 IFS=$ac_save_IFS
31091 shift
31092 ac_file=$1
31093 shift
31095 case $ac_mode in
31096 :L) ac_source=$1;;
31097 :[FH])
31098 ac_file_inputs=
31099 for ac_f
31101 case $ac_f in
31102 -) ac_f="$tmp/stdin";;
31103 *) # Look for the file first in the build tree, then in the source tree
31104 # (if the path is not absolute). The absolute path cannot be DOS-style,
31105 # because $ac_f cannot contain `:'.
31106 test -f "$ac_f" ||
31107 case $ac_f in
31108 [\\/$]*) false;;
31109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31110 esac ||
31111 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31112 esac
31113 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31114 as_fn_append ac_file_inputs " '$ac_f'"
31115 done
31117 # Let's still pretend it is `configure' which instantiates (i.e., don't
31118 # use $as_me), people would be surprised to read:
31119 # /* config.h. Generated by config.status. */
31120 configure_input='Generated from '`
31121 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31122 `' by configure.'
31123 if test x"$ac_file" != x-; then
31124 configure_input="$ac_file. $configure_input"
31125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31126 $as_echo "$as_me: creating $ac_file" >&6;}
31128 # Neutralize special characters interpreted by sed in replacement strings.
31129 case $configure_input in #(
31130 *\&* | *\|* | *\\* )
31131 ac_sed_conf_input=`$as_echo "$configure_input" |
31132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31133 *) ac_sed_conf_input=$configure_input;;
31134 esac
31136 case $ac_tag in
31137 *:-:* | *:-) cat >"$tmp/stdin" \
31138 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31139 esac
31141 esac
31143 ac_dir=`$as_dirname -- "$ac_file" ||
31144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31145 X"$ac_file" : 'X\(//\)[^/]' \| \
31146 X"$ac_file" : 'X\(//\)$' \| \
31147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31148 $as_echo X"$ac_file" |
31149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31150 s//\1/
31153 /^X\(\/\/\)[^/].*/{
31154 s//\1/
31157 /^X\(\/\/\)$/{
31158 s//\1/
31161 /^X\(\/\).*/{
31162 s//\1/
31165 s/.*/./; q'`
31166 as_dir="$ac_dir"; as_fn_mkdir_p
31167 ac_builddir=.
31169 case "$ac_dir" in
31170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31172 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31173 # A ".." for each directory in $ac_dir_suffix.
31174 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31175 case $ac_top_builddir_sub in
31176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31178 esac ;;
31179 esac
31180 ac_abs_top_builddir=$ac_pwd
31181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31182 # for backward compatibility:
31183 ac_top_builddir=$ac_top_build_prefix
31185 case $srcdir in
31186 .) # We are building in place.
31187 ac_srcdir=.
31188 ac_top_srcdir=$ac_top_builddir_sub
31189 ac_abs_top_srcdir=$ac_pwd ;;
31190 [\\/]* | ?:[\\/]* ) # Absolute name.
31191 ac_srcdir=$srcdir$ac_dir_suffix;
31192 ac_top_srcdir=$srcdir
31193 ac_abs_top_srcdir=$srcdir ;;
31194 *) # Relative name.
31195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31196 ac_top_srcdir=$ac_top_build_prefix$srcdir
31197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31198 esac
31199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31202 case $ac_mode in
31205 # CONFIG_FILE
31208 _ACEOF
31210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31211 # If the template does not know about datarootdir, expand it.
31212 # FIXME: This hack should be removed a few years after 2.60.
31213 ac_datarootdir_hack=; ac_datarootdir_seen=
31214 ac_sed_dataroot='
31215 /datarootdir/ {
31219 /@datadir@/p
31220 /@docdir@/p
31221 /@infodir@/p
31222 /@localedir@/p
31223 /@mandir@/p'
31224 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31225 *datarootdir*) ac_datarootdir_seen=yes;;
31226 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31228 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31229 _ACEOF
31230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31231 ac_datarootdir_hack='
31232 s&@datadir@&$datadir&g
31233 s&@docdir@&$docdir&g
31234 s&@infodir@&$infodir&g
31235 s&@localedir@&$localedir&g
31236 s&@mandir@&$mandir&g
31237 s&\\\${datarootdir}&$datarootdir&g' ;;
31238 esac
31239 _ACEOF
31241 # Neutralize VPATH when `$srcdir' = `.'.
31242 # Shell code in configure.ac might set extrasub.
31243 # FIXME: do we really want to maintain this feature?
31244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31245 ac_sed_extra="$ac_vpsub
31246 $extrasub
31247 _ACEOF
31248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31251 s|@configure_input@|$ac_sed_conf_input|;t t
31252 s&@top_builddir@&$ac_top_builddir_sub&;t t
31253 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31254 s&@srcdir@&$ac_srcdir&;t t
31255 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31256 s&@top_srcdir@&$ac_top_srcdir&;t t
31257 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31258 s&@builddir@&$ac_builddir&;t t
31259 s&@abs_builddir@&$ac_abs_builddir&;t t
31260 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31261 $ac_datarootdir_hack
31263 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31264 if $ac_cs_awk_getline; then
31265 $AWK -f "$tmp/subs.awk"
31266 else
31267 $AWK -f "$tmp/subs.awk" | $SHELL
31268 fi >$tmp/out \
31269 || as_fn_error "could not create $ac_file" "$LINENO" 5
31271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31272 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31275 which seems to be undefined. Please make sure it is defined." >&5
31276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31277 which seems to be undefined. Please make sure it is defined." >&2;}
31279 rm -f "$tmp/stdin"
31280 case $ac_file in
31281 -) cat "$tmp/out" && rm -f "$tmp/out";;
31282 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31283 esac \
31284 || as_fn_error "could not create $ac_file" "$LINENO" 5
31288 # CONFIG_HEADER
31290 if test x"$ac_file" != x-; then
31292 $as_echo "/* $configure_input */" \
31293 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31294 } >"$tmp/config.h" \
31295 || as_fn_error "could not create $ac_file" "$LINENO" 5
31296 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31297 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31298 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31299 else
31300 rm -f "$ac_file"
31301 mv "$tmp/config.h" "$ac_file" \
31302 || as_fn_error "could not create $ac_file" "$LINENO" 5
31304 else
31305 $as_echo "/* $configure_input */" \
31306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31307 || as_fn_error "could not create -" "$LINENO" 5
31312 # CONFIG_LINK
31315 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31317 else
31318 # Prefer the file from the source tree if names are identical.
31319 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31320 ac_source=$srcdir/$ac_source
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31324 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31326 if test ! -r "$ac_source"; then
31327 as_fn_error "$ac_source: file not found" "$LINENO" 5
31329 rm -f "$ac_file"
31331 # Try a relative symlink, then a hard link, then a copy.
31332 case $srcdir in
31333 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31334 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31335 esac
31336 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31337 ln "$ac_source" "$ac_file" 2>/dev/null ||
31338 cp -p "$ac_source" "$ac_file" ||
31339 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31342 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31343 $as_echo "$as_me: executing $ac_file commands" >&6;}
31345 esac
31348 case $ac_file$ac_mode in
31349 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31350 "gccdepdir":C)
31351 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31352 for lang in $subdirs c-family common
31354 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31355 done ;;
31356 "as":F) chmod +x as ;;
31357 "collect-ld":F) chmod +x collect-ld ;;
31358 "nm":F) chmod +x nm ;;
31359 "default":C)
31360 case ${CONFIG_HEADERS} in
31361 *auto-host.h:config.in*)
31362 echo > cstamp-h ;;
31363 esac
31364 # Make sure all the subdirs exist.
31365 for d in $subdirs doc build common c-family
31367 test -d $d || mkdir $d
31368 done
31371 esac
31372 done # for ac_tag
31375 as_fn_exit 0
31376 _ACEOF
31377 ac_clean_files=$ac_clean_files_save
31379 test $ac_write_fail = 0 ||
31380 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31383 # configure is writing to config.log, and then calls config.status.
31384 # config.status does its own redirection, appending to config.log.
31385 # Unfortunately, on DOS this fails, as config.log is still kept open
31386 # by configure, so config.status won't be able to write to it; its
31387 # output is simply discarded. So we exec the FD to /dev/null,
31388 # effectively closing config.log, so it can be properly (re)opened and
31389 # appended to by config.status. When coming back to configure, we
31390 # need to make the FD available again.
31391 if test "$no_create" != yes; then
31392 ac_cs_success=:
31393 ac_config_status_args=
31394 test "$silent" = yes &&
31395 ac_config_status_args="$ac_config_status_args --quiet"
31396 exec 5>/dev/null
31397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31398 exec 5>>config.log
31399 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31400 # would make configure fail if this is the last instruction.
31401 $ac_cs_success || as_fn_exit $?
31403 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31405 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}