Daily bump.
[official-gcc.git] / gcc / configure
blob954673c1c4361c4898c25f9c38f80a5c7e9d4916
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
767 LN_S
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files='option_includes
876 language_hooks'
877 ac_user_opts='
878 enable_option_checking
879 with_build_libsubdir
880 with_local_prefix
881 with_native_system_header_dir
882 with_build_sysroot
883 with_sysroot
884 with_gxx_include_dir
885 with_cpp_install_dir
886 enable_generated_files_in_srcdir
887 with_gnu_ld
888 with_ld
889 with_demangler_in_ld
890 with_gnu_as
891 with_as
892 enable_largefile
893 enable_build_format_warnings
894 enable_werror_always
895 enable_checking
896 enable_coverage
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
899 with_stabs
900 enable_multilib
901 enable_multiarch
902 enable___cxa_atexit
903 enable_decimal_float
904 enable_fixed_point
905 enable_threads
906 enable_tls
907 enable_objc_gc
908 with_dwarf2
909 enable_shared
910 with_specs
911 with_pkgversion
912 with_bugurl
913 enable_languages
914 with_multilib_list
915 enable_rpath
916 with_libiconv_prefix
917 enable_sjlj_exceptions
918 enable_secureplt
919 enable_leading_mingw64_underscores
920 enable_cld
921 enable_frame_pointer
922 enable_win32_registry
923 enable_static
924 with_pic
925 enable_fast_install
926 enable_libtool_lock
927 enable_ld
928 enable_gold
929 with_plugin_ld
930 enable_gnu_indirect_function
931 enable_initfini_array
932 enable_comdat
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
935 with_glibc_version
936 enable_gnu_unique_object
937 enable_linker_build_id
938 enable_default_ssp
939 with_long_double_128
940 with_gc
941 with_system_zlib
942 enable_maintainer_mode
943 enable_link_mutex
944 enable_version_specific_runtime_libs
945 enable_plugin
946 enable_host_shared
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
950 enable_default_pie
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
961 CXXFLAGS
963 CXXCPP
965 GMPLIBS
966 GMPINC
967 ISLLIBS
968 ISLINC'
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1026 ac_prev=
1027 continue
1030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1039 ac_dashdash=yes ;;
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 ac_prev=sbindir ;;
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 | --sbi=* | --sb=*)
1262 sbindir=$ac_optarg ;;
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1267 | --sha | --sh)
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 | --sha=* | --sh=*)
1273 sharedstatedir=$ac_optarg ;;
1275 -site | --site | --sit)
1276 ac_prev=site ;;
1277 -site=* | --site=* | --sit=*)
1278 site=$ac_optarg ;;
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 ac_prev=srcdir ;;
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 verbose=yes ;;
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1303 -with-* | --with-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=\$ac_optarg ;;
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=no ;;
1335 --x)
1336 # Obsolete; use --with-x.
1337 with_x=yes ;;
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1353 -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1357 *=*)
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1363 esac
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 esac
1376 done
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error "missing argument to $ac_option"
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1385 no) ;;
1386 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error "pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1462 /^X\(\/\/\)$/{
1463 s//\1/
1466 /^X\(\/\).*/{
1467 s//\1/
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1475 else
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1565 cat <<\_ACEOF
1567 Program names:
1568 --program-prefix=PREFIX prepend PREFIX to installed program names
1569 --program-suffix=SUFFIX append SUFFIX to installed program names
1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 --target=TARGET configure for building compilers for TARGET [HOST]
1576 _ACEOF
1579 if test -n "$ac_init_help"; then
1581 cat <<\_ACEOF
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-generated-files-in-srcdir
1588 put copies of generated files in source dir intended
1589 for creating source tarballs for users without
1590 texinfo bison or flex
1591 --disable-largefile omit support for large files
1592 --disable-build-format-warnings
1593 don't use -Wformat while building GCC
1594 --enable-werror-always enable -Werror despite compiler version
1595 --enable-checking[=LIST]
1596 enable expensive run-time checks. With LIST, enable
1597 only specific categories of checks. Categories are:
1598 yes,no,all,none,release. Flags are:
1599 assert,df,fold,gc,gcac,gimple,misc,
1600 rtlflag,rtl,runtime,tree,valgrind,types
1601 --enable-coverage[=LEVEL]
1602 enable compiler's code coverage collection. Use to
1603 measure compiler performance and locate unused parts
1604 of the compiler. With LEVEL, specify optimization.
1605 Values are opt, noopt, default is noopt
1606 --enable-gather-detailed-mem-stats
1607 enable detailed memory allocation stats gathering
1608 --enable-valgrind-annotations
1609 enable valgrind runtime interaction
1610 --enable-multilib enable library support for multiple ABIs
1611 --enable-multiarch enable support for multiarch paths
1612 --enable-__cxa_atexit enable __cxa_atexit for C++
1613 --enable-decimal-float={no,yes,bid,dpd}
1614 enable decimal float extension to C. Selecting 'bid'
1615 or 'dpd' choses which decimal floating point format
1616 to use
1617 --enable-fixed-point enable fixed-point arithmetic extension to C
1618 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1619 package
1620 --enable-tls enable or disable generation of tls code overriding
1621 the assembler check for tls support
1622 --enable-objc-gc enable the use of Boehm's garbage collector with the
1623 GNU Objective-C runtime
1624 --disable-shared don't provide a shared libgcc
1625 --enable-languages=LIST specify which front-ends to build
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-sjlj-exceptions
1628 arrange to use setjmp/longjmp exception handling
1629 --enable-secureplt enable -msecure-plt by default for PowerPC
1630 --enable-leading-mingw64-underscores
1631 enable leading underscores on 64 bit mingw targets
1632 --enable-cld enable -mcld by default for 32bit x86
1633 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1635 --disable-win32-registry
1636 disable lookup of installation paths in the Registry
1637 on Windows hosts
1638 --enable-win32-registry enable registry lookup (default)
1639 --enable-win32-registry=KEY
1640 use KEY instead of GCC version as the last portion
1641 of the registry key
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=yes]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1648 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1649 --enable-gnu-indirect-function
1650 enable the use of the @gnu_indirect_function to
1651 glibc systems
1652 --enable-initfini-array use .init_array/.fini_array sections
1653 --enable-comdat enable COMDAT group support
1655 --enable-fix-cortex-a53-835769
1656 enable workaround for AArch64 Cortex-A53 erratum
1657 835769 by default
1658 --disable-fix-cortex-a53-835769
1659 disable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1663 --enable-fix-cortex-a53-843419
1664 enable workaround for AArch64 Cortex-A53 erratum
1665 843419 by default
1666 --disable-fix-cortex-a53-843419
1667 disable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1670 --enable-gnu-unique-object
1671 enable the use of the @gnu_unique_object ELF
1672 extension on glibc systems
1673 --enable-linker-build-id
1674 compiler will always pass --build-id to linker
1675 --enable-default-ssp enable Stack Smashing Protection as default
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1680 thrashing on the build machine
1681 --enable-version-specific-runtime-libs
1682 specify that runtime libraries should be installed
1683 in a compiler-specific directory
1684 --enable-plugin enable plugin support
1685 --enable-host-shared build host code as shared libraries
1686 --disable-libquadmath-support
1687 disable libquadmath support for Fortran
1688 --enable-default-pie enable Position Independent Executable as default
1690 Optional Packages:
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --with-build-libsubdir=DIR Directory where to find libraries for build system
1694 --with-local-prefix=DIR specifies directory to put local include
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-gxx-include-dir=DIR
1702 specifies directory to put g++ header files
1703 --with-cpp-install-dir=DIR
1704 install the user visible C preprocessor in DIR
1705 (relative to PREFIX) as well as PREFIX/bin
1706 --with-gnu-ld arrange to work with GNU ld
1707 --with-ld arrange to use the specified ld (full pathname)
1708 --with-demangler-in-ld try to use demangler in GNU ld
1709 --with-gnu-as arrange to work with GNU as
1710 --with-as arrange to use the specified as (full pathname)
1711 --with-stabs arrange to use stabs instead of host debug format
1712 --with-dwarf2 force the default debug format to be DWARF 2
1713 --with-specs=SPECS add SPECS to driver command-line processing
1714 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1715 --with-bugurl=URL Direct users to URL to report a bug
1716 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1717 --with-gnu-ld assume the C compiler uses GNU ld default=no
1718 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1719 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1720 --with-pic try to use only PIC/non-PIC objects [default=use
1721 both]
1722 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 --with-plugin-ld=[ARG] specify the plugin linker
1724 --with-glibc-version=M.N
1725 assume GCC used with glibc version M.N or later
1726 --with-long-double-128 use 128-bit long double by default
1727 --with-gc={page,zone} this option is not supported anymore. It used to
1728 choose the garbage collection mechanism to use with
1729 the compiler
1730 --with-system-zlib use installed libz
1731 --with-linker-hash-style={sysv,gnu,both}
1732 specify the linker hash style
1733 --with-diagnostics-color={never,auto,auto-if-env,always}
1734 specify the default of -fdiagnostics-color option
1735 auto-if-env stands for -fdiagnostics-color=auto if
1736 GCC_COLOR environment variable is present and
1737 -fdiagnostics-color=never otherwise
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1750 CPP C preprocessor
1751 GMPLIBS How to link GMP
1752 GMPINC How to find GMP include files
1753 ISLLIBS How to link isl
1754 ISLINC How to find isl include files
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1759 Report bugs to the package provider.
1760 _ACEOF
1761 ac_status=$?
1764 if test "$ac_init_help" = "recursive"; then
1765 # If there are subdirs, report their specific --help.
1766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1767 test -d "$ac_dir" ||
1768 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769 continue
1770 ac_builddir=.
1772 case "$ac_dir" in
1773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776 # A ".." for each directory in $ac_dir_suffix.
1777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778 case $ac_top_builddir_sub in
1779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1781 esac ;;
1782 esac
1783 ac_abs_top_builddir=$ac_pwd
1784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir=$ac_top_build_prefix
1788 case $srcdir in
1789 .) # We are building in place.
1790 ac_srcdir=.
1791 ac_top_srcdir=$ac_top_builddir_sub
1792 ac_abs_top_srcdir=$ac_pwd ;;
1793 [\\/]* | ?:[\\/]* ) # Absolute name.
1794 ac_srcdir=$srcdir$ac_dir_suffix;
1795 ac_top_srcdir=$srcdir
1796 ac_abs_top_srcdir=$srcdir ;;
1797 *) # Relative name.
1798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799 ac_top_srcdir=$ac_top_build_prefix$srcdir
1800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1801 esac
1802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1804 cd "$ac_dir" || { ac_status=$?; continue; }
1805 # Check for guested configure.
1806 if test -f "$ac_srcdir/configure.gnu"; then
1807 echo &&
1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809 elif test -f "$ac_srcdir/configure"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure" --help=recursive
1812 else
1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1814 fi || ac_status=$?
1815 cd "$ac_pwd" || { ac_status=$?; break; }
1816 done
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1821 cat <<\_ACEOF
1822 configure
1823 generated by GNU Autoconf 2.64
1825 Copyright (C) 2009 Free Software Foundation, Inc.
1826 This configure script is free software; the Free Software Foundation
1827 gives unlimited permission to copy, distribute and modify it.
1828 _ACEOF
1829 exit
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_c_try_compile
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1910 } # ac_fn_cxx_try_compile
1912 # ac_fn_cxx_try_cpp LINENO
1913 # ------------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_cpp ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_cpp conftest.$ac_ext"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } >/dev/null && {
1934 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1935 test ! -s conftest.err
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=1
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 return $ac_retval
1947 } # ac_fn_cxx_try_cpp
1949 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # ---------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_cxx_check_header_mongrel ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_cxx_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_cxx_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020 esac
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 eval "$3=\$ac_header_compiler"
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 } # ac_fn_cxx_check_header_mongrel
2036 # ac_fn_cxx_try_run LINENO
2037 # ------------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2040 ac_fn_cxx_try_run ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2051 ac_status=$?
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2061 ac_status=$?
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2064 ac_retval=0
2065 else
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=$ac_status
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 return $ac_retval
2076 } # ac_fn_cxx_try_run
2078 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2079 # ---------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_cxx_check_header_compile ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2093 #include <$2>
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 } # ac_fn_cxx_check_header_compile
2109 # ac_fn_c_try_cpp LINENO
2110 # ----------------------
2111 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_c_try_cpp ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_cpp conftest.$ac_ext"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } >/dev/null && {
2131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2132 test ! -s conftest.err
2133 }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 ac_retval=1
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142 return $ac_retval
2144 } # ac_fn_c_try_cpp
2146 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2147 # ----------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2150 # computed
2151 ac_fn_cxx_compute_int ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 ac_lo=0 ac_mid=0
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2176 main ()
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179 test_array [0] = 0
2182 return 0;
2184 _ACEOF
2185 if ac_fn_cxx_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid; break
2187 else
2188 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2202 main ()
2204 static int test_array [1 - 2 * !(($2) < 0)];
2205 test_array [0] = 0
2208 return 0;
2210 _ACEOF
2211 if ac_fn_cxx_try_compile "$LINENO"; then :
2212 ac_hi=-1 ac_mid=-1
2213 while :; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2218 main ()
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 test_array [0] = 0
2224 return 0;
2226 _ACEOF
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229 else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 else
2240 ac_lo= ac_hi=
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2252 main ()
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0
2258 return 0;
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid
2263 else
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 case $ac_lo in #((
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270 '') ac_retval=1 ;;
2271 esac
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2278 #include <stdio.h>
2279 #include <stdlib.h>
2281 main ()
2284 FILE *f = fopen ("conftest.val", "w");
2285 if (! f)
2286 return 1;
2287 if (($2) < 0)
2289 long int i = longval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%ld", i);
2294 else
2296 unsigned long int i = ulongval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%lu", i);
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2306 return 0;
2308 _ACEOF
2309 if ac_fn_cxx_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311 else
2312 ac_retval=1
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 rm -f conftest.val
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 return $ac_retval
2322 } # ac_fn_cxx_compute_int
2324 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2325 # ---------------------------------------------
2326 # Tests whether TYPE exists after having included INCLUDES, setting cache
2327 # variable VAR accordingly.
2328 ac_fn_cxx_check_type ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=no"
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2341 main ()
2343 if (sizeof ($2))
2344 return 0;
2346 return 0;
2348 _ACEOF
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2354 main ()
2356 if (sizeof (($2)))
2357 return 0;
2359 return 0;
2361 _ACEOF
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2364 else
2365 eval "$3=yes"
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_cxx_check_type
2378 # ac_fn_c_find_intX_t LINENO BITS VAR
2379 # -----------------------------------
2380 # Finds a signed integer type with width BITS, setting cache variable VAR
2381 # accordingly.
2382 ac_fn_c_find_intX_t ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2386 $as_echo_n "checking for int$2_t... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 eval "$3=no"
2391 for ac_type in int$2_t 'int' 'long int' \
2392 'long long int' 'short int' 'signed char'; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $ac_includes_default
2397 main ()
2399 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2400 test_array [0] = 0
2403 return 0;
2405 _ACEOF
2406 if ac_fn_cxx_try_compile "$LINENO"; then :
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 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2414 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2415 test_array [0] = 0
2418 return 0;
2420 _ACEOF
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2423 else
2424 case $ac_type in #(
2425 int$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2437 else
2438 break
2440 done
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447 } # ac_fn_c_find_intX_t
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 rm -f conftest.$ac_objext conftest$ac_exeext
2456 if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>conftest.err
2464 ac_status=$?
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } && {
2472 test -z "$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 } && test -s conftest$ac_exeext && {
2475 test "$cross_compiling" = yes ||
2476 $as_test_x conftest$ac_exeext
2477 }; then :
2478 ac_retval=0
2479 else
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 ac_retval=1
2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487 # interfere with the next link command; also delete a directory that is
2488 # left behind by Apple's compiler. We do this before executing the actions.
2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 return $ac_retval
2493 } # ac_fn_cxx_try_link
2495 # ac_fn_c_find_uintX_t LINENO BITS VAR
2496 # ------------------------------------
2497 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2498 # accordingly.
2499 ac_fn_c_find_uintX_t ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2503 $as_echo_n "checking for uint$2_t... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 eval "$3=no"
2508 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2509 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $ac_includes_default
2514 main ()
2516 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2517 test_array [0] = 0
2520 return 0;
2522 _ACEOF
2523 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 case $ac_type in #(
2525 uint$2_t) :
2526 eval "$3=yes" ;; #(
2527 *) :
2528 eval "$3=\$ac_type" ;;
2529 esac
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 eval as_val=\$$3
2533 if test "x$as_val" = x""no; then :
2535 else
2536 break
2538 done
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545 } # ac_fn_c_find_uintX_t
2547 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2548 # ------------------------------------------------
2549 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2550 ac_fn_cxx_check_header_preproc ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 #include <$2>
2561 _ACEOF
2562 if ac_fn_cxx_try_cpp "$LINENO"; then :
2563 eval "$3=yes"
2564 else
2565 eval "$3=no"
2567 rm -f conftest.err conftest.$ac_ext
2569 eval ac_res=\$$3
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574 } # ac_fn_cxx_check_header_preproc
2576 # ac_fn_cxx_check_func LINENO FUNC VAR
2577 # ------------------------------------
2578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2579 ac_fn_cxx_check_func ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2591 #define $2 innocuous_$2
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $2 (); below.
2595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596 <limits.h> exists even on freestanding compilers. */
2598 #ifdef __STDC__
2599 # include <limits.h>
2600 #else
2601 # include <assert.h>
2602 #endif
2604 #undef $2
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 char $2 ();
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2617 choke me
2618 #endif
2621 main ()
2623 return $2 ();
2625 return 0;
2627 _ACEOF
2628 if ac_fn_cxx_try_link "$LINENO"; then :
2629 eval "$3=yes"
2630 else
2631 eval "$3=no"
2633 rm -f core conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2636 eval ac_res=\$$3
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641 } # ac_fn_cxx_check_func
2643 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2644 # --------------------------------------
2645 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2646 ac_fn_cxx_check_decl ()
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 as_decl_name=`echo $2|sed 's/ *(.*//'`
2650 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2652 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2660 main ()
2662 #ifndef $as_decl_name
2663 #ifdef __cplusplus
2664 (void) $as_decl_use;
2665 #else
2666 (void) $as_decl_name;
2667 #endif
2668 #endif
2671 return 0;
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 eval "$3=yes"
2676 else
2677 eval "$3=no"
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 eval ac_res=\$$3
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686 } # ac_fn_cxx_check_decl
2688 # ac_fn_c_try_link LINENO
2689 # -----------------------
2690 # Try to link conftest.$ac_ext, and return whether this succeeded.
2691 ac_fn_c_try_link ()
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 rm -f conftest.$ac_objext conftest$ac_exeext
2695 if { { ac_try="$ac_link"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest$ac_exeext && {
2714 test "$cross_compiling" = yes ||
2715 $as_test_x conftest$ac_exeext
2716 }; then :
2717 ac_retval=0
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_retval=1
2724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2726 # interfere with the next link command; also delete a directory that is
2727 # left behind by Apple's compiler. We do this before executing the actions.
2728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2730 return $ac_retval
2732 } # ac_fn_c_try_link
2734 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2735 # ----------------------------------------------
2736 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2737 ac_fn_c_check_header_preproc ()
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2741 $as_echo_n "checking for $2... " >&6; }
2742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747 #include <$2>
2748 _ACEOF
2749 if ac_fn_c_try_cpp "$LINENO"; then :
2750 eval "$3=yes"
2751 else
2752 eval "$3=no"
2754 rm -f conftest.err conftest.$ac_ext
2756 eval ac_res=\$$3
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2761 } # ac_fn_c_check_header_preproc
2763 # ac_fn_c_check_func LINENO FUNC VAR
2764 # ----------------------------------
2765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2766 ac_fn_c_check_func ()
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2778 #define $2 innocuous_$2
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char $2 (); below.
2782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783 <limits.h> exists even on freestanding compilers. */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2791 #undef $2
2793 /* Override any GCC internal prototype to avoid an error.
2794 Use char because int might match the return type of a GCC
2795 builtin and then its argument prototype would still apply. */
2796 #ifdef __cplusplus
2797 extern "C"
2798 #endif
2799 char $2 ();
2800 /* The GNU C library defines this for functions which it implements
2801 to always fail with ENOSYS. Some functions are actually named
2802 something starting with __ and the normal name is an alias. */
2803 #if defined __stub_$2 || defined __stub___$2
2804 choke me
2805 #endif
2808 main ()
2810 return $2 ();
2812 return 0;
2814 _ACEOF
2815 if ac_fn_c_try_link "$LINENO"; then :
2816 eval "$3=yes"
2817 else
2818 eval "$3=no"
2820 rm -f core conftest.err conftest.$ac_objext \
2821 conftest$ac_exeext conftest.$ac_ext
2823 eval ac_res=\$$3
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2828 } # ac_fn_c_check_func
2829 cat >config.log <<_ACEOF
2830 This file contains any messages produced by compilers while
2831 running configure, to aid debugging if configure makes a mistake.
2833 It was created by $as_me, which was
2834 generated by GNU Autoconf 2.64. Invocation command line was
2836 $ $0 $@
2838 _ACEOF
2839 exec 5>>config.log
2841 cat <<_ASUNAME
2842 ## --------- ##
2843 ## Platform. ##
2844 ## --------- ##
2846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2863 _ASUNAME
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 $as_echo "PATH: $as_dir"
2871 done
2872 IFS=$as_save_IFS
2874 } >&5
2876 cat >&5 <<_ACEOF
2879 ## ----------- ##
2880 ## Core tests. ##
2881 ## ----------- ##
2883 _ACEOF
2886 # Keep a trace of the command line.
2887 # Strip out --no-create and --no-recursion so they do not pile up.
2888 # Strip out --silent because we don't want to record it for future runs.
2889 # Also quote any args containing shell meta-characters.
2890 # Make two passes to allow for proper duplicate-argument suppression.
2891 ac_configure_args=
2892 ac_configure_args0=
2893 ac_configure_args1=
2894 ac_must_keep_next=false
2895 for ac_pass in 1 2
2897 for ac_arg
2899 case $ac_arg in
2900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2902 | -silent | --silent | --silen | --sile | --sil)
2903 continue ;;
2904 *\'*)
2905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2906 esac
2907 case $ac_pass in
2908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2910 as_fn_append ac_configure_args1 " '$ac_arg'"
2911 if test $ac_must_keep_next = true; then
2912 ac_must_keep_next=false # Got value, back to normal.
2913 else
2914 case $ac_arg in
2915 *=* | --config-cache | -C | -disable-* | --disable-* \
2916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2918 | -with-* | --with-* | -without-* | --without-* | --x)
2919 case "$ac_configure_args0 " in
2920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2921 esac
2923 -* ) ac_must_keep_next=true ;;
2924 esac
2926 as_fn_append ac_configure_args " '$ac_arg'"
2928 esac
2929 done
2930 done
2931 { ac_configure_args0=; unset ac_configure_args0;}
2932 { ac_configure_args1=; unset ac_configure_args1;}
2934 # When interrupted or exit'd, cleanup temporary files, and complete
2935 # config.log. We remove comments because anyway the quotes in there
2936 # would cause problems or look ugly.
2937 # WARNING: Use '\'' to represent an apostrophe within the trap.
2938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2939 trap 'exit_status=$?
2940 # Save into config.log some information that might help in debugging.
2942 echo
2944 cat <<\_ASBOX
2945 ## ---------------- ##
2946 ## Cache variables. ##
2947 ## ---------------- ##
2948 _ASBOX
2949 echo
2950 # The following way of writing the cache mishandles newlines in values,
2952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2953 eval ac_val=\$$ac_var
2954 case $ac_val in #(
2955 *${as_nl}*)
2956 case $ac_var in #(
2957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2959 esac
2960 case $ac_var in #(
2961 _ | IFS | as_nl) ;; #(
2962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2963 *) { eval $ac_var=; unset $ac_var;} ;;
2964 esac ;;
2965 esac
2966 done
2967 (set) 2>&1 |
2968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2969 *${as_nl}ac_space=\ *)
2970 sed -n \
2971 "s/'\''/'\''\\\\'\'''\''/g;
2972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2973 ;; #(
2975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2977 esac |
2978 sort
2980 echo
2982 cat <<\_ASBOX
2983 ## ----------------- ##
2984 ## Output variables. ##
2985 ## ----------------- ##
2986 _ASBOX
2987 echo
2988 for ac_var in $ac_subst_vars
2990 eval ac_val=\$$ac_var
2991 case $ac_val in
2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993 esac
2994 $as_echo "$ac_var='\''$ac_val'\''"
2995 done | sort
2996 echo
2998 if test -n "$ac_subst_files"; then
2999 cat <<\_ASBOX
3000 ## ------------------- ##
3001 ## File substitutions. ##
3002 ## ------------------- ##
3003 _ASBOX
3004 echo
3005 for ac_var in $ac_subst_files
3007 eval ac_val=\$$ac_var
3008 case $ac_val in
3009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3010 esac
3011 $as_echo "$ac_var='\''$ac_val'\''"
3012 done | sort
3013 echo
3016 if test -s confdefs.h; then
3017 cat <<\_ASBOX
3018 ## ----------- ##
3019 ## confdefs.h. ##
3020 ## ----------- ##
3021 _ASBOX
3022 echo
3023 cat confdefs.h
3024 echo
3026 test "$ac_signal" != 0 &&
3027 $as_echo "$as_me: caught signal $ac_signal"
3028 $as_echo "$as_me: exit $exit_status"
3029 } >&5
3030 rm -f core *.core core.conftest.* &&
3031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3032 exit $exit_status
3034 for ac_signal in 1 2 13 15; do
3035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3036 done
3037 ac_signal=0
3039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3040 rm -f -r conftest* confdefs.h
3042 $as_echo "/* confdefs.h */" > confdefs.h
3044 # Predefined preprocessor variables.
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_NAME "$PACKAGE_NAME"
3048 _ACEOF
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_STRING "$PACKAGE_STRING"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_URL "$PACKAGE_URL"
3068 _ACEOF
3071 # Let the site file select an alternate cache file if it wants to.
3072 # Prefer an explicitly selected file to automatically selected ones.
3073 ac_site_file1=NONE
3074 ac_site_file2=NONE
3075 if test -n "$CONFIG_SITE"; then
3076 ac_site_file1=$CONFIG_SITE
3077 elif test "x$prefix" != xNONE; then
3078 ac_site_file1=$prefix/share/config.site
3079 ac_site_file2=$prefix/etc/config.site
3080 else
3081 ac_site_file1=$ac_default_prefix/share/config.site
3082 ac_site_file2=$ac_default_prefix/etc/config.site
3084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3086 test "x$ac_site_file" = xNONE && continue
3087 if test -r "$ac_site_file"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3090 sed 's/^/| /' "$ac_site_file" >&5
3091 . "$ac_site_file"
3093 done
3095 if test -r "$cache_file"; then
3096 # Some versions of bash will fail to source /dev/null (special
3097 # files actually), so we avoid doing that.
3098 if test -f "$cache_file"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3100 $as_echo "$as_me: loading cache $cache_file" >&6;}
3101 case $cache_file in
3102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3103 *) . "./$cache_file";;
3104 esac
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3108 $as_echo "$as_me: creating cache $cache_file" >&6;}
3109 >$cache_file
3112 # Check that the precious variables saved in the cache have kept the same
3113 # value.
3114 ac_cache_corrupted=false
3115 for ac_var in $ac_precious_vars; do
3116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3117 eval ac_new_set=\$ac_env_${ac_var}_set
3118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3119 eval ac_new_val=\$ac_env_${ac_var}_value
3120 case $ac_old_set,$ac_new_set in
3121 set,)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,set)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,);;
3131 if test "x$ac_old_val" != "x$ac_new_val"; then
3132 # differences in whitespace do not lead to failure.
3133 ac_old_val_w=`echo x $ac_old_val`
3134 ac_new_val_w=`echo x $ac_new_val`
3135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3138 ac_cache_corrupted=:
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3142 eval $ac_var=\$ac_old_val
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3148 fi;;
3149 esac
3150 # Pass precious variables to config.status.
3151 if test "$ac_new_set" = set; then
3152 case $ac_new_val in
3153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3154 *) ac_arg=$ac_var=$ac_new_val ;;
3155 esac
3156 case " $ac_configure_args " in
3157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3159 esac
3161 done
3162 if $ac_cache_corrupted; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3169 ## -------------------- ##
3170 ## Main body of script. ##
3171 ## -------------------- ##
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3187 gcc_version=`cat $srcdir/BASE-VER`
3189 # Determine the host, build, and target systems
3190 ac_aux_dir=
3191 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3192 for ac_t in install-sh install.sh shtool; do
3193 if test -f "$ac_dir/$ac_t"; then
3194 ac_aux_dir=$ac_dir
3195 ac_install_sh="$ac_aux_dir/$ac_t -c"
3196 break 2
3198 done
3199 done
3200 if test -z "$ac_aux_dir"; then
3201 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3204 # These three variables are undocumented and unsupported,
3205 # and are intended to be withdrawn in a future Autoconf release.
3206 # They can cause serious problems if a builder's source tree is in a directory
3207 # whose full name contains unusual characters.
3208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3213 # Make sure we can run config.sub.
3214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3215 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3218 $as_echo_n "checking build system type... " >&6; }
3219 if test "${ac_cv_build+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 ac_build_alias=$build_alias
3223 test "x$ac_build_alias" = x &&
3224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3225 test "x$ac_build_alias" = x &&
3226 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3228 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3232 $as_echo "$ac_cv_build" >&6; }
3233 case $ac_cv_build in
3234 *-*-*) ;;
3235 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3236 esac
3237 build=$ac_cv_build
3238 ac_save_IFS=$IFS; IFS='-'
3239 set x $ac_cv_build
3240 shift
3241 build_cpu=$1
3242 build_vendor=$2
3243 shift; shift
3244 # Remember, the first character of IFS is used to create $*,
3245 # except with old shells:
3246 build_os=$*
3247 IFS=$ac_save_IFS
3248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3252 $as_echo_n "checking host system type... " >&6; }
3253 if test "${ac_cv_host+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test "x$host_alias" = x; then
3257 ac_cv_host=$ac_cv_build
3258 else
3259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3260 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3266 case $ac_cv_host in
3267 *-*-*) ;;
3268 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3269 esac
3270 host=$ac_cv_host
3271 ac_save_IFS=$IFS; IFS='-'
3272 set x $ac_cv_host
3273 shift
3274 host_cpu=$1
3275 host_vendor=$2
3276 shift; shift
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3279 host_os=$*
3280 IFS=$ac_save_IFS
3281 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3285 $as_echo_n "checking target system type... " >&6; }
3286 if test "${ac_cv_target+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test "x$target_alias" = x; then
3290 ac_cv_target=$ac_cv_host
3291 else
3292 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3293 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3298 $as_echo "$ac_cv_target" >&6; }
3299 case $ac_cv_target in
3300 *-*-*) ;;
3301 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3302 esac
3303 target=$ac_cv_target
3304 ac_save_IFS=$IFS; IFS='-'
3305 set x $ac_cv_target
3306 shift
3307 target_cpu=$1
3308 target_vendor=$2
3309 shift; shift
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3312 target_os=$*
3313 IFS=$ac_save_IFS
3314 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3317 # The aliases save the names the user supplied, while $host etc.
3318 # will get canonicalized.
3319 test -n "$target_alias" &&
3320 test "$program_prefix$program_suffix$program_transform_name" = \
3321 NONENONEs,x,x, &&
3322 program_prefix=${target_alias}-
3324 # Determine the noncanonical target name, for directory use.
3325 case ${build_alias} in
3326 "") build_noncanonical=${build} ;;
3327 *) build_noncanonical=${build_alias} ;;
3328 esac
3330 case ${host_alias} in
3331 "") host_noncanonical=${build_noncanonical} ;;
3332 *) host_noncanonical=${host_alias} ;;
3333 esac
3335 case ${target_alias} in
3336 "") target_noncanonical=${host_noncanonical} ;;
3337 *) target_noncanonical=${target_alias} ;;
3338 esac
3343 # Used for constructing correct paths for offload compilers.
3344 real_target_noncanonical=${target_noncanonical}
3345 accel_dir_suffix=
3347 # Determine the target- and build-specific subdirectories
3349 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3350 # have matching libraries, they should use host libraries: Makefile.tpl
3351 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3352 # However, they still use the build modules, because the corresponding
3353 # host modules (e.g. bison) are only built for the host when bootstrap
3354 # finishes. So:
3355 # - build_subdir is where we find build modules, and never changes.
3356 # - build_libsubdir is where we find build libraries, and can be overridden.
3358 # Prefix 'build-' so this never conflicts with target_subdir.
3359 build_subdir="build-${build_noncanonical}"
3361 # Check whether --with-build-libsubdir was given.
3362 if test "${with_build_libsubdir+set}" = set; then :
3363 withval=$with_build_libsubdir; build_libsubdir="$withval"
3364 else
3365 build_libsubdir="$build_subdir"
3368 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3369 if ( test $srcdir = . && test -d gcc ) \
3370 || test -d $srcdir/../host-${host_noncanonical}; then
3371 host_subdir="host-${host_noncanonical}"
3372 else
3373 host_subdir=.
3375 # No prefix.
3376 target_subdir=${target_noncanonical}
3379 # Set program_transform_name
3380 test "$program_prefix" != NONE &&
3381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3382 # Use a double $ so make ignores it.
3383 test "$program_suffix" != NONE &&
3384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3385 # Double any \ or $.
3386 # By default was `s,x,x', remove it if useless.
3387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3391 # Check for bogus environment variables.
3392 # Test if LIBRARY_PATH contains the notation for the current directory
3393 # since this would lead to problems installing/building glibc.
3394 # LIBRARY_PATH contains the current directory if one of the following
3395 # is true:
3396 # - one of the terminals (":" and ";") is the first or last sign
3397 # - two terminals occur directly after each other
3398 # - the path contains an element with a dot in it
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3400 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3401 case ${LIBRARY_PATH} in
3402 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3403 library_path_setting="contains current directory"
3406 library_path_setting="ok"
3408 esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3410 $as_echo "$library_path_setting" >&6; }
3411 if test "$library_path_setting" != "ok"; then
3412 as_fn_error "
3413 *** LIBRARY_PATH shouldn't contain the current directory when
3414 *** building gcc. Please change the environment variable
3415 *** and run configure again." "$LINENO" 5
3418 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3419 # since this would lead to problems installing/building glibc.
3420 # GCC_EXEC_PREFIX contains the current directory if one of the following
3421 # is true:
3422 # - one of the terminals (":" and ";") is the first or last sign
3423 # - two terminals occur directly after each other
3424 # - the path contains an element with a dot in it
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3426 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3427 case ${GCC_EXEC_PREFIX} in
3428 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3429 gcc_exec_prefix_setting="contains current directory"
3432 gcc_exec_prefix_setting="ok"
3434 esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3436 $as_echo "$gcc_exec_prefix_setting" >&6; }
3437 if test "$gcc_exec_prefix_setting" != "ok"; then
3438 as_fn_error "
3439 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3440 *** building gcc. Please change the environment variable
3441 *** and run configure again." "$LINENO" 5
3444 # -----------
3445 # Directories
3446 # -----------
3448 # Specify the local prefix
3449 local_prefix=
3451 # Check whether --with-local-prefix was given.
3452 if test "${with_local_prefix+set}" = set; then :
3453 withval=$with_local_prefix; case "${withval}" in
3454 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3455 no) ;;
3456 *) local_prefix=$with_local_prefix ;;
3457 esac
3461 # Default local prefix if it is empty
3462 if test x$local_prefix = x; then
3463 local_prefix=/usr/local
3467 # Check whether --with-native-system-header-dir was given.
3468 if test "${with_native_system_header_dir+set}" = set; then :
3469 withval=$with_native_system_header_dir;
3470 case ${with_native_system_header_dir} in
3471 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3472 /* | [A-Za-z]:[\\/]*) ;;
3473 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3474 esac
3475 configured_native_system_header_dir="${withval}"
3477 else
3478 configured_native_system_header_dir=
3483 # Check whether --with-build-sysroot was given.
3484 if test "${with_build_sysroot+set}" = set; then :
3485 withval=$with_build_sysroot; if test x"$withval" != x ; then
3486 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3488 else
3489 SYSROOT_CFLAGS_FOR_TARGET=
3494 if test "x$prefix" = xNONE; then
3495 test_prefix=/usr/local
3496 else
3497 test_prefix=$prefix
3499 if test "x$exec_prefix" = xNONE; then
3500 test_exec_prefix=$test_prefix
3501 else
3502 test_exec_prefix=$exec_prefix
3506 # Check whether --with-sysroot was given.
3507 if test "${with_sysroot+set}" = set; then :
3508 withval=$with_sysroot;
3509 case ${with_sysroot} in
3510 /) ;;
3511 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3512 esac
3513 case ${with_sysroot} in
3514 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3515 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3516 esac
3518 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3519 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3521 case ${TARGET_SYSTEM_ROOT} in
3522 "${test_prefix}"|"${test_prefix}/"*|\
3523 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3524 '${prefix}'|'${prefix}/'*|\
3525 '${exec_prefix}'|'${exec_prefix}/'*)
3526 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3527 TARGET_SYSTEM_ROOT_DEFINE="$t"
3529 esac
3531 else
3533 TARGET_SYSTEM_ROOT=
3534 TARGET_SYSTEM_ROOT_DEFINE=
3535 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3543 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3544 # passed in by the toplevel make and thus we'd get different behavior
3545 # depending on where we built the sources.
3546 gcc_gxx_include_dir=
3547 # Specify the g++ header file directory
3549 # Check whether --with-gxx-include-dir was given.
3550 if test "${with_gxx_include_dir+set}" = set; then :
3551 withval=$with_gxx_include_dir; case "${withval}" in
3552 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3553 no) ;;
3554 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3555 esac
3559 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3560 if test x${gcc_gxx_include_dir} = x; then
3561 if test x${enable_version_specific_runtime_libs} = xyes; then
3562 gcc_gxx_include_dir='${libsubdir}/include/c++'
3563 else
3564 libstdcxx_incdir='include/c++/$(version)'
3565 if test x$host != x$target; then
3566 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3568 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3572 gcc_gxx_include_dir_add_sysroot=0
3573 if test "${with_sysroot+set}" = set; then
3574 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3575 if test "${gcc_gxx_without_sysroot}"; then
3576 if test x${with_sysroot} != x/; then
3577 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3579 gcc_gxx_include_dir_add_sysroot=1
3584 # Check whether --with-cpp_install_dir was given.
3585 if test "${with_cpp_install_dir+set}" = set; then :
3586 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3587 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3588 elif test x$withval != xno; then
3589 cpp_install_dir=$withval
3594 # We would like to our source tree to be readonly. However when releases or
3595 # pre-releases are generated, the flex/bison generated files as well as the
3596 # various formats of manuals need to be included along with the rest of the
3597 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3598 # just that.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3601 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3602 # Check whether --enable-generated-files-in-srcdir was given.
3603 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3604 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3605 else
3606 generated_files_in_srcdir=no
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3611 $as_echo "$generated_files_in_srcdir" >&6; }
3613 if test "$generated_files_in_srcdir" = "yes"; then
3614 GENINSRC=''
3615 else
3616 GENINSRC='#'
3620 # -------------------
3621 # Find default linker
3622 # -------------------
3624 # With GNU ld
3626 # Check whether --with-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then :
3628 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3629 else
3630 gnu_ld_flag=no
3634 case $target in
3635 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3636 *) ld64_flag=no;;
3637 esac
3639 # With pre-defined ld
3641 # Check whether --with-ld was given.
3642 if test "${with_ld+set}" = set; then :
3643 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3646 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3647 if test ! -x "$DEFAULT_LINKER"; then
3648 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3649 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3650 gnu_ld_flag=yes
3651 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3652 ld64_flag=yes
3655 cat >>confdefs.h <<_ACEOF
3656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3657 _ACEOF
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3662 $as_echo_n "checking whether a default linker was specified... " >&6; }
3663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3664 if test x"$gnu_ld_flag" = x"no"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3666 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3669 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3676 # With demangler in GNU ld
3678 # Check whether --with-demangler-in-ld was given.
3679 if test "${with_demangler_in_ld+set}" = set; then :
3680 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3681 else
3682 demangler_in_ld=yes
3686 # ----------------------
3687 # Find default assembler
3688 # ----------------------
3690 # With GNU as
3692 # Check whether --with-gnu-as was given.
3693 if test "${with_gnu_as+set}" = set; then :
3694 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3695 else
3696 gas_flag=no
3701 # Check whether --with-as was given.
3702 if test "${with_as+set}" = set; then :
3703 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3706 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3707 if test ! -x "$DEFAULT_ASSEMBLER"; then
3708 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3709 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3710 gas_flag=yes
3713 cat >>confdefs.h <<_ACEOF
3714 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3715 _ACEOF
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3720 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3721 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3722 if test x"$gas_flag" = x"no"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3724 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3727 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3734 # ---------------
3735 # Find C compiler
3736 # ---------------
3738 # If a non-executable a.out is present (e.g. created by GNU as above even if
3739 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3740 # file, even when creating an executable, so an execution test fails.
3741 # Remove possible default executable files to avoid this.
3743 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3744 # Autoconf includes it.
3745 rm -f a.out a.exe b.out
3747 # Find the native compiler
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3792 if test -z "$ac_cv_prog_CC"; then
3793 ac_ct_CC=$CC
3794 # Extract the first word of "gcc", so it can be a program name with args.
3795 set dummy gcc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_CC="gcc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3817 IFS=$as_save_IFS
3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 $as_echo "$ac_ct_CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3830 if test "x$ac_ct_CC" = x; then
3831 CC=""
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839 CC=$ac_ct_CC
3841 else
3842 CC="$ac_cv_prog_CC"
3845 if test -z "$CC"; then
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}cc; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CC="${ac_tool_prefix}cc"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3886 if test -z "$CC"; then
3887 # Extract the first word of "cc", so it can be a program name with args.
3888 set dummy cc; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_CC+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 else
3897 ac_prog_rejected=no
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3906 ac_prog_rejected=yes
3907 continue
3909 ac_cv_prog_CC="cc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3917 if test $ac_prog_rejected = yes; then
3918 # We found a bogon in the path, so make sure we never use it.
3919 set dummy $ac_cv_prog_CC
3920 shift
3921 if test $# != 0; then
3922 # We chose a different compiler from the bogus one.
3923 # However, it has the same basename, so the bogon will be chosen
3924 # first if we set CC to just the basename; use the full file name.
3925 shift
3926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3942 if test -z "$CC"; then
3943 if test -n "$ac_tool_prefix"; then
3944 for ac_prog in cl.exe
3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3983 test -n "$CC" && break
3984 done
3986 if test -z "$CC"; then
3987 ac_ct_CC=$CC
3988 for ac_prog in cl.exe
3990 # Extract the first word of "$ac_prog", so it can be a program name with args.
3991 set dummy $ac_prog; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_ac_ct_CC="$ac_prog"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4013 IFS=$as_save_IFS
4017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4018 if test -n "$ac_ct_CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020 $as_echo "$ac_ct_CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4027 test -n "$ac_ct_CC" && break
4028 done
4030 if test "x$ac_ct_CC" = x; then
4031 CC=""
4032 else
4033 case $cross_compiling:$ac_tool_warned in
4034 yes:)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4038 esac
4039 CC=$ac_ct_CC
4046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error "no acceptable C compiler found in \$PATH
4049 See \`config.log' for more details." "$LINENO" 5; }
4051 # Provide some information about the compiler.
4052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4053 set X $ac_compile
4054 ac_compiler=$2
4055 for ac_option in --version -v -V -qversion; do
4056 { { ac_try="$ac_compiler $ac_option >&5"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4064 ac_status=$?
4065 if test -s conftest.err; then
4066 sed '10a\
4067 ... rest of stderr output deleted ...
4068 10q' conftest.err >conftest.er1
4069 cat conftest.er1 >&5
4070 rm -f conftest.er1 conftest.err
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }
4074 done
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 ac_clean_files_save=$ac_clean_files
4088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4089 # Try to create an executable without -o first, disregard a.out.
4090 # It will help us diagnose broken compilers, and finding out an intuition
4091 # of exeext.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4093 $as_echo_n "checking for C compiler default output file name... " >&6; }
4094 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4096 # The possible output files:
4097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4099 ac_rmfiles=
4100 for ac_file in $ac_files
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4105 esac
4106 done
4107 rm -f $ac_rmfiles
4109 if { { ac_try="$ac_link_default"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_link_default") 2>&5
4117 ac_status=$?
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }; then :
4120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4123 # so that the user can short-circuit this test for compilers unknown to
4124 # Autoconf.
4125 for ac_file in $ac_files ''
4127 test -f "$ac_file" || continue
4128 case $ac_file in
4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4131 [ab].out )
4132 # We found the default executable, but exeext='' is most
4133 # certainly right.
4134 break;;
4135 *.* )
4136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4137 then :; else
4138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 # We set ac_cv_exeext here because the later test for it is not
4141 # safe: cross compilers may not add the suffix if given an `-o'
4142 # argument, so we may need to know it at that point already.
4143 # Even if this section looks crufty: it has the advantage of
4144 # actually working.
4145 break;;
4147 break;;
4148 esac
4149 done
4150 test "$ac_cv_exeext" = no && ac_cv_exeext=
4152 else
4153 ac_file=''
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156 $as_echo "$ac_file" >&6; }
4157 if test -z "$ac_file"; then :
4158 $as_echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 { as_fn_set_status 77
4164 as_fn_error "C compiler cannot create executables
4165 See \`config.log' for more details." "$LINENO" 5; }; }
4167 ac_exeext=$ac_cv_exeext
4169 # Check that the compiler produces executables we can run. If not, either
4170 # the compiler is broken, or we cross compile.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4172 $as_echo_n "checking whether the C compiler works... " >&6; }
4173 # If not cross compiling, check that we can run a simple program.
4174 if test "$cross_compiling" != yes; then
4175 if { ac_try='./$ac_file'
4176 { { case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_try") 2>&5
4183 ac_status=$?
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; }; then
4186 cross_compiling=no
4187 else
4188 if test "$cross_compiling" = maybe; then
4189 cross_compiling=yes
4190 else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error "cannot run C compiled programs.
4194 If you meant to cross compile, use \`--host'.
4195 See \`config.log' for more details." "$LINENO" 5; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 $as_echo "yes" >&6; }
4202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4203 ac_clean_files=$ac_clean_files_save
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4207 $as_echo_n "checking whether we are cross compiling... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4209 $as_echo "$cross_compiling" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4212 $as_echo_n "checking for suffix of executables... " >&6; }
4213 if { { ac_try="$ac_link"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_link") 2>&5
4221 ac_status=$?
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; then :
4224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4226 # work properly (i.e., refer to `conftest.exe'), while it won't with
4227 # `rm'.
4228 for ac_file in conftest.exe conftest conftest.*; do
4229 test -f "$ac_file" || continue
4230 case $ac_file in
4231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4233 break;;
4234 * ) break;;
4235 esac
4236 done
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error "cannot compute suffix of executables: cannot compile and link
4241 See \`config.log' for more details." "$LINENO" 5; }
4243 rm -f conftest$ac_cv_exeext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4245 $as_echo "$ac_cv_exeext" >&6; }
4247 rm -f conftest.$ac_ext
4248 EXEEXT=$ac_cv_exeext
4249 ac_exeext=$EXEEXT
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4251 $as_echo_n "checking for suffix of object files... " >&6; }
4252 if test "${ac_cv_objext+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4259 main ()
4263 return 0;
4265 _ACEOF
4266 rm -f conftest.o conftest.obj
4267 if { { ac_try="$ac_compile"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compile") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 for ac_file in conftest.o conftest.obj conftest.*; do
4279 test -f "$ac_file" || continue;
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4283 break;;
4284 esac
4285 done
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "cannot compute suffix of object files: cannot compile
4293 See \`config.log' for more details." "$LINENO" 5; }
4295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4298 $as_echo "$ac_cv_objext" >&6; }
4299 OBJEXT=$ac_cv_objext
4300 ac_objext=$OBJEXT
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4310 main ()
4312 #ifndef __GNUC__
4313 choke me
4314 #endif
4317 return 0;
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_compiler_gnu=yes
4322 else
4323 ac_compiler_gnu=no
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4331 if test $ac_compiler_gnu = yes; then
4332 GCC=yes
4333 else
4334 GCC=
4336 ac_test_CFLAGS=${CFLAGS+set}
4337 ac_save_CFLAGS=$CFLAGS
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4340 if test "${ac_cv_prog_cc_g+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 ac_save_c_werror_flag=$ac_c_werror_flag
4344 ac_c_werror_flag=yes
4345 ac_cv_prog_cc_g=no
4346 CFLAGS="-g"
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4351 main ()
4355 return 0;
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_prog_cc_g=yes
4360 else
4361 CFLAGS=""
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4366 main ()
4370 return 0;
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4375 else
4376 ac_c_werror_flag=$ac_save_c_werror_flag
4377 CFLAGS="-g"
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4382 main ()
4386 return 0;
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_prog_cc_g=yes
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4400 $as_echo "$ac_cv_prog_cc_g" >&6; }
4401 if test "$ac_test_CFLAGS" = set; then
4402 CFLAGS=$ac_save_CFLAGS
4403 elif test $ac_cv_prog_cc_g = yes; then
4404 if test "$GCC" = yes; then
4405 CFLAGS="-g -O2"
4406 else
4407 CFLAGS="-g"
4409 else
4410 if test "$GCC" = yes; then
4411 CFLAGS="-O2"
4412 else
4413 CFLAGS=
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 ac_cv_prog_cc_c89=no
4422 ac_save_CC=$CC
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <stdarg.h>
4426 #include <stdio.h>
4427 #include <sys/types.h>
4428 #include <sys/stat.h>
4429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4430 struct buf { int x; };
4431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4432 static char *e (p, i)
4433 char **p;
4434 int i;
4436 return p[i];
4438 static char *f (char * (*g) (char **, int), char **p, ...)
4440 char *s;
4441 va_list v;
4442 va_start (v,p);
4443 s = g (p, va_arg (v,int));
4444 va_end (v);
4445 return s;
4448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4449 function prototypes and stuff, but not '\xHH' hex character constants.
4450 These don't provoke an error unfortunately, instead are silently treated
4451 as 'x'. The following induces an error, until -std is added to get
4452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4453 array size at least. It's necessary to write '\x00'==0 to get something
4454 that's true only with -std. */
4455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4458 inside strings and character constants. */
4459 #define FOO(x) 'x'
4460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4462 int test (int i, double x);
4463 struct s1 {int (*f) (int a);};
4464 struct s2 {int (*f) (double a);};
4465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4466 int argc;
4467 char **argv;
4469 main ()
4471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4473 return 0;
4475 _ACEOF
4476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 CC="$ac_save_CC $ac_arg"
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_prog_cc_c89=$ac_arg
4483 rm -f core conftest.err conftest.$ac_objext
4484 test "x$ac_cv_prog_cc_c89" != "xno" && break
4485 done
4486 rm -f conftest.$ac_ext
4487 CC=$ac_save_CC
4490 # AC_CACHE_VAL
4491 case "x$ac_cv_prog_cc_c89" in
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4494 $as_echo "none needed" >&6; } ;;
4495 xno)
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 $as_echo "unsupported" >&6; } ;;
4499 CC="$CC $ac_cv_prog_cc_c89"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4502 esac
4503 if test "x$ac_cv_prog_cc_c89" != xno; then :
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 ac_ext=cpp
4514 ac_cpp='$CXXCPP $CPPFLAGS'
4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518 if test -z "$CXX"; then
4519 if test -n "$CCC"; then
4520 CXX=$CCC
4521 else
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_CXX+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$CXX"; then
4533 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 CXX=$ac_cv_prog_CXX
4553 if test -n "$CXX"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4555 $as_echo "$CXX" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4562 test -n "$CXX" && break
4563 done
4565 if test -z "$CXX"; then
4566 ac_ct_CXX=$CXX
4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$ac_ct_CXX"; then
4577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CXX="$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4590 done
4591 done
4592 IFS=$as_save_IFS
4596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4597 if test -n "$ac_ct_CXX"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4599 $as_echo "$ac_ct_CXX" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4606 test -n "$ac_ct_CXX" && break
4607 done
4609 if test "x$ac_ct_CXX" = x; then
4610 CXX="g++"
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613 yes:)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned=yes ;;
4617 esac
4618 CXX=$ac_ct_CXX
4624 # Provide some information about the compiler.
4625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4626 set X $ac_compile
4627 ac_compiler=$2
4628 for ac_option in --version -v -V -qversion; do
4629 { { ac_try="$ac_compiler $ac_option >&5"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 $as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4637 ac_status=$?
4638 if test -s conftest.err; then
4639 sed '10a\
4640 ... rest of stderr output deleted ...
4641 10q' conftest.err >conftest.er1
4642 cat conftest.er1 >&5
4643 rm -f conftest.er1 conftest.err
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4647 done
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4650 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4651 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4658 main ()
4660 #ifndef __GNUC__
4661 choke me
4662 #endif
4665 return 0;
4667 _ACEOF
4668 if ac_fn_cxx_try_compile "$LINENO"; then :
4669 ac_compiler_gnu=yes
4670 else
4671 ac_compiler_gnu=no
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4679 if test $ac_compiler_gnu = yes; then
4680 GXX=yes
4681 else
4682 GXX=
4684 ac_test_CXXFLAGS=${CXXFLAGS+set}
4685 ac_save_CXXFLAGS=$CXXFLAGS
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4688 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4692 ac_cxx_werror_flag=yes
4693 ac_cv_prog_cxx_g=no
4694 CXXFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4699 main ()
4703 return 0;
4705 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707 ac_cv_prog_cxx_g=yes
4708 else
4709 CXXFLAGS=""
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4714 main ()
4718 return 0;
4720 _ACEOF
4721 if ac_fn_cxx_try_compile "$LINENO"; then :
4723 else
4724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4725 CXXFLAGS="-g"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4730 main ()
4734 return 0;
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4738 ac_cv_prog_cxx_g=yes
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4748 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4749 if test "$ac_test_CXXFLAGS" = set; then
4750 CXXFLAGS=$ac_save_CXXFLAGS
4751 elif test $ac_cv_prog_cxx_g = yes; then
4752 if test "$GXX" = yes; then
4753 CXXFLAGS="-g -O2"
4754 else
4755 CXXFLAGS="-g"
4757 else
4758 if test "$GXX" = yes; then
4759 CXXFLAGS="-O2"
4760 else
4761 CXXFLAGS=
4764 ac_ext=c
4765 ac_cpp='$CPP $CPPFLAGS'
4766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$GNATBIND"; then
4782 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4797 IFS=$as_save_IFS
4801 GNATBIND=$ac_cv_prog_GNATBIND
4802 if test -n "$GNATBIND"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4804 $as_echo "$GNATBIND" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$ac_cv_prog_GNATBIND"; then
4813 ac_ct_GNATBIND=$GNATBIND
4814 # Extract the first word of "gnatbind", so it can be a program name with args.
4815 set dummy gnatbind; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_GNATBIND"; then
4822 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4842 if test -n "$ac_ct_GNATBIND"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4844 $as_echo "$ac_ct_GNATBIND" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4850 if test "x$ac_ct_GNATBIND" = x; then
4851 GNATBIND="no"
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 GNATBIND=$ac_ct_GNATBIND
4861 else
4862 GNATBIND="$ac_cv_prog_GNATBIND"
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4867 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$GNATMAKE"; then
4874 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 GNATMAKE=$ac_cv_prog_GNATMAKE
4894 if test -n "$GNATMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4896 $as_echo "$GNATMAKE" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4904 if test -z "$ac_cv_prog_GNATMAKE"; then
4905 ac_ct_GNATMAKE=$GNATMAKE
4906 # Extract the first word of "gnatmake", so it can be a program name with args.
4907 set dummy gnatmake; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$ac_ct_GNATMAKE"; then
4914 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4934 if test -n "$ac_ct_GNATMAKE"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4936 $as_echo "$ac_ct_GNATMAKE" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4942 if test "x$ac_ct_GNATMAKE" = x; then
4943 GNATMAKE="no"
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946 yes:)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951 GNATMAKE=$ac_ct_GNATMAKE
4953 else
4954 GNATMAKE="$ac_cv_prog_GNATMAKE"
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4958 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4959 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 cat >conftest.adb <<EOF
4963 procedure conftest is begin null; end conftest;
4965 acx_cv_cc_gcc_supports_ada=no
4966 # There is a bug in old released versions of GCC which causes the
4967 # driver to exit successfully when the appropriate language module
4968 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4969 # Therefore we must check for the error message as well as an
4970 # unsuccessful exit.
4971 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4972 # given a .adb file, but produce no object file. So we must check
4973 # if an object file was really produced to guard against this.
4974 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4975 if test x"$errors" = x && test -f conftest.$ac_objext; then
4976 acx_cv_cc_gcc_supports_ada=yes
4978 rm -f conftest.*
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4981 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4983 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4984 have_gnat=yes
4985 else
4986 have_gnat=no
4990 # Do configure tests with the C++ compiler, since that's what we build with.
4991 ac_ext=cpp
4992 ac_cpp='$CXXCPP $CPPFLAGS'
4993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4998 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4999 # optimizations to be activated explicitly by the toplevel.
5000 case "$CC" in
5001 */prev-gcc/xgcc*) ;;
5002 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5003 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5004 esac
5008 # Determine PICFLAG for target gnatlib.
5013 case "${target}" in
5014 # PIC is the default on some targets or must not be used.
5015 *-*-darwin*)
5016 # For darwin, common symbols are not allowed in MH_DYLIB files
5017 case "${CFLAGS}" in
5018 # If we are using a compiler supporting mdynamic-no-pic
5019 # and the option has been tested as safe to add, then cancel
5020 # it here, since the code generated is incompatible with shared
5021 # libs.
5022 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5023 *) PICFLAG_FOR_TARGET=-fno-common ;;
5024 esac
5026 alpha*-dec-osf5*)
5027 # PIC is the default.
5029 hppa*64*-*-hpux*)
5030 # PIC is the default for 64-bit PA HP-UX.
5032 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5034 i[34567]86-*-mingw* | x86_64-*-mingw*)
5036 i[34567]86-*-interix[3-9]*)
5037 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5038 # Instead, we relocate shared libraries at runtime.
5040 i[34567]86-*-nto-qnx*)
5041 # QNX uses GNU C++, but need to define -shared option too, otherwise
5042 # it will coredump.
5043 PICFLAG_FOR_TARGET='-fPIC -shared'
5045 i[34567]86-pc-msdosdjgpp*)
5046 # DJGPP does not support shared libraries at all.
5048 ia64*-*-hpux*)
5049 # On IA64 HP-UX, PIC is the default but the pic flag
5050 # sets the default TLS model and affects inlining.
5051 PICFLAG_FOR_TARGET=-fPIC
5053 mips-sgi-irix6*)
5054 # PIC is the default.
5056 rs6000-ibm-aix* | powerpc-ibm-aix*)
5057 # All AIX code is PIC.
5060 # Some targets support both -fPIC and -fpic, but prefer the latter.
5061 # FIXME: Why?
5062 i[34567]86-*-* | x86_64-*-*)
5063 PICFLAG_FOR_TARGET=-fpic
5065 # FIXME: Override -fPIC default in libgcc only?
5066 sh-*-linux* | sh[2346lbe]*-*-linux*)
5067 PICFLAG_FOR_TARGET=-fpic
5069 # FIXME: Simplify to sh*-*-netbsd*?
5070 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5071 sh64-*-netbsd* | sh64l*-*-netbsd*)
5072 PICFLAG_FOR_TARGET=-fpic
5074 # Default to -fPIC unless specified otherwise.
5076 PICFLAG_FOR_TARGET=-fPIC
5078 esac
5080 # If the user explicitly uses -fpic/-fPIC, keep that.
5081 case "${CFLAGS_FOR_TARGET}" in
5082 *-fpic*)
5083 PICFLAG_FOR_TARGET=-fpic
5085 *-fPIC*)
5086 PICFLAG_FOR_TARGET=-fPIC
5088 esac
5092 # -------------------------
5093 # Check C compiler features
5094 # -------------------------
5097 ac_ext=cpp
5098 ac_cpp='$CXXCPP $CPPFLAGS'
5099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5103 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5104 if test -z "$CXXCPP"; then
5105 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 # Double quotes because CXXCPP needs to be expanded
5109 for CXXCPP in "$CXX -E" "/lib/cpp"
5111 ac_preproc_ok=false
5112 for ac_cxx_preproc_warn_flag in '' yes
5114 # Use a header file that comes with gcc, so configuring glibc
5115 # with a fresh cross-compiler works.
5116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117 # <limits.h> exists even on freestanding compilers.
5118 # On the NeXT, cc -E runs the code through the compiler's parser,
5119 # not just through cpp. "Syntax error" is here to catch this case.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #ifdef __STDC__
5123 # include <limits.h>
5124 #else
5125 # include <assert.h>
5126 #endif
5127 Syntax error
5128 _ACEOF
5129 if ac_fn_cxx_try_cpp "$LINENO"; then :
5131 else
5132 # Broken: fails on valid input.
5133 continue
5135 rm -f conftest.err conftest.$ac_ext
5137 # OK, works on sane cases. Now check whether nonexistent headers
5138 # can be detected and how.
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5142 _ACEOF
5143 if ac_fn_cxx_try_cpp "$LINENO"; then :
5144 # Broken: success on invalid input.
5145 continue
5146 else
5147 # Passes both tests.
5148 ac_preproc_ok=:
5149 break
5151 rm -f conftest.err conftest.$ac_ext
5153 done
5154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155 rm -f conftest.err conftest.$ac_ext
5156 if $ac_preproc_ok; then :
5157 break
5160 done
5161 ac_cv_prog_CXXCPP=$CXXCPP
5164 CXXCPP=$ac_cv_prog_CXXCPP
5165 else
5166 ac_cv_prog_CXXCPP=$CXXCPP
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5169 $as_echo "$CXXCPP" >&6; }
5170 ac_preproc_ok=false
5171 for ac_cxx_preproc_warn_flag in '' yes
5173 # Use a header file that comes with gcc, so configuring glibc
5174 # with a fresh cross-compiler works.
5175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 # <limits.h> exists even on freestanding compilers.
5177 # On the NeXT, cc -E runs the code through the compiler's parser,
5178 # not just through cpp. "Syntax error" is here to catch this case.
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #ifdef __STDC__
5182 # include <limits.h>
5183 #else
5184 # include <assert.h>
5185 #endif
5186 Syntax error
5187 _ACEOF
5188 if ac_fn_cxx_try_cpp "$LINENO"; then :
5190 else
5191 # Broken: fails on valid input.
5192 continue
5194 rm -f conftest.err conftest.$ac_ext
5196 # OK, works on sane cases. Now check whether nonexistent headers
5197 # can be detected and how.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <ac_nonexistent.h>
5201 _ACEOF
5202 if ac_fn_cxx_try_cpp "$LINENO"; then :
5203 # Broken: success on invalid input.
5204 continue
5205 else
5206 # Passes both tests.
5207 ac_preproc_ok=:
5208 break
5210 rm -f conftest.err conftest.$ac_ext
5212 done
5213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5214 rm -f conftest.err conftest.$ac_ext
5215 if $ac_preproc_ok; then :
5217 else
5218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5220 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5221 See \`config.log' for more details." "$LINENO" 5; }
5224 ac_ext=cpp
5225 ac_cpp='$CXXCPP $CPPFLAGS'
5226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5232 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5233 if test "${ac_cv_path_GREP+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -z "$GREP"; then
5237 ac_path_GREP_found=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_prog in grep ggrep; do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5247 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5248 # Check for GNU ac_path_GREP and select it if it is found.
5249 # Check for GNU $ac_path_GREP
5250 case `"$ac_path_GREP" --version 2>&1` in
5251 *GNU*)
5252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5254 ac_count=0
5255 $as_echo_n 0123456789 >"conftest.in"
5256 while :
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 $as_echo 'GREP' >> "conftest.nl"
5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 as_fn_arith $ac_count + 1 && ac_count=$as_val
5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_GREP="$ac_path_GREP"
5268 ac_path_GREP_max=$ac_count
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274 esac
5276 $ac_path_GREP_found && break 3
5277 done
5278 done
5279 done
5280 IFS=$as_save_IFS
5281 if test -z "$ac_cv_path_GREP"; then
5282 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5284 else
5285 ac_cv_path_GREP=$GREP
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5290 $as_echo "$ac_cv_path_GREP" >&6; }
5291 GREP="$ac_cv_path_GREP"
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5295 $as_echo_n "checking for egrep... " >&6; }
5296 if test "${ac_cv_path_EGREP+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5300 then ac_cv_path_EGREP="$GREP -E"
5301 else
5302 if test -z "$EGREP"; then
5303 ac_path_EGREP_found=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_prog in egrep; do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5314 # Check for GNU ac_path_EGREP and select it if it is found.
5315 # Check for GNU $ac_path_EGREP
5316 case `"$ac_path_EGREP" --version 2>&1` in
5317 *GNU*)
5318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5320 ac_count=0
5321 $as_echo_n 0123456789 >"conftest.in"
5322 while :
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 $as_echo 'EGREP' >> "conftest.nl"
5328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_EGREP="$ac_path_EGREP"
5334 ac_path_EGREP_max=$ac_count
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340 esac
5342 $ac_path_EGREP_found && break 3
5343 done
5344 done
5345 done
5346 IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_EGREP"; then
5348 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5350 else
5351 ac_cv_path_EGREP=$EGREP
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5357 $as_echo "$ac_cv_path_EGREP" >&6; }
5358 EGREP="$ac_cv_path_EGREP"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5362 $as_echo_n "checking for ANSI C header files... " >&6; }
5363 if test "${ac_cv_header_stdc+set}" = set; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <stdlib.h>
5369 #include <stdarg.h>
5370 #include <string.h>
5371 #include <float.h>
5374 main ()
5378 return 0;
5380 _ACEOF
5381 if ac_fn_cxx_try_compile "$LINENO"; then :
5382 ac_cv_header_stdc=yes
5383 else
5384 ac_cv_header_stdc=no
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 if test $ac_cv_header_stdc = yes; then
5389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 #include <string.h>
5394 _ACEOF
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396 $EGREP "memchr" >/dev/null 2>&1; then :
5398 else
5399 ac_cv_header_stdc=no
5401 rm -f conftest*
5405 if test $ac_cv_header_stdc = yes; then
5406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <stdlib.h>
5411 _ACEOF
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "free" >/dev/null 2>&1; then :
5415 else
5416 ac_cv_header_stdc=no
5418 rm -f conftest*
5422 if test $ac_cv_header_stdc = yes; then
5423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5424 if test "$cross_compiling" = yes; then :
5426 else
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <ctype.h>
5430 #include <stdlib.h>
5431 #if ((' ' & 0x0FF) == 0x020)
5432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5434 #else
5435 # define ISLOWER(c) \
5436 (('a' <= (c) && (c) <= 'i') \
5437 || ('j' <= (c) && (c) <= 'r') \
5438 || ('s' <= (c) && (c) <= 'z'))
5439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5440 #endif
5442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5444 main ()
5446 int i;
5447 for (i = 0; i < 256; i++)
5448 if (XOR (islower (i), ISLOWER (i))
5449 || toupper (i) != TOUPPER (i))
5450 return 2;
5451 return 0;
5453 _ACEOF
5454 if ac_fn_cxx_try_run "$LINENO"; then :
5456 else
5457 ac_cv_header_stdc=no
5459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5460 conftest.$ac_objext conftest.beam conftest.$ac_ext
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5466 $as_echo "$ac_cv_header_stdc" >&6; }
5467 if test $ac_cv_header_stdc = yes; then
5469 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5474 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5475 inttypes.h stdint.h unistd.h
5476 do :
5477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5480 eval as_val=\$$as_ac_Header
5481 if test "x$as_val" = x""yes; then :
5482 cat >>confdefs.h <<_ACEOF
5483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484 _ACEOF
5488 done
5492 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5493 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5494 MINIX=yes
5495 else
5496 MINIX=
5500 if test "$MINIX" = yes; then
5502 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5505 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5508 $as_echo "#define _MINIX 1" >>confdefs.h
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5514 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5515 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5521 # define __EXTENSIONS__ 1
5522 $ac_includes_default
5524 main ()
5528 return 0;
5530 _ACEOF
5531 if ac_fn_cxx_try_compile "$LINENO"; then :
5532 ac_cv_safe_to_define___extensions__=yes
5533 else
5534 ac_cv_safe_to_define___extensions__=no
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5539 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5540 test $ac_cv_safe_to_define___extensions__ = yes &&
5541 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5543 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5545 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5547 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5549 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5558 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5559 # On Suns, sometimes $CPP names a directory.
5560 if test -n "$CPP" && test -d "$CPP"; then
5561 CPP=
5563 if test -z "$CPP"; then
5564 if test "${ac_cv_prog_CPP+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 # Double quotes because CPP needs to be expanded
5568 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5570 ac_preproc_ok=false
5571 for ac_c_preproc_warn_flag in '' yes
5573 # Use a header file that comes with gcc, so configuring glibc
5574 # with a fresh cross-compiler works.
5575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5576 # <limits.h> exists even on freestanding compilers.
5577 # On the NeXT, cc -E runs the code through the compiler's parser,
5578 # not just through cpp. "Syntax error" is here to catch this case.
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 #ifdef __STDC__
5582 # include <limits.h>
5583 #else
5584 # include <assert.h>
5585 #endif
5586 Syntax error
5587 _ACEOF
5588 if ac_fn_c_try_cpp "$LINENO"; then :
5590 else
5591 # Broken: fails on valid input.
5592 continue
5594 rm -f conftest.err conftest.$ac_ext
5596 # OK, works on sane cases. Now check whether nonexistent headers
5597 # can be detected and how.
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #include <ac_nonexistent.h>
5601 _ACEOF
5602 if ac_fn_c_try_cpp "$LINENO"; then :
5603 # Broken: success on invalid input.
5604 continue
5605 else
5606 # Passes both tests.
5607 ac_preproc_ok=:
5608 break
5610 rm -f conftest.err conftest.$ac_ext
5612 done
5613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5614 rm -f conftest.err conftest.$ac_ext
5615 if $ac_preproc_ok; then :
5616 break
5619 done
5620 ac_cv_prog_CPP=$CPP
5623 CPP=$ac_cv_prog_CPP
5624 else
5625 ac_cv_prog_CPP=$CPP
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5628 $as_echo "$CPP" >&6; }
5629 ac_preproc_ok=false
5630 for ac_c_preproc_warn_flag in '' yes
5632 # Use a header file that comes with gcc, so configuring glibc
5633 # with a fresh cross-compiler works.
5634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5635 # <limits.h> exists even on freestanding compilers.
5636 # On the NeXT, cc -E runs the code through the compiler's parser,
5637 # not just through cpp. "Syntax error" is here to catch this case.
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 #ifdef __STDC__
5641 # include <limits.h>
5642 #else
5643 # include <assert.h>
5644 #endif
5645 Syntax error
5646 _ACEOF
5647 if ac_fn_c_try_cpp "$LINENO"; then :
5649 else
5650 # Broken: fails on valid input.
5651 continue
5653 rm -f conftest.err conftest.$ac_ext
5655 # OK, works on sane cases. Now check whether nonexistent headers
5656 # can be detected and how.
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <ac_nonexistent.h>
5660 _ACEOF
5661 if ac_fn_c_try_cpp "$LINENO"; then :
5662 # Broken: success on invalid input.
5663 continue
5664 else
5665 # Passes both tests.
5666 ac_preproc_ok=:
5667 break
5669 rm -f conftest.err conftest.$ac_ext
5671 done
5672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5673 rm -f conftest.err conftest.$ac_ext
5674 if $ac_preproc_ok; then :
5676 else
5677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5679 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5680 See \`config.log' for more details." "$LINENO" 5; }
5683 ac_ext=cpp
5684 ac_cpp='$CXXCPP $CPPFLAGS'
5685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5690 $as_echo_n "checking for inline... " >&6; }
5691 if test "${ac_cv_c_inline+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 ac_cv_c_inline=no
5695 for ac_kw in inline __inline__ __inline; do
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #ifndef __cplusplus
5699 typedef int foo_t;
5700 static $ac_kw foo_t static_foo () {return 0; }
5701 $ac_kw foo_t foo () {return 0; }
5702 #endif
5704 _ACEOF
5705 if ac_fn_cxx_try_compile "$LINENO"; then :
5706 ac_cv_c_inline=$ac_kw
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 test "$ac_cv_c_inline" != no && break
5710 done
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5714 $as_echo "$ac_cv_c_inline" >&6; }
5716 case $ac_cv_c_inline in
5717 inline | yes) ;;
5719 case $ac_cv_c_inline in
5720 no) ac_val=;;
5721 *) ac_val=$ac_cv_c_inline;;
5722 esac
5723 cat >>confdefs.h <<_ACEOF
5724 #ifndef __cplusplus
5725 #define inline $ac_val
5726 #endif
5727 _ACEOF
5729 esac
5732 # Check whether --enable-largefile was given.
5733 if test "${enable_largefile+set}" = set; then :
5734 enableval=$enable_largefile;
5737 if test "$enable_largefile" != no; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5740 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5741 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 ac_cv_sys_largefile_CC=no
5745 if test "$GCC" != yes; then
5746 ac_save_CC=$CC
5747 while :; do
5748 # IRIX 6.2 and later do not support large files by default,
5749 # so use the C compiler's -n32 option if that helps.
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #include <sys/types.h>
5753 /* Check that off_t can represent 2**63 - 1 correctly.
5754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5755 since some C++ compilers masquerading as C compilers
5756 incorrectly reject 9223372036854775807. */
5757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5759 && LARGE_OFF_T % 2147483647 == 1)
5760 ? 1 : -1];
5762 main ()
5766 return 0;
5768 _ACEOF
5769 if ac_fn_cxx_try_compile "$LINENO"; then :
5770 break
5772 rm -f core conftest.err conftest.$ac_objext
5773 CC="$CC -n32"
5774 if ac_fn_cxx_try_compile "$LINENO"; then :
5775 ac_cv_sys_largefile_CC=' -n32'; break
5777 rm -f core conftest.err conftest.$ac_objext
5778 break
5779 done
5780 CC=$ac_save_CC
5781 rm -f conftest.$ac_ext
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5785 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5786 if test "$ac_cv_sys_largefile_CC" != no; then
5787 CC=$CC$ac_cv_sys_largefile_CC
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5791 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5792 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 while :; do
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #include <sys/types.h>
5799 /* Check that off_t can represent 2**63 - 1 correctly.
5800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5801 since some C++ compilers masquerading as C compilers
5802 incorrectly reject 9223372036854775807. */
5803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5805 && LARGE_OFF_T % 2147483647 == 1)
5806 ? 1 : -1];
5808 main ()
5812 return 0;
5814 _ACEOF
5815 if ac_fn_cxx_try_compile "$LINENO"; then :
5816 ac_cv_sys_file_offset_bits=no; break
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #define _FILE_OFFSET_BITS 64
5822 #include <sys/types.h>
5823 /* Check that off_t can represent 2**63 - 1 correctly.
5824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5825 since some C++ compilers masquerading as C compilers
5826 incorrectly reject 9223372036854775807. */
5827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5829 && LARGE_OFF_T % 2147483647 == 1)
5830 ? 1 : -1];
5832 main ()
5836 return 0;
5838 _ACEOF
5839 if ac_fn_cxx_try_compile "$LINENO"; then :
5840 ac_cv_sys_file_offset_bits=64; break
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 ac_cv_sys_file_offset_bits=unknown
5844 break
5845 done
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5848 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5849 case $ac_cv_sys_file_offset_bits in #(
5850 no | unknown) ;;
5852 cat >>confdefs.h <<_ACEOF
5853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5854 _ACEOF
5856 esac
5857 rm -rf conftest*
5858 if test $ac_cv_sys_file_offset_bits = unknown; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5860 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5861 if test "${ac_cv_sys_large_files+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 while :; do
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <sys/types.h>
5868 /* Check that off_t can represent 2**63 - 1 correctly.
5869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5870 since some C++ compilers masquerading as C compilers
5871 incorrectly reject 9223372036854775807. */
5872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5874 && LARGE_OFF_T % 2147483647 == 1)
5875 ? 1 : -1];
5877 main ()
5881 return 0;
5883 _ACEOF
5884 if ac_fn_cxx_try_compile "$LINENO"; then :
5885 ac_cv_sys_large_files=no; break
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 #define _LARGE_FILES 1
5891 #include <sys/types.h>
5892 /* Check that off_t can represent 2**63 - 1 correctly.
5893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5894 since some C++ compilers masquerading as C compilers
5895 incorrectly reject 9223372036854775807. */
5896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5898 && LARGE_OFF_T % 2147483647 == 1)
5899 ? 1 : -1];
5901 main ()
5905 return 0;
5907 _ACEOF
5908 if ac_fn_cxx_try_compile "$LINENO"; then :
5909 ac_cv_sys_large_files=1; break
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 ac_cv_sys_large_files=unknown
5913 break
5914 done
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5917 $as_echo "$ac_cv_sys_large_files" >&6; }
5918 case $ac_cv_sys_large_files in #(
5919 no | unknown) ;;
5921 cat >>confdefs.h <<_ACEOF
5922 #define _LARGE_FILES $ac_cv_sys_large_files
5923 _ACEOF
5925 esac
5926 rm -rf conftest*
5931 # sizeof(char) is 1 by definition.
5932 # The cast to long int works around a bug in the HP C Compiler
5933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5935 # This bug is HP SR number 8606223364.
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5937 $as_echo_n "checking size of void *... " >&6; }
5938 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5943 else
5944 if test "$ac_cv_type_void_p" = yes; then
5945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5947 { as_fn_set_status 77
5948 as_fn_error "cannot compute sizeof (void *)
5949 See \`config.log' for more details." "$LINENO" 5; }; }
5950 else
5951 ac_cv_sizeof_void_p=0
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5957 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5961 cat >>confdefs.h <<_ACEOF
5962 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5963 _ACEOF
5966 # The cast to long int works around a bug in the HP C Compiler
5967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5969 # This bug is HP SR number 8606223364.
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5971 $as_echo_n "checking size of short... " >&6; }
5972 if test "${ac_cv_sizeof_short+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5977 else
5978 if test "$ac_cv_type_short" = yes; then
5979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5981 { as_fn_set_status 77
5982 as_fn_error "cannot compute sizeof (short)
5983 See \`config.log' for more details." "$LINENO" 5; }; }
5984 else
5985 ac_cv_sizeof_short=0
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5991 $as_echo "$ac_cv_sizeof_short" >&6; }
5995 cat >>confdefs.h <<_ACEOF
5996 #define SIZEOF_SHORT $ac_cv_sizeof_short
5997 _ACEOF
6000 # The cast to long int works around a bug in the HP C Compiler
6001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6003 # This bug is HP SR number 8606223364.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6005 $as_echo_n "checking size of int... " >&6; }
6006 if test "${ac_cv_sizeof_int+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6011 else
6012 if test "$ac_cv_type_int" = yes; then
6013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6015 { as_fn_set_status 77
6016 as_fn_error "cannot compute sizeof (int)
6017 See \`config.log' for more details." "$LINENO" 5; }; }
6018 else
6019 ac_cv_sizeof_int=0
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6025 $as_echo "$ac_cv_sizeof_int" >&6; }
6029 cat >>confdefs.h <<_ACEOF
6030 #define SIZEOF_INT $ac_cv_sizeof_int
6031 _ACEOF
6034 # The cast to long int works around a bug in the HP C Compiler
6035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6037 # This bug is HP SR number 8606223364.
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6039 $as_echo_n "checking size of long... " >&6; }
6040 if test "${ac_cv_sizeof_long+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6045 else
6046 if test "$ac_cv_type_long" = yes; then
6047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6049 { as_fn_set_status 77
6050 as_fn_error "cannot compute sizeof (long)
6051 See \`config.log' for more details." "$LINENO" 5; }; }
6052 else
6053 ac_cv_sizeof_long=0
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6059 $as_echo "$ac_cv_sizeof_long" >&6; }
6063 cat >>confdefs.h <<_ACEOF
6064 #define SIZEOF_LONG $ac_cv_sizeof_long
6065 _ACEOF
6068 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6069 if test "x$ac_cv_type_long_long" = x""yes; then :
6071 cat >>confdefs.h <<_ACEOF
6072 #define HAVE_LONG_LONG 1
6073 _ACEOF
6075 # The cast to long int works around a bug in the HP C Compiler
6076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6078 # This bug is HP SR number 8606223364.
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6080 $as_echo_n "checking size of long long... " >&6; }
6081 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6086 else
6087 if test "$ac_cv_type_long_long" = yes; then
6088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6090 { as_fn_set_status 77
6091 as_fn_error "cannot compute sizeof (long long)
6092 See \`config.log' for more details." "$LINENO" 5; }; }
6093 else
6094 ac_cv_sizeof_long_long=0
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6100 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6104 cat >>confdefs.h <<_ACEOF
6105 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6106 _ACEOF
6111 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6112 case $ac_cv_c_int8_t in #(
6113 no|yes) ;; #(
6116 cat >>confdefs.h <<_ACEOF
6117 #define int8_t $ac_cv_c_int8_t
6118 _ACEOF
6120 esac
6122 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6123 case $ac_cv_c_int16_t in #(
6124 no|yes) ;; #(
6127 cat >>confdefs.h <<_ACEOF
6128 #define int16_t $ac_cv_c_int16_t
6129 _ACEOF
6131 esac
6133 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6134 case $ac_cv_c_int32_t in #(
6135 no|yes) ;; #(
6138 cat >>confdefs.h <<_ACEOF
6139 #define int32_t $ac_cv_c_int32_t
6140 _ACEOF
6142 esac
6144 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6145 case $ac_cv_c_int64_t in #(
6146 no|yes) ;; #(
6149 cat >>confdefs.h <<_ACEOF
6150 #define int64_t $ac_cv_c_int64_t
6151 _ACEOF
6153 esac
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6157 $as_echo_n "checking for long long int... " >&6; }
6158 if test "${ac_cv_type_long_long_int+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6164 /* For now, do not test the preprocessor; as of 2007 there are too many
6165 implementations with broken preprocessors. Perhaps this can
6166 be revisited in 2012. In the meantime, code should not expect
6167 #if to work with literals wider than 32 bits. */
6168 /* Test literals. */
6169 long long int ll = 9223372036854775807ll;
6170 long long int nll = -9223372036854775807LL;
6171 unsigned long long int ull = 18446744073709551615ULL;
6172 /* Test constant expressions. */
6173 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6174 ? 1 : -1)];
6175 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6176 ? 1 : -1)];
6177 int i = 63;
6179 main ()
6181 /* Test availability of runtime routines for shift and division. */
6182 long long int llmax = 9223372036854775807ll;
6183 unsigned long long int ullmax = 18446744073709551615ull;
6184 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6185 | (llmax / ll) | (llmax % ll)
6186 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6187 | (ullmax / ull) | (ullmax % ull));
6189 return 0;
6192 _ACEOF
6193 if ac_fn_cxx_try_link "$LINENO"; then :
6194 if test "$cross_compiling" = yes; then :
6195 ac_cv_type_long_long_int=yes
6196 else
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <limits.h>
6200 #ifndef LLONG_MAX
6201 # define HALF \
6202 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6203 # define LLONG_MAX (HALF - 1 + HALF)
6204 #endif
6206 main ()
6208 long long int n = 1;
6209 int i;
6210 for (i = 0; ; i++)
6212 long long int m = n << i;
6213 if (m >> i != n)
6214 return 1;
6215 if (LLONG_MAX / 2 < m)
6216 break;
6218 return 0;
6220 return 0;
6222 _ACEOF
6223 if ac_fn_cxx_try_run "$LINENO"; then :
6224 ac_cv_type_long_long_int=yes
6225 else
6226 ac_cv_type_long_long_int=no
6228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6229 conftest.$ac_objext conftest.beam conftest.$ac_ext
6232 else
6233 ac_cv_type_long_long_int=no
6235 rm -f core conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6239 $as_echo "$ac_cv_type_long_long_int" >&6; }
6240 if test $ac_cv_type_long_long_int = yes; then
6242 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6248 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6249 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6251 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6253 else
6254 test $ac_cv_type_long_long_int = yes \
6255 && ac_type='long long int' \
6256 || ac_type='long int'
6258 cat >>confdefs.h <<_ACEOF
6259 #define intmax_t $ac_type
6260 _ACEOF
6266 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6267 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6269 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6271 else
6272 for ac_type in 'int' 'long int' 'long long int'; do
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 $ac_includes_default
6277 main ()
6279 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6280 test_array [0] = 0
6283 return 0;
6285 _ACEOF
6286 if ac_fn_cxx_try_compile "$LINENO"; then :
6288 cat >>confdefs.h <<_ACEOF
6289 #define intptr_t $ac_type
6290 _ACEOF
6292 ac_type=
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 test -z "$ac_type" && break
6296 done
6300 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6301 case $ac_cv_c_uint8_t in #(
6302 no|yes) ;; #(
6305 $as_echo "#define _UINT8_T 1" >>confdefs.h
6308 cat >>confdefs.h <<_ACEOF
6309 #define uint8_t $ac_cv_c_uint8_t
6310 _ACEOF
6312 esac
6314 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6315 case $ac_cv_c_uint16_t in #(
6316 no|yes) ;; #(
6320 cat >>confdefs.h <<_ACEOF
6321 #define uint16_t $ac_cv_c_uint16_t
6322 _ACEOF
6324 esac
6326 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6327 case $ac_cv_c_uint32_t in #(
6328 no|yes) ;; #(
6331 $as_echo "#define _UINT32_T 1" >>confdefs.h
6334 cat >>confdefs.h <<_ACEOF
6335 #define uint32_t $ac_cv_c_uint32_t
6336 _ACEOF
6338 esac
6340 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6341 case $ac_cv_c_uint64_t in #(
6342 no|yes) ;; #(
6345 $as_echo "#define _UINT64_T 1" >>confdefs.h
6348 cat >>confdefs.h <<_ACEOF
6349 #define uint64_t $ac_cv_c_uint64_t
6350 _ACEOF
6352 esac
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6356 $as_echo_n "checking for unsigned long long int... " >&6; }
6357 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6363 /* For now, do not test the preprocessor; as of 2007 there are too many
6364 implementations with broken preprocessors. Perhaps this can
6365 be revisited in 2012. In the meantime, code should not expect
6366 #if to work with literals wider than 32 bits. */
6367 /* Test literals. */
6368 long long int ll = 9223372036854775807ll;
6369 long long int nll = -9223372036854775807LL;
6370 unsigned long long int ull = 18446744073709551615ULL;
6371 /* Test constant expressions. */
6372 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6373 ? 1 : -1)];
6374 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6375 ? 1 : -1)];
6376 int i = 63;
6378 main ()
6380 /* Test availability of runtime routines for shift and division. */
6381 long long int llmax = 9223372036854775807ll;
6382 unsigned long long int ullmax = 18446744073709551615ull;
6383 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6384 | (llmax / ll) | (llmax % ll)
6385 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6386 | (ullmax / ull) | (ullmax % ull));
6388 return 0;
6391 _ACEOF
6392 if ac_fn_cxx_try_link "$LINENO"; then :
6393 ac_cv_type_unsigned_long_long_int=yes
6394 else
6395 ac_cv_type_unsigned_long_long_int=no
6397 rm -f core conftest.err conftest.$ac_objext \
6398 conftest$ac_exeext conftest.$ac_ext
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6401 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6402 if test $ac_cv_type_unsigned_long_long_int = yes; then
6404 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6410 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6411 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6413 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6415 else
6416 test $ac_cv_type_unsigned_long_long_int = yes \
6417 && ac_type='unsigned long long int' \
6418 || ac_type='unsigned long int'
6420 cat >>confdefs.h <<_ACEOF
6421 #define uintmax_t $ac_type
6422 _ACEOF
6428 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6429 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6431 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6433 else
6434 for ac_type in 'unsigned int' 'unsigned long int' \
6435 'unsigned long long int'; do
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 $ac_includes_default
6440 main ()
6442 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6443 test_array [0] = 0
6446 return 0;
6448 _ACEOF
6449 if ac_fn_cxx_try_compile "$LINENO"; then :
6451 cat >>confdefs.h <<_ACEOF
6452 #define uintptr_t $ac_type
6453 _ACEOF
6455 ac_type=
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 test -z "$ac_type" && break
6459 done
6475 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6476 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6479 # check what underlying integer type int64_t uses
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6481 $as_echo_n "checking for int64_t underlying type... " >&6; }
6482 if test "${ac_cv_int64_t_type+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6489 #ifdef HAVE_STDINT_H
6490 #include <stdint.h>
6491 #endif
6492 template <typename T> struct X { };
6493 template <>
6494 struct X<long> { typedef long t; };
6497 main ()
6499 X<int64_t>::t x;
6501 return 0;
6503 _ACEOF
6504 if ac_fn_cxx_try_compile "$LINENO"; then :
6505 ac_cv_int64_t_type=long
6506 else
6507 ac_cv_int64_t_type="long long"
6509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6512 $as_echo "$ac_cv_int64_t_type" >&6; }
6513 if test "$ac_cv_int64_t_type" = "long"; then
6515 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6521 #ifdef HAVE_STDINT_H
6522 #include <stdint.h>
6523 #endif
6524 template <typename T> struct X { };
6525 template <>
6526 struct X<long long> { typedef long long t; };
6529 main ()
6531 X<int64_t>::t x;
6533 return 0;
6535 _ACEOF
6536 if ac_fn_cxx_try_compile "$LINENO"; then :
6538 else
6539 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6545 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6546 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6553 #include <utility>
6556 main ()
6558 int a, b; std::swap(a,b);
6560 return 0;
6562 _ACEOF
6563 if ac_fn_cxx_try_compile "$LINENO"; then :
6564 ac_cv_std_swap_in_utility=yes
6565 else
6566 ac_cv_std_swap_in_utility=no
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6571 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6572 if test $ac_cv_std_swap_in_utility = yes; then
6574 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6578 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6579 # If the host compiler is affected by the bug, and we build with optimization
6580 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6581 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6582 # Since there is no reliable feature check for the presence of this bug,
6583 # we simply use a GCC version number check. (This should never trigger for
6584 # stages 2 or 3 of a native bootstrap.)
6585 aliasing_flags=
6586 if test "$GCC" = yes; then
6587 saved_CXXFLAGS="$CXXFLAGS"
6589 # The following test compilation will succeed if and only if $CXX accepts
6590 # -fno-strict-aliasing *and* is older than GCC 4.3.
6591 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6593 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6597 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6598 #error compiler not affected by placement new aliasing bug
6599 #endif
6601 _ACEOF
6602 if ac_fn_cxx_try_compile "$LINENO"; then :
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6604 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 CXXFLAGS="$saved_CXXFLAGS"
6617 # ---------------------
6618 # Warnings and checking
6619 # ---------------------
6621 # Check $CC warning features (if it's GCC).
6622 # We want to use -pedantic, but we don't want warnings about
6623 # * 'long long'
6624 # * variadic macros
6625 # * overlong strings
6626 # * C++11 narrowing conversions in { }
6627 # So, we only use -pedantic if we can disable those warnings.
6629 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6630 # Check whether --enable-build-format-warnings was given.
6631 if test "${enable_build_format_warnings+set}" = set; then :
6632 enableval=$enable_build_format_warnings;
6633 else
6634 enable_build_format_warnings=yes
6637 if test $enable_build_format_warnings = no; then :
6638 wf_opt=-Wno-format
6639 else
6640 wf_opt=
6642 ac_ext=cpp
6643 ac_cpp='$CXXCPP $CPPFLAGS'
6644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6648 loose_warn=
6649 save_CXXFLAGS="$CXXFLAGS"
6650 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6651 # Do the check with the no- prefix removed since gcc silently
6652 # accepts any -Wno-* option on purpose
6653 case $real_option in
6654 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6655 *) option=$real_option ;;
6656 esac
6657 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6660 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6661 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 CXXFLAGS="$option"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6669 main ()
6673 return 0;
6675 _ACEOF
6676 if ac_fn_cxx_try_compile "$LINENO"; then :
6677 eval "$as_acx_Woption=yes"
6678 else
6679 eval "$as_acx_Woption=no"
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 eval ac_res=\$$as_acx_Woption
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6686 $as_echo "$ac_res" >&6; }
6687 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6688 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6690 done
6691 CXXFLAGS="$save_CXXFLAGS"
6692 ac_ext=cpp
6693 ac_cpp='$CXXCPP $CPPFLAGS'
6694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6700 ac_ext=c
6701 ac_cpp='$CPP $CPPFLAGS'
6702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706 c_loose_warn=
6707 save_CFLAGS="$CFLAGS"
6708 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6709 # Do the check with the no- prefix removed since gcc silently
6710 # accepts any -Wno-* option on purpose
6711 case $real_option in
6712 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6713 *) option=$real_option ;;
6714 esac
6715 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6718 $as_echo_n "checking whether $CC supports $option... " >&6; }
6719 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 CFLAGS="$option"
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6727 main ()
6731 return 0;
6733 _ACEOF
6734 if ac_fn_c_try_compile "$LINENO"; then :
6735 eval "$as_acx_Woption=yes"
6736 else
6737 eval "$as_acx_Woption=no"
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 eval ac_res=\$$as_acx_Woption
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6744 $as_echo "$ac_res" >&6; }
6745 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6746 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6748 done
6749 CFLAGS="$save_CFLAGS"
6750 ac_ext=cpp
6751 ac_cpp='$CXXCPP $CPPFLAGS'
6752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6757 ac_ext=cpp
6758 ac_cpp='$CXXCPP $CPPFLAGS'
6759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6763 strict_warn=
6764 save_CXXFLAGS="$CXXFLAGS"
6765 for real_option in -Wmissing-format-attribute; do
6766 # Do the check with the no- prefix removed since gcc silently
6767 # accepts any -Wno-* option on purpose
6768 case $real_option in
6769 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6770 *) option=$real_option ;;
6771 esac
6772 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6775 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6776 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 CXXFLAGS="$option"
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6784 main ()
6788 return 0;
6790 _ACEOF
6791 if ac_fn_cxx_try_compile "$LINENO"; then :
6792 eval "$as_acx_Woption=yes"
6793 else
6794 eval "$as_acx_Woption=no"
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 eval ac_res=\$$as_acx_Woption
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6801 $as_echo "$ac_res" >&6; }
6802 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6803 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6805 done
6806 CXXFLAGS="$save_CXXFLAGS"
6807 ac_ext=cpp
6808 ac_cpp='$CXXCPP $CPPFLAGS'
6809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6814 ac_ext=cpp
6815 ac_cpp='$CXXCPP $CPPFLAGS'
6816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6820 save_CXXFLAGS="$CXXFLAGS"
6821 for real_option in -Woverloaded-virtual; do
6822 # Do the check with the no- prefix removed since gcc silently
6823 # accepts any -Wno-* option on purpose
6824 case $real_option in
6825 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6826 *) option=$real_option ;;
6827 esac
6828 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6831 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6832 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 CXXFLAGS="$option"
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6840 main ()
6844 return 0;
6846 _ACEOF
6847 if ac_fn_cxx_try_compile "$LINENO"; then :
6848 eval "$as_acx_Woption=yes"
6849 else
6850 eval "$as_acx_Woption=no"
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 eval ac_res=\$$as_acx_Woption
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6857 $as_echo "$ac_res" >&6; }
6858 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6859 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6861 done
6862 CXXFLAGS="$save_CXXFLAGS"
6863 ac_ext=cpp
6864 ac_cpp='$CXXCPP $CPPFLAGS'
6865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6870 ac_ext=c
6871 ac_cpp='$CPP $CPPFLAGS'
6872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876 c_strict_warn=
6877 save_CFLAGS="$CFLAGS"
6878 for real_option in -Wold-style-definition -Wc++-compat; do
6879 # Do the check with the no- prefix removed since gcc silently
6880 # accepts any -Wno-* option on purpose
6881 case $real_option in
6882 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6883 *) option=$real_option ;;
6884 esac
6885 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6888 $as_echo_n "checking whether $CC supports $option... " >&6; }
6889 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 CFLAGS="$option"
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6897 main ()
6901 return 0;
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905 eval "$as_acx_Woption=yes"
6906 else
6907 eval "$as_acx_Woption=no"
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 eval ac_res=\$$as_acx_Woption
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6914 $as_echo "$ac_res" >&6; }
6915 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6916 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6918 done
6919 CFLAGS="$save_CFLAGS"
6920 ac_ext=cpp
6921 ac_cpp='$CXXCPP $CPPFLAGS'
6922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6927 ac_ext=cpp
6928 ac_cpp='$CXXCPP $CPPFLAGS'
6929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6933 # Do the check with the no- prefix removed from the warning options
6934 # since gcc silently accepts any -Wno-* option on purpose
6935 if test "$GXX" = yes; then :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6937 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6938 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 save_CXXFLAGS="$CXXFLAGS"
6942 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6947 main ()
6951 return 0;
6953 _ACEOF
6954 if ac_fn_cxx_try_compile "$LINENO"; then :
6955 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6956 else
6957 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 CXXFLAGS="$save_CXXFLAGS"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6963 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6964 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6965 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6969 ac_ext=cpp
6970 ac_cpp='$CXXCPP $CPPFLAGS'
6971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6976 ac_ext=cpp
6977 ac_cpp='$CXXCPP $CPPFLAGS'
6978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6982 # Check whether --enable-werror-always was given.
6983 if test "${enable_werror_always+set}" = set; then :
6984 enableval=$enable_werror_always;
6985 else
6986 enable_werror_always=no
6989 if test $enable_werror_always = yes; then :
6990 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6993 ac_ext=cpp
6994 ac_cpp='$CXXCPP $CPPFLAGS'
6995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7001 # The above macros do nothing if the compiler is not GCC. However, the
7002 # Makefile has more goo to add other flags, so these variables are used
7003 # to enable warnings only for GCC.
7004 warn_cflags=
7005 warn_cxxflags=
7006 if test "x$GCC" = "xyes"; then
7007 warn_cflags='$(GCC_WARN_CFLAGS)'
7008 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7013 # Disable exceptions and RTTI if building with g++
7014 ac_ext=c
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020 noexception_flags=
7021 save_CFLAGS="$CFLAGS"
7022 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7023 # Do the check with the no- prefix removed since gcc silently
7024 # accepts any -Wno-* option on purpose
7025 case $real_option in
7026 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7027 *) option=$real_option ;;
7028 esac
7029 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7032 $as_echo_n "checking whether $CC supports $option... " >&6; }
7033 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 CFLAGS="$option"
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7041 main ()
7045 return 0;
7047 _ACEOF
7048 if ac_fn_c_try_compile "$LINENO"; then :
7049 eval "$as_acx_Woption=yes"
7050 else
7051 eval "$as_acx_Woption=no"
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 eval ac_res=\$$as_acx_Woption
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7058 $as_echo "$ac_res" >&6; }
7059 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7060 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7062 done
7063 CFLAGS="$save_CFLAGS"
7064 ac_ext=cpp
7065 ac_cpp='$CXXCPP $CPPFLAGS'
7066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7072 # Enable expensive internal checks
7073 is_release=
7074 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7075 is_release=yes
7078 # Check whether --enable-checking was given.
7079 if test "${enable_checking+set}" = set; then :
7080 enableval=$enable_checking; ac_checking_flags="${enableval}"
7081 else
7083 # Determine the default checks.
7084 if test x$is_release = x ; then
7085 ac_checking_flags=yes
7086 else
7087 ac_checking_flags=release
7091 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7092 for check in release $ac_checking_flags
7094 case $check in
7095 # these set all the flags to specific states
7096 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7097 ac_fold_checking= ; ac_gc_checking=1 ;
7098 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7099 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7100 ac_tree_checking=1 ; ac_valgrind_checking= ;
7101 ac_types_checking=1 ;;
7102 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7103 ac_fold_checking= ; ac_gc_checking= ;
7104 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7105 ac_rtlflag_checking= ; ac_runtime_checking= ;
7106 ac_tree_checking= ; ac_valgrind_checking= ;
7107 ac_types_checking= ;;
7108 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7109 ac_fold_checking=1 ; ac_gc_checking=1 ;
7110 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7111 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7112 ac_tree_checking=1 ; ac_valgrind_checking= ;
7113 ac_types_checking=1 ;;
7114 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7115 ac_fold_checking= ; ac_gc_checking= ;
7116 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7117 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7118 ac_tree_checking= ; ac_valgrind_checking= ;
7119 ac_types_checking= ;;
7120 # these enable particular checks
7121 assert) ac_assert_checking=1 ;;
7122 df) ac_df_checking=1 ;;
7123 fold) ac_fold_checking=1 ;;
7124 gc) ac_gc_checking=1 ;;
7125 gcac) ac_gc_always_collect=1 ;;
7126 gimple) ac_gimple_checking=1 ;;
7127 misc) ac_checking=1 ;;
7128 rtl) ac_rtl_checking=1 ;;
7129 rtlflag) ac_rtlflag_checking=1 ;;
7130 runtime) ac_runtime_checking=1 ;;
7131 tree) ac_tree_checking=1 ;;
7132 types) ac_types_checking=1 ;;
7133 valgrind) ac_valgrind_checking=1 ;;
7134 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7135 esac
7136 done
7137 IFS="$ac_save_IFS"
7139 nocommon_flag=""
7140 if test x$ac_checking != x ; then
7142 $as_echo "#define CHECKING_P 1" >>confdefs.h
7144 nocommon_flag=-fno-common
7145 else
7146 $as_echo "#define CHECKING_P 0" >>confdefs.h
7150 if test x$ac_df_checking != x ; then
7152 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7155 if test x$ac_assert_checking != x ; then
7157 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7160 if test x$ac_gimple_checking != x ; then
7162 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7166 if test x$ac_runtime_checking != x ; then
7168 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7171 if test x$ac_tree_checking != x ; then
7173 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7175 TREECHECKING=yes
7177 if test x$ac_types_checking != x ; then
7179 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7183 if test x$ac_rtl_checking != x ; then
7185 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7188 if test x$ac_rtlflag_checking != x ; then
7190 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7193 if test x$ac_gc_checking != x ; then
7195 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7198 if test x$ac_gc_always_collect != x ; then
7200 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7203 if test x$ac_fold_checking != x ; then
7205 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7208 valgrind_path_defines=
7209 valgrind_command=
7211 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7212 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7213 have_valgrind_h=yes
7214 else
7215 have_valgrind_h=no
7220 # It is certainly possible that there's valgrind but no valgrind.h.
7221 # GCC relies on making annotations so we must have both.
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7223 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 #include <valgrind/memcheck.h>
7227 #ifndef VALGRIND_DISCARD
7228 #error VALGRIND_DISCARD not defined
7229 #endif
7230 _ACEOF
7231 if ac_fn_cxx_try_cpp "$LINENO"; then :
7232 gcc_cv_header_valgrind_memcheck_h=yes
7233 else
7234 gcc_cv_header_valgrind_memcheck_h=no
7236 rm -f conftest.err conftest.$ac_ext
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7238 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7240 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 #include <memcheck.h>
7244 #ifndef VALGRIND_DISCARD
7245 #error VALGRIND_DISCARD not defined
7246 #endif
7247 _ACEOF
7248 if ac_fn_cxx_try_cpp "$LINENO"; then :
7249 gcc_cv_header_memcheck_h=yes
7250 else
7251 gcc_cv_header_memcheck_h=no
7253 rm -f conftest.err conftest.$ac_ext
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7255 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7256 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7258 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7261 if test $gcc_cv_header_memcheck_h = yes; then
7263 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7267 if test x$ac_valgrind_checking != x ; then
7269 # Prepare PATH_SEPARATOR.
7270 # The user is always right.
7271 if test "${PATH_SEPARATOR+set}" != set; then
7272 echo "#! /bin/sh" >conf$$.sh
7273 echo "exit 0" >>conf$$.sh
7274 chmod +x conf$$.sh
7275 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7276 PATH_SEPARATOR=';'
7277 else
7278 PATH_SEPARATOR=:
7280 rm -f conf$$.sh
7283 # Find out how to test for executable files. Don't use a zero-byte file,
7284 # as systems may use methods other than mode bits to determine executability.
7285 cat >conf$$.file <<_ASEOF
7286 #! /bin/sh
7287 exit 0
7288 _ASEOF
7289 chmod +x conf$$.file
7290 if test -x conf$$.file >/dev/null 2>&1; then
7291 ac_executable_p="test -x"
7292 else
7293 ac_executable_p="test -f"
7295 rm -f conf$$.file
7297 # Extract the first word of "valgrind", so it can be a program name with args.
7298 set dummy valgrind; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 case "$valgrind_path" in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7309 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7310 for ac_dir in $PATH; do
7311 IFS="$ac_save_IFS"
7312 test -z "$ac_dir" && ac_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7315 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7316 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7317 break 2
7320 done
7321 done
7322 IFS="$ac_save_IFS"
7324 esac
7326 valgrind_path="$ac_cv_path_valgrind_path"
7327 if test -n "$valgrind_path"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7329 $as_echo "$valgrind_path" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7335 if test "x$valgrind_path" = "x" \
7336 || (test $have_valgrind_h = no \
7337 && test $gcc_cv_header_memcheck_h = no \
7338 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7339 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7341 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7342 valgrind_command="$valgrind_path -q"
7344 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7350 # Enable code coverage collection
7351 # Check whether --enable-coverage was given.
7352 if test "${enable_coverage+set}" = set; then :
7353 enableval=$enable_coverage; case "${enableval}" in
7354 yes|noopt)
7355 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7357 opt)
7358 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7361 # a.k.a. --disable-coverage
7362 coverage_flags=""
7365 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7367 esac
7368 else
7369 coverage_flags=""
7374 # Check whether --enable-gather-detailed-mem-stats was given.
7375 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7376 enableval=$enable_gather_detailed_mem_stats;
7377 else
7378 enable_gather_detailed_mem_stats=no
7381 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7383 cat >>confdefs.h <<_ACEOF
7384 #define GATHER_STATISTICS $gather_stats
7385 _ACEOF
7388 # Check whether --enable-valgrind-annotations was given.
7389 if test "${enable_valgrind_annotations+set}" = set; then :
7390 enableval=$enable_valgrind_annotations;
7391 else
7392 enable_valgrind_annotations=no
7395 if test x$enable_valgrind_annotations != xno \
7396 || test x$ac_valgrind_checking != x; then
7397 if (test $have_valgrind_h = no \
7398 && test $gcc_cv_header_memcheck_h = no \
7399 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7400 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7403 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7407 # -------------------------------
7408 # Miscenalleous configure options
7409 # -------------------------------
7411 # With stabs
7413 # Check whether --with-stabs was given.
7414 if test "${with_stabs+set}" = set; then :
7415 withval=$with_stabs; stabs="$with_stabs"
7416 else
7417 stabs=no
7421 # Determine whether or not multilibs are enabled.
7422 # Check whether --enable-multilib was given.
7423 if test "${enable_multilib+set}" = set; then :
7424 enableval=$enable_multilib;
7425 else
7426 enable_multilib=yes
7431 # Determine whether or not multiarch is enabled.
7432 # Check whether --enable-multiarch was given.
7433 if test "${enable_multiarch+set}" = set; then :
7434 enableval=$enable_multiarch; case "${enableval}" in
7435 yes|no|auto) enable_multiarch=$enableval;;
7436 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7437 esac
7438 else
7439 enable_multiarch=auto
7442 if test x${enable_multiarch} = xauto; then
7443 if test x${with_native_system_header_dir} != x; then
7444 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7445 enable_multiarch=no
7447 if test x$host != x$target && test "x$with_sysroot" = x; then
7448 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7449 enable_multiarch=no
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7453 $as_echo_n "checking for multiarch configuration... " >&6; }
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7456 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7458 # needed for setting the multiarch name for soft-float/hard-float ABIs
7462 # Enable __cxa_atexit for C++.
7463 # Check whether --enable-__cxa_atexit was given.
7464 if test "${enable___cxa_atexit+set}" = set; then :
7465 enableval=$enable___cxa_atexit;
7469 # Enable C extension for decimal float if target supports it.
7471 # Check whether --enable-decimal-float was given.
7472 if test "${enable_decimal_float+set}" = set; then :
7473 enableval=$enable_decimal_float;
7474 case $enable_decimal_float in
7475 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7476 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7477 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7478 esac
7480 else
7482 case $target in
7483 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7484 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7485 i?86*-*-mingw* | x86_64*-*-mingw* | \
7486 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7487 enable_decimal_float=yes
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7491 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7492 enable_decimal_float=no
7494 esac
7499 # x86's use BID format instead of DPD
7500 case x$enable_decimal_float in
7501 xyes)
7502 case $target in
7503 i?86*-*-* | x86_64*-*-*)
7504 enable_decimal_float=bid
7507 enable_decimal_float=dpd
7509 esac
7510 default_decimal_float=$enable_decimal_float
7512 xno)
7513 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7514 # dependency on libdecnumber.
7515 default_decimal_float=dpd
7517 esac
7522 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7524 cat >>confdefs.h <<_ACEOF
7525 #define ENABLE_DECIMAL_FLOAT $dfp
7526 _ACEOF
7529 # Use default_decimal_float for dependency.
7530 enable_decimal_float=$default_decimal_float
7532 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7534 cat >>confdefs.h <<_ACEOF
7535 #define ENABLE_DECIMAL_BID_FORMAT $bid
7536 _ACEOF
7539 # Enable C extension for fixed-point arithmetic.
7540 # Check whether --enable-fixed-point was given.
7541 if test "${enable_fixed_point+set}" = set; then :
7542 enableval=$enable_fixed_point;
7543 else
7545 case $target in
7546 arm*)
7547 enable_fixed_point=yes
7550 mips*-*-*)
7551 enable_fixed_point=yes
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7555 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7556 enable_fixed_point=no
7558 esac
7564 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7566 cat >>confdefs.h <<_ACEOF
7567 #define ENABLE_FIXED_POINT $fixedpoint
7568 _ACEOF
7571 # Enable threads
7572 # Pass with no value to take the default
7573 # Pass with a value to specify a thread package
7574 # Check whether --enable-threads was given.
7575 if test "${enable_threads+set}" = set; then :
7576 enableval=$enable_threads;
7577 else
7578 enable_threads=''
7582 # Check whether --enable-tls was given.
7583 if test "${enable_tls+set}" = set; then :
7584 enableval=$enable_tls;
7585 case $enable_tls in
7586 yes | no) ;;
7587 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7588 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7589 esac
7591 else
7592 enable_tls=''
7596 # Check whether --enable-objc-gc was given.
7597 if test "${enable_objc_gc+set}" = set; then :
7598 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7599 objc_boehm_gc=''
7600 else
7601 objc_boehm_gc=1
7603 else
7604 objc_boehm_gc=''
7609 # Check whether --with-dwarf2 was given.
7610 if test "${with_dwarf2+set}" = set; then :
7611 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7612 else
7613 dwarf2=no
7617 # Check whether --enable-shared was given.
7618 if test "${enable_shared+set}" = set; then :
7619 enableval=$enable_shared;
7620 case $enable_shared in
7621 yes | no) ;;
7623 enable_shared=no
7624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7625 for pkg in $enableval; do
7626 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7627 enable_shared=yes
7629 done
7630 IFS="$ac_save_ifs"
7632 esac
7634 else
7635 enable_shared=yes
7641 # Check whether --with-specs was given.
7642 if test "${with_specs+set}" = set; then :
7643 withval=$with_specs; CONFIGURE_SPECS=$withval
7644 else
7645 CONFIGURE_SPECS=
7653 # Check whether --with-pkgversion was given.
7654 if test "${with_pkgversion+set}" = set; then :
7655 withval=$with_pkgversion; case "$withval" in
7656 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7657 no) PKGVERSION= ;;
7658 *) PKGVERSION="($withval) " ;;
7659 esac
7660 else
7661 PKGVERSION="(GCC) "
7669 # Check whether --with-bugurl was given.
7670 if test "${with_bugurl+set}" = set; then :
7671 withval=$with_bugurl; case "$withval" in
7672 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7673 no) BUGURL=
7675 *) BUGURL="$withval"
7677 esac
7678 else
7679 BUGURL="http://gcc.gnu.org/bugs.html"
7683 case ${BUGURL} in
7685 REPORT_BUGS_TO=
7686 REPORT_BUGS_TEXI=
7689 REPORT_BUGS_TO="<$BUGURL>"
7690 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7692 esac;
7697 # Sanity check enable_languages in case someone does not run the toplevel
7698 # configure # script.
7699 # Check whether --enable-languages was given.
7700 if test "${enable_languages+set}" = set; then :
7701 enableval=$enable_languages; case ,${enable_languages}, in
7702 ,,|,yes,)
7703 # go safe -- we cannot be much sure without the toplevel
7704 # configure's
7705 # analysis of which target libs are present and usable
7706 enable_languages=c
7708 *,all,*)
7709 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7711 *,c,*)
7714 enable_languages=c,${enable_languages}
7716 esac
7717 else
7718 enable_languages=c
7722 if test x"$enable_as_accelerator_for" != x; then
7724 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7726 enable_as_accelerator=yes
7727 case "${target}" in
7728 *-intelmicemul-*)
7729 # In this case we expect offload compiler to be built as native, so we
7730 # need to rename the driver to avoid clashes with host's drivers.
7731 program_transform_name="s&^&${target}-&" ;;
7732 esac
7733 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7734 program_transform_name=`echo $program_transform_name | sed $sedscript`
7735 accel_dir_suffix=/accel/${target_noncanonical}
7736 real_target_noncanonical=${enable_as_accelerator_for}
7742 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7743 tgt=`echo $tgt | sed 's/=.*//'`
7745 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7746 enable_hsa=1
7747 else
7748 enable_offloading=1
7751 if test x"$offload_targets" = x; then
7752 offload_targets=$tgt
7753 else
7754 offload_targets="$offload_targets,$tgt"
7756 done
7758 cat >>confdefs.h <<_ACEOF
7759 #define OFFLOAD_TARGETS "$offload_targets"
7760 _ACEOF
7762 if test x"$enable_offloading" != x; then
7764 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7766 else
7768 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7772 if test x"$enable_hsa" = x1 ; then
7774 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7779 # Check whether --with-multilib-list was given.
7780 if test "${with_multilib_list+set}" = set; then :
7781 withval=$with_multilib_list; :
7782 else
7783 with_multilib_list=default
7787 # -------------------------
7788 # Checks for other programs
7789 # -------------------------
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7792 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7793 set x ${MAKE-make}
7794 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7795 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 cat >conftest.make <<\_ACEOF
7799 SHELL = /bin/sh
7800 all:
7801 @echo '@@@%%%=$(MAKE)=@@@%%%'
7802 _ACEOF
7803 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7804 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7805 *@@@%%%=?*=@@@%%%*)
7806 eval ac_cv_prog_make_${ac_make}_set=yes;;
7808 eval ac_cv_prog_make_${ac_make}_set=no;;
7809 esac
7810 rm -f conftest.make
7812 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7814 $as_echo "yes" >&6; }
7815 SET_MAKE=
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 SET_MAKE="MAKE=${MAKE-make}"
7823 # Find some useful tools
7824 for ac_prog in gawk mawk nawk awk
7826 # Extract the first word of "$ac_prog", so it can be a program name with args.
7827 set dummy $ac_prog; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_prog_AWK+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 if test -n "$AWK"; then
7834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_AWK="$ac_prog"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7847 done
7848 done
7849 IFS=$as_save_IFS
7853 AWK=$ac_cv_prog_AWK
7854 if test -n "$AWK"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7856 $as_echo "$AWK" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7863 test -n "$AWK" && break
7864 done
7866 # We need awk to create options.c and options.h.
7867 # Bail out if it's missing.
7868 case ${AWK} in
7869 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7870 esac
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7873 $as_echo_n "checking whether ln -s works... " >&6; }
7874 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 rm -f conftestdata_t
7878 echo >conftestdata_f
7879 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7880 then
7881 gcc_cv_prog_LN_S="ln -s"
7882 else
7883 if ln conftestdata_f conftestdata_t 2>/dev/null
7884 then
7885 gcc_cv_prog_LN_S=ln
7886 else
7887 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7888 then
7889 gcc_cv_prog_LN_S="cp -p"
7890 else
7891 gcc_cv_prog_LN_S=cp
7895 rm -f conftestdata_f conftestdata_t
7898 LN_S="$gcc_cv_prog_LN_S"
7899 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7901 $as_echo "yes" >&6; }
7902 else
7903 if test "$gcc_cv_prog_LN_S" = "ln"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7905 $as_echo "no, using ln" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7908 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7913 $as_echo_n "checking whether ln works... " >&6; }
7914 if test "${acx_cv_prog_LN+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 rm -f conftestdata_t
7918 echo >conftestdata_f
7919 if ln conftestdata_f conftestdata_t 2>/dev/null
7920 then
7921 acx_cv_prog_LN=ln
7922 else
7923 acx_cv_prog_LN=no
7925 rm -f conftestdata_f conftestdata_t
7928 if test $acx_cv_prog_LN = no; then
7929 LN="$LN_S"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7931 $as_echo "no, using $LN" >&6; }
7932 else
7933 LN="$acx_cv_prog_LN"
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935 $as_echo "yes" >&6; }
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$RANLIB"; then
7947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7960 done
7961 done
7962 IFS=$as_save_IFS
7966 RANLIB=$ac_cv_prog_RANLIB
7967 if test -n "$RANLIB"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7969 $as_echo "$RANLIB" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7977 if test -z "$ac_cv_prog_RANLIB"; then
7978 ac_ct_RANLIB=$RANLIB
7979 # Extract the first word of "ranlib", so it can be a program name with args.
7980 set dummy ranlib; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 if test -n "$ac_ct_RANLIB"; then
7987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_prog_ac_ct_RANLIB="ranlib"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
8000 done
8001 done
8002 IFS=$as_save_IFS
8006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8007 if test -n "$ac_ct_RANLIB"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8009 $as_echo "$ac_ct_RANLIB" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8015 if test "x$ac_ct_RANLIB" = x; then
8016 RANLIB=":"
8017 else
8018 case $cross_compiling:$ac_tool_warned in
8019 yes:)
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022 ac_tool_warned=yes ;;
8023 esac
8024 RANLIB=$ac_ct_RANLIB
8026 else
8027 RANLIB="$ac_cv_prog_RANLIB"
8030 ranlib_flags=""
8033 # Find a good install program. We prefer a C program (faster),
8034 # so one script is as good as another. But avoid the broken or
8035 # incompatible versions:
8036 # SysV /etc/install, /usr/sbin/install
8037 # SunOS /usr/etc/install
8038 # IRIX /sbin/install
8039 # AIX /bin/install
8040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8042 # ./install, which can be erroneously created by make from ./install.sh.
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8044 $as_echo_n "checking for a BSD compatible install... " >&6; }
8045 if test -z "$INSTALL"; then
8046 if test "${ac_cv_path_install+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8050 for ac_dir in $PATH; do
8051 # Account for people who put trailing slashes in PATH elements.
8052 case "$ac_dir/" in
8053 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8055 # OSF1 and SCO ODT 3.0 have their own names for install.
8056 for ac_prog in ginstall scoinst install; do
8057 if test -f $ac_dir/$ac_prog; then
8058 if test $ac_prog = install &&
8059 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8060 # AIX install. It has an incompatible calling convention.
8061 # OSF/1 installbsd also uses dspmsg, but is usable.
8063 else
8064 ac_cv_path_install="$ac_dir/$ac_prog -c"
8065 break 2
8068 done
8070 esac
8071 done
8072 IFS="$ac_save_IFS"
8075 if test "${ac_cv_path_install+set}" = set; then
8076 INSTALL="$ac_cv_path_install"
8077 else
8078 # As a last resort, use the slow shell script. We don't cache a
8079 # path for INSTALL within a source directory, because that will
8080 # break other packages using the cache if that directory is
8081 # removed, or if the path is relative.
8082 INSTALL="$ac_install_sh"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8086 $as_echo "$INSTALL" >&6; }
8088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8089 # It thinks the first close brace ends the variable substitution.
8090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8095 # See if cmp has --ignore-initial.
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8097 $as_echo_n "checking for cmp's capabilities... " >&6; }
8098 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 echo abfoo >t1
8102 echo cdfoo >t2
8103 gcc_cv_prog_cmp_skip=slowcompare
8104 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8105 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8107 else
8108 gcc_cv_prog_cmp_skip=gnucompare
8111 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8112 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8113 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8115 else
8116 gcc_cv_prog_cmp_skip=fastcompare
8120 rm t1 t2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8124 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8125 make_compare_target=$gcc_cv_prog_cmp_skip
8129 # See if we have the mktemp command.
8130 # Extract the first word of "mktemp", so it can be a program name with args.
8131 set dummy mktemp; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$have_mktemp_command"; then
8138 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_have_mktemp_command="yes"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8151 done
8152 done
8153 IFS=$as_save_IFS
8155 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8158 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8159 if test -n "$have_mktemp_command"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8161 $as_echo "$have_mktemp_command" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8169 # See if makeinfo has been installed and is modern enough
8170 # that we can use it.
8172 # Extract the first word of "makeinfo", so it can be a program name with args.
8173 set dummy makeinfo; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$MAKEINFO"; then
8180 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_MAKEINFO="makeinfo"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8199 MAKEINFO=$ac_cv_prog_MAKEINFO
8200 if test -n "$MAKEINFO"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8202 $as_echo "$MAKEINFO" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8209 if test -n "$MAKEINFO"; then
8210 # Found it, now check the version.
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8212 $as_echo_n "checking for modern makeinfo... " >&6; }
8213 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8217 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8219 case $ac_prog_version in
8220 '') gcc_cv_prog_makeinfo_modern=no;;
8221 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8222 *) gcc_cv_prog_makeinfo_modern=no;;
8223 esac
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8227 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8228 else
8229 gcc_cv_prog_makeinfo_modern=no
8231 if test $gcc_cv_prog_makeinfo_modern = no; then
8232 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8235 if test $gcc_cv_prog_makeinfo_modern = no; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8237 *** Makeinfo is missing or too old.
8238 *** Info documentation will not be built." >&5
8239 $as_echo "$as_me: WARNING:
8240 *** Makeinfo is missing or too old.
8241 *** Info documentation will not be built." >&2;}
8242 BUILD_INFO=
8243 else
8244 BUILD_INFO=info
8248 # Is pod2man recent enough to regenerate manpages?
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8250 $as_echo_n "checking for recent Pod::Man... " >&6; }
8251 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253 $as_echo "yes" >&6; }
8254 GENERATED_MANPAGES=generated-manpages
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 GENERATED_MANPAGES=
8262 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8264 # How about lex?
8265 for ac_prog in flex
8267 # Extract the first word of "$ac_prog", so it can be a program name with args.
8268 set dummy $ac_prog; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if test "${ac_cv_prog_FLEX+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 if test -n "$FLEX"; then
8275 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_prog_FLEX="$ac_prog"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8288 done
8289 done
8290 IFS=$as_save_IFS
8294 FLEX=$ac_cv_prog_FLEX
8295 if test -n "$FLEX"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8297 $as_echo "$FLEX" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8304 test -n "$FLEX" && break
8305 done
8306 test -n "$FLEX" || FLEX="$MISSING flex"
8309 # Bison?
8310 for ac_prog in bison
8312 # Extract the first word of "$ac_prog", so it can be a program name with args.
8313 set dummy $ac_prog; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_BISON+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 if test -n "$BISON"; then
8320 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_BISON="$ac_prog"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8333 done
8334 done
8335 IFS=$as_save_IFS
8339 BISON=$ac_cv_prog_BISON
8340 if test -n "$BISON"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8342 $as_echo "$BISON" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8349 test -n "$BISON" && break
8350 done
8351 test -n "$BISON" || BISON="$MISSING bison"
8354 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8355 # check for build == host before using them.
8357 # NM
8358 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8359 && test -d ../binutils ; then
8360 NM='${objdir}/../binutils/nm-new'
8361 else
8362 # Extract the first word of "nm", so it can be a program name with args.
8363 set dummy nm; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_NM+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 if test -n "$NM"; then
8370 ac_cv_prog_NM="$NM" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_prog_NM="nm"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8383 done
8384 done
8385 IFS=$as_save_IFS
8387 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8390 NM=$ac_cv_prog_NM
8391 if test -n "$NM"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8393 $as_echo "$NM" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8402 # AR
8403 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8404 && test -d ../binutils ; then
8405 AR='${objdir}/../binutils/ar'
8406 else
8407 # Extract the first word of "ar", so it can be a program name with args.
8408 set dummy ar; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_prog_AR+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 if test -n "$AR"; then
8415 ac_cv_prog_AR="$AR" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_AR="ar"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8428 done
8429 done
8430 IFS=$as_save_IFS
8432 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8435 AR=$ac_cv_prog_AR
8436 if test -n "$AR"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8438 $as_echo "$AR" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8447 # The jit documentation looks better if built with sphinx, but can be
8448 # built with texinfo if sphinx is not available.
8449 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8450 # Extract the first word of "sphinx-build", so it can be a program name with args.
8451 set dummy sphinx-build; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 if test -n "$doc_build_sys"; then
8458 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_prog_doc_build_sys="sphinx"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8471 done
8472 done
8473 IFS=$as_save_IFS
8475 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8478 doc_build_sys=$ac_cv_prog_doc_build_sys
8479 if test -n "$doc_build_sys"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8481 $as_echo "$doc_build_sys" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8489 # --------------------
8490 # Checks for C headers
8491 # --------------------
8493 # Need to reject headers which give warnings, so that the -Werror bootstrap
8494 # works later. *sigh* This needs to come before all header checks.
8496 ac_c_preproc_warn_flag=yes
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8499 $as_echo_n "checking for ANSI C header files... " >&6; }
8500 if test "${ac_cv_header_stdc+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <stdlib.h>
8506 #include <stdarg.h>
8507 #include <string.h>
8508 #include <float.h>
8511 main ()
8515 return 0;
8517 _ACEOF
8518 if ac_fn_cxx_try_compile "$LINENO"; then :
8519 ac_cv_header_stdc=yes
8520 else
8521 ac_cv_header_stdc=no
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 if test $ac_cv_header_stdc = yes; then
8526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 #include <string.h>
8531 _ACEOF
8532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533 $EGREP "memchr" >/dev/null 2>&1; then :
8535 else
8536 ac_cv_header_stdc=no
8538 rm -f conftest*
8542 if test $ac_cv_header_stdc = yes; then
8543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 #include <stdlib.h>
8548 _ACEOF
8549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8550 $EGREP "free" >/dev/null 2>&1; then :
8552 else
8553 ac_cv_header_stdc=no
8555 rm -f conftest*
8559 if test $ac_cv_header_stdc = yes; then
8560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8561 if test "$cross_compiling" = yes; then :
8563 else
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 #include <ctype.h>
8567 #include <stdlib.h>
8568 #if ((' ' & 0x0FF) == 0x020)
8569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8571 #else
8572 # define ISLOWER(c) \
8573 (('a' <= (c) && (c) <= 'i') \
8574 || ('j' <= (c) && (c) <= 'r') \
8575 || ('s' <= (c) && (c) <= 'z'))
8576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8577 #endif
8579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8581 main ()
8583 int i;
8584 for (i = 0; i < 256; i++)
8585 if (XOR (islower (i), ISLOWER (i))
8586 || toupper (i) != TOUPPER (i))
8587 return 2;
8588 return 0;
8590 _ACEOF
8591 if ac_fn_cxx_try_run "$LINENO"; then :
8593 else
8594 ac_cv_header_stdc=no
8596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8597 conftest.$ac_objext conftest.beam conftest.$ac_ext
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8603 $as_echo "$ac_cv_header_stdc" >&6; }
8604 if test $ac_cv_header_stdc = yes; then
8606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8611 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8612 if test "${ac_cv_header_time+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <sys/types.h>
8618 #include <sys/time.h>
8619 #include <time.h>
8622 main ()
8624 if ((struct tm *) 0)
8625 return 0;
8627 return 0;
8629 _ACEOF
8630 if ac_fn_cxx_try_compile "$LINENO"; then :
8631 ac_cv_header_time=yes
8632 else
8633 ac_cv_header_time=no
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8638 $as_echo "$ac_cv_header_time" >&6; }
8639 if test $ac_cv_header_time = yes; then
8641 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8646 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8647 if test "${gcc_cv_header_string+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 #include <string.h>
8653 #include <strings.h>
8655 main ()
8659 return 0;
8661 _ACEOF
8662 if ac_fn_cxx_try_compile "$LINENO"; then :
8663 gcc_cv_header_string=yes
8664 else
8665 gcc_cv_header_string=no
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8670 $as_echo "$gcc_cv_header_string" >&6; }
8671 if test $gcc_cv_header_string = yes; then
8673 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8678 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8679 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <sys/types.h>
8685 #include <sys/wait.h>
8686 #ifndef WEXITSTATUS
8687 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8688 #endif
8689 #ifndef WIFEXITED
8690 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8691 #endif
8694 main ()
8696 int s;
8697 wait (&s);
8698 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8700 return 0;
8702 _ACEOF
8703 if ac_fn_cxx_try_compile "$LINENO"; then :
8704 ac_cv_header_sys_wait_h=yes
8705 else
8706 ac_cv_header_sys_wait_h=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8711 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8712 if test $ac_cv_header_sys_wait_h = yes; then
8714 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8719 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8720 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8725 #include <sys/types.h>
8726 #include <termios.h>
8727 #ifdef TIOCGWINSZ
8729 #endif
8731 _ACEOF
8732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8733 $EGREP "yes" >/dev/null 2>&1; then :
8734 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8735 else
8736 ac_cv_sys_tiocgwinsz_in_termios_h=no
8738 rm -f conftest*
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8742 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8744 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8746 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8747 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #include <sys/types.h>
8753 #include <sys/ioctl.h>
8754 #ifdef TIOCGWINSZ
8756 #endif
8758 _ACEOF
8759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8760 $EGREP "yes" >/dev/null 2>&1; then :
8761 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8762 else
8763 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8765 rm -f conftest*
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8769 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8771 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8773 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8778 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8779 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8780 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8781 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8782 do :
8783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8784 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8785 eval as_val=\$$as_ac_Header
8786 if test "x$as_val" = x""yes; then :
8787 cat >>confdefs.h <<_ACEOF
8788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8789 _ACEOF
8792 done
8795 # Check for thread headers.
8796 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8797 if test "x$ac_cv_header_thread_h" = x""yes; then :
8798 have_thread_h=yes
8799 else
8800 have_thread_h=
8803 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8804 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8805 have_pthread_h=yes
8806 else
8807 have_pthread_h=
8811 # These tests can't be done till we know if we have limits.h.
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8813 $as_echo_n "checking for CHAR_BIT... " >&6; }
8814 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 #ifdef HAVE_LIMITS_H
8820 #include <limits.h>
8821 #endif
8822 #ifdef CHAR_BIT
8823 found
8824 #endif
8825 _ACEOF
8826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8827 $EGREP "found" >/dev/null 2>&1; then :
8828 gcc_cv_decl_char_bit=yes
8829 else
8830 gcc_cv_decl_char_bit=no
8832 rm -f conftest*
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8837 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8838 if test $gcc_cv_decl_char_bit = no; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8840 $as_echo_n "checking number of bits in a byte... " >&6; }
8841 if test "${gcc_cv_c_nbby+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8845 gcc_cv_c_nbby=
8846 while test $i -lt 65; do
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8851 main ()
8853 switch(0) {
8854 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8855 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8858 return 0;
8860 _ACEOF
8861 if ac_fn_cxx_try_compile "$LINENO"; then :
8862 gcc_cv_c_nbby=$i; break
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 i=`expr $i + 1`
8866 done
8867 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8871 $as_echo "$gcc_cv_c_nbby" >&6; }
8872 if test $gcc_cv_c_nbby = failed; then
8873 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8874 else
8876 cat >>confdefs.h <<_ACEOF
8877 #define CHAR_BIT $gcc_cv_c_nbby
8878 _ACEOF
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8883 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8884 if test "${ac_cv_c_bigendian+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 ac_cv_c_bigendian=unknown
8888 # See if we're dealing with a universal compiler.
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 #ifndef __APPLE_CC__
8892 not a universal capable compiler
8893 #endif
8894 typedef int dummy;
8896 _ACEOF
8897 if ac_fn_cxx_try_compile "$LINENO"; then :
8899 # Check for potential -arch flags. It is not universal unless
8900 # there are at least two -arch flags with different values.
8901 ac_arch=
8902 ac_prev=
8903 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8904 if test -n "$ac_prev"; then
8905 case $ac_word in
8906 i?86 | x86_64 | ppc | ppc64)
8907 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8908 ac_arch=$ac_word
8909 else
8910 ac_cv_c_bigendian=universal
8911 break
8914 esac
8915 ac_prev=
8916 elif test "x$ac_word" = "x-arch"; then
8917 ac_prev=arch
8919 done
8921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 if test $ac_cv_c_bigendian = unknown; then
8923 # See if sys/param.h defines the BYTE_ORDER macro.
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 #include <sys/param.h>
8930 main ()
8932 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8933 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8934 && LITTLE_ENDIAN)
8935 bogus endian macros
8936 #endif
8939 return 0;
8941 _ACEOF
8942 if ac_fn_cxx_try_compile "$LINENO"; then :
8943 # It does; now see whether it defined to BIG_ENDIAN or not.
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 #include <sys/types.h>
8947 #include <sys/param.h>
8950 main ()
8952 #if BYTE_ORDER != BIG_ENDIAN
8953 not big endian
8954 #endif
8957 return 0;
8959 _ACEOF
8960 if ac_fn_cxx_try_compile "$LINENO"; then :
8961 ac_cv_c_bigendian=yes
8962 else
8963 ac_cv_c_bigendian=no
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 if test $ac_cv_c_bigendian = unknown; then
8970 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973 #include <limits.h>
8976 main ()
8978 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8979 bogus endian macros
8980 #endif
8983 return 0;
8985 _ACEOF
8986 if ac_fn_cxx_try_compile "$LINENO"; then :
8987 # It does; now see whether it defined to _BIG_ENDIAN or not.
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 #include <limits.h>
8993 main ()
8995 #ifndef _BIG_ENDIAN
8996 not big endian
8997 #endif
9000 return 0;
9002 _ACEOF
9003 if ac_fn_cxx_try_compile "$LINENO"; then :
9004 ac_cv_c_bigendian=yes
9005 else
9006 ac_cv_c_bigendian=no
9008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 if test $ac_cv_c_bigendian = unknown; then
9013 # Compile a test program.
9014 if test "$cross_compiling" = yes; then :
9015 # Try to guess by grepping values from an object file.
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 short int ascii_mm[] =
9019 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9020 short int ascii_ii[] =
9021 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9022 int use_ascii (int i) {
9023 return ascii_mm[i] + ascii_ii[i];
9025 short int ebcdic_ii[] =
9026 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9027 short int ebcdic_mm[] =
9028 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9029 int use_ebcdic (int i) {
9030 return ebcdic_mm[i] + ebcdic_ii[i];
9032 extern int foo;
9035 main ()
9037 return use_ascii (foo) == use_ebcdic (foo);
9039 return 0;
9041 _ACEOF
9042 if ac_fn_cxx_try_compile "$LINENO"; then :
9043 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9044 ac_cv_c_bigendian=yes
9046 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9047 if test "$ac_cv_c_bigendian" = unknown; then
9048 ac_cv_c_bigendian=no
9049 else
9050 # finding both strings is unlikely to happen, but who knows?
9051 ac_cv_c_bigendian=unknown
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 else
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 $ac_includes_default
9061 main ()
9064 /* Are we little or big endian? From Harbison&Steele. */
9065 union
9067 long int l;
9068 char c[sizeof (long int)];
9069 } u;
9070 u.l = 1;
9071 return u.c[sizeof (long int) - 1] == 1;
9074 return 0;
9076 _ACEOF
9077 if ac_fn_cxx_try_run "$LINENO"; then :
9078 ac_cv_c_bigendian=no
9079 else
9080 ac_cv_c_bigendian=yes
9082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9083 conftest.$ac_objext conftest.beam conftest.$ac_ext
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9089 $as_echo "$ac_cv_c_bigendian" >&6; }
9090 case $ac_cv_c_bigendian in #(
9091 yes)
9092 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9093 ;; #(
9095 ;; #(
9096 universal)
9098 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9100 ;; #(
9102 as_fn_error "unknown endianness
9103 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9104 esac
9107 # ----------------------
9108 # Checks for C++ headers
9109 # ----------------------
9111 ac_ext=cpp
9112 ac_cpp='$CXXCPP $CPPFLAGS'
9113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9117 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9118 if test -z "$CXXCPP"; then
9119 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 # Double quotes because CXXCPP needs to be expanded
9123 for CXXCPP in "$CXX -E" "/lib/cpp"
9125 ac_preproc_ok=false
9126 for ac_cxx_preproc_warn_flag in '' yes
9128 # Use a header file that comes with gcc, so configuring glibc
9129 # with a fresh cross-compiler works.
9130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131 # <limits.h> exists even on freestanding compilers.
9132 # On the NeXT, cc -E runs the code through the compiler's parser,
9133 # not just through cpp. "Syntax error" is here to catch this case.
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136 #ifdef __STDC__
9137 # include <limits.h>
9138 #else
9139 # include <assert.h>
9140 #endif
9141 Syntax error
9142 _ACEOF
9143 if ac_fn_cxx_try_cpp "$LINENO"; then :
9145 else
9146 # Broken: fails on valid input.
9147 continue
9149 rm -f conftest.err conftest.$ac_ext
9151 # OK, works on sane cases. Now check whether nonexistent headers
9152 # can be detected and how.
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <ac_nonexistent.h>
9156 _ACEOF
9157 if ac_fn_cxx_try_cpp "$LINENO"; then :
9158 # Broken: success on invalid input.
9159 continue
9160 else
9161 # Passes both tests.
9162 ac_preproc_ok=:
9163 break
9165 rm -f conftest.err conftest.$ac_ext
9167 done
9168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9169 rm -f conftest.err conftest.$ac_ext
9170 if $ac_preproc_ok; then :
9171 break
9174 done
9175 ac_cv_prog_CXXCPP=$CXXCPP
9178 CXXCPP=$ac_cv_prog_CXXCPP
9179 else
9180 ac_cv_prog_CXXCPP=$CXXCPP
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9183 $as_echo "$CXXCPP" >&6; }
9184 ac_preproc_ok=false
9185 for ac_cxx_preproc_warn_flag in '' yes
9187 # Use a header file that comes with gcc, so configuring glibc
9188 # with a fresh cross-compiler works.
9189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9190 # <limits.h> exists even on freestanding compilers.
9191 # On the NeXT, cc -E runs the code through the compiler's parser,
9192 # not just through cpp. "Syntax error" is here to catch this case.
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195 #ifdef __STDC__
9196 # include <limits.h>
9197 #else
9198 # include <assert.h>
9199 #endif
9200 Syntax error
9201 _ACEOF
9202 if ac_fn_cxx_try_cpp "$LINENO"; then :
9204 else
9205 # Broken: fails on valid input.
9206 continue
9208 rm -f conftest.err conftest.$ac_ext
9210 # OK, works on sane cases. Now check whether nonexistent headers
9211 # can be detected and how.
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include <ac_nonexistent.h>
9215 _ACEOF
9216 if ac_fn_cxx_try_cpp "$LINENO"; then :
9217 # Broken: success on invalid input.
9218 continue
9219 else
9220 # Passes both tests.
9221 ac_preproc_ok=:
9222 break
9224 rm -f conftest.err conftest.$ac_ext
9226 done
9227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9228 rm -f conftest.err conftest.$ac_ext
9229 if $ac_preproc_ok; then :
9231 else
9232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9235 See \`config.log' for more details." >&5
9236 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9237 See \`config.log' for more details." >&2;}; }
9240 ac_ext=cpp
9241 ac_cpp='$CXXCPP $CPPFLAGS'
9242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9247 for ac_header in unordered_map
9248 do :
9249 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9250 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9251 cat >>confdefs.h <<_ACEOF
9252 #define HAVE_UNORDERED_MAP 1
9253 _ACEOF
9256 done
9258 for ac_header in tr1/unordered_map
9259 do :
9260 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9261 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9262 cat >>confdefs.h <<_ACEOF
9263 #define HAVE_TR1_UNORDERED_MAP 1
9264 _ACEOF
9267 done
9269 for ac_header in ext/hash_map
9270 do :
9271 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9272 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9273 cat >>confdefs.h <<_ACEOF
9274 #define HAVE_EXT_HASH_MAP 1
9275 _ACEOF
9278 done
9281 # --------
9282 # Dependency checking.
9283 # --------
9285 rm -rf .tst 2>/dev/null
9286 mkdir .tst 2>/dev/null
9287 if test -d .tst; then
9288 am__leading_dot=.
9289 else
9290 am__leading_dot=_
9292 rmdir .tst 2>/dev/null
9294 DEPDIR="${am__leading_dot}deps"
9296 ac_config_commands="$ac_config_commands depdir"
9299 ac_config_commands="$ac_config_commands gccdepdir"
9302 depcc="$CXX" am_compiler_list=
9304 am_depcomp=$ac_aux_dir/depcomp
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9306 $as_echo_n "checking dependency style of $depcc... " >&6; }
9307 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 if test -f "$am_depcomp"; then
9311 # We make a subdir and do the tests there. Otherwise we can end up
9312 # making bogus files that we don't know about and never remove. For
9313 # instance it was reported that on HP-UX the gcc test will end up
9314 # making a dummy file named `D' -- because `-MD' means `put the output
9315 # in D'.
9316 mkdir conftest.dir
9317 # Copy depcomp to subdir because otherwise we won't find it if we're
9318 # using a relative directory.
9319 cp "$am_depcomp" conftest.dir
9320 cd conftest.dir
9321 # We will build objects and dependencies in a subdirectory because
9322 # it helps to detect inapplicable dependency modes. For instance
9323 # both Tru64's cc and ICC support -MD to output dependencies as a
9324 # side effect of compilation, but ICC will put the dependencies in
9325 # the current directory while Tru64 will put them in the object
9326 # directory.
9327 mkdir sub
9329 am_cv_CXX_dependencies_compiler_type=none
9330 if test "$am_compiler_list" = ""; then
9331 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9333 for depmode in $am_compiler_list; do
9334 if test $depmode = none; then break; fi
9336 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9337 # Setup a source with many dependencies, because some compilers
9338 # like to wrap large dependency lists on column 80 (with \), and
9339 # we should not choose a depcomp mode which is confused by this.
9341 # We need to recreate these files for each test, as the compiler may
9342 # overwrite some of them when testing with obscure command lines.
9343 # This happens at least with the AIX C compiler.
9344 : > sub/conftest.c
9345 for i in 1 2 3 4 5 6; do
9346 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9347 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9348 # Solaris 8's {/usr,}/bin/sh.
9349 touch sub/conftst$i.h
9350 done
9351 echo "include sub/conftest.Po" > confmf
9353 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9354 # mode. It turns out that the SunPro C++ compiler does not properly
9355 # handle `-M -o', and we need to detect this.
9356 depcmd="depmode=$depmode \
9357 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9358 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9359 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9360 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9361 if env $depcmd > conftest.err 2>&1 &&
9362 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9363 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9364 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9365 # icc doesn't choke on unknown options, it will just issue warnings
9366 # or remarks (even with -Werror). So we grep stderr for any message
9367 # that says an option was ignored or not supported.
9368 # When given -MP, icc 7.0 and 7.1 complain thusly:
9369 # icc: Command line warning: ignoring option '-M'; no argument required
9370 # The diagnosis changed in icc 8.0:
9371 # icc: Command line remark: option '-MP' not supported
9372 if (grep 'ignoring option' conftest.err ||
9373 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9374 am_cv_CXX_dependencies_compiler_type=$depmode
9375 $as_echo "$as_me:$LINENO: success" >&5
9376 break
9379 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9380 sed -e 's/^/| /' < conftest.err >&5
9381 done
9383 cd ..
9384 rm -rf conftest.dir
9385 else
9386 am_cv_CXX_dependencies_compiler_type=none
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9391 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9392 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9393 then as_fn_error "no usable dependency style found" "$LINENO" 5
9394 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9399 # --------
9400 # UNSORTED
9401 # --------
9404 # These libraries may be used by collect2.
9405 # We may need a special search path to get them linked.
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9407 $as_echo_n "checking for collect2 libraries... " >&6; }
9408 if test "${gcc_cv_collect2_libs+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 save_LIBS="$LIBS"
9412 for libs in '' -lld -lmld \
9413 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9414 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9416 LIBS="$libs"
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9420 /* Override any GCC internal prototype to avoid an error.
9421 Use char because int might match the return type of a GCC
9422 builtin and then its argument prototype would still apply. */
9423 #ifdef __cplusplus
9424 extern "C"
9425 #endif
9426 char ldopen ();
9428 main ()
9430 return ldopen ();
9432 return 0;
9434 _ACEOF
9435 if ac_fn_cxx_try_link "$LINENO"; then :
9436 gcc_cv_collect2_libs="$libs"; break
9438 rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440 done
9441 LIBS="$save_LIBS"
9442 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9445 $as_echo "$gcc_cv_collect2_libs" >&6; }
9446 case $gcc_cv_collect2_libs in
9447 "none required") ;;
9448 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9449 esac
9452 # When building Ada code on Alpha, we need exc_resume which is usually in
9453 # -lexc. So test for it.
9454 save_LIBS="$LIBS"
9455 LIBS=
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9457 $as_echo_n "checking for library containing exc_resume... " >&6; }
9458 if test "${ac_cv_search_exc_resume+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 ac_func_search_save_LIBS=$LIBS
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 char exc_resume ();
9473 main ()
9475 return exc_resume ();
9477 return 0;
9479 _ACEOF
9480 for ac_lib in '' exc; do
9481 if test -z "$ac_lib"; then
9482 ac_res="none required"
9483 else
9484 ac_res=-l$ac_lib
9485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9487 if ac_fn_cxx_try_link "$LINENO"; then :
9488 ac_cv_search_exc_resume=$ac_res
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext
9492 if test "${ac_cv_search_exc_resume+set}" = set; then :
9493 break
9495 done
9496 if test "${ac_cv_search_exc_resume+set}" = set; then :
9498 else
9499 ac_cv_search_exc_resume=no
9501 rm conftest.$ac_ext
9502 LIBS=$ac_func_search_save_LIBS
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9505 $as_echo "$ac_cv_search_exc_resume" >&6; }
9506 ac_res=$ac_cv_search_exc_resume
9507 if test "$ac_res" != no; then :
9508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9512 GNAT_LIBEXC="$LIBS"
9513 LIBS="$save_LIBS"
9516 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9517 save_LIBS="$LIBS"
9518 LIBS=
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9520 $as_echo_n "checking for library containing kstat_open... " >&6; }
9521 if test "${ac_cv_search_kstat_open+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 ac_func_search_save_LIBS=$LIBS
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9528 /* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9531 #ifdef __cplusplus
9532 extern "C"
9533 #endif
9534 char kstat_open ();
9536 main ()
9538 return kstat_open ();
9540 return 0;
9542 _ACEOF
9543 for ac_lib in '' kstat; do
9544 if test -z "$ac_lib"; then
9545 ac_res="none required"
9546 else
9547 ac_res=-l$ac_lib
9548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9550 if ac_fn_cxx_try_link "$LINENO"; then :
9551 ac_cv_search_kstat_open=$ac_res
9553 rm -f core conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext
9555 if test "${ac_cv_search_kstat_open+set}" = set; then :
9556 break
9558 done
9559 if test "${ac_cv_search_kstat_open+set}" = set; then :
9561 else
9562 ac_cv_search_kstat_open=no
9564 rm conftest.$ac_ext
9565 LIBS=$ac_func_search_save_LIBS
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9568 $as_echo "$ac_cv_search_kstat_open" >&6; }
9569 ac_res=$ac_cv_search_kstat_open
9570 if test "$ac_res" != no; then :
9571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9575 EXTRA_GCC_LIBS="$LIBS"
9576 LIBS="$save_LIBS"
9579 # Some systems put ldexp and frexp in libm instead of libc; assume
9580 # they're both in the same place. jcf-dump needs them.
9581 save_LIBS="$LIBS"
9582 LIBS=
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9584 $as_echo_n "checking for library containing ldexp... " >&6; }
9585 if test "${ac_cv_search_ldexp+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 ac_func_search_save_LIBS=$LIBS
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9592 /* Override any GCC internal prototype to avoid an error.
9593 Use char because int might match the return type of a GCC
9594 builtin and then its argument prototype would still apply. */
9595 #ifdef __cplusplus
9596 extern "C"
9597 #endif
9598 char ldexp ();
9600 main ()
9602 return ldexp ();
9604 return 0;
9606 _ACEOF
9607 for ac_lib in '' m; do
9608 if test -z "$ac_lib"; then
9609 ac_res="none required"
9610 else
9611 ac_res=-l$ac_lib
9612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9614 if ac_fn_cxx_try_link "$LINENO"; then :
9615 ac_cv_search_ldexp=$ac_res
9617 rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext
9619 if test "${ac_cv_search_ldexp+set}" = set; then :
9620 break
9622 done
9623 if test "${ac_cv_search_ldexp+set}" = set; then :
9625 else
9626 ac_cv_search_ldexp=no
9628 rm conftest.$ac_ext
9629 LIBS=$ac_func_search_save_LIBS
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9632 $as_echo "$ac_cv_search_ldexp" >&6; }
9633 ac_res=$ac_cv_search_ldexp
9634 if test "$ac_res" != no; then :
9635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9639 LDEXP_LIB="$LIBS"
9640 LIBS="$save_LIBS"
9643 # Use <inttypes.h> only if it exists,
9644 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9645 # PRId64
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9647 $as_echo_n "checking for inttypes.h... " >&6; }
9648 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #define __STDC_FORMAT_MACROS
9654 #include <sys/types.h>
9655 #include <inttypes.h>
9657 main ()
9659 intmax_t i = -1;
9660 #ifndef PRId64
9661 choke me
9662 #endif
9664 return 0;
9666 _ACEOF
9667 if ac_fn_cxx_try_compile "$LINENO"; then :
9668 gcc_cv_header_inttypes_h=yes
9669 else
9670 gcc_cv_header_inttypes_h=no
9672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9676 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9677 if test $gcc_cv_header_inttypes_h = yes; then
9679 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9685 for ac_func in times clock kill getrlimit setrlimit atoq \
9686 popen sysconf strsignal getrusage nl_langinfo \
9687 gettimeofday mbstowcs wcswidth mmap setlocale \
9688 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
9689 do :
9690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9691 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9692 eval as_val=\$$as_ac_var
9693 if test "x$as_val" = x""yes; then :
9694 cat >>confdefs.h <<_ACEOF
9695 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9696 _ACEOF
9699 done
9702 if test x$ac_cv_func_mbstowcs = xyes; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9704 $as_echo_n "checking whether mbstowcs works... " >&6; }
9705 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 if test "$cross_compiling" = yes; then :
9709 gcc_cv_func_mbstowcs_works=yes
9710 else
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include <stdlib.h>
9714 int main()
9716 mbstowcs(0, "", 0);
9717 return 0;
9719 _ACEOF
9720 if ac_fn_cxx_try_run "$LINENO"; then :
9721 gcc_cv_func_mbstowcs_works=yes
9722 else
9723 gcc_cv_func_mbstowcs_works=no
9725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9726 conftest.$ac_objext conftest.beam conftest.$ac_ext
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9731 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9732 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9734 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9739 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9740 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9742 else
9744 cat >>confdefs.h <<_ACEOF
9745 #define ssize_t int
9746 _ACEOF
9750 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9751 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9753 else
9755 cat >>confdefs.h <<_ACEOF
9756 #define caddr_t char *
9757 _ACEOF
9763 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9764 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9765 gcc_header_sys_mman_h=yes
9766 else
9767 gcc_header_sys_mman_h=no
9770 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9771 if test "x$ac_cv_func_mmap" = x""yes; then :
9772 gcc_func_mmap=yes
9773 else
9774 gcc_func_mmap=no
9777 if test "$gcc_header_sys_mman_h" != yes \
9778 || test "$gcc_func_mmap" != yes; then
9779 gcc_cv_func_mmap_file=no
9780 gcc_cv_func_mmap_dev_zero=no
9781 gcc_cv_func_mmap_anon=no
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9784 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9785 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 # Add a system to this blacklist if
9789 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9790 # memory area containing the same data that you'd get if you applied
9791 # read() to the same fd. The only system known to have a problem here
9792 # is VMS, where text files have record structure.
9793 case "$host_os" in
9794 *vms* | ultrix*)
9795 gcc_cv_func_mmap_file=no ;;
9797 gcc_cv_func_mmap_file=yes;;
9798 esac
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9801 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9803 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9804 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 # Add a system to this blacklist if it has mmap() but /dev/zero
9808 # does not exist, or if mmapping /dev/zero does not give anonymous
9809 # zeroed pages with both the following properties:
9810 # 1. If you map N consecutive pages in with one call, and then
9811 # unmap any subset of those pages, the pages that were not
9812 # explicitly unmapped remain accessible.
9813 # 2. If you map two adjacent blocks of memory and then unmap them
9814 # both at once, they must both go away.
9815 # Systems known to be in this category are Windows (all variants),
9816 # VMS, and Darwin.
9817 case "$host_os" in
9818 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9819 gcc_cv_func_mmap_dev_zero=no ;;
9821 gcc_cv_func_mmap_dev_zero=yes;;
9822 esac
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9825 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9827 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9829 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9830 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9836 #include <sys/mman.h>
9837 #include <unistd.h>
9839 #ifndef MAP_ANONYMOUS
9840 #define MAP_ANONYMOUS MAP_ANON
9841 #endif
9844 main ()
9846 int n = MAP_ANONYMOUS;
9848 return 0;
9850 _ACEOF
9851 if ac_fn_cxx_try_compile "$LINENO"; then :
9852 gcc_cv_decl_map_anon=yes
9853 else
9854 gcc_cv_decl_map_anon=no
9856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9859 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9861 if test $gcc_cv_decl_map_anon = no; then
9862 gcc_cv_func_mmap_anon=no
9863 else
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9865 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9866 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9870 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9871 # doesn't give anonymous zeroed pages with the same properties listed
9872 # above for use of /dev/zero.
9873 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9874 case "$host_os" in
9875 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9876 gcc_cv_func_mmap_anon=no ;;
9878 gcc_cv_func_mmap_anon=yes;;
9879 esac
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9882 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9886 if test $gcc_cv_func_mmap_file = yes; then
9888 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9891 if test $gcc_cv_func_mmap_dev_zero = yes; then
9893 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9896 if test $gcc_cv_func_mmap_anon = yes; then
9898 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9903 case "${host}" in
9904 *-*-*vms*)
9905 # Under VMS, vfork works very differently than on Unix. The standard test
9906 # won't work, and it isn't easily adaptable. It makes more sense to
9907 # just force it.
9908 ac_cv_func_vfork_works=yes
9910 esac
9911 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9912 if test "x$ac_cv_type_pid_t" = x""yes; then :
9914 else
9916 cat >>confdefs.h <<_ACEOF
9917 #define pid_t int
9918 _ACEOF
9922 for ac_header in vfork.h
9923 do :
9924 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9925 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9926 cat >>confdefs.h <<_ACEOF
9927 #define HAVE_VFORK_H 1
9928 _ACEOF
9931 done
9933 for ac_func in fork vfork
9934 do :
9935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9936 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9937 eval as_val=\$$as_ac_var
9938 if test "x$as_val" = x""yes; then :
9939 cat >>confdefs.h <<_ACEOF
9940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9941 _ACEOF
9944 done
9946 if test "x$ac_cv_func_fork" = xyes; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9948 $as_echo_n "checking for working fork... " >&6; }
9949 if test "${ac_cv_func_fork_works+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 if test "$cross_compiling" = yes; then :
9953 ac_cv_func_fork_works=cross
9954 else
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 $ac_includes_default
9959 main ()
9962 /* By Ruediger Kuhlmann. */
9963 return fork () < 0;
9966 return 0;
9968 _ACEOF
9969 if ac_fn_cxx_try_run "$LINENO"; then :
9970 ac_cv_func_fork_works=yes
9971 else
9972 ac_cv_func_fork_works=no
9974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9975 conftest.$ac_objext conftest.beam conftest.$ac_ext
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9980 $as_echo "$ac_cv_func_fork_works" >&6; }
9982 else
9983 ac_cv_func_fork_works=$ac_cv_func_fork
9985 if test "x$ac_cv_func_fork_works" = xcross; then
9986 case $host in
9987 *-*-amigaos* | *-*-msdosdjgpp*)
9988 # Override, as these systems have only a dummy fork() stub
9989 ac_cv_func_fork_works=no
9992 ac_cv_func_fork_works=yes
9994 esac
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9996 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9998 ac_cv_func_vfork_works=$ac_cv_func_vfork
9999 if test "x$ac_cv_func_vfork" = xyes; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10001 $as_echo_n "checking for working vfork... " >&6; }
10002 if test "${ac_cv_func_vfork_works+set}" = set; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 if test "$cross_compiling" = yes; then :
10006 ac_cv_func_vfork_works=cross
10007 else
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010 /* Thanks to Paul Eggert for this test. */
10011 $ac_includes_default
10012 #include <sys/wait.h>
10013 #ifdef HAVE_VFORK_H
10014 # include <vfork.h>
10015 #endif
10016 /* On some sparc systems, changes by the child to local and incoming
10017 argument registers are propagated back to the parent. The compiler
10018 is told about this with #include <vfork.h>, but some compilers
10019 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10020 static variable whose address is put into a register that is
10021 clobbered by the vfork. */
10022 static void
10023 #ifdef __cplusplus
10024 sparc_address_test (int arg)
10025 # else
10026 sparc_address_test (arg) int arg;
10027 #endif
10029 static pid_t child;
10030 if (!child) {
10031 child = vfork ();
10032 if (child < 0) {
10033 perror ("vfork");
10034 _exit(2);
10036 if (!child) {
10037 arg = getpid();
10038 write(-1, "", 0);
10039 _exit (arg);
10045 main ()
10047 pid_t parent = getpid ();
10048 pid_t child;
10050 sparc_address_test (0);
10052 child = vfork ();
10054 if (child == 0) {
10055 /* Here is another test for sparc vfork register problems. This
10056 test uses lots of local variables, at least as many local
10057 variables as main has allocated so far including compiler
10058 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10059 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10060 reuse the register of parent for one of the local variables,
10061 since it will think that parent can't possibly be used any more
10062 in this routine. Assigning to the local variable will thus
10063 munge parent in the parent process. */
10064 pid_t
10065 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10066 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10067 /* Convince the compiler that p..p7 are live; otherwise, it might
10068 use the same hardware register for all 8 local variables. */
10069 if (p != p1 || p != p2 || p != p3 || p != p4
10070 || p != p5 || p != p6 || p != p7)
10071 _exit(1);
10073 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10074 from child file descriptors. If the child closes a descriptor
10075 before it execs or exits, this munges the parent's descriptor
10076 as well. Test for this by closing stdout in the child. */
10077 _exit(close(fileno(stdout)) != 0);
10078 } else {
10079 int status;
10080 struct stat st;
10082 while (wait(&status) != child)
10084 return (
10085 /* Was there some problem with vforking? */
10086 child < 0
10088 /* Did the child fail? (This shouldn't happen.) */
10089 || status
10091 /* Did the vfork/compiler bug occur? */
10092 || parent != getpid()
10094 /* Did the file descriptor bug occur? */
10095 || fstat(fileno(stdout), &st) != 0
10099 _ACEOF
10100 if ac_fn_cxx_try_run "$LINENO"; then :
10101 ac_cv_func_vfork_works=yes
10102 else
10103 ac_cv_func_vfork_works=no
10105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10106 conftest.$ac_objext conftest.beam conftest.$ac_ext
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10111 $as_echo "$ac_cv_func_vfork_works" >&6; }
10114 if test "x$ac_cv_func_fork_works" = xcross; then
10115 ac_cv_func_vfork_works=$ac_cv_func_vfork
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10117 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10120 if test "x$ac_cv_func_vfork_works" = xyes; then
10122 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10124 else
10126 $as_echo "#define vfork fork" >>confdefs.h
10129 if test "x$ac_cv_func_fork_works" = xyes; then
10131 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10137 if test "X$prefix" = "XNONE"; then
10138 acl_final_prefix="$ac_default_prefix"
10139 else
10140 acl_final_prefix="$prefix"
10142 if test "X$exec_prefix" = "XNONE"; then
10143 acl_final_exec_prefix='${prefix}'
10144 else
10145 acl_final_exec_prefix="$exec_prefix"
10147 acl_save_prefix="$prefix"
10148 prefix="$acl_final_prefix"
10149 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10150 prefix="$acl_save_prefix"
10153 # Check whether --with-gnu-ld was given.
10154 if test "${with_gnu_ld+set}" = set; then :
10155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10156 else
10157 with_gnu_ld=no
10160 # Prepare PATH_SEPARATOR.
10161 # The user is always right.
10162 if test "${PATH_SEPARATOR+set}" != set; then
10163 echo "#! /bin/sh" >conf$$.sh
10164 echo "exit 0" >>conf$$.sh
10165 chmod +x conf$$.sh
10166 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10167 PATH_SEPARATOR=';'
10168 else
10169 PATH_SEPARATOR=:
10171 rm -f conf$$.sh
10173 ac_prog=ld
10174 if test "$GCC" = yes; then
10175 # Check if gcc -print-prog-name=ld gives a path.
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10177 $as_echo_n "checking for ld used by GCC... " >&6; }
10178 case $host in
10179 *-*-mingw*)
10180 # gcc leaves a trailing carriage return which upsets mingw
10181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10184 esac
10185 case $ac_prog in
10186 # Accept absolute paths.
10187 [\\/]* | [A-Za-z]:[\\/]*)
10188 re_direlt='/[^/][^/]*/\.\./'
10189 # Canonicalize the path of ld
10190 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10191 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10192 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10193 done
10194 test -z "$LD" && LD="$ac_prog"
10197 # If it fails, then pretend we aren't using GCC.
10198 ac_prog=ld
10201 # If it is relative, then search for the first ld in PATH.
10202 with_gnu_ld=unknown
10204 esac
10205 elif test "$with_gnu_ld" = yes; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10207 $as_echo_n "checking for GNU ld... " >&6; }
10208 else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10210 $as_echo_n "checking for non-GNU ld... " >&6; }
10212 if test "${acl_cv_path_LD+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 if test -z "$LD"; then
10216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10217 for ac_dir in $PATH; do
10218 test -z "$ac_dir" && ac_dir=.
10219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10220 acl_cv_path_LD="$ac_dir/$ac_prog"
10221 # Check to see if the program is GNU ld. I'd rather use --version,
10222 # but apparently some GNU ld's only accept -v.
10223 # Break only if it was the GNU/non-GNU ld that we prefer.
10224 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10225 test "$with_gnu_ld" != no && break
10226 else
10227 test "$with_gnu_ld" != yes && break
10230 done
10231 IFS="$ac_save_ifs"
10232 else
10233 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10237 LD="$acl_cv_path_LD"
10238 if test -n "$LD"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10240 $as_echo "$LD" >&6; }
10241 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10245 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10247 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10248 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10252 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10253 acl_cv_prog_gnu_ld=yes
10254 else
10255 acl_cv_prog_gnu_ld=no
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10259 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10260 with_gnu_ld=$acl_cv_prog_gnu_ld
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10265 $as_echo_n "checking for shared library run path origin... " >&6; }
10266 if test "${acl_cv_rpath+set}" = set; then :
10267 $as_echo_n "(cached) " >&6
10268 else
10270 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10271 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10272 . ./conftest.sh
10273 rm -f ./conftest.sh
10274 acl_cv_rpath=done
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10278 $as_echo "$acl_cv_rpath" >&6; }
10279 wl="$acl_cv_wl"
10280 libext="$acl_cv_libext"
10281 shlibext="$acl_cv_shlibext"
10282 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10283 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10284 hardcode_direct="$acl_cv_hardcode_direct"
10285 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10286 # Check whether --enable-rpath was given.
10287 if test "${enable_rpath+set}" = set; then :
10288 enableval=$enable_rpath; :
10289 else
10290 enable_rpath=yes
10300 use_additional=yes
10302 acl_save_prefix="$prefix"
10303 prefix="$acl_final_prefix"
10304 acl_save_exec_prefix="$exec_prefix"
10305 exec_prefix="$acl_final_exec_prefix"
10307 eval additional_includedir=\"$includedir\"
10308 eval additional_libdir=\"$libdir\"
10310 exec_prefix="$acl_save_exec_prefix"
10311 prefix="$acl_save_prefix"
10314 # Check whether --with-libiconv-prefix was given.
10315 if test "${with_libiconv_prefix+set}" = set; then :
10316 withval=$with_libiconv_prefix;
10317 if test "X$withval" = "Xno"; then
10318 use_additional=no
10319 else
10320 if test "X$withval" = "X"; then
10322 acl_save_prefix="$prefix"
10323 prefix="$acl_final_prefix"
10324 acl_save_exec_prefix="$exec_prefix"
10325 exec_prefix="$acl_final_exec_prefix"
10327 eval additional_includedir=\"$includedir\"
10328 eval additional_libdir=\"$libdir\"
10330 exec_prefix="$acl_save_exec_prefix"
10331 prefix="$acl_save_prefix"
10333 else
10334 additional_includedir="$withval/include"
10335 additional_libdir="$withval/lib"
10341 LIBICONV=
10342 LTLIBICONV=
10343 INCICONV=
10344 rpathdirs=
10345 ltrpathdirs=
10346 names_already_handled=
10347 names_next_round='iconv '
10348 while test -n "$names_next_round"; do
10349 names_this_round="$names_next_round"
10350 names_next_round=
10351 for name in $names_this_round; do
10352 already_handled=
10353 for n in $names_already_handled; do
10354 if test "$n" = "$name"; then
10355 already_handled=yes
10356 break
10358 done
10359 if test -z "$already_handled"; then
10360 names_already_handled="$names_already_handled $name"
10361 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10362 eval value=\"\$HAVE_LIB$uppername\"
10363 if test -n "$value"; then
10364 if test "$value" = yes; then
10365 eval value=\"\$LIB$uppername\"
10366 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10367 eval value=\"\$LTLIB$uppername\"
10368 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10369 else
10372 else
10373 found_dir=
10374 found_la=
10375 found_so=
10376 found_a=
10377 if test $use_additional = yes; then
10378 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10379 found_dir="$additional_libdir"
10380 found_so="$additional_libdir/lib$name.$shlibext"
10381 if test -f "$additional_libdir/lib$name.la"; then
10382 found_la="$additional_libdir/lib$name.la"
10384 else
10385 if test -f "$additional_libdir/lib$name.$libext"; then
10386 found_dir="$additional_libdir"
10387 found_a="$additional_libdir/lib$name.$libext"
10388 if test -f "$additional_libdir/lib$name.la"; then
10389 found_la="$additional_libdir/lib$name.la"
10394 if test "X$found_dir" = "X"; then
10395 for x in $LDFLAGS $LTLIBICONV; do
10397 acl_save_prefix="$prefix"
10398 prefix="$acl_final_prefix"
10399 acl_save_exec_prefix="$exec_prefix"
10400 exec_prefix="$acl_final_exec_prefix"
10401 eval x=\"$x\"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10405 case "$x" in
10406 -L*)
10407 dir=`echo "X$x" | sed -e 's/^X-L//'`
10408 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10409 found_dir="$dir"
10410 found_so="$dir/lib$name.$shlibext"
10411 if test -f "$dir/lib$name.la"; then
10412 found_la="$dir/lib$name.la"
10414 else
10415 if test -f "$dir/lib$name.$libext"; then
10416 found_dir="$dir"
10417 found_a="$dir/lib$name.$libext"
10418 if test -f "$dir/lib$name.la"; then
10419 found_la="$dir/lib$name.la"
10424 esac
10425 if test "X$found_dir" != "X"; then
10426 break
10428 done
10430 if test "X$found_dir" != "X"; then
10431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10432 if test "X$found_so" != "X"; then
10433 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10434 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10435 else
10436 haveit=
10437 for x in $ltrpathdirs; do
10438 if test "X$x" = "X$found_dir"; then
10439 haveit=yes
10440 break
10442 done
10443 if test -z "$haveit"; then
10444 ltrpathdirs="$ltrpathdirs $found_dir"
10446 if test "$hardcode_direct" = yes; then
10447 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10448 else
10449 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10451 haveit=
10452 for x in $rpathdirs; do
10453 if test "X$x" = "X$found_dir"; then
10454 haveit=yes
10455 break
10457 done
10458 if test -z "$haveit"; then
10459 rpathdirs="$rpathdirs $found_dir"
10461 else
10462 haveit=
10463 for x in $LDFLAGS $LIBICONV; do
10465 acl_save_prefix="$prefix"
10466 prefix="$acl_final_prefix"
10467 acl_save_exec_prefix="$exec_prefix"
10468 exec_prefix="$acl_final_exec_prefix"
10469 eval x=\"$x\"
10470 exec_prefix="$acl_save_exec_prefix"
10471 prefix="$acl_save_prefix"
10473 if test "X$x" = "X-L$found_dir"; then
10474 haveit=yes
10475 break
10477 done
10478 if test -z "$haveit"; then
10479 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10481 if test "$hardcode_minus_L" != no; then
10482 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10483 else
10484 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10489 else
10490 if test "X$found_a" != "X"; then
10491 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10492 else
10493 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10496 additional_includedir=
10497 case "$found_dir" in
10498 */lib | */lib/)
10499 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10500 additional_includedir="$basedir/include"
10502 esac
10503 if test "X$additional_includedir" != "X"; then
10504 if test "X$additional_includedir" != "X/usr/include"; then
10505 haveit=
10506 if test "X$additional_includedir" = "X/usr/local/include"; then
10507 if test -n "$GCC"; then
10508 case $host_os in
10509 linux*) haveit=yes;;
10510 esac
10513 if test -z "$haveit"; then
10514 for x in $CPPFLAGS $INCICONV; do
10516 acl_save_prefix="$prefix"
10517 prefix="$acl_final_prefix"
10518 acl_save_exec_prefix="$exec_prefix"
10519 exec_prefix="$acl_final_exec_prefix"
10520 eval x=\"$x\"
10521 exec_prefix="$acl_save_exec_prefix"
10522 prefix="$acl_save_prefix"
10524 if test "X$x" = "X-I$additional_includedir"; then
10525 haveit=yes
10526 break
10528 done
10529 if test -z "$haveit"; then
10530 if test -d "$additional_includedir"; then
10531 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10537 if test -n "$found_la"; then
10538 save_libdir="$libdir"
10539 case "$found_la" in
10540 */* | *\\*) . "$found_la" ;;
10541 *) . "./$found_la" ;;
10542 esac
10543 libdir="$save_libdir"
10544 for dep in $dependency_libs; do
10545 case "$dep" in
10546 -L*)
10547 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10548 if test "X$additional_libdir" != "X/usr/lib"; then
10549 haveit=
10550 if test "X$additional_libdir" = "X/usr/local/lib"; then
10551 if test -n "$GCC"; then
10552 case $host_os in
10553 linux*) haveit=yes;;
10554 esac
10557 if test -z "$haveit"; then
10558 haveit=
10559 for x in $LDFLAGS $LIBICONV; do
10561 acl_save_prefix="$prefix"
10562 prefix="$acl_final_prefix"
10563 acl_save_exec_prefix="$exec_prefix"
10564 exec_prefix="$acl_final_exec_prefix"
10565 eval x=\"$x\"
10566 exec_prefix="$acl_save_exec_prefix"
10567 prefix="$acl_save_prefix"
10569 if test "X$x" = "X-L$additional_libdir"; then
10570 haveit=yes
10571 break
10573 done
10574 if test -z "$haveit"; then
10575 if test -d "$additional_libdir"; then
10576 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10579 haveit=
10580 for x in $LDFLAGS $LTLIBICONV; do
10582 acl_save_prefix="$prefix"
10583 prefix="$acl_final_prefix"
10584 acl_save_exec_prefix="$exec_prefix"
10585 exec_prefix="$acl_final_exec_prefix"
10586 eval x=\"$x\"
10587 exec_prefix="$acl_save_exec_prefix"
10588 prefix="$acl_save_prefix"
10590 if test "X$x" = "X-L$additional_libdir"; then
10591 haveit=yes
10592 break
10594 done
10595 if test -z "$haveit"; then
10596 if test -d "$additional_libdir"; then
10597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10603 -R*)
10604 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10605 if test "$enable_rpath" != no; then
10606 haveit=
10607 for x in $rpathdirs; do
10608 if test "X$x" = "X$dir"; then
10609 haveit=yes
10610 break
10612 done
10613 if test -z "$haveit"; then
10614 rpathdirs="$rpathdirs $dir"
10616 haveit=
10617 for x in $ltrpathdirs; do
10618 if test "X$x" = "X$dir"; then
10619 haveit=yes
10620 break
10622 done
10623 if test -z "$haveit"; then
10624 ltrpathdirs="$ltrpathdirs $dir"
10628 -l*)
10629 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10631 *.la)
10632 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10635 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10638 esac
10639 done
10641 else
10642 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10647 done
10648 done
10649 if test "X$rpathdirs" != "X"; then
10650 if test -n "$hardcode_libdir_separator"; then
10651 alldirs=
10652 for found_dir in $rpathdirs; do
10653 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10654 done
10655 acl_save_libdir="$libdir"
10656 libdir="$alldirs"
10657 eval flag=\"$hardcode_libdir_flag_spec\"
10658 libdir="$acl_save_libdir"
10659 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10660 else
10661 for found_dir in $rpathdirs; do
10662 acl_save_libdir="$libdir"
10663 libdir="$found_dir"
10664 eval flag=\"$hardcode_libdir_flag_spec\"
10665 libdir="$acl_save_libdir"
10666 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10667 done
10670 if test "X$ltrpathdirs" != "X"; then
10671 for found_dir in $ltrpathdirs; do
10672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10673 done
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10683 $as_echo_n "checking for iconv... " >&6; }
10684 if test "${am_cv_func_iconv+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10688 am_cv_func_iconv="no, consider installing GNU libiconv"
10689 am_cv_lib_iconv=no
10690 am_save_CPPFLAGS="$CPPFLAGS"
10691 CPPFLAGS="$CPPFLAGS $INCICONV"
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10694 #include <stdlib.h>
10695 #include <iconv.h>
10697 main ()
10699 iconv_t cd = iconv_open("","");
10700 iconv(cd,NULL,NULL,NULL,NULL);
10701 iconv_close(cd);
10703 return 0;
10705 _ACEOF
10706 if ac_fn_cxx_try_link "$LINENO"; then :
10707 am_cv_func_iconv=yes
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 CPPFLAGS="$am_save_CPPFLAGS"
10713 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10714 for _libs in .libs _libs; do
10715 am_save_CPPFLAGS="$CPPFLAGS"
10716 am_save_LIBS="$LIBS"
10717 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10718 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 #include <stdlib.h>
10722 #include <iconv.h>
10724 main ()
10726 iconv_t cd = iconv_open("","");
10727 iconv(cd,NULL,NULL,NULL,NULL);
10728 iconv_close(cd);
10730 return 0;
10732 _ACEOF
10733 if ac_fn_cxx_try_link "$LINENO"; then :
10734 INCICONV="-I../libiconv/include"
10735 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10736 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10737 am_cv_lib_iconv=yes
10738 am_cv_func_iconv=yes
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 CPPFLAGS="$am_save_CPPFLAGS"
10743 LIBS="$am_save_LIBS"
10744 if test "$am_cv_func_iconv" = "yes"; then
10745 break
10747 done
10750 if test "$am_cv_func_iconv" != yes; then
10751 am_save_CPPFLAGS="$CPPFLAGS"
10752 am_save_LIBS="$LIBS"
10753 CPPFLAGS="$LIBS $INCICONV"
10754 LIBS="$LIBS $LIBICONV"
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 #include <stdlib.h>
10758 #include <iconv.h>
10760 main ()
10762 iconv_t cd = iconv_open("","");
10763 iconv(cd,NULL,NULL,NULL,NULL);
10764 iconv_close(cd);
10766 return 0;
10768 _ACEOF
10769 if ac_fn_cxx_try_link "$LINENO"; then :
10770 am_cv_lib_iconv=yes
10771 am_cv_func_iconv=yes
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 CPPFLAGS="$am_save_CPPFLAGS"
10776 LIBS="$am_save_LIBS"
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10781 $as_echo "$am_cv_func_iconv" >&6; }
10782 if test "$am_cv_func_iconv" = yes; then
10784 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10787 if test "$am_cv_lib_iconv" = yes; then
10789 for element in $INCICONV; do
10790 haveit=
10791 for x in $CPPFLAGS; do
10793 acl_save_prefix="$prefix"
10794 prefix="$acl_final_prefix"
10795 acl_save_exec_prefix="$exec_prefix"
10796 exec_prefix="$acl_final_exec_prefix"
10797 eval x=\"$x\"
10798 exec_prefix="$acl_save_exec_prefix"
10799 prefix="$acl_save_prefix"
10801 if test "X$x" = "X$element"; then
10802 haveit=yes
10803 break
10805 done
10806 if test -z "$haveit"; then
10807 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10809 done
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10812 $as_echo_n "checking how to link with libiconv... " >&6; }
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10814 $as_echo "$LIBICONV" >&6; }
10815 else
10816 LIBICONV=
10817 LTLIBICONV=
10822 if test "$am_cv_func_iconv" = yes; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10824 $as_echo_n "checking for iconv declaration... " >&6; }
10825 if test "${am_cv_proto_iconv+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10832 #include <stdlib.h>
10833 #include <iconv.h>
10834 extern
10835 #ifdef __cplusplus
10837 #endif
10838 #if defined(__STDC__) || defined(__cplusplus)
10839 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10840 #else
10841 size_t iconv();
10842 #endif
10845 main ()
10849 return 0;
10851 _ACEOF
10852 if ac_fn_cxx_try_compile "$LINENO"; then :
10853 am_cv_proto_iconv_arg1=""
10854 else
10855 am_cv_proto_iconv_arg1="const"
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 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);"
10861 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10863 }$am_cv_proto_iconv" >&5
10864 $as_echo "${ac_t:-
10865 }$am_cv_proto_iconv" >&6; }
10867 cat >>confdefs.h <<_ACEOF
10868 #define ICONV_CONST $am_cv_proto_iconv_arg1
10869 _ACEOF
10874 # Until we have in-tree GNU iconv:
10875 LIBICONV_DEP=
10876 if test -f "$LTLIBICONV"; then
10877 LIBICONV_DEP=$LTLIBICONV
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10883 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10884 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889 #include <locale.h>
10891 main ()
10893 return LC_MESSAGES
10895 return 0;
10897 _ACEOF
10898 if ac_fn_cxx_try_link "$LINENO"; then :
10899 am_cv_val_LC_MESSAGES=yes
10900 else
10901 am_cv_val_LC_MESSAGES=no
10903 rm -f core conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10907 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10908 if test $am_cv_val_LC_MESSAGES = yes; then
10910 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10917 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10918 if test "${am_cv_langinfo_codeset+set}" = set; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923 #include <langinfo.h>
10925 main ()
10927 char* cs = nl_langinfo(CODESET);
10929 return 0;
10931 _ACEOF
10932 if ac_fn_cxx_try_link "$LINENO"; then :
10933 am_cv_langinfo_codeset=yes
10934 else
10935 am_cv_langinfo_codeset=no
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10942 $as_echo "$am_cv_langinfo_codeset" >&6; }
10943 if test $am_cv_langinfo_codeset = yes; then
10945 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10950 # We will need to find libiberty.h and ansidecl.h
10951 saved_CFLAGS="$CFLAGS"
10952 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10953 saved_CXXFLAGS="$CXXFLAGS"
10954 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10956 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10957 # normal autoconf function for these. But force definition of
10958 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10959 # basename handling in libiberty.h.
10960 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_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_basename_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_BASENAME $ac_have_decl
10974 _ACEOF
10975 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10976 #undef HAVE_DECL_BASENAME
10977 #define HAVE_DECL_BASENAME 1
10978 #include \"ansidecl.h\"
10979 #include \"system.h\"
10981 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10982 ac_have_decl=1
10983 else
10984 ac_have_decl=0
10987 cat >>confdefs.h <<_ACEOF
10988 #define HAVE_DECL_STRSTR $ac_have_decl
10989 _ACEOF
10992 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10993 madvise stpcpy strnlen strsignal strverscmp \
10994 strtol strtoul strtoll strtoull setenv unsetenv \
10995 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10996 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
10998 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11000 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11001 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #undef $ac_tr_decl
11007 #define $ac_tr_decl 1
11009 #include "ansidecl.h"
11010 #include "system.h"
11013 main ()
11015 #ifndef $ac_func
11016 char *(*pfn) = (char *(*)) $ac_func ;
11017 #endif
11019 return 0;
11021 _ACEOF
11022 if ac_fn_cxx_try_compile "$LINENO"; then :
11023 eval "gcc_cv_have_decl_$ac_func=yes"
11024 else
11025 eval "gcc_cv_have_decl_$ac_func=no"
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11032 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11033 #define $ac_tr_decl 1
11034 _ACEOF
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11039 #define $ac_tr_decl 0
11040 _ACEOF
11044 done
11047 for ac_func in getrlimit setrlimit getrusage
11049 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11051 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11052 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11057 #undef $ac_tr_decl
11058 #define $ac_tr_decl 1
11060 #include "ansidecl.h"
11061 #include "system.h"
11062 #ifdef HAVE_SYS_RESOURCE_H
11063 #include <sys/resource.h>
11064 #endif
11068 main ()
11070 #ifndef $ac_func
11071 char *(*pfn) = (char *(*)) $ac_func ;
11072 #endif
11074 return 0;
11076 _ACEOF
11077 if ac_fn_cxx_try_compile "$LINENO"; then :
11078 eval "gcc_cv_have_decl_$ac_func=yes"
11079 else
11080 eval "gcc_cv_have_decl_$ac_func=no"
11082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11087 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11088 #define $ac_tr_decl 1
11089 _ACEOF
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11094 #define $ac_tr_decl 0
11095 _ACEOF
11099 done
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 #include "ansidecl.h"
11106 #include "system.h"
11107 #ifdef HAVE_SYS_RESOURCE_H
11108 #include <sys/resource.h>
11109 #endif
11112 main ()
11114 rlim_t l = 0;
11116 return 0;
11118 _ACEOF
11119 if ac_fn_cxx_try_compile "$LINENO"; then :
11121 else
11123 $as_echo "#define rlim_t long" >>confdefs.h
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11129 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11130 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11131 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11132 for ac_func in ldgetname
11134 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11136 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11137 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 #undef $ac_tr_decl
11143 #define $ac_tr_decl 1
11145 #include "ansidecl.h"
11146 #include "system.h"
11147 #ifdef HAVE_LDFCN_H
11148 #undef FREAD
11149 #undef FWRITE
11150 #include <ldfcn.h>
11151 #endif
11155 main ()
11157 #ifndef $ac_func
11158 char *(*pfn) = (char *(*)) $ac_func ;
11159 #endif
11161 return 0;
11163 _ACEOF
11164 if ac_fn_cxx_try_compile "$LINENO"; then :
11165 eval "gcc_cv_have_decl_$ac_func=yes"
11166 else
11167 eval "gcc_cv_have_decl_$ac_func=no"
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11174 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11175 #define $ac_tr_decl 1
11176 _ACEOF
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11181 #define $ac_tr_decl 0
11182 _ACEOF
11186 done
11189 for ac_func in times
11191 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11193 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11194 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199 #undef $ac_tr_decl
11200 #define $ac_tr_decl 1
11202 #include "ansidecl.h"
11203 #include "system.h"
11204 #ifdef HAVE_SYS_TIMES_H
11205 #include <sys/times.h>
11206 #endif
11210 main ()
11212 #ifndef $ac_func
11213 char *(*pfn) = (char *(*)) $ac_func ;
11214 #endif
11216 return 0;
11218 _ACEOF
11219 if ac_fn_cxx_try_compile "$LINENO"; then :
11220 eval "gcc_cv_have_decl_$ac_func=yes"
11221 else
11222 eval "gcc_cv_have_decl_$ac_func=no"
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11229 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11230 #define $ac_tr_decl 1
11231 _ACEOF
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11236 #define $ac_tr_decl 0
11237 _ACEOF
11241 done
11244 for ac_func in sigaltstack
11246 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11248 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11249 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 #undef $ac_tr_decl
11255 #define $ac_tr_decl 1
11257 #include "ansidecl.h"
11258 #include "system.h"
11259 #include <signal.h>
11263 main ()
11265 #ifndef $ac_func
11266 char *(*pfn) = (char *(*)) $ac_func ;
11267 #endif
11269 return 0;
11271 _ACEOF
11272 if ac_fn_cxx_try_compile "$LINENO"; then :
11273 eval "gcc_cv_have_decl_$ac_func=yes"
11274 else
11275 eval "gcc_cv_have_decl_$ac_func=no"
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11282 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11283 #define $ac_tr_decl 1
11284 _ACEOF
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11289 #define $ac_tr_decl 0
11290 _ACEOF
11294 done
11297 # More time-related stuff.
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11299 $as_echo_n "checking for struct tms... " >&6; }
11300 if test "${ac_cv_struct_tms+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11307 #include "ansidecl.h"
11308 #include "system.h"
11309 #ifdef HAVE_SYS_TIMES_H
11310 #include <sys/times.h>
11311 #endif
11314 main ()
11316 struct tms tms;
11318 return 0;
11320 _ACEOF
11321 if ac_fn_cxx_try_compile "$LINENO"; then :
11322 ac_cv_struct_tms=yes
11323 else
11324 ac_cv_struct_tms=no
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11329 $as_echo "$ac_cv_struct_tms" >&6; }
11330 if test $ac_cv_struct_tms = yes; then
11332 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11336 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11337 # revisit after autoconf 2.50.
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11339 $as_echo_n "checking for clock_t... " >&6; }
11340 if test "${gcc_cv_type_clock_t+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11342 else
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 #include "ansidecl.h"
11348 #include "system.h"
11351 main ()
11353 clock_t x;
11355 return 0;
11357 _ACEOF
11358 if ac_fn_cxx_try_compile "$LINENO"; then :
11359 gcc_cv_type_clock_t=yes
11360 else
11361 gcc_cv_type_clock_t=no
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11366 $as_echo "$gcc_cv_type_clock_t" >&6; }
11367 if test $gcc_cv_type_clock_t = yes; then
11369 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11373 # Check if F_SETLKW is supported by fcntl.
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11375 $as_echo_n "checking for F_SETLKW... " >&6; }
11376 if test "${ac_cv_f_setlkw+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
11378 else
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11383 #include <fcntl.h>
11385 main ()
11388 struct flock fl;
11389 fl.l_whence = 0;
11390 fl.l_start = 0;
11391 fl.l_len = 0;
11392 fl.l_pid = 0;
11393 return fcntl (1, F_SETLKW, &fl);
11395 return 0;
11397 _ACEOF
11398 if ac_fn_cxx_try_compile "$LINENO"; then :
11399 ac_cv_f_setlkw=yes
11400 else
11401 ac_cv_f_setlkw=no
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11406 $as_echo "$ac_cv_f_setlkw" >&6; }
11407 if test $ac_cv_f_setlkw = yes; then
11409 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11413 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11414 CFLAGS="$saved_CFLAGS"
11415 CXXFLAGS="$saved_CXXFLAGS"
11417 # mkdir takes a single argument on some systems.
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11419 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11420 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11426 #include <sys/types.h>
11427 #ifdef HAVE_SYS_STAT_H
11428 # include <sys/stat.h>
11429 #endif
11430 #ifdef HAVE_UNISTD_H
11431 # include <unistd.h>
11432 #endif
11433 #ifdef HAVE_DIRECT_H
11434 # include <direct.h>
11435 #endif
11437 main ()
11439 mkdir ("foo", 0);
11441 return 0;
11443 _ACEOF
11444 if ac_fn_cxx_try_compile "$LINENO"; then :
11445 gcc_cv_mkdir_takes_one_arg=no
11446 else
11447 gcc_cv_mkdir_takes_one_arg=yes
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11452 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11453 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11455 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11460 # File extensions
11461 manext='.1'
11462 objext='.o'
11466 # With Setjmp/Longjmp based exception handling.
11467 # Check whether --enable-sjlj-exceptions was given.
11468 if test "${enable_sjlj_exceptions+set}" = set; then :
11469 enableval=$enable_sjlj_exceptions; case $target in
11470 *-*-hpux10*)
11471 if test $enableval != yes; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11473 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11474 enableval=yes
11477 esac
11478 force_sjlj_exceptions=yes
11479 else
11480 case $target in
11481 *-*-hpux10*)
11482 force_sjlj_exceptions=yes
11483 enableval=yes
11485 lm32*-*-*)
11486 force_sjlj_exceptions=yes
11487 enableval=yes
11490 force_sjlj_exceptions=no
11492 esac
11495 if test $force_sjlj_exceptions = yes; then
11496 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11498 cat >>confdefs.h <<_ACEOF
11499 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11500 _ACEOF
11504 # --------------------------------------------------------
11505 # Build, host, and target specific configuration fragments
11506 # --------------------------------------------------------
11508 # Collect build-machine-specific information.
11509 . ${srcdir}/config.build
11511 # Collect host-machine-specific information.
11512 . ${srcdir}/config.host
11514 target_gtfiles=
11516 # Collect target-machine-specific information.
11517 . ${srcdir}/config.gcc
11519 extra_objs="${host_extra_objs} ${extra_objs}"
11520 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11522 # Default the target-machine variables that were not explicitly set.
11523 if test x"$tm_file" = x
11524 then tm_file=$cpu_type/$cpu_type.h; fi
11526 if test x"$extra_headers" = x
11527 then extra_headers=; fi
11529 if test x$md_file = x
11530 then md_file=$cpu_type/$cpu_type.md; fi
11532 if test x$out_file = x
11533 then out_file=$cpu_type/$cpu_type.c; fi
11535 if test x"$tmake_file" = x
11536 then tmake_file=$cpu_type/t-$cpu_type
11539 # Support --enable-initfini-array.
11540 if test x$enable_initfini_array != xno; then
11541 tm_file="${tm_file} initfini-array.h"
11544 if test x"$dwarf2" = xyes
11545 then tm_file="$tm_file tm-dwarf2.h"
11548 # Say what files are being used for the output code and MD file.
11549 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11550 echo "Using \`$srcdir/config/$md_file' as machine description file."
11552 # If any of the xm_file variables contain nonexistent files, warn
11553 # about them and drop them.
11556 for x in $build_xm_file; do
11557 if test -f $srcdir/config/$x
11558 then bx="$bx $x"
11559 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11560 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11562 done
11563 build_xm_file="$bx"
11566 for x in $host_xm_file; do
11567 if test -f $srcdir/config/$x
11568 then hx="$hx $x"
11569 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11570 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11572 done
11573 host_xm_file="$hx"
11576 for x in $xm_file; do
11577 if test -f $srcdir/config/$x
11578 then tx="$tx $x"
11579 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11580 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11582 done
11583 xm_file="$tx"
11585 count=a
11586 for f in $tm_file; do
11587 count=${count}x
11588 done
11589 if test $count = ax; then
11590 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11591 else
11592 echo "Using the following target machine macro files:"
11593 for f in $tm_file; do
11594 echo " $srcdir/config/$f"
11595 done
11598 if test x$use_long_long_for_widest_fast_int = xyes; then
11600 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11604 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11606 cat >>confdefs.h <<_ACEOF
11607 #define HAVE_GNU_LD $gnu_ld_bool
11608 _ACEOF
11611 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11613 cat >>confdefs.h <<_ACEOF
11614 #define HAVE_GNU_AS $gnu_as_bool
11615 _ACEOF
11618 count=a
11619 for f in $host_xm_file; do
11620 count=${count}x
11621 done
11622 if test $count = a; then
11624 elif test $count = ax; then
11625 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11626 else
11627 echo "Using the following host machine macro files:"
11628 for f in $host_xm_file; do
11629 echo " $srcdir/config/$f"
11630 done
11632 echo "Using ${out_host_hook_obj} for host machine hooks."
11634 if test "$host_xm_file" != "$build_xm_file"; then
11635 count=a
11636 for f in $build_xm_file; do
11637 count=${count}x
11638 done
11639 if test $count = a; then
11641 elif test $count = ax; then
11642 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11643 else
11644 echo "Using the following build machine macro files:"
11645 for f in $build_xm_file; do
11646 echo " $srcdir/config/$f"
11647 done
11651 if test -n "$configured_native_system_header_dir"; then
11652 native_system_header_dir=$configured_native_system_header_dir
11654 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11657 case ${host} in
11658 powerpc*-*-darwin*)
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11660 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11661 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11667 #include <sys/cdefs.h>
11668 #include <sys/signal.h>
11669 #include <ucontext.h>
11670 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11672 _ACEOF
11673 if ac_fn_cxx_try_compile "$LINENO"; then :
11674 gcc_cv_mcontext_underscores=no
11675 else
11676 gcc_cv_mcontext_underscores=yes
11678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11681 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11682 if test $gcc_cv_mcontext_underscores = yes; then
11684 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11688 esac
11690 # ---------
11691 # Threading
11692 # ---------
11694 # Check if a valid thread package
11695 case ${enable_threads} in
11696 "" | no)
11697 # No threads
11698 target_thread_file='single'
11700 yes)
11701 # default
11702 target_thread_file='single'
11704 aix | dce | lynx | mipssde | posix | rtems | \
11705 single | tpf | vxworks | win32)
11706 target_thread_file=${enable_threads}
11709 echo "${enable_threads} is an unknown thread package" 1>&2
11710 exit 1
11712 esac
11714 if test x${thread_file} = x; then
11715 # No thread file set by target-specific clauses in config.gcc,
11716 # so use file chosen by default logic above
11717 thread_file=${target_thread_file}
11720 # --------
11721 # UNSORTED
11722 # --------
11724 use_cxa_atexit=no
11725 if test x$enable___cxa_atexit = xyes || \
11726 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11727 if test x$host = x$target; then
11728 case $host in
11729 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11730 # keyed to flag_use_cxa_atexit
11731 *-*-mingw32*)
11732 use_cxa_atexit=yes
11734 powerpc-ibm-aix*)
11735 use_cxa_atexit=yes
11738 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11739 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11740 use_cxa_atexit=yes
11741 else
11742 echo "__cxa_atexit can't be enabled on this target"
11746 esac
11747 else
11748 # We can't check for __cxa_atexit when building a cross, so assume
11749 # it is available
11750 use_cxa_atexit=yes
11752 if test x$use_cxa_atexit = xyes; then
11754 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11759 # Look for a file containing extra machine modes.
11760 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11761 extra_modes_file='$(srcdir)'/config/${extra_modes}
11764 cat >>confdefs.h <<_ACEOF
11765 #define EXTRA_MODES_FILE "config/$extra_modes"
11766 _ACEOF
11770 # Convert extra_options into a form suitable for Makefile use.
11771 extra_opt_files=
11772 all_opt_files=
11773 for f in $extra_options; do
11774 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11775 all_opt_files="$all_opt_files $srcdir/config/$f"
11776 done
11779 # auto-host.h is the file containing items generated by autoconf and is
11780 # the first file included by config.h.
11781 # If host=build, it is correct to have bconfig include auto-host.h
11782 # as well. If host!=build, we are in error and need to do more
11783 # work to find out the build config parameters.
11784 if test x$host = x$build
11785 then
11786 build_auto=auto-host.h
11787 else
11788 # We create a subdir, then run autoconf in the subdir.
11789 # To prevent recursion we set host and build for the new
11790 # invocation of configure to the build for this invocation
11791 # of configure.
11792 tempdir=build.$$
11793 rm -rf $tempdir
11794 mkdir $tempdir
11795 cd $tempdir
11796 case ${srcdir} in
11797 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11798 *) realsrcdir=../${srcdir};;
11799 esac
11800 # Clearing GMPINC is necessary to prevent host headers being
11801 # used by the build compiler. Defining GENERATOR_FILE stops
11802 # system.h from including gmp.h.
11803 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11804 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11805 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11806 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11807 ${realsrcdir}/configure \
11808 --enable-languages=${enable_languages-all} \
11809 --target=$target_alias --host=$build_alias --build=$build_alias
11811 # We just finished tests for the build machine, so rename
11812 # the file auto-build.h in the gcc directory.
11813 mv auto-host.h ../auto-build.h
11814 cd ..
11815 rm -rf $tempdir
11816 build_auto=auto-build.h
11820 tm_file="${tm_file} defaults.h"
11821 tm_p_file="${tm_p_file} tm-preds.h"
11822 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11823 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11824 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11825 # put this back in temporarily.
11826 xm_file="auto-host.h ansidecl.h ${xm_file}"
11828 # --------
11829 # UNSORTED
11830 # --------
11832 # Compile in configure arguments.
11833 if test -f configargs.h ; then
11834 # Being re-configured.
11835 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11836 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11837 else
11838 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11841 # Double all backslashes and backslash all quotes to turn
11842 # gcc_config_arguments into a C string.
11843 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11844 $gcc_config_arguments
11846 gcc_config_arguments_str=`cat conftest.out`
11847 rm -f conftest.out
11849 cat > configargs.h <<EOF
11850 /* Generated automatically. */
11851 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11852 static const char thread_model[] = "$thread_file";
11854 static const struct {
11855 const char *name, *value;
11856 } configure_default_options[] = $configure_default_options;
11859 gcc_BASEVER=`cat $srcdir/BASE-VER`
11860 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11861 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11862 if test -f $srcdir/REVISION ; then
11863 gcc_REVISION=`cat $srcdir/REVISION`
11864 else
11865 gcc_REVISION=""
11867 cat > plugin-version.h <<EOF
11868 #include "configargs.h"
11870 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11871 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11872 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11873 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11875 static char basever[] = "$gcc_BASEVER";
11876 static char datestamp[] = "$gcc_DATESTAMP";
11877 static char devphase[] = "$gcc_DEVPHASE";
11878 static char revision[] = "$gcc_REVISION";
11880 /* FIXME plugins: We should make the version information more precise.
11881 One way to do is to add a checksum. */
11883 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11884 devphase, revision,
11885 configuration_arguments};
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-leading-mingw64-underscores was given.
11973 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11974 enableval=$enable_leading_mingw64_underscores;
11977 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11979 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11983 # Check whether --enable-cld was given.
11984 if test "${enable_cld+set}" = set; then :
11985 enableval=$enable_cld;
11986 else
11987 enable_cld=no
11991 # Check whether --enable-frame-pointer was given.
11992 if test "${enable_frame_pointer+set}" = set; then :
11993 enableval=$enable_frame_pointer;
11994 else
11996 case $target_os in
11997 linux* | darwin[8912]*)
11998 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11999 # DWARF2.
12000 enable_frame_pointer=no
12003 enable_frame_pointer=yes
12005 esac
12010 # Windows32 Registry support for specifying GCC installation paths.
12011 # Check whether --enable-win32-registry was given.
12012 if test "${enable_win32_registry+set}" = set; then :
12013 enableval=$enable_win32_registry;
12017 case $host_os in
12018 win32 | pe | cygwin* | mingw32*)
12019 if test "x$enable_win32_registry" != xno; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12021 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12022 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 ac_func_search_save_LIBS=$LIBS
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12029 /* Override any GCC internal prototype to avoid an error.
12030 Use char because int might match the return type of a GCC
12031 builtin and then its argument prototype would still apply. */
12032 #ifdef __cplusplus
12033 extern "C"
12034 #endif
12035 char RegOpenKeyExA ();
12037 main ()
12039 return RegOpenKeyExA ();
12041 return 0;
12043 _ACEOF
12044 for ac_lib in '' advapi32; do
12045 if test -z "$ac_lib"; then
12046 ac_res="none required"
12047 else
12048 ac_res=-l$ac_lib
12049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12051 if ac_fn_cxx_try_link "$LINENO"; then :
12052 ac_cv_search_RegOpenKeyExA=$ac_res
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext
12056 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12057 break
12059 done
12060 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12062 else
12063 ac_cv_search_RegOpenKeyExA=no
12065 rm conftest.$ac_ext
12066 LIBS=$ac_func_search_save_LIBS
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12069 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12070 ac_res=$ac_cv_search_RegOpenKeyExA
12071 if test "$ac_res" != no; then :
12072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12074 else
12075 enable_win32_registry=no
12080 if test "x$enable_win32_registry" != xno; then
12082 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12085 if test "x$enable_win32_registry" != xyes \
12086 && test "x$enable_win32_registry" != x; then
12088 cat >>confdefs.h <<_ACEOF
12089 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12090 _ACEOF
12095 esac
12097 # Get an absolute path to the GCC top-level source directory
12098 holddir=`${PWDCMD-pwd}`
12099 cd $srcdir
12100 topdir=`${PWDCMD-pwd}`
12101 cd $holddir
12103 # Conditionalize the makefile for this host machine.
12104 xmake_file=
12105 for f in ${host_xmake_file}
12107 if test -f ${srcdir}/config/$f
12108 then
12109 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12111 done
12113 # Conditionalize the makefile for this target machine.
12114 tmake_file_=
12115 for f in ${tmake_file}
12117 if test -f ${srcdir}/config/$f
12118 then
12119 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12121 done
12122 tmake_file="${tmake_file_}"
12124 out_object_file=`basename $out_file .c`.o
12125 common_out_object_file=`basename $common_out_file .c`.o
12127 tm_file_list="options.h"
12128 tm_include_list="options.h insn-constants.h"
12129 for f in $tm_file; do
12130 case $f in
12131 ./* )
12132 f=`echo $f | sed 's/^..//'`
12133 tm_file_list="${tm_file_list} $f"
12134 tm_include_list="${tm_include_list} $f"
12136 defaults.h )
12137 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12138 tm_include_list="${tm_include_list} $f"
12141 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12142 tm_include_list="${tm_include_list} config/$f"
12144 esac
12145 done
12147 tm_p_file_list=
12148 tm_p_include_list=
12149 for f in $tm_p_file; do
12150 case $f in
12151 tm-preds.h )
12152 tm_p_file_list="${tm_p_file_list} $f"
12153 tm_p_include_list="${tm_p_include_list} $f"
12156 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12157 tm_p_include_list="${tm_p_include_list} config/$f"
12158 esac
12159 done
12161 xm_file_list=
12162 xm_include_list=
12163 for f in $xm_file; do
12164 case $f in
12165 ansidecl.h )
12166 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12167 xm_include_list="${xm_include_list} $f"
12169 auto-host.h )
12170 xm_file_list="${xm_file_list} $f"
12171 xm_include_list="${xm_include_list} $f"
12174 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12175 xm_include_list="${xm_include_list} config/$f"
12177 esac
12178 done
12180 host_xm_file_list=
12181 host_xm_include_list=
12182 for f in $host_xm_file; do
12183 case $f in
12184 ansidecl.h )
12185 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12186 host_xm_include_list="${host_xm_include_list} $f"
12188 auto-host.h )
12189 host_xm_file_list="${host_xm_file_list} $f"
12190 host_xm_include_list="${host_xm_include_list} $f"
12193 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12194 host_xm_include_list="${host_xm_include_list} config/$f"
12196 esac
12197 done
12199 build_xm_file_list=
12200 for f in $build_xm_file; do
12201 case $f in
12202 ansidecl.h )
12203 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12204 build_xm_include_list="${build_xm_include_list} $f"
12206 auto-build.h | auto-host.h )
12207 build_xm_file_list="${build_xm_file_list} $f"
12208 build_xm_include_list="${build_xm_include_list} $f"
12211 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12212 build_xm_include_list="${build_xm_include_list} config/$f"
12214 esac
12215 done
12217 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12218 # cross-compiler which does not use the native headers and libraries.
12219 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12220 CROSS=
12221 ALL=all.internal
12222 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12224 if test "x$with_build_sysroot" != x; then
12225 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12226 else
12227 # This value is used, even on a native system, because
12228 # CROSS_SYSTEM_HEADER_DIR is just
12229 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12230 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12233 if test x$host != x$target
12234 then
12235 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12236 ALL=all.cross
12237 SYSTEM_HEADER_DIR=$build_system_header_dir
12238 case "$host","$target" in
12239 # Darwin crosses can use the host system's libraries and headers,
12240 # because of the fat library support. Of course, it must be the
12241 # same version of Darwin on both sides. Allow the user to
12242 # just say --target=foo-darwin without a version number to mean
12243 # "the version on this system".
12244 *-*-darwin*,*-*-darwin*)
12245 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12246 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12247 if test $hostos = $targetos -o $targetos = darwin ; then
12248 CROSS=
12249 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12250 with_headers=yes
12254 i?86-*-*,x86_64-*-* \
12255 | powerpc*-*-*,powerpc64*-*-*)
12256 CROSS="$CROSS -DNATIVE_CROSS" ;;
12257 esac
12259 case $target in
12260 *-*-mingw*)
12261 if test "x$with_headers" = x; then
12262 with_headers=yes
12267 esac
12268 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12269 SYSTEM_HEADER_DIR=$build_system_header_dir
12272 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12273 if test "x$with_headers" != x; then
12274 target_header_dir=$with_headers
12275 elif test "x$with_sysroot" = x; then
12276 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12277 elif test "x$with_build_sysroot" != "x"; then
12278 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12279 elif test "x$with_sysroot" = xyes; then
12280 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12281 else
12282 target_header_dir="${with_sysroot}${native_system_header_dir}"
12284 else
12285 target_header_dir=${native_system_header_dir}
12288 # If this is a cross-compiler that does not
12289 # have its own set of headers then define
12290 # inhibit_libc
12292 # If this is using newlib, without having the headers available now,
12293 # then define inhibit_libc in LIBGCC2_CFLAGS.
12294 # This prevents libgcc2 from containing any code which requires libc
12295 # support.
12296 : ${inhibit_libc=false}
12297 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12298 test x$with_newlib = xyes ; } &&
12299 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12300 inhibit_libc=true
12304 # When building gcc with a cross-compiler, we need to adjust things so
12305 # that the generator programs are still built with the native compiler.
12306 # Also, we cannot run fixincludes.
12308 # These are the normal (build=host) settings:
12309 CC_FOR_BUILD='$(CC)'
12310 CXX_FOR_BUILD='$(CXX)'
12311 BUILD_CFLAGS='$(ALL_CFLAGS)'
12312 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12313 BUILD_LDFLAGS='$(LDFLAGS)'
12314 STMP_FIXINC=stmp-fixinc
12316 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12317 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12319 # And these apply if build != host, or we are generating coverage data
12320 if test x$build != x$host || test "x$coverage_flags" != x
12321 then
12322 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12323 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12324 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12326 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12327 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12328 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12329 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12334 # Expand extra_headers to include complete path.
12335 # This substitutes for lots of t-* files.
12336 extra_headers_list=
12337 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12338 for file in ${extra_headers} ; do
12339 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12340 done
12342 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12343 if test x"$use_gcc_tgmath" = xyes
12344 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12347 # Define collect2 in Makefile.
12348 case $host_can_use_collect2 in
12349 no) collect2= ;;
12350 *) collect2='collect2$(exeext)' ;;
12351 esac
12354 # Add a definition of USE_COLLECT2 if system wants one.
12355 case $use_collect2 in
12356 no) use_collect2= ;;
12357 "") ;;
12359 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12360 xm_defines="${xm_defines} USE_COLLECT2"
12361 case $host_can_use_collect2 in
12363 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12365 esac
12367 esac
12370 cat >>confdefs.h <<_ACEOF
12371 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12372 _ACEOF
12375 # ---------------------------
12376 # Assembler & linker features
12377 # ---------------------------
12379 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12380 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12381 # However when ld-new is first executed from the build tree, libtool will
12382 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12383 # to the build tree. While doing this we need to use the previous-stage
12384 # linker, or we have an infinite loop. The presence of a shell script as
12385 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12386 # the gcc/collect-ld script. So we need to know how libtool works, or
12387 # exec-tool will fail.
12390 case `pwd` in
12391 *\ * | *\ *)
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12393 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12394 esac
12398 macro_version='2.2.7a'
12399 macro_revision='1.3134'
12413 ltmain="$ac_aux_dir/ltmain.sh"
12415 # Backslashify metacharacters that are still active within
12416 # double-quoted strings.
12417 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12419 # Same as above, but do not quote variable references.
12420 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12422 # Sed substitution to delay expansion of an escaped shell variable in a
12423 # double_quote_subst'ed string.
12424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12426 # Sed substitution to delay expansion of an escaped single quote.
12427 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12429 # Sed substitution to avoid accidental globbing in evaled expressions
12430 no_glob_subst='s/\*/\\\*/g'
12432 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12437 $as_echo_n "checking how to print strings... " >&6; }
12438 # Test print first, because it will be a builtin if present.
12439 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12441 ECHO='print -r --'
12442 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12443 ECHO='printf %s\n'
12444 else
12445 # Use this function as a fallback that always works.
12446 func_fallback_echo ()
12448 eval 'cat <<_LTECHO_EOF
12450 _LTECHO_EOF'
12452 ECHO='func_fallback_echo'
12455 # func_echo_all arg...
12456 # Invoke $ECHO with all args, space-separated.
12457 func_echo_all ()
12459 $ECHO ""
12462 case "$ECHO" in
12463 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12464 $as_echo "printf" >&6; } ;;
12465 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12466 $as_echo "print -r" >&6; } ;;
12467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12468 $as_echo "cat" >&6; } ;;
12469 esac
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12485 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12486 if test "${ac_cv_path_SED+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12490 for ac_i in 1 2 3 4 5 6 7; do
12491 ac_script="$ac_script$as_nl$ac_script"
12492 done
12493 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12494 { ac_script=; unset ac_script;}
12495 if test -z "$SED"; then
12496 ac_path_SED_found=false
12497 # Loop through the user's path and test for each of PROGNAME-LIST
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 for ac_prog in sed gsed; do
12504 for ac_exec_ext in '' $ac_executable_extensions; do
12505 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12506 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12507 # Check for GNU ac_path_SED and select it if it is found.
12508 # Check for GNU $ac_path_SED
12509 case `"$ac_path_SED" --version 2>&1` in
12510 *GNU*)
12511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12513 ac_count=0
12514 $as_echo_n 0123456789 >"conftest.in"
12515 while :
12517 cat "conftest.in" "conftest.in" >"conftest.tmp"
12518 mv "conftest.tmp" "conftest.in"
12519 cp "conftest.in" "conftest.nl"
12520 $as_echo '' >> "conftest.nl"
12521 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12523 as_fn_arith $ac_count + 1 && ac_count=$as_val
12524 if test $ac_count -gt ${ac_path_SED_max-0}; then
12525 # Best one so far, save it but keep looking for a better one
12526 ac_cv_path_SED="$ac_path_SED"
12527 ac_path_SED_max=$ac_count
12529 # 10*(2^10) chars as input seems more than enough
12530 test $ac_count -gt 10 && break
12531 done
12532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12533 esac
12535 $ac_path_SED_found && break 3
12536 done
12537 done
12538 done
12539 IFS=$as_save_IFS
12540 if test -z "$ac_cv_path_SED"; then
12541 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12543 else
12544 ac_cv_path_SED=$SED
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12549 $as_echo "$ac_cv_path_SED" >&6; }
12550 SED="$ac_cv_path_SED"
12551 rm -f conftest.sed
12553 test -z "$SED" && SED=sed
12554 Xsed="$SED -e 1s/^X//"
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12567 $as_echo_n "checking for fgrep... " >&6; }
12568 if test "${ac_cv_path_FGREP+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12572 then ac_cv_path_FGREP="$GREP -F"
12573 else
12574 if test -z "$FGREP"; then
12575 ac_path_FGREP_found=false
12576 # Loop through the user's path and test for each of PROGNAME-LIST
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_prog in fgrep; do
12583 for ac_exec_ext in '' $ac_executable_extensions; do
12584 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12585 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12586 # Check for GNU ac_path_FGREP and select it if it is found.
12587 # Check for GNU $ac_path_FGREP
12588 case `"$ac_path_FGREP" --version 2>&1` in
12589 *GNU*)
12590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12592 ac_count=0
12593 $as_echo_n 0123456789 >"conftest.in"
12594 while :
12596 cat "conftest.in" "conftest.in" >"conftest.tmp"
12597 mv "conftest.tmp" "conftest.in"
12598 cp "conftest.in" "conftest.nl"
12599 $as_echo 'FGREP' >> "conftest.nl"
12600 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12602 as_fn_arith $ac_count + 1 && ac_count=$as_val
12603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12604 # Best one so far, save it but keep looking for a better one
12605 ac_cv_path_FGREP="$ac_path_FGREP"
12606 ac_path_FGREP_max=$ac_count
12608 # 10*(2^10) chars as input seems more than enough
12609 test $ac_count -gt 10 && break
12610 done
12611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12612 esac
12614 $ac_path_FGREP_found && break 3
12615 done
12616 done
12617 done
12618 IFS=$as_save_IFS
12619 if test -z "$ac_cv_path_FGREP"; then
12620 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12622 else
12623 ac_cv_path_FGREP=$FGREP
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12629 $as_echo "$ac_cv_path_FGREP" >&6; }
12630 FGREP="$ac_cv_path_FGREP"
12633 test -z "$GREP" && GREP=grep
12653 # Check whether --with-gnu-ld was given.
12654 if test "${with_gnu_ld+set}" = set; then :
12655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12656 else
12657 with_gnu_ld=no
12660 ac_prog=ld
12661 if test "$GCC" = yes; then
12662 # Check if gcc -print-prog-name=ld gives a path.
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12664 $as_echo_n "checking for ld used by $CC... " >&6; }
12665 case $host in
12666 *-*-mingw*)
12667 # gcc leaves a trailing carriage return which upsets mingw
12668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12671 esac
12672 case $ac_prog in
12673 # Accept absolute paths.
12674 [\\/]* | ?:[\\/]*)
12675 re_direlt='/[^/][^/]*/\.\./'
12676 # Canonicalize the pathname of ld
12677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12680 done
12681 test -z "$LD" && LD="$ac_prog"
12684 # If it fails, then pretend we aren't using GCC.
12685 ac_prog=ld
12688 # If it is relative, then search for the first ld in PATH.
12689 with_gnu_ld=unknown
12691 esac
12692 elif test "$with_gnu_ld" = yes; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12694 $as_echo_n "checking for GNU ld... " >&6; }
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12697 $as_echo_n "checking for non-GNU ld... " >&6; }
12699 if test "${lt_cv_path_LD+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test -z "$LD"; then
12703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12704 for ac_dir in $PATH; do
12705 IFS="$lt_save_ifs"
12706 test -z "$ac_dir" && ac_dir=.
12707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12708 lt_cv_path_LD="$ac_dir/$ac_prog"
12709 # Check to see if the program is GNU ld. I'd rather use --version,
12710 # but apparently some variants of GNU ld only accept -v.
12711 # Break only if it was the GNU/non-GNU ld that we prefer.
12712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12713 *GNU* | *'with BFD'*)
12714 test "$with_gnu_ld" != no && break
12717 test "$with_gnu_ld" != yes && break
12719 esac
12721 done
12722 IFS="$lt_save_ifs"
12723 else
12724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12728 LD="$lt_cv_path_LD"
12729 if test -n "$LD"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12731 $as_echo "$LD" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12736 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12738 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12739 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12743 case `$LD -v 2>&1 </dev/null` in
12744 *GNU* | *'with BFD'*)
12745 lt_cv_prog_gnu_ld=yes
12748 lt_cv_prog_gnu_ld=no
12750 esac
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12753 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12754 with_gnu_ld=$lt_cv_prog_gnu_ld
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12765 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12766 if test "${lt_cv_path_NM+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 if test -n "$NM"; then
12770 # Let the user override the test.
12771 lt_cv_path_NM="$NM"
12772 else
12773 lt_nm_to_check="${ac_tool_prefix}nm"
12774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12775 lt_nm_to_check="$lt_nm_to_check nm"
12777 for lt_tmp_nm in $lt_nm_to_check; do
12778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12780 IFS="$lt_save_ifs"
12781 test -z "$ac_dir" && ac_dir=.
12782 tmp_nm="$ac_dir/$lt_tmp_nm"
12783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12784 # Check to see if the nm accepts a BSD-compat flag.
12785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12786 # nm: unknown option "B" ignored
12787 # Tru64's nm complains that /dev/null is an invalid object file
12788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12789 */dev/null* | *'Invalid file or object type'*)
12790 lt_cv_path_NM="$tmp_nm -B"
12791 break
12794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12795 */dev/null*)
12796 lt_cv_path_NM="$tmp_nm -p"
12797 break
12800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12801 continue # so that we can try to find one that supports BSD flags
12803 esac
12805 esac
12807 done
12808 IFS="$lt_save_ifs"
12809 done
12810 : ${lt_cv_path_NM=no}
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12814 $as_echo "$lt_cv_path_NM" >&6; }
12815 if test "$lt_cv_path_NM" != "no"; then
12816 NM="$lt_cv_path_NM"
12817 else
12818 # Didn't find any BSD compatible name lister, look for dumpbin.
12819 if test -n "$DUMPBIN"; then :
12820 # Let the user override the test.
12821 else
12822 if test -n "$ac_tool_prefix"; then
12823 for ac_prog in dumpbin "link -dump"
12825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 if test -n "$DUMPBIN"; then
12833 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12834 else
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12846 done
12847 done
12848 IFS=$as_save_IFS
12852 DUMPBIN=$ac_cv_prog_DUMPBIN
12853 if test -n "$DUMPBIN"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12855 $as_echo "$DUMPBIN" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12862 test -n "$DUMPBIN" && break
12863 done
12865 if test -z "$DUMPBIN"; then
12866 ac_ct_DUMPBIN=$DUMPBIN
12867 for ac_prog in dumpbin "link -dump"
12869 # Extract the first word of "$ac_prog", so it can be a program name with args.
12870 set dummy $ac_prog; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 if test -n "$ac_ct_DUMPBIN"; then
12877 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12878 else
12879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12886 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 break 2
12890 done
12891 done
12892 IFS=$as_save_IFS
12896 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12897 if test -n "$ac_ct_DUMPBIN"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12899 $as_echo "$ac_ct_DUMPBIN" >&6; }
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12906 test -n "$ac_ct_DUMPBIN" && break
12907 done
12909 if test "x$ac_ct_DUMPBIN" = x; then
12910 DUMPBIN=":"
12911 else
12912 case $cross_compiling:$ac_tool_warned in
12913 yes:)
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12916 ac_tool_warned=yes ;;
12917 esac
12918 DUMPBIN=$ac_ct_DUMPBIN
12922 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12923 *COFF*)
12924 DUMPBIN="$DUMPBIN -symbols"
12927 DUMPBIN=:
12929 esac
12932 if test "$DUMPBIN" != ":"; then
12933 NM="$DUMPBIN"
12936 test -z "$NM" && NM=nm
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12944 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12945 if test "${lt_cv_nm_interface+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 lt_cv_nm_interface="BSD nm"
12949 echo "int some_variable = 0;" > conftest.$ac_ext
12950 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12951 (eval "$ac_compile" 2>conftest.err)
12952 cat conftest.err >&5
12953 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12954 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12955 cat conftest.err >&5
12956 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12957 cat conftest.out >&5
12958 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12959 lt_cv_nm_interface="MS dumpbin"
12961 rm -f conftest*
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12964 $as_echo "$lt_cv_nm_interface" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12967 $as_echo_n "checking whether ln -s works... " >&6; }
12968 LN_S=$as_ln_s
12969 if test "$LN_S" = "ln -s"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12972 else
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12974 $as_echo "no, using $LN_S" >&6; }
12977 # find the maximum length of command line arguments
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12984 teststring="ABCD"
12986 case $build_os in
12987 msdosdjgpp*)
12988 # On DJGPP, this test can blow up pretty badly due to problems in libc
12989 # (any single argument exceeding 2000 bytes causes a buffer overrun
12990 # during glob expansion). Even if it were fixed, the result of this
12991 # check would be larger than it should be.
12992 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12995 gnu*)
12996 # Under GNU Hurd, this test is not required because there is
12997 # no limit to the length of command line arguments.
12998 # Libtool will interpret -1 as no limit whatsoever
12999 lt_cv_sys_max_cmd_len=-1;
13002 cygwin* | mingw* | cegcc*)
13003 # On Win9x/ME, this test blows up -- it succeeds, but takes
13004 # about 5 minutes as the teststring grows exponentially.
13005 # Worse, since 9x/ME are not pre-emptively multitasking,
13006 # you end up with a "frozen" computer, even though with patience
13007 # the test eventually succeeds (with a max line length of 256k).
13008 # Instead, let's just punt: use the minimum linelength reported by
13009 # all of the supported platforms: 8192 (on NT/2K/XP).
13010 lt_cv_sys_max_cmd_len=8192;
13013 mint*)
13014 # On MiNT this can take a long time and run out of memory.
13015 lt_cv_sys_max_cmd_len=8192;
13018 amigaos*)
13019 # On AmigaOS with pdksh, this test takes hours, literally.
13020 # So we just punt and use a minimum line length of 8192.
13021 lt_cv_sys_max_cmd_len=8192;
13024 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13025 # This has been around since 386BSD, at least. Likely further.
13026 if test -x /sbin/sysctl; then
13027 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13028 elif test -x /usr/sbin/sysctl; then
13029 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13030 else
13031 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13033 # And add a safety zone
13034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13038 interix*)
13039 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13040 lt_cv_sys_max_cmd_len=196608
13043 osf*)
13044 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13045 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13046 # nice to cause kernel panics so lets avoid the loop below.
13047 # First set a reasonable default.
13048 lt_cv_sys_max_cmd_len=16384
13050 if test -x /sbin/sysconfig; then
13051 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13052 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13053 esac
13056 sco3.2v5*)
13057 lt_cv_sys_max_cmd_len=102400
13059 sysv5* | sco5v6* | sysv4.2uw2*)
13060 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13061 if test -n "$kargmax"; then
13062 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13063 else
13064 lt_cv_sys_max_cmd_len=32768
13068 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13069 if test -n "$lt_cv_sys_max_cmd_len"; then
13070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13072 else
13073 # Make teststring a little bigger before we do anything with it.
13074 # a 1K string should be a reasonable start.
13075 for i in 1 2 3 4 5 6 7 8 ; do
13076 teststring=$teststring$teststring
13077 done
13078 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13079 # If test is not a shell built-in, we'll probably end up computing a
13080 # maximum length that is only half of the actual maximum length, but
13081 # we can't tell.
13082 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13083 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13084 test $i != 17 # 1/2 MB should be enough
13086 i=`expr $i + 1`
13087 teststring=$teststring$teststring
13088 done
13089 # Only check the string length outside the loop.
13090 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13091 teststring=
13092 # Add a significant safety factor because C++ compilers can tack on
13093 # massive amounts of additional arguments before passing them to the
13094 # linker. It appears as though 1/2 is a usable value.
13095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13098 esac
13102 if test -n $lt_cv_sys_max_cmd_len ; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13104 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13107 $as_echo "none" >&6; }
13109 max_cmd_len=$lt_cv_sys_max_cmd_len
13116 : ${CP="cp -f"}
13117 : ${MV="mv -f"}
13118 : ${RM="rm -f"}
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13121 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13122 # Try some XSI features
13123 xsi_shell=no
13124 ( _lt_dummy="a/b/c"
13125 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13126 = c,a/b,, \
13127 && eval 'test $(( 1 + 1 )) -eq 2 \
13128 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13129 && xsi_shell=yes
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13131 $as_echo "$xsi_shell" >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13135 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13136 lt_shell_append=no
13137 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13138 >/dev/null 2>&1 \
13139 && lt_shell_append=yes
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13141 $as_echo "$lt_shell_append" >&6; }
13144 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13145 lt_unset=unset
13146 else
13147 lt_unset=false
13154 # test EBCDIC or ASCII
13155 case `echo X|tr X '\101'` in
13156 A) # ASCII based system
13157 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13158 lt_SP2NL='tr \040 \012'
13159 lt_NL2SP='tr \015\012 \040\040'
13161 *) # EBCDIC based system
13162 lt_SP2NL='tr \100 \n'
13163 lt_NL2SP='tr \r\n \100\100'
13165 esac
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13176 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13177 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 lt_cv_ld_reload_flag='-r'
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13184 reload_flag=$lt_cv_ld_reload_flag
13185 case $reload_flag in
13186 "" | " "*) ;;
13187 *) reload_flag=" $reload_flag" ;;
13188 esac
13189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13190 case $host_os in
13191 darwin*)
13192 if test "$GCC" = yes; then
13193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13194 else
13195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13198 esac
13208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$OBJDUMP"; then
13217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13230 done
13231 done
13232 IFS=$as_save_IFS
13236 OBJDUMP=$ac_cv_prog_OBJDUMP
13237 if test -n "$OBJDUMP"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13239 $as_echo "$OBJDUMP" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13247 if test -z "$ac_cv_prog_OBJDUMP"; then
13248 ac_ct_OBJDUMP=$OBJDUMP
13249 # Extract the first word of "objdump", so it can be a program name with args.
13250 set dummy objdump; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 if test -n "$ac_ct_OBJDUMP"; then
13257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13270 done
13271 done
13272 IFS=$as_save_IFS
13276 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13277 if test -n "$ac_ct_OBJDUMP"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13279 $as_echo "$ac_ct_OBJDUMP" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13285 if test "x$ac_ct_OBJDUMP" = x; then
13286 OBJDUMP="false"
13287 else
13288 case $cross_compiling:$ac_tool_warned in
13289 yes:)
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13292 ac_tool_warned=yes ;;
13293 esac
13294 OBJDUMP=$ac_ct_OBJDUMP
13296 else
13297 OBJDUMP="$ac_cv_prog_OBJDUMP"
13300 test -z "$OBJDUMP" && OBJDUMP=objdump
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13311 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13312 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 lt_cv_file_magic_cmd='$MAGIC_CMD'
13316 lt_cv_file_magic_test_file=
13317 lt_cv_deplibs_check_method='unknown'
13318 # Need to set the preceding variable on all platforms that support
13319 # interlibrary dependencies.
13320 # 'none' -- dependencies not supported.
13321 # `unknown' -- same as none, but documents that we really don't know.
13322 # 'pass_all' -- all dependencies passed with no checks.
13323 # 'test_compile' -- check by making test program.
13324 # 'file_magic [[regex]]' -- check by looking for files in library path
13325 # which responds to the $file_magic_cmd with a given extended regex.
13326 # If you have `file' or equivalent on your system and you're not sure
13327 # whether `pass_all' will *always* work, you probably want this one.
13329 case $host_os in
13330 aix[4-9]*)
13331 lt_cv_deplibs_check_method=pass_all
13334 beos*)
13335 lt_cv_deplibs_check_method=pass_all
13338 bsdi[45]*)
13339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13340 lt_cv_file_magic_cmd='/usr/bin/file -L'
13341 lt_cv_file_magic_test_file=/shlib/libc.so
13344 cygwin*)
13345 # func_win32_libid is a shell function defined in ltmain.sh
13346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13347 lt_cv_file_magic_cmd='func_win32_libid'
13350 mingw* | pw32*)
13351 # Base MSYS/MinGW do not provide the 'file' command needed by
13352 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13353 # unless we find 'file', for example because we are cross-compiling.
13354 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13355 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13357 lt_cv_file_magic_cmd='func_win32_libid'
13358 else
13359 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13360 lt_cv_file_magic_cmd='$OBJDUMP -f'
13364 cegcc*)
13365 # use the weaker test based on 'objdump'. See mingw*.
13366 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13367 lt_cv_file_magic_cmd='$OBJDUMP -f'
13370 darwin* | rhapsody*)
13371 lt_cv_deplibs_check_method=pass_all
13374 freebsd* | dragonfly*)
13375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13376 case $host_cpu in
13377 i*86 )
13378 # Not sure whether the presence of OpenBSD here was a mistake.
13379 # Let's accept both of them until this is cleared up.
13380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13381 lt_cv_file_magic_cmd=/usr/bin/file
13382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13384 esac
13385 else
13386 lt_cv_deplibs_check_method=pass_all
13390 gnu*)
13391 lt_cv_deplibs_check_method=pass_all
13394 haiku*)
13395 lt_cv_deplibs_check_method=pass_all
13398 hpux10.20* | hpux11*)
13399 lt_cv_file_magic_cmd=/usr/bin/file
13400 case $host_cpu in
13401 ia64*)
13402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13405 hppa*64*)
13406 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]'
13407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13413 esac
13416 interix[3-9]*)
13417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13421 irix5* | irix6* | nonstopux*)
13422 case $LD in
13423 *-32|*"-32 ") libmagic=32-bit;;
13424 *-n32|*"-n32 ") libmagic=N32;;
13425 *-64|*"-64 ") libmagic=64-bit;;
13426 *) libmagic=never-match;;
13427 esac
13428 lt_cv_deplibs_check_method=pass_all
13431 # This must be Linux ELF.
13432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13433 lt_cv_deplibs_check_method=pass_all
13436 netbsd*)
13437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13439 else
13440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13444 newos6*)
13445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13446 lt_cv_file_magic_cmd=/usr/bin/file
13447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13450 *nto* | *qnx*)
13451 lt_cv_deplibs_check_method=pass_all
13454 openbsd*)
13455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13457 else
13458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13462 osf3* | osf4* | osf5*)
13463 lt_cv_deplibs_check_method=pass_all
13466 rdos*)
13467 lt_cv_deplibs_check_method=pass_all
13470 solaris*)
13471 lt_cv_deplibs_check_method=pass_all
13474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13475 lt_cv_deplibs_check_method=pass_all
13478 sysv4 | sysv4.3*)
13479 case $host_vendor in
13480 motorola)
13481 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]'
13482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13484 ncr)
13485 lt_cv_deplibs_check_method=pass_all
13487 sequent)
13488 lt_cv_file_magic_cmd='/bin/file'
13489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13491 sni)
13492 lt_cv_file_magic_cmd='/bin/file'
13493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13494 lt_cv_file_magic_test_file=/lib/libc.so
13496 siemens)
13497 lt_cv_deplibs_check_method=pass_all
13500 lt_cv_deplibs_check_method=pass_all
13502 esac
13505 tpf*)
13506 lt_cv_deplibs_check_method=pass_all
13508 esac
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13512 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13513 file_magic_cmd=$lt_cv_file_magic_cmd
13514 deplibs_check_method=$lt_cv_deplibs_check_method
13515 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13528 if test -n "$ac_tool_prefix"; then
13529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13530 set dummy ${ac_tool_prefix}ar; ac_word=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if test "${ac_cv_prog_AR+set}" = set; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 if test -n "$AR"; then
13537 ac_cv_prog_AR="$AR" # Let the user override the test.
13538 else
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13542 IFS=$as_save_IFS
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13546 ac_cv_prog_AR="${ac_tool_prefix}ar"
13547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 break 2
13550 done
13551 done
13552 IFS=$as_save_IFS
13556 AR=$ac_cv_prog_AR
13557 if test -n "$AR"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13559 $as_echo "$AR" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13567 if test -z "$ac_cv_prog_AR"; then
13568 ac_ct_AR=$AR
13569 # Extract the first word of "ar", so it can be a program name with args.
13570 set dummy ar; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 if test -n "$ac_ct_AR"; then
13577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13578 else
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13582 IFS=$as_save_IFS
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
13585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13586 ac_cv_prog_ac_ct_AR="ar"
13587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 break 2
13590 done
13591 done
13592 IFS=$as_save_IFS
13596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13597 if test -n "$ac_ct_AR"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13599 $as_echo "$ac_ct_AR" >&6; }
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13605 if test "x$ac_ct_AR" = x; then
13606 AR="false"
13607 else
13608 case $cross_compiling:$ac_tool_warned in
13609 yes:)
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13612 ac_tool_warned=yes ;;
13613 esac
13614 AR=$ac_ct_AR
13616 else
13617 AR="$ac_cv_prog_AR"
13620 test -z "$AR" && AR=ar
13621 test -z "$AR_FLAGS" && AR_FLAGS=cru
13633 if test -n "$ac_tool_prefix"; then
13634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13635 set dummy ${ac_tool_prefix}strip; ac_word=$2
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637 $as_echo_n "checking for $ac_word... " >&6; }
13638 if test "${ac_cv_prog_STRIP+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 if test -n "$STRIP"; then
13642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13643 else
13644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13655 done
13656 done
13657 IFS=$as_save_IFS
13661 STRIP=$ac_cv_prog_STRIP
13662 if test -n "$STRIP"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13664 $as_echo "$STRIP" >&6; }
13665 else
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13672 if test -z "$ac_cv_prog_STRIP"; then
13673 ac_ct_STRIP=$STRIP
13674 # Extract the first word of "strip", so it can be a program name with args.
13675 set dummy strip; ac_word=$2
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13677 $as_echo_n "checking for $ac_word... " >&6; }
13678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 if test -n "$ac_ct_STRIP"; then
13682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13683 else
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13687 IFS=$as_save_IFS
13688 test -z "$as_dir" && as_dir=.
13689 for ac_exec_ext in '' $ac_executable_extensions; do
13690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13691 ac_cv_prog_ac_ct_STRIP="strip"
13692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13693 break 2
13695 done
13696 done
13697 IFS=$as_save_IFS
13701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13702 if test -n "$ac_ct_STRIP"; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13704 $as_echo "$ac_ct_STRIP" >&6; }
13705 else
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "no" >&6; }
13710 if test "x$ac_ct_STRIP" = x; then
13711 STRIP=":"
13712 else
13713 case $cross_compiling:$ac_tool_warned in
13714 yes:)
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13717 ac_tool_warned=yes ;;
13718 esac
13719 STRIP=$ac_ct_STRIP
13721 else
13722 STRIP="$ac_cv_prog_STRIP"
13725 test -z "$STRIP" && STRIP=:
13732 if test -n "$ac_tool_prefix"; then
13733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 if test -n "$RANLIB"; then
13741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13742 else
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in $PATH
13746 IFS=$as_save_IFS
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 break 2
13754 done
13755 done
13756 IFS=$as_save_IFS
13760 RANLIB=$ac_cv_prog_RANLIB
13761 if test -n "$RANLIB"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13763 $as_echo "$RANLIB" >&6; }
13764 else
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13771 if test -z "$ac_cv_prog_RANLIB"; then
13772 ac_ct_RANLIB=$RANLIB
13773 # Extract the first word of "ranlib", so it can be a program name with args.
13774 set dummy ranlib; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776 $as_echo_n "checking for $ac_word... " >&6; }
13777 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 if test -n "$ac_ct_RANLIB"; then
13781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13782 else
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13786 IFS=$as_save_IFS
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
13789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13790 ac_cv_prog_ac_ct_RANLIB="ranlib"
13791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792 break 2
13794 done
13795 done
13796 IFS=$as_save_IFS
13800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13801 if test -n "$ac_ct_RANLIB"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13803 $as_echo "$ac_ct_RANLIB" >&6; }
13804 else
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13809 if test "x$ac_ct_RANLIB" = x; then
13810 RANLIB=":"
13811 else
13812 case $cross_compiling:$ac_tool_warned in
13813 yes:)
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13816 ac_tool_warned=yes ;;
13817 esac
13818 RANLIB=$ac_ct_RANLIB
13820 else
13821 RANLIB="$ac_cv_prog_RANLIB"
13824 test -z "$RANLIB" && RANLIB=:
13831 # Determine commands to create old-style static archives.
13832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13833 old_postinstall_cmds='chmod 644 $oldlib'
13834 old_postuninstall_cmds=
13836 if test -n "$RANLIB"; then
13837 case $host_os in
13838 openbsd*)
13839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13844 esac
13845 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13848 case $host_os in
13849 darwin*)
13850 lock_old_archive_extraction=yes ;;
13852 lock_old_archive_extraction=no ;;
13853 esac
13893 # If no C compiler was specified, use CC.
13894 LTCC=${LTCC-"$CC"}
13896 # If no C compiler flags were specified, use CFLAGS.
13897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13899 # Allow CC to be a program name with arguments.
13900 compiler=$CC
13903 # Check for command to grab the raw symbol name followed by C symbol from nm.
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13905 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13906 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13907 $as_echo_n "(cached) " >&6
13908 else
13910 # These are sane defaults that work on at least a few old systems.
13911 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13913 # Character class describing NM global symbol codes.
13914 symcode='[BCDEGRST]'
13916 # Regexp to match symbols that can be accessed directly from C.
13917 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13919 # Define system-specific variables.
13920 case $host_os in
13921 aix*)
13922 symcode='[BCDT]'
13924 cygwin* | mingw* | pw32* | cegcc*)
13925 symcode='[ABCDGISTW]'
13927 hpux*)
13928 if test "$host_cpu" = ia64; then
13929 symcode='[ABCDEGRST]'
13932 irix* | nonstopux*)
13933 symcode='[BCDEGRST]'
13935 osf*)
13936 symcode='[BCDEGQRST]'
13938 solaris*)
13939 symcode='[BDRT]'
13941 sco3.2v5*)
13942 symcode='[DT]'
13944 sysv4.2uw2*)
13945 symcode='[DT]'
13947 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13948 symcode='[ABDT]'
13950 sysv4)
13951 symcode='[DFNSTU]'
13953 esac
13955 # If we're using GNU nm, then use its standard symbol codes.
13956 case `$NM -V 2>&1` in
13957 *GNU* | *'with BFD'*)
13958 symcode='[ABCDGIRSTW]' ;;
13959 esac
13961 # Transform an extracted symbol line into a proper C declaration.
13962 # Some systems (esp. on ia64) link data and code symbols differently,
13963 # so use this general approach.
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13966 # Transform an extracted symbol line into symbol name and symbol address
13967 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13968 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'"
13970 # Handle CRLF in mingw tool chain
13971 opt_cr=
13972 case $build_os in
13973 mingw*)
13974 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13976 esac
13978 # Try without a prefix underscore, then with it.
13979 for ac_symprfx in "" "_"; do
13981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13982 symxfrm="\\1 $ac_symprfx\\2 \\2"
13984 # Write the raw and C identifiers.
13985 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13986 # Fake it for dumpbin and say T for any non-static function
13987 # and D for any global variable.
13988 # Also find C++ and __fastcall symbols from MSVC++,
13989 # which start with @ or ?.
13990 lt_cv_sys_global_symbol_pipe="$AWK '"\
13991 " {last_section=section; section=\$ 3};"\
13992 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13993 " \$ 0!~/External *\|/{next};"\
13994 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13995 " {if(hide[section]) next};"\
13996 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13997 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13998 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13999 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14000 " ' prfx=^$ac_symprfx"
14001 else
14002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14005 # Check to see that the pipe works correctly.
14006 pipe_works=no
14008 rm -f conftest*
14009 cat > conftest.$ac_ext <<_LT_EOF
14010 #ifdef __cplusplus
14011 extern "C" {
14012 #endif
14013 char nm_test_var;
14014 void nm_test_func(void);
14015 void nm_test_func(void){}
14016 #ifdef __cplusplus
14018 #endif
14019 int main(){nm_test_var='a';nm_test_func();return(0);}
14020 _LT_EOF
14022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14023 (eval $ac_compile) 2>&5
14024 ac_status=$?
14025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14026 test $ac_status = 0; }; then
14027 # Now try to grab the symbols.
14028 nlist=conftest.nm
14029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14030 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; } && test -s "$nlist"; then
14034 # Try sorting and uniquifying the output.
14035 if sort "$nlist" | uniq > "$nlist"T; then
14036 mv -f "$nlist"T "$nlist"
14037 else
14038 rm -f "$nlist"T
14041 # Make sure that we snagged all the symbols we need.
14042 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14043 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14044 cat <<_LT_EOF > conftest.$ac_ext
14045 #ifdef __cplusplus
14046 extern "C" {
14047 #endif
14049 _LT_EOF
14050 # Now generate the symbol file.
14051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14053 cat <<_LT_EOF >> conftest.$ac_ext
14055 /* The mapping between symbol names and symbols. */
14056 const struct {
14057 const char *name;
14058 void *address;
14060 lt__PROGRAM__LTX_preloaded_symbols[] =
14062 { "@PROGRAM@", (void *) 0 },
14063 _LT_EOF
14064 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14065 cat <<\_LT_EOF >> conftest.$ac_ext
14066 {0, (void *) 0}
14069 /* This works around a problem in FreeBSD linker */
14070 #ifdef FREEBSD_WORKAROUND
14071 static const void *lt_preloaded_setup() {
14072 return lt__PROGRAM__LTX_preloaded_symbols;
14074 #endif
14076 #ifdef __cplusplus
14078 #endif
14079 _LT_EOF
14080 # Now try linking the two files.
14081 mv conftest.$ac_objext conftstm.$ac_objext
14082 lt_save_LIBS="$LIBS"
14083 lt_save_CFLAGS="$CFLAGS"
14084 LIBS="conftstm.$ac_objext"
14085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14087 (eval $ac_link) 2>&5
14088 ac_status=$?
14089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14090 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14091 pipe_works=yes
14093 LIBS="$lt_save_LIBS"
14094 CFLAGS="$lt_save_CFLAGS"
14095 else
14096 echo "cannot find nm_test_func in $nlist" >&5
14098 else
14099 echo "cannot find nm_test_var in $nlist" >&5
14101 else
14102 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14104 else
14105 echo "$progname: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14108 rm -rf conftest* conftst*
14110 # Do not use the global_symbol_pipe unless it works.
14111 if test "$pipe_works" = yes; then
14112 break
14113 else
14114 lt_cv_sys_global_symbol_pipe=
14116 done
14120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14121 lt_cv_sys_global_symbol_to_cdecl=
14123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14125 $as_echo "failed" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14128 $as_echo "ok" >&6; }
14152 # Check whether --enable-libtool-lock was given.
14153 if test "${enable_libtool_lock+set}" = set; then :
14154 enableval=$enable_libtool_lock;
14157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14159 # Some flags need to be propagated to the compiler or linker for good
14160 # libtool support.
14161 case $host in
14162 ia64-*-hpux*)
14163 # Find out which ABI we are using.
14164 echo 'int i;' > conftest.$ac_ext
14165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14166 (eval $ac_compile) 2>&5
14167 ac_status=$?
14168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14169 test $ac_status = 0; }; then
14170 case `/usr/bin/file conftest.$ac_objext` in
14171 *ELF-32*)
14172 HPUX_IA64_MODE="32"
14174 *ELF-64*)
14175 HPUX_IA64_MODE="64"
14177 esac
14179 rm -rf conftest*
14181 *-*-irix6*)
14182 # Find out which ABI we are using.
14183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185 (eval $ac_compile) 2>&5
14186 ac_status=$?
14187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14188 test $ac_status = 0; }; then
14189 if test "$lt_cv_prog_gnu_ld" = yes; then
14190 case `/usr/bin/file conftest.$ac_objext` in
14191 *32-bit*)
14192 LD="${LD-ld} -melf32bsmip"
14194 *N32*)
14195 LD="${LD-ld} -melf32bmipn32"
14197 *64-bit*)
14198 LD="${LD-ld} -melf64bmip"
14200 esac
14201 else
14202 case `/usr/bin/file conftest.$ac_objext` in
14203 *32-bit*)
14204 LD="${LD-ld} -32"
14206 *N32*)
14207 LD="${LD-ld} -n32"
14209 *64-bit*)
14210 LD="${LD-ld} -64"
14212 esac
14215 rm -rf conftest*
14218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14220 # Find out which ABI we are using.
14221 echo 'int i;' > conftest.$ac_ext
14222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14223 (eval $ac_compile) 2>&5
14224 ac_status=$?
14225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14226 test $ac_status = 0; }; then
14227 case `/usr/bin/file conftest.o` in
14228 *32-bit*)
14229 case $host in
14230 x86_64-*kfreebsd*-gnu)
14231 LD="${LD-ld} -m elf_i386_fbsd"
14233 x86_64-*linux*)
14234 case `/usr/bin/file conftest.o` in
14235 *x86-64*)
14236 LD="${LD-ld} -m elf32_x86_64"
14239 LD="${LD-ld} -m elf_i386"
14241 esac
14243 powerpc64le-*linux*)
14244 LD="${LD-ld} -m elf32lppclinux"
14246 powerpc64-*linux*)
14247 LD="${LD-ld} -m elf32ppclinux"
14249 s390x-*linux*)
14250 LD="${LD-ld} -m elf_s390"
14252 sparc64-*linux*)
14253 LD="${LD-ld} -m elf32_sparc"
14255 esac
14257 *64-bit*)
14258 case $host in
14259 x86_64-*kfreebsd*-gnu)
14260 LD="${LD-ld} -m elf_x86_64_fbsd"
14262 x86_64-*linux*)
14263 LD="${LD-ld} -m elf_x86_64"
14265 powerpcle-*linux*)
14266 LD="${LD-ld} -m elf64lppc"
14268 powerpc-*linux*)
14269 LD="${LD-ld} -m elf64ppc"
14271 s390*-*linux*|s390*-*tpf*)
14272 LD="${LD-ld} -m elf64_s390"
14274 sparc*-*linux*)
14275 LD="${LD-ld} -m elf64_sparc"
14277 esac
14279 esac
14281 rm -rf conftest*
14284 *-*-sco3.2v5*)
14285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14286 SAVE_CFLAGS="$CFLAGS"
14287 CFLAGS="$CFLAGS -belf"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14290 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 ac_ext=c
14294 ac_cpp='$CPP $CPPFLAGS'
14295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14303 main ()
14307 return 0;
14309 _ACEOF
14310 if ac_fn_c_try_link "$LINENO"; then :
14311 lt_cv_cc_needs_belf=yes
14312 else
14313 lt_cv_cc_needs_belf=no
14315 rm -f core conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 ac_ext=c
14318 ac_cpp='$CPP $CPPFLAGS'
14319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14328 CFLAGS="$SAVE_CFLAGS"
14331 sparc*-*solaris*)
14332 # Find out which ABI we are using.
14333 echo 'int i;' > conftest.$ac_ext
14334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14335 (eval $ac_compile) 2>&5
14336 ac_status=$?
14337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14338 test $ac_status = 0; }; then
14339 case `/usr/bin/file conftest.o` in
14340 *64-bit*)
14341 case $lt_cv_prog_gnu_ld in
14342 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14344 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14345 LD="${LD-ld} -64"
14348 esac
14350 esac
14352 rm -rf conftest*
14354 esac
14356 need_locks="$enable_libtool_lock"
14359 case $host_os in
14360 rhapsody* | darwin*)
14361 if test -n "$ac_tool_prefix"; then
14362 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14363 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14365 $as_echo_n "checking for $ac_word... " >&6; }
14366 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 if test -n "$DSYMUTIL"; then
14370 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14371 else
14372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373 for as_dir in $PATH
14375 IFS=$as_save_IFS
14376 test -z "$as_dir" && as_dir=.
14377 for ac_exec_ext in '' $ac_executable_extensions; do
14378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14379 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14381 break 2
14383 done
14384 done
14385 IFS=$as_save_IFS
14389 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14390 if test -n "$DSYMUTIL"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14392 $as_echo "$DSYMUTIL" >&6; }
14393 else
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14400 if test -z "$ac_cv_prog_DSYMUTIL"; then
14401 ac_ct_DSYMUTIL=$DSYMUTIL
14402 # Extract the first word of "dsymutil", so it can be a program name with args.
14403 set dummy dsymutil; ac_word=$2
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14405 $as_echo_n "checking for $ac_word... " >&6; }
14406 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 if test -n "$ac_ct_DSYMUTIL"; then
14410 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14411 else
14412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413 for as_dir in $PATH
14415 IFS=$as_save_IFS
14416 test -z "$as_dir" && as_dir=.
14417 for ac_exec_ext in '' $ac_executable_extensions; do
14418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14419 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14421 break 2
14423 done
14424 done
14425 IFS=$as_save_IFS
14429 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14430 if test -n "$ac_ct_DSYMUTIL"; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14432 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14433 else
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14438 if test "x$ac_ct_DSYMUTIL" = x; then
14439 DSYMUTIL=":"
14440 else
14441 case $cross_compiling:$ac_tool_warned in
14442 yes:)
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14445 ac_tool_warned=yes ;;
14446 esac
14447 DSYMUTIL=$ac_ct_DSYMUTIL
14449 else
14450 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14453 if test -n "$ac_tool_prefix"; then
14454 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14455 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14457 $as_echo_n "checking for $ac_word... " >&6; }
14458 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 if test -n "$NMEDIT"; then
14462 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14463 else
14464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465 for as_dir in $PATH
14467 IFS=$as_save_IFS
14468 test -z "$as_dir" && as_dir=.
14469 for ac_exec_ext in '' $ac_executable_extensions; do
14470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14471 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14473 break 2
14475 done
14476 done
14477 IFS=$as_save_IFS
14481 NMEDIT=$ac_cv_prog_NMEDIT
14482 if test -n "$NMEDIT"; then
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14484 $as_echo "$NMEDIT" >&6; }
14485 else
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 $as_echo "no" >&6; }
14492 if test -z "$ac_cv_prog_NMEDIT"; then
14493 ac_ct_NMEDIT=$NMEDIT
14494 # Extract the first word of "nmedit", so it can be a program name with args.
14495 set dummy nmedit; ac_word=$2
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14497 $as_echo_n "checking for $ac_word... " >&6; }
14498 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14499 $as_echo_n "(cached) " >&6
14500 else
14501 if test -n "$ac_ct_NMEDIT"; then
14502 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14503 else
14504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14505 for as_dir in $PATH
14507 IFS=$as_save_IFS
14508 test -z "$as_dir" && as_dir=.
14509 for ac_exec_ext in '' $ac_executable_extensions; do
14510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14511 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14513 break 2
14515 done
14516 done
14517 IFS=$as_save_IFS
14521 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14522 if test -n "$ac_ct_NMEDIT"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14524 $as_echo "$ac_ct_NMEDIT" >&6; }
14525 else
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527 $as_echo "no" >&6; }
14530 if test "x$ac_ct_NMEDIT" = x; then
14531 NMEDIT=":"
14532 else
14533 case $cross_compiling:$ac_tool_warned in
14534 yes:)
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14537 ac_tool_warned=yes ;;
14538 esac
14539 NMEDIT=$ac_ct_NMEDIT
14541 else
14542 NMEDIT="$ac_cv_prog_NMEDIT"
14545 if test -n "$ac_tool_prefix"; then
14546 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14549 $as_echo_n "checking for $ac_word... " >&6; }
14550 if test "${ac_cv_prog_LIPO+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 if test -n "$LIPO"; then
14554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14555 else
14556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557 for as_dir in $PATH
14559 IFS=$as_save_IFS
14560 test -z "$as_dir" && as_dir=.
14561 for ac_exec_ext in '' $ac_executable_extensions; do
14562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14565 break 2
14567 done
14568 done
14569 IFS=$as_save_IFS
14573 LIPO=$ac_cv_prog_LIPO
14574 if test -n "$LIPO"; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14576 $as_echo "$LIPO" >&6; }
14577 else
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579 $as_echo "no" >&6; }
14584 if test -z "$ac_cv_prog_LIPO"; then
14585 ac_ct_LIPO=$LIPO
14586 # Extract the first word of "lipo", so it can be a program name with args.
14587 set dummy lipo; ac_word=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 if test -n "$ac_ct_LIPO"; then
14594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14595 else
14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14599 IFS=$as_save_IFS
14600 test -z "$as_dir" && as_dir=.
14601 for ac_exec_ext in '' $ac_executable_extensions; do
14602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14603 ac_cv_prog_ac_ct_LIPO="lipo"
14604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605 break 2
14607 done
14608 done
14609 IFS=$as_save_IFS
14613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14614 if test -n "$ac_ct_LIPO"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14616 $as_echo "$ac_ct_LIPO" >&6; }
14617 else
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14622 if test "x$ac_ct_LIPO" = x; then
14623 LIPO=":"
14624 else
14625 case $cross_compiling:$ac_tool_warned in
14626 yes:)
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14629 ac_tool_warned=yes ;;
14630 esac
14631 LIPO=$ac_ct_LIPO
14633 else
14634 LIPO="$ac_cv_prog_LIPO"
14637 if test -n "$ac_tool_prefix"; then
14638 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14639 set dummy ${ac_tool_prefix}otool; ac_word=$2
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14641 $as_echo_n "checking for $ac_word... " >&6; }
14642 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14643 $as_echo_n "(cached) " >&6
14644 else
14645 if test -n "$OTOOL"; then
14646 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14647 else
14648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649 for as_dir in $PATH
14651 IFS=$as_save_IFS
14652 test -z "$as_dir" && as_dir=.
14653 for ac_exec_ext in '' $ac_executable_extensions; do
14654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14655 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14657 break 2
14659 done
14660 done
14661 IFS=$as_save_IFS
14665 OTOOL=$ac_cv_prog_OTOOL
14666 if test -n "$OTOOL"; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14668 $as_echo "$OTOOL" >&6; }
14669 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14671 $as_echo "no" >&6; }
14676 if test -z "$ac_cv_prog_OTOOL"; then
14677 ac_ct_OTOOL=$OTOOL
14678 # Extract the first word of "otool", so it can be a program name with args.
14679 set dummy otool; ac_word=$2
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14681 $as_echo_n "checking for $ac_word... " >&6; }
14682 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 if test -n "$ac_ct_OTOOL"; then
14686 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14687 else
14688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689 for as_dir in $PATH
14691 IFS=$as_save_IFS
14692 test -z "$as_dir" && as_dir=.
14693 for ac_exec_ext in '' $ac_executable_extensions; do
14694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14695 ac_cv_prog_ac_ct_OTOOL="otool"
14696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14697 break 2
14699 done
14700 done
14701 IFS=$as_save_IFS
14705 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14706 if test -n "$ac_ct_OTOOL"; then
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14708 $as_echo "$ac_ct_OTOOL" >&6; }
14709 else
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711 $as_echo "no" >&6; }
14714 if test "x$ac_ct_OTOOL" = x; then
14715 OTOOL=":"
14716 else
14717 case $cross_compiling:$ac_tool_warned in
14718 yes:)
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14721 ac_tool_warned=yes ;;
14722 esac
14723 OTOOL=$ac_ct_OTOOL
14725 else
14726 OTOOL="$ac_cv_prog_OTOOL"
14729 if test -n "$ac_tool_prefix"; then
14730 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14731 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14733 $as_echo_n "checking for $ac_word... " >&6; }
14734 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14735 $as_echo_n "(cached) " >&6
14736 else
14737 if test -n "$OTOOL64"; then
14738 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14739 else
14740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14741 for as_dir in $PATH
14743 IFS=$as_save_IFS
14744 test -z "$as_dir" && as_dir=.
14745 for ac_exec_ext in '' $ac_executable_extensions; do
14746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14747 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14749 break 2
14751 done
14752 done
14753 IFS=$as_save_IFS
14757 OTOOL64=$ac_cv_prog_OTOOL64
14758 if test -n "$OTOOL64"; then
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14760 $as_echo "$OTOOL64" >&6; }
14761 else
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763 $as_echo "no" >&6; }
14768 if test -z "$ac_cv_prog_OTOOL64"; then
14769 ac_ct_OTOOL64=$OTOOL64
14770 # Extract the first word of "otool64", so it can be a program name with args.
14771 set dummy otool64; ac_word=$2
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14773 $as_echo_n "checking for $ac_word... " >&6; }
14774 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 if test -n "$ac_ct_OTOOL64"; then
14778 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14779 else
14780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14781 for as_dir in $PATH
14783 IFS=$as_save_IFS
14784 test -z "$as_dir" && as_dir=.
14785 for ac_exec_ext in '' $ac_executable_extensions; do
14786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14787 ac_cv_prog_ac_ct_OTOOL64="otool64"
14788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14789 break 2
14791 done
14792 done
14793 IFS=$as_save_IFS
14797 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14798 if test -n "$ac_ct_OTOOL64"; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14800 $as_echo "$ac_ct_OTOOL64" >&6; }
14801 else
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14803 $as_echo "no" >&6; }
14806 if test "x$ac_ct_OTOOL64" = x; then
14807 OTOOL64=":"
14808 else
14809 case $cross_compiling:$ac_tool_warned in
14810 yes:)
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14813 ac_tool_warned=yes ;;
14814 esac
14815 OTOOL64=$ac_ct_OTOOL64
14817 else
14818 OTOOL64="$ac_cv_prog_OTOOL64"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14848 $as_echo_n "checking for -single_module linker flag... " >&6; }
14849 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14850 $as_echo_n "(cached) " >&6
14851 else
14852 lt_cv_apple_cc_single_mod=no
14853 if test -z "${LT_MULTI_MODULE}"; then
14854 # By default we will add the -single_module flag. You can override
14855 # by either setting the environment variable LT_MULTI_MODULE
14856 # non-empty at configure time, or by adding -multi_module to the
14857 # link flags.
14858 rm -rf libconftest.dylib*
14859 echo "int foo(void){return 1;}" > conftest.c
14860 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14861 -dynamiclib -Wl,-single_module conftest.c" >&5
14862 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14863 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14864 _lt_result=$?
14865 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14866 lt_cv_apple_cc_single_mod=yes
14867 else
14868 cat conftest.err >&5
14870 rm -rf libconftest.dylib*
14871 rm -f conftest.*
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14875 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14877 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14878 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 lt_cv_ld_exported_symbols_list=no
14882 save_LDFLAGS=$LDFLAGS
14883 echo "_main" > conftest.sym
14884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14889 main ()
14893 return 0;
14895 _ACEOF
14896 if ac_fn_c_try_link "$LINENO"; then :
14897 lt_cv_ld_exported_symbols_list=yes
14898 else
14899 lt_cv_ld_exported_symbols_list=no
14901 rm -f core conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14903 LDFLAGS="$save_LDFLAGS"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14907 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14909 $as_echo_n "checking for -force_load linker flag... " >&6; }
14910 if test "${lt_cv_ld_force_load+set}" = set; then :
14911 $as_echo_n "(cached) " >&6
14912 else
14913 lt_cv_ld_force_load=no
14914 cat > conftest.c << _LT_EOF
14915 int forced_loaded() { return 2;}
14916 _LT_EOF
14917 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14918 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14919 echo "$AR cru libconftest.a conftest.o" >&5
14920 $AR cru libconftest.a conftest.o 2>&5
14921 cat > conftest.c << _LT_EOF
14922 int main() { return 0;}
14923 _LT_EOF
14924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14925 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14926 _lt_result=$?
14927 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14928 lt_cv_ld_force_load=yes
14929 else
14930 cat conftest.err >&5
14932 rm -f conftest.err libconftest.a conftest conftest.c
14933 rm -rf conftest.dSYM
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14937 $as_echo "$lt_cv_ld_force_load" >&6; }
14938 case $host_os in
14939 rhapsody* | darwin1.[012])
14940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14941 darwin1.*)
14942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14943 darwin*) # darwin 5.x on
14944 # if running on 10.5 or later, the deployment target defaults
14945 # to the OS version, if on x86, and 10.4, the deployment
14946 # target defaults to 10.4. Don't you love it?
14947 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14948 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14950 10.[012][,.]*)
14951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14952 10.*)
14953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14954 esac
14956 esac
14957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14958 _lt_dar_single_mod='$single_module'
14960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14962 else
14963 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14965 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14966 _lt_dsymutil='~$DSYMUTIL $lib || :'
14967 else
14968 _lt_dsymutil=
14971 esac
14974 for ac_header in dlfcn.h
14975 do :
14976 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14977 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_DLFCN_H 1
14980 _ACEOF
14983 done
14989 # Set options
14993 enable_dlopen=no
14996 enable_win32_dll=no
14999 # Check whether --enable-shared was given.
15000 if test "${enable_shared+set}" = set; then :
15001 enableval=$enable_shared; p=${PACKAGE-default}
15002 case $enableval in
15003 yes) enable_shared=yes ;;
15004 no) enable_shared=no ;;
15006 enable_shared=no
15007 # Look at the argument we got. We use all the common list separators.
15008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15009 for pkg in $enableval; do
15010 IFS="$lt_save_ifs"
15011 if test "X$pkg" = "X$p"; then
15012 enable_shared=yes
15014 done
15015 IFS="$lt_save_ifs"
15017 esac
15018 else
15019 enable_shared=yes
15030 # Check whether --enable-static was given.
15031 if test "${enable_static+set}" = set; then :
15032 enableval=$enable_static; p=${PACKAGE-default}
15033 case $enableval in
15034 yes) enable_static=yes ;;
15035 no) enable_static=no ;;
15037 enable_static=no
15038 # Look at the argument we got. We use all the common list separators.
15039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15040 for pkg in $enableval; do
15041 IFS="$lt_save_ifs"
15042 if test "X$pkg" = "X$p"; then
15043 enable_static=yes
15045 done
15046 IFS="$lt_save_ifs"
15048 esac
15049 else
15050 enable_static=yes
15062 # Check whether --with-pic was given.
15063 if test "${with_pic+set}" = set; then :
15064 withval=$with_pic; pic_mode="$withval"
15065 else
15066 pic_mode=default
15070 test -z "$pic_mode" && pic_mode=default
15078 # Check whether --enable-fast-install was given.
15079 if test "${enable_fast_install+set}" = set; then :
15080 enableval=$enable_fast_install; p=${PACKAGE-default}
15081 case $enableval in
15082 yes) enable_fast_install=yes ;;
15083 no) enable_fast_install=no ;;
15085 enable_fast_install=no
15086 # Look at the argument we got. We use all the common list separators.
15087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15088 for pkg in $enableval; do
15089 IFS="$lt_save_ifs"
15090 if test "X$pkg" = "X$p"; then
15091 enable_fast_install=yes
15093 done
15094 IFS="$lt_save_ifs"
15096 esac
15097 else
15098 enable_fast_install=yes
15111 # This can be used to rebuild libtool when needed
15112 LIBTOOL_DEPS="$ltmain"
15114 # Always use our own libtool.
15115 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15142 test -z "$LN_S" && LN_S="ln -s"
15157 if test -n "${ZSH_VERSION+set}" ; then
15158 setopt NO_GLOB_SUBST
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15162 $as_echo_n "checking for objdir... " >&6; }
15163 if test "${lt_cv_objdir+set}" = set; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 rm -f .libs 2>/dev/null
15167 mkdir .libs 2>/dev/null
15168 if test -d .libs; then
15169 lt_cv_objdir=.libs
15170 else
15171 # MS-DOS does not allow filenames that begin with a dot.
15172 lt_cv_objdir=_libs
15174 rmdir .libs 2>/dev/null
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15177 $as_echo "$lt_cv_objdir" >&6; }
15178 objdir=$lt_cv_objdir
15184 cat >>confdefs.h <<_ACEOF
15185 #define LT_OBJDIR "$lt_cv_objdir/"
15186 _ACEOF
15191 case $host_os in
15192 aix3*)
15193 # AIX sometimes has problems with the GCC collect2 program. For some
15194 # reason, if we set the COLLECT_NAMES environment variable, the problems
15195 # vanish in a puff of smoke.
15196 if test "X${COLLECT_NAMES+set}" != Xset; then
15197 COLLECT_NAMES=
15198 export COLLECT_NAMES
15201 esac
15203 # Global variables:
15204 ofile=libtool
15205 can_build_shared=yes
15207 # All known linkers require a `.a' archive for static linking (except MSVC,
15208 # which needs '.lib').
15209 libext=a
15211 with_gnu_ld="$lt_cv_prog_gnu_ld"
15213 old_CC="$CC"
15214 old_CFLAGS="$CFLAGS"
15216 # Set sane defaults for various variables
15217 test -z "$CC" && CC=cc
15218 test -z "$LTCC" && LTCC=$CC
15219 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15220 test -z "$LD" && LD=ld
15221 test -z "$ac_objext" && ac_objext=o
15223 for cc_temp in $compiler""; do
15224 case $cc_temp in
15225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15227 \-*) ;;
15228 *) break;;
15229 esac
15230 done
15231 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15234 # Only perform the check for file, if the check method requires it
15235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15236 case $deplibs_check_method in
15237 file_magic*)
15238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15240 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15241 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 case $MAGIC_CMD in
15245 [\\/*] | ?:[\\/]*)
15246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15249 lt_save_MAGIC_CMD="$MAGIC_CMD"
15250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15252 for ac_dir in $ac_dummy; do
15253 IFS="$lt_save_ifs"
15254 test -z "$ac_dir" && ac_dir=.
15255 if test -f $ac_dir/${ac_tool_prefix}file; then
15256 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15257 if test -n "$file_magic_test_file"; then
15258 case $deplibs_check_method in
15259 "file_magic "*)
15260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15263 $EGREP "$file_magic_regex" > /dev/null; then
15265 else
15266 cat <<_LT_EOF 1>&2
15268 *** Warning: the command libtool uses to detect shared libraries,
15269 *** $file_magic_cmd, produces output that libtool cannot recognize.
15270 *** The result is that libtool may fail to recognize shared libraries
15271 *** as such. This will affect the creation of libtool libraries that
15272 *** depend on shared libraries, but programs linked with such libtool
15273 *** libraries will work regardless of this problem. Nevertheless, you
15274 *** may want to report the problem to your system manager and/or to
15275 *** bug-libtool@gnu.org
15277 _LT_EOF
15278 fi ;;
15279 esac
15281 break
15283 done
15284 IFS="$lt_save_ifs"
15285 MAGIC_CMD="$lt_save_MAGIC_CMD"
15287 esac
15290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15291 if test -n "$MAGIC_CMD"; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15293 $as_echo "$MAGIC_CMD" >&6; }
15294 else
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "no" >&6; }
15303 if test -z "$lt_cv_path_MAGIC_CMD"; then
15304 if test -n "$ac_tool_prefix"; then
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15306 $as_echo_n "checking for file... " >&6; }
15307 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15308 $as_echo_n "(cached) " >&6
15309 else
15310 case $MAGIC_CMD in
15311 [\\/*] | ?:[\\/]*)
15312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15315 lt_save_MAGIC_CMD="$MAGIC_CMD"
15316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15318 for ac_dir in $ac_dummy; do
15319 IFS="$lt_save_ifs"
15320 test -z "$ac_dir" && ac_dir=.
15321 if test -f $ac_dir/file; then
15322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15323 if test -n "$file_magic_test_file"; then
15324 case $deplibs_check_method in
15325 "file_magic "*)
15326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15329 $EGREP "$file_magic_regex" > /dev/null; then
15331 else
15332 cat <<_LT_EOF 1>&2
15334 *** Warning: the command libtool uses to detect shared libraries,
15335 *** $file_magic_cmd, produces output that libtool cannot recognize.
15336 *** The result is that libtool may fail to recognize shared libraries
15337 *** as such. This will affect the creation of libtool libraries that
15338 *** depend on shared libraries, but programs linked with such libtool
15339 *** libraries will work regardless of this problem. Nevertheless, you
15340 *** may want to report the problem to your system manager and/or to
15341 *** bug-libtool@gnu.org
15343 _LT_EOF
15344 fi ;;
15345 esac
15347 break
15349 done
15350 IFS="$lt_save_ifs"
15351 MAGIC_CMD="$lt_save_MAGIC_CMD"
15353 esac
15356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15357 if test -n "$MAGIC_CMD"; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15359 $as_echo "$MAGIC_CMD" >&6; }
15360 else
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15362 $as_echo "no" >&6; }
15366 else
15367 MAGIC_CMD=:
15373 esac
15375 # Use C for the default configuration in the libtool script
15377 lt_save_CC="$CC"
15378 ac_ext=c
15379 ac_cpp='$CPP $CPPFLAGS'
15380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15385 # Source file extension for C test sources.
15386 ac_ext=c
15388 # Object file extension for compiled C test sources.
15389 objext=o
15390 objext=$objext
15392 # Code to be used in simple compile tests
15393 lt_simple_compile_test_code="int some_variable = 0;"
15395 # Code to be used in simple link tests
15396 lt_simple_link_test_code='int main(){return(0);}'
15404 # If no C compiler was specified, use CC.
15405 LTCC=${LTCC-"$CC"}
15407 # If no C compiler flags were specified, use CFLAGS.
15408 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15410 # Allow CC to be a program name with arguments.
15411 compiler=$CC
15413 # Save the default compiler, since it gets overwritten when the other
15414 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15415 compiler_DEFAULT=$CC
15417 # save warnings/boilerplate of simple test code
15418 ac_outfile=conftest.$ac_objext
15419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15421 _lt_compiler_boilerplate=`cat conftest.err`
15422 $RM conftest*
15424 ac_outfile=conftest.$ac_objext
15425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15427 _lt_linker_boilerplate=`cat conftest.err`
15428 $RM -r conftest*
15431 ## CAVEAT EMPTOR:
15432 ## There is no encapsulation within the following macros, do not change
15433 ## the running order or otherwise move them around unless you know exactly
15434 ## what you are doing...
15435 if test -n "$compiler"; then
15437 lt_prog_compiler_no_builtin_flag=
15439 if test "$GCC" = yes; then
15440 case $cc_basename in
15441 nvcc*)
15442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15445 esac
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15450 $as_echo_n "(cached) " >&6
15451 else
15452 lt_cv_prog_compiler_rtti_exceptions=no
15453 ac_outfile=conftest.$ac_objext
15454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15455 lt_compiler_flag="-fno-rtti -fno-exceptions"
15456 # Insert the option either (1) after the last *FLAGS variable, or
15457 # (2) before a word containing "conftest.", or (3) at the end.
15458 # Note that $ac_compile itself does not contain backslashes and begins
15459 # with a dollar sign (not a hyphen), so the echo should work correctly.
15460 # The option is referenced via a variable to avoid confusing sed.
15461 lt_compile=`echo "$ac_compile" | $SED \
15462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15464 -e 's:$: $lt_compiler_flag:'`
15465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15466 (eval "$lt_compile" 2>conftest.err)
15467 ac_status=$?
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 if (exit $ac_status) && test -s "$ac_outfile"; then
15471 # The compiler can only warn and ignore the option if not recognized
15472 # So say no if there are warnings other than the usual output.
15473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15476 lt_cv_prog_compiler_rtti_exceptions=yes
15479 $RM conftest*
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15487 else
15498 lt_prog_compiler_wl=
15499 lt_prog_compiler_pic=
15500 lt_prog_compiler_static=
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15503 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15505 if test "$GCC" = yes; then
15506 lt_prog_compiler_wl='-Wl,'
15507 lt_prog_compiler_static='-static'
15509 case $host_os in
15510 aix*)
15511 # All AIX code is PIC.
15512 if test "$host_cpu" = ia64; then
15513 # AIX 5 now supports IA64 processor
15514 lt_prog_compiler_static='-Bstatic'
15516 lt_prog_compiler_pic='-fPIC'
15519 amigaos*)
15520 case $host_cpu in
15521 powerpc)
15522 # see comment about AmigaOS4 .so support
15523 lt_prog_compiler_pic='-fPIC'
15525 m68k)
15526 # FIXME: we need at least 68020 code to build shared libraries, but
15527 # adding the `-m68020' flag to GCC prevents building anything better,
15528 # like `-m68040'.
15529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15531 esac
15534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15535 # PIC is the default for these OSes.
15538 mingw* | cygwin* | pw32* | os2* | cegcc*)
15539 # This hack is so that the source file can tell whether it is being
15540 # built for inclusion in a dll (and should export symbols for example).
15541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15542 # (--disable-auto-import) libraries
15543 lt_prog_compiler_pic='-DDLL_EXPORT'
15546 darwin* | rhapsody*)
15547 # PIC is the default on this platform
15548 # Common symbols not allowed in MH_DYLIB files
15549 lt_prog_compiler_pic='-fno-common'
15552 haiku*)
15553 # PIC is the default for Haiku.
15554 # The "-static" flag exists, but is broken.
15555 lt_prog_compiler_static=
15558 hpux*)
15559 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15560 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15561 # sets the default TLS model and affects inlining.
15562 case $host_cpu in
15563 hppa*64*)
15564 # +Z the default
15567 lt_prog_compiler_pic='-fPIC'
15569 esac
15572 interix[3-9]*)
15573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15574 # Instead, we relocate shared libraries at runtime.
15577 msdosdjgpp*)
15578 # Just because we use GCC doesn't mean we suddenly get shared libraries
15579 # on systems that don't support them.
15580 lt_prog_compiler_can_build_shared=no
15581 enable_shared=no
15584 *nto* | *qnx*)
15585 # QNX uses GNU C++, but need to define -shared option too, otherwise
15586 # it will coredump.
15587 lt_prog_compiler_pic='-fPIC -shared'
15590 sysv4*MP*)
15591 if test -d /usr/nec; then
15592 lt_prog_compiler_pic=-Kconform_pic
15597 lt_prog_compiler_pic='-fPIC'
15599 esac
15601 case $cc_basename in
15602 nvcc*) # Cuda Compiler Driver 2.2
15603 lt_prog_compiler_wl='-Xlinker '
15604 lt_prog_compiler_pic='-Xcompiler -fPIC'
15606 esac
15607 else
15608 # PORTME Check for flag to pass linker flags through the system compiler.
15609 case $host_os in
15610 aix*)
15611 lt_prog_compiler_wl='-Wl,'
15612 if test "$host_cpu" = ia64; then
15613 # AIX 5 now supports IA64 processor
15614 lt_prog_compiler_static='-Bstatic'
15615 else
15616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15620 mingw* | cygwin* | pw32* | os2* | cegcc*)
15621 # This hack is so that the source file can tell whether it is being
15622 # built for inclusion in a dll (and should export symbols for example).
15623 lt_prog_compiler_pic='-DDLL_EXPORT'
15626 hpux9* | hpux10* | hpux11*)
15627 lt_prog_compiler_wl='-Wl,'
15628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15629 # not for PA HP-UX.
15630 case $host_cpu in
15631 hppa*64*|ia64*)
15632 # +Z the default
15635 lt_prog_compiler_pic='+Z'
15637 esac
15638 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15639 lt_prog_compiler_static='${wl}-a ${wl}archive'
15642 irix5* | irix6* | nonstopux*)
15643 lt_prog_compiler_wl='-Wl,'
15644 # PIC (with -KPIC) is the default.
15645 lt_prog_compiler_static='-non_shared'
15648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15649 case $cc_basename in
15650 # old Intel for x86_64 which still supported -KPIC.
15651 ecc*)
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-static'
15656 # icc used to be incompatible with GCC.
15657 # ICC 10 doesn't accept -KPIC any more.
15658 icc* | ifort*)
15659 lt_prog_compiler_wl='-Wl,'
15660 lt_prog_compiler_pic='-fPIC'
15661 lt_prog_compiler_static='-static'
15663 # Lahey Fortran 8.1.
15664 lf95*)
15665 lt_prog_compiler_wl='-Wl,'
15666 lt_prog_compiler_pic='--shared'
15667 lt_prog_compiler_static='--static'
15669 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15670 # Portland Group compilers (*not* the Pentium gcc compiler,
15671 # which looks to be a dead project)
15672 lt_prog_compiler_wl='-Wl,'
15673 lt_prog_compiler_pic='-fpic'
15674 lt_prog_compiler_static='-Bstatic'
15676 ccc*)
15677 lt_prog_compiler_wl='-Wl,'
15678 # All Alpha code is PIC.
15679 lt_prog_compiler_static='-non_shared'
15681 xl* | bgxl* | bgf* | mpixl*)
15682 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15683 lt_prog_compiler_wl='-Wl,'
15684 lt_prog_compiler_pic='-qpic'
15685 lt_prog_compiler_static='-qstaticlink'
15688 case `$CC -V 2>&1 | sed 5q` in
15689 *Sun\ F* | *Sun*Fortran*)
15690 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15691 lt_prog_compiler_pic='-KPIC'
15692 lt_prog_compiler_static='-Bstatic'
15693 lt_prog_compiler_wl=''
15695 *Sun\ C*)
15696 # Sun C 5.9
15697 lt_prog_compiler_pic='-KPIC'
15698 lt_prog_compiler_static='-Bstatic'
15699 lt_prog_compiler_wl='-Wl,'
15701 esac
15703 esac
15706 newsos6)
15707 lt_prog_compiler_pic='-KPIC'
15708 lt_prog_compiler_static='-Bstatic'
15711 *nto* | *qnx*)
15712 # QNX uses GNU C++, but need to define -shared option too, otherwise
15713 # it will coredump.
15714 lt_prog_compiler_pic='-fPIC -shared'
15717 osf3* | osf4* | osf5*)
15718 lt_prog_compiler_wl='-Wl,'
15719 # All OSF/1 code is PIC.
15720 lt_prog_compiler_static='-non_shared'
15723 rdos*)
15724 lt_prog_compiler_static='-non_shared'
15727 solaris*)
15728 lt_prog_compiler_pic='-KPIC'
15729 lt_prog_compiler_static='-Bstatic'
15730 case $cc_basename in
15731 f77* | f90* | f95*)
15732 lt_prog_compiler_wl='-Qoption ld ';;
15734 lt_prog_compiler_wl='-Wl,';;
15735 esac
15738 sunos4*)
15739 lt_prog_compiler_wl='-Qoption ld '
15740 lt_prog_compiler_pic='-PIC'
15741 lt_prog_compiler_static='-Bstatic'
15744 sysv4 | sysv4.2uw2* | sysv4.3*)
15745 lt_prog_compiler_wl='-Wl,'
15746 lt_prog_compiler_pic='-KPIC'
15747 lt_prog_compiler_static='-Bstatic'
15750 sysv4*MP*)
15751 if test -d /usr/nec ;then
15752 lt_prog_compiler_pic='-Kconform_pic'
15753 lt_prog_compiler_static='-Bstatic'
15757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15758 lt_prog_compiler_wl='-Wl,'
15759 lt_prog_compiler_pic='-KPIC'
15760 lt_prog_compiler_static='-Bstatic'
15763 unicos*)
15764 lt_prog_compiler_wl='-Wl,'
15765 lt_prog_compiler_can_build_shared=no
15768 uts4*)
15769 lt_prog_compiler_pic='-pic'
15770 lt_prog_compiler_static='-Bstatic'
15774 lt_prog_compiler_can_build_shared=no
15776 esac
15779 case $host_os in
15780 # For platforms which do not support PIC, -DPIC is meaningless:
15781 *djgpp*)
15782 lt_prog_compiler_pic=
15785 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15787 esac
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15789 $as_echo "$lt_prog_compiler_pic" >&6; }
15797 # Check to make sure the PIC flag actually works.
15799 if test -n "$lt_prog_compiler_pic"; then
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15801 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15802 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15803 $as_echo_n "(cached) " >&6
15804 else
15805 lt_cv_prog_compiler_pic_works=no
15806 ac_outfile=conftest.$ac_objext
15807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15809 # Insert the option either (1) after the last *FLAGS variable, or
15810 # (2) before a word containing "conftest.", or (3) at the end.
15811 # Note that $ac_compile itself does not contain backslashes and begins
15812 # with a dollar sign (not a hyphen), so the echo should work correctly.
15813 # The option is referenced via a variable to avoid confusing sed.
15814 lt_compile=`echo "$ac_compile" | $SED \
15815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15817 -e 's:$: $lt_compiler_flag:'`
15818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15819 (eval "$lt_compile" 2>conftest.err)
15820 ac_status=$?
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 if (exit $ac_status) && test -s "$ac_outfile"; then
15824 # The compiler can only warn and ignore the option if not recognized
15825 # So say no if there are warnings other than the usual output.
15826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15829 lt_cv_prog_compiler_pic_works=yes
15832 $RM conftest*
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15836 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15838 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15839 case $lt_prog_compiler_pic in
15840 "" | " "*) ;;
15841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15842 esac
15843 else
15844 lt_prog_compiler_pic=
15845 lt_prog_compiler_can_build_shared=no
15856 # Check to make sure the static flag actually works.
15858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15860 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15861 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 lt_cv_prog_compiler_static_works=no
15865 save_LDFLAGS="$LDFLAGS"
15866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15869 # The linker can only warn and ignore the option if not recognized
15870 # So say no if there are warnings
15871 if test -s conftest.err; then
15872 # Append any errors to the config.log.
15873 cat conftest.err 1>&5
15874 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15876 if diff conftest.exp conftest.er2 >/dev/null; then
15877 lt_cv_prog_compiler_static_works=yes
15879 else
15880 lt_cv_prog_compiler_static_works=yes
15883 $RM -r conftest*
15884 LDFLAGS="$save_LDFLAGS"
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15888 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15890 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15892 else
15893 lt_prog_compiler_static=
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15903 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15904 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15906 else
15907 lt_cv_prog_compiler_c_o=no
15908 $RM -r conftest 2>/dev/null
15909 mkdir conftest
15910 cd conftest
15911 mkdir out
15912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15914 lt_compiler_flag="-o out/conftest2.$ac_objext"
15915 # Insert the option either (1) after the last *FLAGS variable, or
15916 # (2) before a word containing "conftest.", or (3) at the end.
15917 # Note that $ac_compile itself does not contain backslashes and begins
15918 # with a dollar sign (not a hyphen), so the echo should work correctly.
15919 lt_compile=`echo "$ac_compile" | $SED \
15920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15922 -e 's:$: $lt_compiler_flag:'`
15923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15924 (eval "$lt_compile" 2>out/conftest.err)
15925 ac_status=$?
15926 cat out/conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15929 then
15930 # The compiler can only warn and ignore the option if not recognized
15931 # So say no if there are warnings
15932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15935 lt_cv_prog_compiler_c_o=yes
15938 chmod u+w . 2>&5
15939 $RM conftest*
15940 # SGI C++ compiler will create directory out/ii_files/ for
15941 # template instantiation
15942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15943 $RM out/* && rmdir out
15944 cd ..
15945 $RM -r conftest
15946 $RM conftest*
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15958 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15959 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 lt_cv_prog_compiler_c_o=no
15963 $RM -r conftest 2>/dev/null
15964 mkdir conftest
15965 cd conftest
15966 mkdir out
15967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15969 lt_compiler_flag="-o out/conftest2.$ac_objext"
15970 # Insert the option either (1) after the last *FLAGS variable, or
15971 # (2) before a word containing "conftest.", or (3) at the end.
15972 # Note that $ac_compile itself does not contain backslashes and begins
15973 # with a dollar sign (not a hyphen), so the echo should work correctly.
15974 lt_compile=`echo "$ac_compile" | $SED \
15975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15977 -e 's:$: $lt_compiler_flag:'`
15978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15979 (eval "$lt_compile" 2>out/conftest.err)
15980 ac_status=$?
15981 cat out/conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15984 then
15985 # The compiler can only warn and ignore the option if not recognized
15986 # So say no if there are warnings
15987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15990 lt_cv_prog_compiler_c_o=yes
15993 chmod u+w . 2>&5
15994 $RM conftest*
15995 # SGI C++ compiler will create directory out/ii_files/ for
15996 # template instantiation
15997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15998 $RM out/* && rmdir out
15999 cd ..
16000 $RM -r conftest
16001 $RM conftest*
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16010 hard_links="nottested"
16011 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16012 # do not overwrite the value of need_locks provided by the user
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16014 $as_echo_n "checking if we can lock with hard links... " >&6; }
16015 hard_links=yes
16016 $RM conftest*
16017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16018 touch conftest.a
16019 ln conftest.a conftest.b 2>&5 || hard_links=no
16020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16022 $as_echo "$hard_links" >&6; }
16023 if test "$hard_links" = no; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16025 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16026 need_locks=warn
16028 else
16029 need_locks=no
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16038 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16040 runpath_var=
16041 allow_undefined_flag=
16042 always_export_symbols=no
16043 archive_cmds=
16044 archive_expsym_cmds=
16045 compiler_needs_object=no
16046 enable_shared_with_static_runtimes=no
16047 export_dynamic_flag_spec=
16048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16049 hardcode_automatic=no
16050 hardcode_direct=no
16051 hardcode_direct_absolute=no
16052 hardcode_libdir_flag_spec=
16053 hardcode_libdir_flag_spec_ld=
16054 hardcode_libdir_separator=
16055 hardcode_minus_L=no
16056 hardcode_shlibpath_var=unsupported
16057 inherit_rpath=no
16058 link_all_deplibs=unknown
16059 module_cmds=
16060 module_expsym_cmds=
16061 old_archive_from_new_cmds=
16062 old_archive_from_expsyms_cmds=
16063 thread_safe_flag_spec=
16064 whole_archive_flag_spec=
16065 # include_expsyms should be a list of space-separated symbols to be *always*
16066 # included in the symbol list
16067 include_expsyms=
16068 # exclude_expsyms can be an extended regexp of symbols to exclude
16069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16071 # as well as any symbol that contains `d'.
16072 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16074 # platforms (ab)use it in PIC code, but their linkers get confused if
16075 # the symbol is explicitly referenced. Since portable code cannot
16076 # rely on this symbol name, it's probably fine to never include it in
16077 # preloaded symbol tables.
16078 # Exclude shared library initialization/finalization symbols.
16079 extract_expsyms_cmds=
16081 case $host_os in
16082 cygwin* | mingw* | pw32* | cegcc*)
16083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16084 # When not using gcc, we currently assume that we are using
16085 # Microsoft Visual C++.
16086 if test "$GCC" != yes; then
16087 with_gnu_ld=no
16090 interix*)
16091 # we just hope/assume this is gcc and not c89 (= MSVC++)
16092 with_gnu_ld=yes
16094 openbsd*)
16095 with_gnu_ld=no
16097 esac
16099 ld_shlibs=yes
16101 # On some targets, GNU ld is compatible enough with the native linker
16102 # that we're better off using the native interface for both.
16103 lt_use_gnu_ld_interface=no
16104 if test "$with_gnu_ld" = yes; then
16105 case $host_os in
16106 aix*)
16107 # The AIX port of GNU ld has always aspired to compatibility
16108 # with the native linker. However, as the warning in the GNU ld
16109 # block says, versions before 2.19.5* couldn't really create working
16110 # shared libraries, regardless of the interface used.
16111 case `$LD -v 2>&1` in
16112 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16113 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16114 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16116 lt_use_gnu_ld_interface=yes
16118 esac
16121 lt_use_gnu_ld_interface=yes
16123 esac
16126 if test "$lt_use_gnu_ld_interface" = yes; then
16127 # If archive_cmds runs LD, not CC, wlarc should be empty
16128 wlarc='${wl}'
16130 # Set some defaults for GNU ld with shared library support. These
16131 # are reset later if shared libraries are not supported. Putting them
16132 # here allows them to be overridden if necessary.
16133 runpath_var=LD_RUN_PATH
16134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16135 export_dynamic_flag_spec='${wl}--export-dynamic'
16136 # ancient GNU ld didn't support --whole-archive et. al.
16137 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16138 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16139 else
16140 whole_archive_flag_spec=
16142 supports_anon_versioning=no
16143 case `$LD -v 2>&1` in
16144 *GNU\ gold*) supports_anon_versioning=yes ;;
16145 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16146 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16147 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16148 *\ 2.11.*) ;; # other 2.11 versions
16149 *) supports_anon_versioning=yes ;;
16150 esac
16152 # See if GNU ld supports shared libraries.
16153 case $host_os in
16154 aix[3-9]*)
16155 # On AIX/PPC, the GNU linker is very broken
16156 if test "$host_cpu" != ia64; then
16157 ld_shlibs=no
16158 cat <<_LT_EOF 1>&2
16160 *** Warning: the GNU linker, at least up to release 2.19, is reported
16161 *** to be unable to reliably create shared libraries on AIX.
16162 *** Therefore, libtool is disabling shared libraries support. If you
16163 *** really care for shared libraries, you may want to install binutils
16164 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16165 *** You will then need to restart the configuration process.
16167 _LT_EOF
16171 amigaos*)
16172 case $host_cpu in
16173 powerpc)
16174 # see comment about AmigaOS4 .so support
16175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16176 archive_expsym_cmds=''
16178 m68k)
16179 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)'
16180 hardcode_libdir_flag_spec='-L$libdir'
16181 hardcode_minus_L=yes
16183 esac
16186 beos*)
16187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16188 allow_undefined_flag=unsupported
16189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16190 # support --undefined. This deserves some investigation. FIXME
16191 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16192 else
16193 ld_shlibs=no
16197 cygwin* | mingw* | pw32* | cegcc*)
16198 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16199 # as there is no search path for DLLs.
16200 hardcode_libdir_flag_spec='-L$libdir'
16201 export_dynamic_flag_spec='${wl}--export-all-symbols'
16202 allow_undefined_flag=unsupported
16203 always_export_symbols=no
16204 enable_shared_with_static_runtimes=yes
16205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16207 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16209 # If the export-symbols file already is a .def file (1st line
16210 # is EXPORTS), use it as is; otherwise, prepend...
16211 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16212 cp $export_symbols $output_objdir/$soname.def;
16213 else
16214 echo EXPORTS > $output_objdir/$soname.def;
16215 cat $export_symbols >> $output_objdir/$soname.def;
16217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16218 else
16219 ld_shlibs=no
16223 haiku*)
16224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16225 link_all_deplibs=yes
16228 interix[3-9]*)
16229 hardcode_direct=no
16230 hardcode_shlibpath_var=no
16231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16232 export_dynamic_flag_spec='${wl}-E'
16233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16234 # Instead, shared libraries are loaded at an image base (0x10000000 by
16235 # default) and relocated if they conflict, which is a slow very memory
16236 # consuming and fragmenting process. To avoid this, we pick a random,
16237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16240 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'
16243 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16244 tmp_diet=no
16245 if test "$host_os" = linux-dietlibc; then
16246 case $cc_basename in
16247 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16248 esac
16250 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16251 && test "$tmp_diet" = no
16252 then
16253 tmp_addflag=' $pic_flag'
16254 tmp_sharedflag='-shared'
16255 case $cc_basename,$host_cpu in
16256 pgcc*) # Portland Group C compiler
16257 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'
16258 tmp_addflag=' $pic_flag'
16260 pgf77* | pgf90* | pgf95* | pgfortran*)
16261 # Portland Group f77 and f90 compilers
16262 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'
16263 tmp_addflag=' $pic_flag -Mnomain' ;;
16264 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16265 tmp_addflag=' -i_dynamic' ;;
16266 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16267 tmp_addflag=' -i_dynamic -nofor_main' ;;
16268 ifc* | ifort*) # Intel Fortran compiler
16269 tmp_addflag=' -nofor_main' ;;
16270 lf95*) # Lahey Fortran 8.1
16271 whole_archive_flag_spec=
16272 tmp_sharedflag='--shared' ;;
16273 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16274 tmp_sharedflag='-qmkshrobj'
16275 tmp_addflag= ;;
16276 nvcc*) # Cuda Compiler Driver 2.2
16277 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16278 compiler_needs_object=yes
16280 esac
16281 case `$CC -V 2>&1 | sed 5q` in
16282 *Sun\ C*) # Sun C 5.9
16283 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'
16284 compiler_needs_object=yes
16285 tmp_sharedflag='-G' ;;
16286 *Sun\ F*) # Sun Fortran 8.3
16287 tmp_sharedflag='-G' ;;
16288 esac
16289 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16291 if test "x$supports_anon_versioning" = xyes; then
16292 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16294 echo "local: *; };" >> $output_objdir/$libname.ver~
16295 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16298 case $cc_basename in
16299 xlf* | bgf* | bgxlf* | mpixlf*)
16300 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16301 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16302 hardcode_libdir_flag_spec=
16303 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16304 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16305 if test "x$supports_anon_versioning" = xyes; then
16306 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16308 echo "local: *; };" >> $output_objdir/$libname.ver~
16309 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16312 esac
16313 else
16314 ld_shlibs=no
16318 netbsd*)
16319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16320 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16321 wlarc=
16322 else
16323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16328 solaris*)
16329 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16330 ld_shlibs=no
16331 cat <<_LT_EOF 1>&2
16333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16334 *** create shared libraries on Solaris systems. Therefore, libtool
16335 *** is disabling shared libraries support. We urge you to upgrade GNU
16336 *** binutils to release 2.9.1 or newer. Another option is to modify
16337 *** your PATH or compiler configuration so that the native linker is
16338 *** used, and then restart.
16340 _LT_EOF
16341 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16344 else
16345 ld_shlibs=no
16349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16350 case `$LD -v 2>&1` in
16351 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16352 ld_shlibs=no
16353 cat <<_LT_EOF 1>&2
16355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16356 *** reliably create shared libraries on SCO systems. Therefore, libtool
16357 *** is disabling shared libraries support. We urge you to upgrade GNU
16358 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16359 *** your PATH or compiler configuration so that the native linker is
16360 *** used, and then restart.
16362 _LT_EOF
16365 # For security reasons, it is highly recommended that you always
16366 # use absolute paths for naming shared libraries, and exclude the
16367 # DT_RUNPATH tag from executables and libraries. But doing so
16368 # requires that you compile everything twice, which is a pain.
16369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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
16380 sunos4*)
16381 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16382 wlarc=
16383 hardcode_direct=yes
16384 hardcode_shlibpath_var=no
16388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16391 else
16392 ld_shlibs=no
16395 esac
16397 if test "$ld_shlibs" = no; then
16398 runpath_var=
16399 hardcode_libdir_flag_spec=
16400 export_dynamic_flag_spec=
16401 whole_archive_flag_spec=
16403 else
16404 # PORTME fill in a description of your system's linker (not GNU ld)
16405 case $host_os in
16406 aix3*)
16407 allow_undefined_flag=unsupported
16408 always_export_symbols=yes
16409 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'
16410 # Note: this linker hardcodes the directories in LIBPATH if there
16411 # are no directories specified by -L.
16412 hardcode_minus_L=yes
16413 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16414 # Neither direct hardcoding nor static linking is supported with a
16415 # broken collect2.
16416 hardcode_direct=unsupported
16420 aix[4-9]*)
16421 if test "$host_cpu" = ia64; then
16422 # On IA64, the linker does run time linking by default, so we don't
16423 # have to do anything special.
16424 aix_use_runtimelinking=no
16425 exp_sym_flag='-Bexport'
16426 no_entry_flag=""
16427 else
16428 # If we're using GNU nm, then we don't want the "-C" option.
16429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16430 # Also, AIX nm treats weak defined symbols like other global
16431 # defined symbols, whereas GNU nm marks them as "W".
16432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16433 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'
16434 else
16435 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'
16437 aix_use_runtimelinking=no
16439 # Test if we are trying to use run time linking or normal
16440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16441 # need to do runtime linking.
16442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16443 for ld_flag in $LDFLAGS; do
16444 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16445 aix_use_runtimelinking=yes
16446 break
16448 done
16450 esac
16452 exp_sym_flag='-bexport'
16453 no_entry_flag='-bnoentry'
16456 # When large executables or shared objects are built, AIX ld can
16457 # have problems creating the table of contents. If linking a library
16458 # or program results in "error TOC overflow" add -mminimal-toc to
16459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16462 archive_cmds=''
16463 hardcode_direct=yes
16464 hardcode_direct_absolute=yes
16465 hardcode_libdir_separator=':'
16466 link_all_deplibs=yes
16467 file_list_spec='${wl}-f,'
16469 if test "$GCC" = yes; then
16470 case $host_os in aix4.[012]|aix4.[012].*)
16471 # We only want to do this on AIX 4.2 and lower, the check
16472 # below for broken collect2 doesn't work under 4.3+
16473 collect2name=`${CC} -print-prog-name=collect2`
16474 if test -f "$collect2name" &&
16475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16476 then
16477 # We have reworked collect2
16479 else
16480 # We have old collect2
16481 hardcode_direct=unsupported
16482 # It fails to find uninstalled libraries when the uninstalled
16483 # path is not listed in the libpath. Setting hardcode_minus_L
16484 # to unsupported forces relinking
16485 hardcode_minus_L=yes
16486 hardcode_libdir_flag_spec='-L$libdir'
16487 hardcode_libdir_separator=
16490 esac
16491 shared_flag='-shared'
16492 if test "$aix_use_runtimelinking" = yes; then
16493 shared_flag="$shared_flag "'${wl}-G'
16495 else
16496 # not using gcc
16497 if test "$host_cpu" = ia64; then
16498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16499 # chokes on -Wl,-G. The following line is correct:
16500 shared_flag='-G'
16501 else
16502 if test "$aix_use_runtimelinking" = yes; then
16503 shared_flag='${wl}-G'
16504 else
16505 shared_flag='${wl}-bM:SRE'
16510 export_dynamic_flag_spec='${wl}-bexpall'
16511 # It seems that -bexpall does not export symbols beginning with
16512 # underscore (_), so it is better to generate a list of symbols to export.
16513 always_export_symbols=yes
16514 if test "$aix_use_runtimelinking" = yes; then
16515 # Warning - without using the other runtime loading flags (-brtl),
16516 # -berok will link without error, but may produce a broken library.
16517 allow_undefined_flag='-berok'
16518 # Determine the default libpath from the value encoded in an
16519 # empty executable.
16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16524 main ()
16528 return 0;
16530 _ACEOF
16531 if ac_fn_c_try_link "$LINENO"; then :
16533 lt_aix_libpath_sed='
16534 /Import File Strings/,/^$/ {
16535 /^0/ {
16536 s/^0 *\(.*\)$/\1/
16540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16541 # Check for a 64-bit object if we didn't find anything.
16542 if test -z "$aix_libpath"; then
16543 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16546 rm -f core conftest.err conftest.$ac_objext \
16547 conftest$ac_exeext conftest.$ac_ext
16548 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16550 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16551 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"
16552 else
16553 if test "$host_cpu" = ia64; then
16554 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16555 allow_undefined_flag="-z nodefs"
16556 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"
16557 else
16558 # Determine the default libpath from the value encoded in an
16559 # empty executable.
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16564 main ()
16568 return 0;
16570 _ACEOF
16571 if ac_fn_c_try_link "$LINENO"; then :
16573 lt_aix_libpath_sed='
16574 /Import File Strings/,/^$/ {
16575 /^0/ {
16576 s/^0 *\(.*\)$/\1/
16580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16581 # Check for a 64-bit object if we didn't find anything.
16582 if test -z "$aix_libpath"; then
16583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16586 rm -f core conftest.err conftest.$ac_objext \
16587 conftest$ac_exeext conftest.$ac_ext
16588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16591 # Warning - without using the other run time loading flags,
16592 # -berok will link without error, but may produce a broken library.
16593 no_undefined_flag=' ${wl}-bernotok'
16594 allow_undefined_flag=' ${wl}-berok'
16595 if test "$with_gnu_ld" = yes; then
16596 # We only use this code for GNU lds that support --whole-archive.
16597 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16598 else
16599 # Exported symbols can be pulled into shared objects from archives
16600 whole_archive_flag_spec='$convenience'
16602 archive_cmds_need_lc=yes
16603 # This is similar to how AIX traditionally builds its shared libraries.
16604 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'
16609 amigaos*)
16610 case $host_cpu in
16611 powerpc)
16612 # see comment about AmigaOS4 .so support
16613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16614 archive_expsym_cmds=''
16616 m68k)
16617 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)'
16618 hardcode_libdir_flag_spec='-L$libdir'
16619 hardcode_minus_L=yes
16621 esac
16624 bsdi[45]*)
16625 export_dynamic_flag_spec=-rdynamic
16628 cygwin* | mingw* | pw32* | cegcc*)
16629 # When not using gcc, we currently assume that we are using
16630 # Microsoft Visual C++.
16631 # hardcode_libdir_flag_spec is actually meaningless, as there is
16632 # no search path for DLLs.
16633 hardcode_libdir_flag_spec=' '
16634 allow_undefined_flag=unsupported
16635 # Tell ltmain to make .lib files, not .a files.
16636 libext=lib
16637 # Tell ltmain to make .dll files, not .so files.
16638 shrext_cmds=".dll"
16639 # FIXME: Setting linknames here is a bad hack.
16640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16641 # The linker will automatically build a .lib file if we build a DLL.
16642 old_archive_from_new_cmds='true'
16643 # FIXME: Should let the user specify the lib program.
16644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16645 fix_srcfile_path='`cygpath -w "$srcfile"`'
16646 enable_shared_with_static_runtimes=yes
16649 darwin* | rhapsody*)
16652 archive_cmds_need_lc=no
16653 hardcode_direct=no
16654 hardcode_automatic=yes
16655 hardcode_shlibpath_var=unsupported
16656 if test "$lt_cv_ld_force_load" = "yes"; then
16657 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\"`'
16658 else
16659 whole_archive_flag_spec=''
16661 link_all_deplibs=yes
16662 allow_undefined_flag="$_lt_dar_allow_undefined"
16663 case $cc_basename in
16664 ifort*) _lt_dar_can_shared=yes ;;
16665 *) _lt_dar_can_shared=$GCC ;;
16666 esac
16667 if test "$_lt_dar_can_shared" = "yes"; then
16668 output_verbose_link_cmd=func_echo_all
16669 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16670 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16671 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}"
16672 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}"
16674 else
16675 ld_shlibs=no
16680 dgux*)
16681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682 hardcode_libdir_flag_spec='-L$libdir'
16683 hardcode_shlibpath_var=no
16686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16687 # support. Future versions do this automatically, but an explicit c++rt0.o
16688 # does not break anything, and helps significantly (at the cost of a little
16689 # extra space).
16690 freebsd2.2*)
16691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16692 hardcode_libdir_flag_spec='-R$libdir'
16693 hardcode_direct=yes
16694 hardcode_shlibpath_var=no
16697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16698 freebsd2.*)
16699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct=yes
16701 hardcode_minus_L=yes
16702 hardcode_shlibpath_var=no
16705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16706 freebsd* | dragonfly*)
16707 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16708 hardcode_libdir_flag_spec='-R$libdir'
16709 hardcode_direct=yes
16710 hardcode_shlibpath_var=no
16713 hpux9*)
16714 if test "$GCC" = yes; then
16715 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'
16716 else
16717 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'
16719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16720 hardcode_libdir_separator=:
16721 hardcode_direct=yes
16723 # hardcode_minus_L: Not really in the search PATH,
16724 # but as the default location of the library.
16725 hardcode_minus_L=yes
16726 export_dynamic_flag_spec='${wl}-E'
16729 hpux10*)
16730 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16732 else
16733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16735 if test "$with_gnu_ld" = no; then
16736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16737 hardcode_libdir_flag_spec_ld='+b $libdir'
16738 hardcode_libdir_separator=:
16739 hardcode_direct=yes
16740 hardcode_direct_absolute=yes
16741 export_dynamic_flag_spec='${wl}-E'
16742 # hardcode_minus_L: Not really in the search PATH,
16743 # but as the default location of the library.
16744 hardcode_minus_L=yes
16748 hpux11*)
16749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16750 case $host_cpu in
16751 hppa*64*)
16752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16754 ia64*)
16755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16760 esac
16761 else
16762 case $host_cpu in
16763 hppa*64*)
16764 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16766 ia64*)
16767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16771 # Older versions of the 11.00 compiler do not understand -b yet
16772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16774 $as_echo_n "checking if $CC understands -b... " >&6; }
16775 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16778 lt_cv_prog_compiler__b=no
16779 save_LDFLAGS="$LDFLAGS"
16780 LDFLAGS="$LDFLAGS -b"
16781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16783 # The linker can only warn and ignore the option if not recognized
16784 # So say no if there are warnings
16785 if test -s conftest.err; then
16786 # Append any errors to the config.log.
16787 cat conftest.err 1>&5
16788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16790 if diff conftest.exp conftest.er2 >/dev/null; then
16791 lt_cv_prog_compiler__b=yes
16793 else
16794 lt_cv_prog_compiler__b=yes
16797 $RM -r conftest*
16798 LDFLAGS="$save_LDFLAGS"
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16804 if test x"$lt_cv_prog_compiler__b" = xyes; then
16805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16806 else
16807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16811 esac
16813 if test "$with_gnu_ld" = no; then
16814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16815 hardcode_libdir_separator=:
16817 case $host_cpu in
16818 hppa*64*|ia64*)
16819 hardcode_direct=no
16820 hardcode_shlibpath_var=no
16823 hardcode_direct=yes
16824 hardcode_direct_absolute=yes
16825 export_dynamic_flag_spec='${wl}-E'
16827 # hardcode_minus_L: Not really in the search PATH,
16828 # but as the default location of the library.
16829 hardcode_minus_L=yes
16831 esac
16835 irix5* | irix6* | nonstopux*)
16836 if test "$GCC" = yes; then
16837 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'
16838 # Try to use the -exported_symbol ld option, if it does not
16839 # work, assume that -exports_file does not work either and
16840 # implicitly export all symbols.
16841 save_LDFLAGS="$LDFLAGS"
16842 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 int foo(void) {}
16846 _ACEOF
16847 if ac_fn_c_try_link "$LINENO"; then :
16848 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'
16851 rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LDFLAGS="$save_LDFLAGS"
16854 else
16855 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'
16856 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'
16858 archive_cmds_need_lc='no'
16859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16860 hardcode_libdir_separator=:
16861 inherit_rpath=yes
16862 link_all_deplibs=yes
16865 netbsd*)
16866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16868 else
16869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16871 hardcode_libdir_flag_spec='-R$libdir'
16872 hardcode_direct=yes
16873 hardcode_shlibpath_var=no
16876 newsos6)
16877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16878 hardcode_direct=yes
16879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16880 hardcode_libdir_separator=:
16881 hardcode_shlibpath_var=no
16884 *nto* | *qnx*)
16887 openbsd*)
16888 if test -f /usr/libexec/ld.so; then
16889 hardcode_direct=yes
16890 hardcode_shlibpath_var=no
16891 hardcode_direct_absolute=yes
16892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16894 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16896 export_dynamic_flag_spec='${wl}-E'
16897 else
16898 case $host_os in
16899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16901 hardcode_libdir_flag_spec='-R$libdir'
16904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16907 esac
16909 else
16910 ld_shlibs=no
16914 os2*)
16915 hardcode_libdir_flag_spec='-L$libdir'
16916 hardcode_minus_L=yes
16917 allow_undefined_flag=unsupported
16918 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'
16919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16922 osf3*)
16923 if test "$GCC" = yes; then
16924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16925 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'
16926 else
16927 allow_undefined_flag=' -expect_unresolved \*'
16928 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'
16930 archive_cmds_need_lc='no'
16931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16932 hardcode_libdir_separator=:
16935 osf4* | osf5*) # as osf3* with the addition of -msym flag
16936 if test "$GCC" = yes; then
16937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16938 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'
16939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16940 else
16941 allow_undefined_flag=' -expect_unresolved \*'
16942 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'
16943 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~
16944 $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'
16946 # Both c and cxx compiler support -rpath directly
16947 hardcode_libdir_flag_spec='-rpath $libdir'
16949 archive_cmds_need_lc='no'
16950 hardcode_libdir_separator=:
16953 solaris*)
16954 no_undefined_flag=' -z defs'
16955 if test "$GCC" = yes; then
16956 wlarc='${wl}'
16957 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16959 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16960 else
16961 case `$CC -V 2>&1` in
16962 *"Compilers 5.0"*)
16963 wlarc=''
16964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16969 wlarc='${wl}'
16970 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16974 esac
16976 hardcode_libdir_flag_spec='-R$libdir'
16977 hardcode_shlibpath_var=no
16978 case $host_os in
16979 solaris2.[0-5] | solaris2.[0-5].*) ;;
16981 # The compiler driver will combine and reorder linker options,
16982 # but understands `-z linker_flag'. GCC discards it without `$wl',
16983 # but is careful enough not to reorder.
16984 # Supported since Solaris 2.6 (maybe 2.5.1?)
16985 if test "$GCC" = yes; then
16986 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16987 else
16988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16991 esac
16992 link_all_deplibs=yes
16995 sunos4*)
16996 if test "x$host_vendor" = xsequent; then
16997 # Use $CC to link under sequent, because it throws in some extra .o
16998 # files that make .init and .fini sections work.
16999 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17000 else
17001 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17003 hardcode_libdir_flag_spec='-L$libdir'
17004 hardcode_direct=yes
17005 hardcode_minus_L=yes
17006 hardcode_shlibpath_var=no
17009 sysv4)
17010 case $host_vendor in
17011 sni)
17012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_direct=yes # is this really true???
17015 siemens)
17016 ## LD is ld it makes a PLAMLIB
17017 ## CC just makes a GrossModule.
17018 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17019 reload_cmds='$CC -r -o $output$reload_objs'
17020 hardcode_direct=no
17022 motorola)
17023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17026 esac
17027 runpath_var='LD_RUN_PATH'
17028 hardcode_shlibpath_var=no
17031 sysv4.3*)
17032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17033 hardcode_shlibpath_var=no
17034 export_dynamic_flag_spec='-Bexport'
17037 sysv4*MP*)
17038 if test -d /usr/nec; then
17039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_shlibpath_var=no
17041 runpath_var=LD_RUN_PATH
17042 hardcode_runpath_var=yes
17043 ld_shlibs=yes
17047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17048 no_undefined_flag='${wl}-z,text'
17049 archive_cmds_need_lc=no
17050 hardcode_shlibpath_var=no
17051 runpath_var='LD_RUN_PATH'
17053 if test "$GCC" = yes; then
17054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17056 else
17057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17062 sysv5* | sco3.2v5* | sco5v6*)
17063 # Note: We can NOT use -z defs as we might desire, because we do not
17064 # link with -lc, and that would cause any symbols used from libc to
17065 # always be unresolved, which means just about no library would
17066 # ever link correctly. If we're not using GNU ld we use -z text
17067 # though, which does catch some bad symbols but isn't as heavy-handed
17068 # as -z defs.
17069 no_undefined_flag='${wl}-z,text'
17070 allow_undefined_flag='${wl}-z,nodefs'
17071 archive_cmds_need_lc=no
17072 hardcode_shlibpath_var=no
17073 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17074 hardcode_libdir_separator=':'
17075 link_all_deplibs=yes
17076 export_dynamic_flag_spec='${wl}-Bexport'
17077 runpath_var='LD_RUN_PATH'
17079 if test "$GCC" = yes; then
17080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 else
17083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17088 uts4*)
17089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17090 hardcode_libdir_flag_spec='-L$libdir'
17091 hardcode_shlibpath_var=no
17095 ld_shlibs=no
17097 esac
17099 if test x$host_vendor = xsni; then
17100 case $host in
17101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17102 export_dynamic_flag_spec='${wl}-Blargedynsym'
17104 esac
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17109 $as_echo "$ld_shlibs" >&6; }
17110 test "$ld_shlibs" = no && can_build_shared=no
17112 with_gnu_ld=$with_gnu_ld
17129 # Do we need to explicitly link libc?
17131 case "x$archive_cmds_need_lc" in
17132 x|xyes)
17133 # Assume -lc should be added
17134 archive_cmds_need_lc=yes
17136 if test "$enable_shared" = yes && test "$GCC" = yes; then
17137 case $archive_cmds in
17138 *'~'*)
17139 # FIXME: we may have to deal with multi-command sequences.
17141 '$CC '*)
17142 # Test whether the compiler implicitly links with -lc since on some
17143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17144 # to ld, don't add -lc before -lgcc.
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17147 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17148 $as_echo_n "(cached) " >&6
17149 else
17150 $RM conftest*
17151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17154 (eval $ac_compile) 2>&5
17155 ac_status=$?
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; } 2>conftest.err; then
17158 soname=conftest
17159 lib=conftest
17160 libobjs=conftest.$ac_objext
17161 deplibs=
17162 wl=$lt_prog_compiler_wl
17163 pic_flag=$lt_prog_compiler_pic
17164 compiler_flags=-v
17165 linker_flags=-v
17166 verstring=
17167 output_objdir=.
17168 libname=conftest
17169 lt_save_allow_undefined_flag=$allow_undefined_flag
17170 allow_undefined_flag=
17171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17172 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17173 ac_status=$?
17174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175 test $ac_status = 0; }
17176 then
17177 lt_cv_archive_cmds_need_lc=no
17178 else
17179 lt_cv_archive_cmds_need_lc=yes
17181 allow_undefined_flag=$lt_save_allow_undefined_flag
17182 else
17183 cat conftest.err 1>&5
17185 $RM conftest*
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17189 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17190 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17192 esac
17195 esac
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17354 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17356 if test "$GCC" = yes; then
17357 case $host_os in
17358 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17359 *) lt_awk_arg="/^libraries:/" ;;
17360 esac
17361 case $host_os in
17362 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17363 *) lt_sed_strip_eq="s,=/,/,g" ;;
17364 esac
17365 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17366 case $lt_search_path_spec in
17367 *\;*)
17368 # if the path contains ";" then we assume it to be the separator
17369 # otherwise default to the standard path separator (i.e. ":") - it is
17370 # assumed that no part of a normal pathname contains ";" but that should
17371 # okay in the real world where ";" in dirpaths is itself problematic.
17372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17377 esac
17378 # Ok, now we have the path, separated by spaces, we can step through it
17379 # and add multilib dir if necessary.
17380 lt_tmp_lt_search_path_spec=
17381 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17382 for lt_sys_path in $lt_search_path_spec; do
17383 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17384 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17385 else
17386 test -d "$lt_sys_path" && \
17387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17389 done
17390 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17391 BEGIN {RS=" "; FS="/|\n";} {
17392 lt_foo="";
17393 lt_count=0;
17394 for (lt_i = NF; lt_i > 0; lt_i--) {
17395 if ($lt_i != "" && $lt_i != ".") {
17396 if ($lt_i == "..") {
17397 lt_count++;
17398 } else {
17399 if (lt_count == 0) {
17400 lt_foo="/" $lt_i lt_foo;
17401 } else {
17402 lt_count--;
17407 if (lt_foo != "") { lt_freq[lt_foo]++; }
17408 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17410 # AWK program above erroneously prepends '/' to C:/dos/paths
17411 # for these hosts.
17412 case $host_os in
17413 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17414 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17415 esac
17416 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17417 else
17418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17420 library_names_spec=
17421 libname_spec='lib$name'
17422 soname_spec=
17423 shrext_cmds=".so"
17424 postinstall_cmds=
17425 postuninstall_cmds=
17426 finish_cmds=
17427 finish_eval=
17428 shlibpath_var=
17429 shlibpath_overrides_runpath=unknown
17430 version_type=none
17431 dynamic_linker="$host_os ld.so"
17432 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17433 need_lib_prefix=unknown
17434 hardcode_into_libs=no
17436 # when you set need_version to no, make sure it does not cause -set_version
17437 # flags to be left without arguments
17438 need_version=unknown
17440 case $host_os in
17441 aix3*)
17442 version_type=linux
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17444 shlibpath_var=LIBPATH
17446 # AIX 3 has no versioning support, so we append a major version to the name.
17447 soname_spec='${libname}${release}${shared_ext}$major'
17450 aix[4-9]*)
17451 version_type=linux
17452 need_lib_prefix=no
17453 need_version=no
17454 hardcode_into_libs=yes
17455 if test "$host_cpu" = ia64; then
17456 # AIX 5 supports IA64
17457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 else
17460 # With GCC up to 2.95.x, collect2 would create an import file
17461 # for dependence libraries. The import file would start with
17462 # the line `#! .'. This would cause the generated library to
17463 # depend on `.', always an invalid library. This was fixed in
17464 # development snapshots of GCC prior to 3.0.
17465 case $host_os in
17466 aix4 | aix4.[01] | aix4.[01].*)
17467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17468 echo ' yes '
17469 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17471 else
17472 can_build_shared=no
17475 esac
17476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17477 # soname into executable. Probably we can add versioning support to
17478 # collect2, so additional links can be useful in future.
17479 if test "$aix_use_runtimelinking" = yes; then
17480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17481 # instead of lib<name>.a to let people know that these are not
17482 # typical AIX shared libraries.
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484 else
17485 # We preserve .a as extension for shared libraries through AIX4.2
17486 # and later when we are not doing run time linking.
17487 library_names_spec='${libname}${release}.a $libname.a'
17488 soname_spec='${libname}${release}${shared_ext}$major'
17490 shlibpath_var=LIBPATH
17494 amigaos*)
17495 case $host_cpu in
17496 powerpc)
17497 # Since July 2007 AmigaOS4 officially supports .so libraries.
17498 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 m68k)
17502 library_names_spec='$libname.ixlibrary $libname.a'
17503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17504 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'
17506 esac
17509 beos*)
17510 library_names_spec='${libname}${shared_ext}'
17511 dynamic_linker="$host_os ld.so"
17512 shlibpath_var=LIBRARY_PATH
17515 bsdi[45]*)
17516 version_type=linux
17517 need_version=no
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 soname_spec='${libname}${release}${shared_ext}$major'
17520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17524 # the default ld.so.conf also contains /usr/contrib/lib and
17525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17526 # libtool to hard-code these into programs
17529 cygwin* | mingw* | pw32* | cegcc*)
17530 version_type=windows
17531 shrext_cmds=".dll"
17532 need_version=no
17533 need_lib_prefix=no
17535 case $GCC,$host_os in
17536 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17537 library_names_spec='$libname.dll.a'
17538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17539 postinstall_cmds='base_file=`basename \${file}`~
17540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17541 dldir=$destdir/`dirname \$dlpath`~
17542 test -d \$dldir || mkdir -p \$dldir~
17543 $install_prog $dir/$dlname \$dldir/$dlname~
17544 chmod a+x \$dldir/$dlname~
17545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17549 dlpath=$dir/\$dldll~
17550 $RM \$dlpath'
17551 shlibpath_overrides_runpath=yes
17553 case $host_os in
17554 cygwin*)
17555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17560 mingw* | cegcc*)
17561 # MinGW DLLs use traditional 'lib' prefix
17562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17564 pw32*)
17565 # pw32 DLLs use 'pw' prefix rather than 'lib'
17566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17568 esac
17572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17574 esac
17575 dynamic_linker='Win32 ld.exe'
17576 # FIXME: first we should search . and the directory the executable is in
17577 shlibpath_var=PATH
17580 darwin* | rhapsody*)
17581 dynamic_linker="$host_os dyld"
17582 version_type=darwin
17583 need_lib_prefix=no
17584 need_version=no
17585 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17586 soname_spec='${libname}${release}${major}$shared_ext'
17587 shlibpath_overrides_runpath=yes
17588 shlibpath_var=DYLD_LIBRARY_PATH
17589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17595 dgux*)
17596 version_type=linux
17597 need_lib_prefix=no
17598 need_version=no
17599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 shlibpath_var=LD_LIBRARY_PATH
17604 freebsd* | dragonfly*)
17605 # DragonFly does not have aout. When/if they implement a new
17606 # versioning mechanism, adjust this.
17607 if test -x /usr/bin/objformat; then
17608 objformat=`/usr/bin/objformat`
17609 else
17610 case $host_os in
17611 freebsd[23].*) objformat=aout ;;
17612 *) objformat=elf ;;
17613 esac
17615 version_type=freebsd-$objformat
17616 case $version_type in
17617 freebsd-elf*)
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17619 need_version=no
17620 need_lib_prefix=no
17622 freebsd-*)
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17624 need_version=yes
17626 esac
17627 shlibpath_var=LD_LIBRARY_PATH
17628 case $host_os in
17629 freebsd2.*)
17630 shlibpath_overrides_runpath=yes
17632 freebsd3.[01]* | freebsdelf3.[01]*)
17633 shlibpath_overrides_runpath=yes
17634 hardcode_into_libs=yes
17636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17638 shlibpath_overrides_runpath=no
17639 hardcode_into_libs=yes
17641 *) # from 4.6 on, and DragonFly
17642 shlibpath_overrides_runpath=yes
17643 hardcode_into_libs=yes
17645 esac
17648 gnu*)
17649 version_type=linux
17650 need_lib_prefix=no
17651 need_version=no
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 hardcode_into_libs=yes
17658 haiku*)
17659 version_type=linux
17660 need_lib_prefix=no
17661 need_version=no
17662 dynamic_linker="$host_os runtime_loader"
17663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17664 soname_spec='${libname}${release}${shared_ext}$major'
17665 shlibpath_var=LIBRARY_PATH
17666 shlibpath_overrides_runpath=yes
17667 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17668 hardcode_into_libs=yes
17671 hpux9* | hpux10* | hpux11*)
17672 # Give a soname corresponding to the major version so that dld.sl refuses to
17673 # link against other versions.
17674 version_type=sunos
17675 need_lib_prefix=no
17676 need_version=no
17677 case $host_cpu in
17678 ia64*)
17679 shrext_cmds='.so'
17680 hardcode_into_libs=yes
17681 dynamic_linker="$host_os dld.so"
17682 shlibpath_var=LD_LIBRARY_PATH
17683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17685 soname_spec='${libname}${release}${shared_ext}$major'
17686 if test "X$HPUX_IA64_MODE" = X32; then
17687 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17688 else
17689 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17693 hppa*64*)
17694 shrext_cmds='.sl'
17695 hardcode_into_libs=yes
17696 dynamic_linker="$host_os dld.sl"
17697 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700 soname_spec='${libname}${release}${shared_ext}$major'
17701 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17705 shrext_cmds='.sl'
17706 dynamic_linker="$host_os dld.sl"
17707 shlibpath_var=SHLIB_PATH
17708 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17710 soname_spec='${libname}${release}${shared_ext}$major'
17712 esac
17713 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17714 postinstall_cmds='chmod 555 $lib'
17715 # or fails outright, so override atomically:
17716 install_override_mode=555
17719 interix[3-9]*)
17720 version_type=linux
17721 need_lib_prefix=no
17722 need_version=no
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17724 soname_spec='${libname}${release}${shared_ext}$major'
17725 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath=no
17728 hardcode_into_libs=yes
17731 irix5* | irix6* | nonstopux*)
17732 case $host_os in
17733 nonstopux*) version_type=nonstopux ;;
17735 if test "$lt_cv_prog_gnu_ld" = yes; then
17736 version_type=linux
17737 else
17738 version_type=irix
17739 fi ;;
17740 esac
17741 need_lib_prefix=no
17742 need_version=no
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17745 case $host_os in
17746 irix5* | nonstopux*)
17747 libsuff= shlibsuff=
17750 case $LD in # libtool.m4 will add one of these switches to LD
17751 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17752 libsuff= shlibsuff= libmagic=32-bit;;
17753 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17754 libsuff=32 shlibsuff=N32 libmagic=N32;;
17755 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17756 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17757 *) libsuff= shlibsuff= libmagic=never-match;;
17758 esac
17760 esac
17761 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17762 shlibpath_overrides_runpath=no
17763 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17764 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17765 hardcode_into_libs=yes
17768 # No shared lib support for Linux oldld, aout, or coff.
17769 linux*oldld* | linux*aout* | linux*coff*)
17770 dynamic_linker=no
17773 # This must be Linux ELF.
17774 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17775 version_type=linux
17776 need_lib_prefix=no
17777 need_version=no
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 soname_spec='${libname}${release}${shared_ext}$major'
17780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17781 shlibpath_var=LD_LIBRARY_PATH
17782 shlibpath_overrides_runpath=no
17784 # Some binutils ld are patched to set DT_RUNPATH
17785 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 lt_cv_shlibpath_overrides_runpath=no
17789 save_LDFLAGS=$LDFLAGS
17790 save_libdir=$libdir
17791 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17792 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17797 main ()
17801 return 0;
17803 _ACEOF
17804 if ac_fn_c_try_link "$LINENO"; then :
17805 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17806 lt_cv_shlibpath_overrides_runpath=yes
17809 rm -f core conftest.err conftest.$ac_objext \
17810 conftest$ac_exeext conftest.$ac_ext
17811 LDFLAGS=$save_LDFLAGS
17812 libdir=$save_libdir
17816 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17818 # This implies no fast_install, which is unacceptable.
17819 # Some rework will be needed to allow for fast_install
17820 # before this can be enabled.
17821 hardcode_into_libs=yes
17823 # Append ld.so.conf contents to the search path
17824 if test -f /etc/ld.so.conf; then
17825 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' ' '`
17826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17829 # We used to test for /lib/ld.so.1 and disable shared libraries on
17830 # powerpc, because MkLinux only supported shared libraries with the
17831 # GNU dynamic linker. Since this was broken with cross compilers,
17832 # most powerpc-linux boxes support dynamic linking these days and
17833 # people can always --disable-shared, the test was removed, and we
17834 # assume the GNU/Linux dynamic linker is in use.
17835 dynamic_linker='GNU/Linux ld.so'
17838 netbsd*)
17839 version_type=sunos
17840 need_lib_prefix=no
17841 need_version=no
17842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17845 dynamic_linker='NetBSD (a.out) ld.so'
17846 else
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 dynamic_linker='NetBSD ld.elf_so'
17851 shlibpath_var=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath=yes
17853 hardcode_into_libs=yes
17856 newsos6)
17857 version_type=linux
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 shlibpath_overrides_runpath=yes
17863 *nto* | *qnx*)
17864 version_type=qnx
17865 need_lib_prefix=no
17866 need_version=no
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868 soname_spec='${libname}${release}${shared_ext}$major'
17869 shlibpath_var=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath=no
17871 hardcode_into_libs=yes
17872 dynamic_linker='ldqnx.so'
17875 openbsd*)
17876 version_type=sunos
17877 sys_lib_dlsearch_path_spec="/usr/lib"
17878 need_lib_prefix=no
17879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17880 case $host_os in
17881 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17882 *) need_version=no ;;
17883 esac
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17888 case $host_os in
17889 openbsd2.[89] | openbsd2.[89].*)
17890 shlibpath_overrides_runpath=no
17893 shlibpath_overrides_runpath=yes
17895 esac
17896 else
17897 shlibpath_overrides_runpath=yes
17901 os2*)
17902 libname_spec='$name'
17903 shrext_cmds=".dll"
17904 need_lib_prefix=no
17905 library_names_spec='$libname${shared_ext} $libname.a'
17906 dynamic_linker='OS/2 ld.exe'
17907 shlibpath_var=LIBPATH
17910 osf3* | osf4* | osf5*)
17911 version_type=osf
17912 need_lib_prefix=no
17913 need_version=no
17914 soname_spec='${libname}${release}${shared_ext}$major'
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17921 rdos*)
17922 dynamic_linker=no
17925 solaris*)
17926 version_type=linux
17927 need_lib_prefix=no
17928 need_version=no
17929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17930 soname_spec='${libname}${release}${shared_ext}$major'
17931 shlibpath_var=LD_LIBRARY_PATH
17932 shlibpath_overrides_runpath=yes
17933 hardcode_into_libs=yes
17934 # ldd complains unless libraries are executable
17935 postinstall_cmds='chmod +x $lib'
17938 sunos4*)
17939 version_type=sunos
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17942 shlibpath_var=LD_LIBRARY_PATH
17943 shlibpath_overrides_runpath=yes
17944 if test "$with_gnu_ld" = yes; then
17945 need_lib_prefix=no
17947 need_version=yes
17950 sysv4 | sysv4.3*)
17951 version_type=linux
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17954 shlibpath_var=LD_LIBRARY_PATH
17955 case $host_vendor in
17956 sni)
17957 shlibpath_overrides_runpath=no
17958 need_lib_prefix=no
17959 runpath_var=LD_RUN_PATH
17961 siemens)
17962 need_lib_prefix=no
17964 motorola)
17965 need_lib_prefix=no
17966 need_version=no
17967 shlibpath_overrides_runpath=no
17968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17970 esac
17973 sysv4*MP*)
17974 if test -d /usr/nec ;then
17975 version_type=linux
17976 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17977 soname_spec='$libname${shared_ext}.$major'
17978 shlibpath_var=LD_LIBRARY_PATH
17982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17983 version_type=freebsd-elf
17984 need_lib_prefix=no
17985 need_version=no
17986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17987 soname_spec='${libname}${release}${shared_ext}$major'
17988 shlibpath_var=LD_LIBRARY_PATH
17989 shlibpath_overrides_runpath=yes
17990 hardcode_into_libs=yes
17991 if test "$with_gnu_ld" = yes; then
17992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17993 else
17994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17995 case $host_os in
17996 sco3.2v5*)
17997 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17999 esac
18001 sys_lib_dlsearch_path_spec='/usr/lib'
18004 tpf*)
18005 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18006 version_type=linux
18007 need_lib_prefix=no
18008 need_version=no
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18010 shlibpath_var=LD_LIBRARY_PATH
18011 shlibpath_overrides_runpath=no
18012 hardcode_into_libs=yes
18015 uts4*)
18016 version_type=linux
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18018 soname_spec='${libname}${release}${shared_ext}$major'
18019 shlibpath_var=LD_LIBRARY_PATH
18023 dynamic_linker=no
18025 esac
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18027 $as_echo "$dynamic_linker" >&6; }
18028 test "$dynamic_linker" = no && can_build_shared=no
18030 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18031 if test "$GCC" = yes; then
18032 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18035 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18036 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18038 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18039 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18134 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18135 hardcode_action=
18136 if test -n "$hardcode_libdir_flag_spec" ||
18137 test -n "$runpath_var" ||
18138 test "X$hardcode_automatic" = "Xyes" ; then
18140 # We can hardcode non-existent directories.
18141 if test "$hardcode_direct" != no &&
18142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18143 # have to relink, otherwise we might link with an installed library
18144 # when we should be linking with a yet-to-be-installed one
18145 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18146 test "$hardcode_minus_L" != no; then
18147 # Linking always hardcodes the temporary library directory.
18148 hardcode_action=relink
18149 else
18150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18151 hardcode_action=immediate
18153 else
18154 # We cannot hardcode anything, or else we can only hardcode existing
18155 # directories.
18156 hardcode_action=unsupported
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18159 $as_echo "$hardcode_action" >&6; }
18161 if test "$hardcode_action" = relink ||
18162 test "$inherit_rpath" = yes; then
18163 # Fast installation is not supported
18164 enable_fast_install=no
18165 elif test "$shlibpath_overrides_runpath" = yes ||
18166 test "$enable_shared" = no; then
18167 # Fast installation is not necessary
18168 enable_fast_install=needless
18176 if test "x$enable_dlopen" != xyes; then
18177 enable_dlopen=unknown
18178 enable_dlopen_self=unknown
18179 enable_dlopen_self_static=unknown
18180 else
18181 lt_cv_dlopen=no
18182 lt_cv_dlopen_libs=
18184 case $host_os in
18185 beos*)
18186 lt_cv_dlopen="load_add_on"
18187 lt_cv_dlopen_libs=
18188 lt_cv_dlopen_self=yes
18191 mingw* | pw32* | cegcc*)
18192 lt_cv_dlopen="LoadLibrary"
18193 lt_cv_dlopen_libs=
18196 cygwin*)
18197 lt_cv_dlopen="dlopen"
18198 lt_cv_dlopen_libs=
18201 darwin*)
18202 # if libdl is installed we need to link against it
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18204 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18206 $as_echo_n "(cached) " >&6
18207 else
18208 ac_check_lib_save_LIBS=$LIBS
18209 LIBS="-ldl $LIBS"
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18213 /* Override any GCC internal prototype to avoid an error.
18214 Use char because int might match the return type of a GCC
18215 builtin and then its argument prototype would still apply. */
18216 #ifdef __cplusplus
18217 extern "C"
18218 #endif
18219 char dlopen ();
18221 main ()
18223 return dlopen ();
18225 return 0;
18227 _ACEOF
18228 if ac_fn_c_try_link "$LINENO"; then :
18229 ac_cv_lib_dl_dlopen=yes
18230 else
18231 ac_cv_lib_dl_dlopen=no
18233 rm -f core conftest.err conftest.$ac_objext \
18234 conftest$ac_exeext conftest.$ac_ext
18235 LIBS=$ac_check_lib_save_LIBS
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18238 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18239 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18241 else
18243 lt_cv_dlopen="dyld"
18244 lt_cv_dlopen_libs=
18245 lt_cv_dlopen_self=yes
18252 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18253 if test "x$ac_cv_func_shl_load" = x""yes; then :
18254 lt_cv_dlopen="shl_load"
18255 else
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18257 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18258 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18259 $as_echo_n "(cached) " >&6
18260 else
18261 ac_check_lib_save_LIBS=$LIBS
18262 LIBS="-ldld $LIBS"
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18266 /* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18269 #ifdef __cplusplus
18270 extern "C"
18271 #endif
18272 char shl_load ();
18274 main ()
18276 return shl_load ();
18278 return 0;
18280 _ACEOF
18281 if ac_fn_c_try_link "$LINENO"; then :
18282 ac_cv_lib_dld_shl_load=yes
18283 else
18284 ac_cv_lib_dld_shl_load=no
18286 rm -f core conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18288 LIBS=$ac_check_lib_save_LIBS
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18291 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18292 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18293 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18294 else
18295 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18296 if test "x$ac_cv_func_dlopen" = x""yes; then :
18297 lt_cv_dlopen="dlopen"
18298 else
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18300 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18302 $as_echo_n "(cached) " >&6
18303 else
18304 ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-ldl $LIBS"
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18309 /* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 char dlopen ();
18317 main ()
18319 return dlopen ();
18321 return 0;
18323 _ACEOF
18324 if ac_fn_c_try_link "$LINENO"; then :
18325 ac_cv_lib_dl_dlopen=yes
18326 else
18327 ac_cv_lib_dl_dlopen=no
18329 rm -f core conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331 LIBS=$ac_check_lib_save_LIBS
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18334 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18335 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18337 else
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18339 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18340 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18341 $as_echo_n "(cached) " >&6
18342 else
18343 ac_check_lib_save_LIBS=$LIBS
18344 LIBS="-lsvld $LIBS"
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18348 /* Override any GCC internal prototype to avoid an error.
18349 Use char because int might match the return type of a GCC
18350 builtin and then its argument prototype would still apply. */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 char dlopen ();
18356 main ()
18358 return dlopen ();
18360 return 0;
18362 _ACEOF
18363 if ac_fn_c_try_link "$LINENO"; then :
18364 ac_cv_lib_svld_dlopen=yes
18365 else
18366 ac_cv_lib_svld_dlopen=no
18368 rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18370 LIBS=$ac_check_lib_save_LIBS
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18373 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18374 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18376 else
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18378 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18379 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18380 $as_echo_n "(cached) " >&6
18381 else
18382 ac_check_lib_save_LIBS=$LIBS
18383 LIBS="-ldld $LIBS"
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18387 /* Override any GCC internal prototype to avoid an error.
18388 Use char because int might match the return type of a GCC
18389 builtin and then its argument prototype would still apply. */
18390 #ifdef __cplusplus
18391 extern "C"
18392 #endif
18393 char dld_link ();
18395 main ()
18397 return dld_link ();
18399 return 0;
18401 _ACEOF
18402 if ac_fn_c_try_link "$LINENO"; then :
18403 ac_cv_lib_dld_dld_link=yes
18404 else
18405 ac_cv_lib_dld_dld_link=no
18407 rm -f core conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18409 LIBS=$ac_check_lib_save_LIBS
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18412 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18413 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18414 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18433 esac
18435 if test "x$lt_cv_dlopen" != xno; then
18436 enable_dlopen=yes
18437 else
18438 enable_dlopen=no
18441 case $lt_cv_dlopen in
18442 dlopen)
18443 save_CPPFLAGS="$CPPFLAGS"
18444 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18446 save_LDFLAGS="$LDFLAGS"
18447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18449 save_LIBS="$LIBS"
18450 LIBS="$lt_cv_dlopen_libs $LIBS"
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18453 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18454 if test "${lt_cv_dlopen_self+set}" = set; then :
18455 $as_echo_n "(cached) " >&6
18456 else
18457 if test "$cross_compiling" = yes; then :
18458 lt_cv_dlopen_self=cross
18459 else
18460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18461 lt_status=$lt_dlunknown
18462 cat > conftest.$ac_ext <<_LT_EOF
18463 #line 18463 "configure"
18464 #include "confdefs.h"
18466 #if HAVE_DLFCN_H
18467 #include <dlfcn.h>
18468 #endif
18470 #include <stdio.h>
18472 #ifdef RTLD_GLOBAL
18473 # define LT_DLGLOBAL RTLD_GLOBAL
18474 #else
18475 # ifdef DL_GLOBAL
18476 # define LT_DLGLOBAL DL_GLOBAL
18477 # else
18478 # define LT_DLGLOBAL 0
18479 # endif
18480 #endif
18482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18483 find out it does not work in some platform. */
18484 #ifndef LT_DLLAZY_OR_NOW
18485 # ifdef RTLD_LAZY
18486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18487 # else
18488 # ifdef DL_LAZY
18489 # define LT_DLLAZY_OR_NOW DL_LAZY
18490 # else
18491 # ifdef RTLD_NOW
18492 # define LT_DLLAZY_OR_NOW RTLD_NOW
18493 # else
18494 # ifdef DL_NOW
18495 # define LT_DLLAZY_OR_NOW DL_NOW
18496 # else
18497 # define LT_DLLAZY_OR_NOW 0
18498 # endif
18499 # endif
18500 # endif
18501 # endif
18502 #endif
18504 /* When -fvisbility=hidden is used, assume the code has been annotated
18505 correspondingly for the symbols needed. */
18506 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18507 void fnord () __attribute__((visibility("default")));
18508 #endif
18510 void fnord () { int i=42; }
18511 int main ()
18513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18514 int status = $lt_dlunknown;
18516 if (self)
18518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18519 else
18521 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18522 else puts (dlerror ());
18524 /* dlclose (self); */
18526 else
18527 puts (dlerror ());
18529 return status;
18531 _LT_EOF
18532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18533 (eval $ac_link) 2>&5
18534 ac_status=$?
18535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18537 (./conftest; exit; ) >&5 2>/dev/null
18538 lt_status=$?
18539 case x$lt_status in
18540 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18541 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18542 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18543 esac
18544 else :
18545 # compilation failed
18546 lt_cv_dlopen_self=no
18549 rm -fr conftest*
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18554 $as_echo "$lt_cv_dlopen_self" >&6; }
18556 if test "x$lt_cv_dlopen_self" = xyes; then
18557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18559 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18560 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18561 $as_echo_n "(cached) " >&6
18562 else
18563 if test "$cross_compiling" = yes; then :
18564 lt_cv_dlopen_self_static=cross
18565 else
18566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18567 lt_status=$lt_dlunknown
18568 cat > conftest.$ac_ext <<_LT_EOF
18569 #line 18569 "configure"
18570 #include "confdefs.h"
18572 #if HAVE_DLFCN_H
18573 #include <dlfcn.h>
18574 #endif
18576 #include <stdio.h>
18578 #ifdef RTLD_GLOBAL
18579 # define LT_DLGLOBAL RTLD_GLOBAL
18580 #else
18581 # ifdef DL_GLOBAL
18582 # define LT_DLGLOBAL DL_GLOBAL
18583 # else
18584 # define LT_DLGLOBAL 0
18585 # endif
18586 #endif
18588 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18589 find out it does not work in some platform. */
18590 #ifndef LT_DLLAZY_OR_NOW
18591 # ifdef RTLD_LAZY
18592 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18593 # else
18594 # ifdef DL_LAZY
18595 # define LT_DLLAZY_OR_NOW DL_LAZY
18596 # else
18597 # ifdef RTLD_NOW
18598 # define LT_DLLAZY_OR_NOW RTLD_NOW
18599 # else
18600 # ifdef DL_NOW
18601 # define LT_DLLAZY_OR_NOW DL_NOW
18602 # else
18603 # define LT_DLLAZY_OR_NOW 0
18604 # endif
18605 # endif
18606 # endif
18607 # endif
18608 #endif
18610 /* When -fvisbility=hidden is used, assume the code has been annotated
18611 correspondingly for the symbols needed. */
18612 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18613 void fnord () __attribute__((visibility("default")));
18614 #endif
18616 void fnord () { int i=42; }
18617 int main ()
18619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18620 int status = $lt_dlunknown;
18622 if (self)
18624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18625 else
18627 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18628 else puts (dlerror ());
18630 /* dlclose (self); */
18632 else
18633 puts (dlerror ());
18635 return status;
18637 _LT_EOF
18638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18639 (eval $ac_link) 2>&5
18640 ac_status=$?
18641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18642 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18643 (./conftest; exit; ) >&5 2>/dev/null
18644 lt_status=$?
18645 case x$lt_status in
18646 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18647 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18648 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18649 esac
18650 else :
18651 # compilation failed
18652 lt_cv_dlopen_self_static=no
18655 rm -fr conftest*
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18660 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18663 CPPFLAGS="$save_CPPFLAGS"
18664 LDFLAGS="$save_LDFLAGS"
18665 LIBS="$save_LIBS"
18667 esac
18669 case $lt_cv_dlopen_self in
18670 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18671 *) enable_dlopen_self=unknown ;;
18672 esac
18674 case $lt_cv_dlopen_self_static in
18675 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18676 *) enable_dlopen_self_static=unknown ;;
18677 esac
18696 striplib=
18697 old_striplib=
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18699 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18700 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18701 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18702 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18704 $as_echo "yes" >&6; }
18705 else
18706 # FIXME - insert some real tests, host_os isn't really good enough
18707 case $host_os in
18708 darwin*)
18709 if test -n "$STRIP" ; then
18710 striplib="$STRIP -x"
18711 old_striplib="$STRIP -S"
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18713 $as_echo "yes" >&6; }
18714 else
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 $as_echo "no" >&6; }
18723 esac
18737 # Report which library types will actually be built
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18739 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18741 $as_echo "$can_build_shared" >&6; }
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18744 $as_echo_n "checking whether to build shared libraries... " >&6; }
18745 test "$can_build_shared" = "no" && enable_shared=no
18747 # On AIX, shared libraries and static libraries use the same namespace, and
18748 # are all built from PIC.
18749 case $host_os in
18750 aix3*)
18751 test "$enable_shared" = yes && enable_static=no
18752 if test -n "$RANLIB"; then
18753 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18754 postinstall_cmds='$RANLIB $lib'
18758 aix[4-9]*)
18759 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18760 test "$enable_shared" = yes && enable_static=no
18763 esac
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18765 $as_echo "$enable_shared" >&6; }
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18768 $as_echo_n "checking whether to build static libraries... " >&6; }
18769 # Make sure either enable_shared or enable_static is yes.
18770 test "$enable_shared" = yes || enable_static=yes
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18772 $as_echo "$enable_static" >&6; }
18778 ac_ext=cpp
18779 ac_cpp='$CXXCPP $CPPFLAGS'
18780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18784 CC="$lt_save_CC"
18786 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18787 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18788 (test "X$CXX" != "Xg++"))) ; then
18789 ac_ext=cpp
18790 ac_cpp='$CXXCPP $CPPFLAGS'
18791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18795 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18796 if test -z "$CXXCPP"; then
18797 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18798 $as_echo_n "(cached) " >&6
18799 else
18800 # Double quotes because CXXCPP needs to be expanded
18801 for CXXCPP in "$CXX -E" "/lib/cpp"
18803 ac_preproc_ok=false
18804 for ac_cxx_preproc_warn_flag in '' yes
18806 # Use a header file that comes with gcc, so configuring glibc
18807 # with a fresh cross-compiler works.
18808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809 # <limits.h> exists even on freestanding compilers.
18810 # On the NeXT, cc -E runs the code through the compiler's parser,
18811 # not just through cpp. "Syntax error" is here to catch this case.
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18814 #ifdef __STDC__
18815 # include <limits.h>
18816 #else
18817 # include <assert.h>
18818 #endif
18819 Syntax error
18820 _ACEOF
18821 if ac_fn_cxx_try_cpp "$LINENO"; then :
18823 else
18824 # Broken: fails on valid input.
18825 continue
18827 rm -f conftest.err conftest.$ac_ext
18829 # OK, works on sane cases. Now check whether nonexistent headers
18830 # can be detected and how.
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833 #include <ac_nonexistent.h>
18834 _ACEOF
18835 if ac_fn_cxx_try_cpp "$LINENO"; then :
18836 # Broken: success on invalid input.
18837 continue
18838 else
18839 # Passes both tests.
18840 ac_preproc_ok=:
18841 break
18843 rm -f conftest.err conftest.$ac_ext
18845 done
18846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18847 rm -f conftest.err conftest.$ac_ext
18848 if $ac_preproc_ok; then :
18849 break
18852 done
18853 ac_cv_prog_CXXCPP=$CXXCPP
18856 CXXCPP=$ac_cv_prog_CXXCPP
18857 else
18858 ac_cv_prog_CXXCPP=$CXXCPP
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18861 $as_echo "$CXXCPP" >&6; }
18862 ac_preproc_ok=false
18863 for ac_cxx_preproc_warn_flag in '' yes
18865 # Use a header file that comes with gcc, so configuring glibc
18866 # with a fresh cross-compiler works.
18867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868 # <limits.h> exists even on freestanding compilers.
18869 # On the NeXT, cc -E runs the code through the compiler's parser,
18870 # not just through cpp. "Syntax error" is here to catch this case.
18871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872 /* end confdefs.h. */
18873 #ifdef __STDC__
18874 # include <limits.h>
18875 #else
18876 # include <assert.h>
18877 #endif
18878 Syntax error
18879 _ACEOF
18880 if ac_fn_cxx_try_cpp "$LINENO"; then :
18882 else
18883 # Broken: fails on valid input.
18884 continue
18886 rm -f conftest.err conftest.$ac_ext
18888 # OK, works on sane cases. Now check whether nonexistent headers
18889 # can be detected and how.
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #include <ac_nonexistent.h>
18893 _ACEOF
18894 if ac_fn_cxx_try_cpp "$LINENO"; then :
18895 # Broken: success on invalid input.
18896 continue
18897 else
18898 # Passes both tests.
18899 ac_preproc_ok=:
18900 break
18902 rm -f conftest.err conftest.$ac_ext
18904 done
18905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18906 rm -f conftest.err conftest.$ac_ext
18907 if $ac_preproc_ok; then :
18909 else
18910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18912 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18913 See \`config.log' for more details." "$LINENO" 5; }
18916 ac_ext=cpp
18917 ac_cpp='$CXXCPP $CPPFLAGS'
18918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18922 else
18923 _lt_caught_CXX_error=yes
18926 ac_ext=cpp
18927 ac_cpp='$CXXCPP $CPPFLAGS'
18928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18932 archive_cmds_need_lc_CXX=no
18933 allow_undefined_flag_CXX=
18934 always_export_symbols_CXX=no
18935 archive_expsym_cmds_CXX=
18936 compiler_needs_object_CXX=no
18937 export_dynamic_flag_spec_CXX=
18938 hardcode_direct_CXX=no
18939 hardcode_direct_absolute_CXX=no
18940 hardcode_libdir_flag_spec_CXX=
18941 hardcode_libdir_flag_spec_ld_CXX=
18942 hardcode_libdir_separator_CXX=
18943 hardcode_minus_L_CXX=no
18944 hardcode_shlibpath_var_CXX=unsupported
18945 hardcode_automatic_CXX=no
18946 inherit_rpath_CXX=no
18947 module_cmds_CXX=
18948 module_expsym_cmds_CXX=
18949 link_all_deplibs_CXX=unknown
18950 old_archive_cmds_CXX=$old_archive_cmds
18951 reload_flag_CXX=$reload_flag
18952 reload_cmds_CXX=$reload_cmds
18953 no_undefined_flag_CXX=
18954 whole_archive_flag_spec_CXX=
18955 enable_shared_with_static_runtimes_CXX=no
18957 # Source file extension for C++ test sources.
18958 ac_ext=cpp
18960 # Object file extension for compiled C++ test sources.
18961 objext=o
18962 objext_CXX=$objext
18964 # No sense in running all these tests if we already determined that
18965 # the CXX compiler isn't working. Some variables (like enable_shared)
18966 # are currently assumed to apply to all compilers on this platform,
18967 # and will be corrupted by setting them based on a non-working compiler.
18968 if test "$_lt_caught_CXX_error" != yes; then
18969 # Code to be used in simple compile tests
18970 lt_simple_compile_test_code="int some_variable = 0;"
18972 # Code to be used in simple link tests
18973 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18975 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18982 # If no C compiler was specified, use CC.
18983 LTCC=${LTCC-"$CC"}
18985 # If no C compiler flags were specified, use CFLAGS.
18986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18988 # Allow CC to be a program name with arguments.
18989 compiler=$CC
18992 # save warnings/boilerplate of simple test code
18993 ac_outfile=conftest.$ac_objext
18994 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18996 _lt_compiler_boilerplate=`cat conftest.err`
18997 $RM conftest*
18999 ac_outfile=conftest.$ac_objext
19000 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19002 _lt_linker_boilerplate=`cat conftest.err`
19003 $RM -r conftest*
19006 # Allow CC to be a program name with arguments.
19007 lt_save_CC=$CC
19008 lt_save_LD=$LD
19009 lt_save_GCC=$GCC
19010 GCC=$GXX
19011 lt_save_with_gnu_ld=$with_gnu_ld
19012 lt_save_path_LD=$lt_cv_path_LD
19013 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19014 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19015 else
19016 $as_unset lt_cv_prog_gnu_ld
19018 if test -n "${lt_cv_path_LDCXX+set}"; then
19019 lt_cv_path_LD=$lt_cv_path_LDCXX
19020 else
19021 $as_unset lt_cv_path_LD
19023 test -z "${LDCXX+set}" || LD=$LDCXX
19024 CC=${CXX-"c++"}
19025 compiler=$CC
19026 compiler_CXX=$CC
19027 for cc_temp in $compiler""; do
19028 case $cc_temp in
19029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19031 \-*) ;;
19032 *) break;;
19033 esac
19034 done
19035 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19038 if test -n "$compiler"; then
19039 # We don't want -fno-exception when compiling C++ code, so set the
19040 # no_builtin_flag separately
19041 if test "$GXX" = yes; then
19042 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19043 else
19044 lt_prog_compiler_no_builtin_flag_CXX=
19047 if test "$GXX" = yes; then
19048 # Set up default GNU C++ configuration
19052 # Check whether --with-gnu-ld was given.
19053 if test "${with_gnu_ld+set}" = set; then :
19054 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19055 else
19056 with_gnu_ld=no
19059 ac_prog=ld
19060 if test "$GCC" = yes; then
19061 # Check if gcc -print-prog-name=ld gives a path.
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19063 $as_echo_n "checking for ld used by $CC... " >&6; }
19064 case $host in
19065 *-*-mingw*)
19066 # gcc leaves a trailing carriage return which upsets mingw
19067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19070 esac
19071 case $ac_prog in
19072 # Accept absolute paths.
19073 [\\/]* | ?:[\\/]*)
19074 re_direlt='/[^/][^/]*/\.\./'
19075 # Canonicalize the pathname of ld
19076 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19077 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19078 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19079 done
19080 test -z "$LD" && LD="$ac_prog"
19083 # If it fails, then pretend we aren't using GCC.
19084 ac_prog=ld
19087 # If it is relative, then search for the first ld in PATH.
19088 with_gnu_ld=unknown
19090 esac
19091 elif test "$with_gnu_ld" = yes; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19093 $as_echo_n "checking for GNU ld... " >&6; }
19094 else
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19096 $as_echo_n "checking for non-GNU ld... " >&6; }
19098 if test "${lt_cv_path_LD+set}" = set; then :
19099 $as_echo_n "(cached) " >&6
19100 else
19101 if test -z "$LD"; then
19102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19103 for ac_dir in $PATH; do
19104 IFS="$lt_save_ifs"
19105 test -z "$ac_dir" && ac_dir=.
19106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19107 lt_cv_path_LD="$ac_dir/$ac_prog"
19108 # Check to see if the program is GNU ld. I'd rather use --version,
19109 # but apparently some variants of GNU ld only accept -v.
19110 # Break only if it was the GNU/non-GNU ld that we prefer.
19111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19112 *GNU* | *'with BFD'*)
19113 test "$with_gnu_ld" != no && break
19116 test "$with_gnu_ld" != yes && break
19118 esac
19120 done
19121 IFS="$lt_save_ifs"
19122 else
19123 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19127 LD="$lt_cv_path_LD"
19128 if test -n "$LD"; then
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19130 $as_echo "$LD" >&6; }
19131 else
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133 $as_echo "no" >&6; }
19135 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19138 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19139 $as_echo_n "(cached) " >&6
19140 else
19141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19142 case `$LD -v 2>&1 </dev/null` in
19143 *GNU* | *'with BFD'*)
19144 lt_cv_prog_gnu_ld=yes
19147 lt_cv_prog_gnu_ld=no
19149 esac
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19153 with_gnu_ld=$lt_cv_prog_gnu_ld
19161 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19162 # archiving commands below assume that GNU ld is being used.
19163 if test "$with_gnu_ld" = yes; then
19164 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165 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'
19167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19170 # If archive_cmds runs LD, not CC, wlarc should be empty
19171 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19172 # investigate it a little bit more. (MM)
19173 wlarc='${wl}'
19175 # ancient GNU ld didn't support --whole-archive et. al.
19176 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19177 $GREP 'no-whole-archive' > /dev/null; then
19178 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19179 else
19180 whole_archive_flag_spec_CXX=
19182 else
19183 with_gnu_ld=no
19184 wlarc=
19186 # A generic and very simple default shared library creation
19187 # command for GNU C++ for the case where it uses the native
19188 # linker, instead of GNU ld. If possible, this setting should
19189 # overridden to take advantage of the native linker features on
19190 # the platform it is being used on.
19191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19194 # Commands to make compiler produce verbose output that lists
19195 # what "hidden" libraries, object files and flags are used when
19196 # linking a shared library.
19197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19199 else
19200 GXX=no
19201 with_gnu_ld=no
19202 wlarc=
19205 # PORTME: fill in a description of your system's C++ link characteristics
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19207 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19208 ld_shlibs_CXX=yes
19209 case $host_os in
19210 aix3*)
19211 # FIXME: insert proper C++ library support
19212 ld_shlibs_CXX=no
19214 aix[4-9]*)
19215 if test "$host_cpu" = ia64; then
19216 # On IA64, the linker does run time linking by default, so we don't
19217 # have to do anything special.
19218 aix_use_runtimelinking=no
19219 exp_sym_flag='-Bexport'
19220 no_entry_flag=""
19221 else
19222 aix_use_runtimelinking=no
19224 # Test if we are trying to use run time linking or normal
19225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19226 # need to do runtime linking.
19227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19228 for ld_flag in $LDFLAGS; do
19229 case $ld_flag in
19230 *-brtl*)
19231 aix_use_runtimelinking=yes
19232 break
19234 esac
19235 done
19237 esac
19239 exp_sym_flag='-bexport'
19240 no_entry_flag='-bnoentry'
19243 # When large executables or shared objects are built, AIX ld can
19244 # have problems creating the table of contents. If linking a library
19245 # or program results in "error TOC overflow" add -mminimal-toc to
19246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19249 archive_cmds_CXX=''
19250 hardcode_direct_CXX=yes
19251 hardcode_direct_absolute_CXX=yes
19252 hardcode_libdir_separator_CXX=':'
19253 link_all_deplibs_CXX=yes
19254 file_list_spec_CXX='${wl}-f,'
19256 if test "$GXX" = yes; then
19257 case $host_os in aix4.[012]|aix4.[012].*)
19258 # We only want to do this on AIX 4.2 and lower, the check
19259 # below for broken collect2 doesn't work under 4.3+
19260 collect2name=`${CC} -print-prog-name=collect2`
19261 if test -f "$collect2name" &&
19262 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19263 then
19264 # We have reworked collect2
19266 else
19267 # We have old collect2
19268 hardcode_direct_CXX=unsupported
19269 # It fails to find uninstalled libraries when the uninstalled
19270 # path is not listed in the libpath. Setting hardcode_minus_L
19271 # to unsupported forces relinking
19272 hardcode_minus_L_CXX=yes
19273 hardcode_libdir_flag_spec_CXX='-L$libdir'
19274 hardcode_libdir_separator_CXX=
19276 esac
19277 shared_flag='-shared'
19278 if test "$aix_use_runtimelinking" = yes; then
19279 shared_flag="$shared_flag "'${wl}-G'
19281 else
19282 # not using gcc
19283 if test "$host_cpu" = ia64; then
19284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19285 # chokes on -Wl,-G. The following line is correct:
19286 shared_flag='-G'
19287 else
19288 if test "$aix_use_runtimelinking" = yes; then
19289 shared_flag='${wl}-G'
19290 else
19291 shared_flag='${wl}-bM:SRE'
19296 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19297 # It seems that -bexpall does not export symbols beginning with
19298 # underscore (_), so it is better to generate a list of symbols to
19299 # export.
19300 always_export_symbols_CXX=yes
19301 if test "$aix_use_runtimelinking" = yes; then
19302 # Warning - without using the other runtime loading flags (-brtl),
19303 # -berok will link without error, but may produce a broken library.
19304 allow_undefined_flag_CXX='-berok'
19305 # Determine the default libpath from the value encoded in an empty
19306 # executable.
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19311 main ()
19315 return 0;
19317 _ACEOF
19318 if ac_fn_cxx_try_link "$LINENO"; then :
19320 lt_aix_libpath_sed='
19321 /Import File Strings/,/^$/ {
19322 /^0/ {
19323 s/^0 *\(.*\)$/\1/
19327 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19328 # Check for a 64-bit object if we didn't find anything.
19329 if test -z "$aix_libpath"; then
19330 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19333 rm -f core conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19337 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19339 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"
19340 else
19341 if test "$host_cpu" = ia64; then
19342 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19343 allow_undefined_flag_CXX="-z nodefs"
19344 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"
19345 else
19346 # Determine the default libpath from the value encoded in an
19347 # empty executable.
19348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19352 main ()
19356 return 0;
19358 _ACEOF
19359 if ac_fn_cxx_try_link "$LINENO"; then :
19361 lt_aix_libpath_sed='
19362 /Import File Strings/,/^$/ {
19363 /^0/ {
19364 s/^0 *\(.*\)$/\1/
19368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19369 # Check for a 64-bit object if we didn't find anything.
19370 if test -z "$aix_libpath"; then
19371 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19374 rm -f core conftest.err conftest.$ac_objext \
19375 conftest$ac_exeext conftest.$ac_ext
19376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19378 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19379 # Warning - without using the other run time loading flags,
19380 # -berok will link without error, but may produce a broken library.
19381 no_undefined_flag_CXX=' ${wl}-bernotok'
19382 allow_undefined_flag_CXX=' ${wl}-berok'
19383 if test "$with_gnu_ld" = yes; then
19384 # We only use this code for GNU lds that support --whole-archive.
19385 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19386 else
19387 # Exported symbols can be pulled into shared objects from archives
19388 whole_archive_flag_spec_CXX='$convenience'
19390 archive_cmds_need_lc_CXX=yes
19391 # This is similar to how AIX traditionally builds its shared
19392 # libraries.
19393 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'
19398 beos*)
19399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19400 allow_undefined_flag_CXX=unsupported
19401 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19402 # support --undefined. This deserves some investigation. FIXME
19403 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19404 else
19405 ld_shlibs_CXX=no
19409 chorus*)
19410 case $cc_basename in
19412 # FIXME: insert proper C++ library support
19413 ld_shlibs_CXX=no
19415 esac
19418 cygwin* | mingw* | pw32* | cegcc*)
19419 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19420 # as there is no search path for DLLs.
19421 hardcode_libdir_flag_spec_CXX='-L$libdir'
19422 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19423 allow_undefined_flag_CXX=unsupported
19424 always_export_symbols_CXX=no
19425 enable_shared_with_static_runtimes_CXX=yes
19427 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19428 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'
19429 # If the export-symbols file already is a .def file (1st line
19430 # is EXPORTS), use it as is; otherwise, prepend...
19431 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19432 cp $export_symbols $output_objdir/$soname.def;
19433 else
19434 echo EXPORTS > $output_objdir/$soname.def;
19435 cat $export_symbols >> $output_objdir/$soname.def;
19437 $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'
19438 else
19439 ld_shlibs_CXX=no
19442 darwin* | rhapsody*)
19445 archive_cmds_need_lc_CXX=no
19446 hardcode_direct_CXX=no
19447 hardcode_automatic_CXX=yes
19448 hardcode_shlibpath_var_CXX=unsupported
19449 if test "$lt_cv_ld_force_load" = "yes"; then
19450 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\"`'
19451 else
19452 whole_archive_flag_spec_CXX=''
19454 link_all_deplibs_CXX=yes
19455 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19456 case $cc_basename in
19457 ifort*) _lt_dar_can_shared=yes ;;
19458 *) _lt_dar_can_shared=$GCC ;;
19459 esac
19460 if test "$_lt_dar_can_shared" = "yes"; then
19461 output_verbose_link_cmd=func_echo_all
19462 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}"
19463 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19464 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}"
19465 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}"
19466 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19467 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}"
19468 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}"
19471 else
19472 ld_shlibs_CXX=no
19477 dgux*)
19478 case $cc_basename in
19479 ec++*)
19480 # FIXME: insert proper C++ library support
19481 ld_shlibs_CXX=no
19483 ghcx*)
19484 # Green Hills C++ Compiler
19485 # FIXME: insert proper C++ library support
19486 ld_shlibs_CXX=no
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19492 esac
19495 freebsd2.*)
19496 # C++ shared libraries reported to be fairly broken before
19497 # switch to ELF
19498 ld_shlibs_CXX=no
19501 freebsd-elf*)
19502 archive_cmds_need_lc_CXX=no
19505 freebsd* | dragonfly*)
19506 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19507 # conventions
19508 ld_shlibs_CXX=yes
19511 gnu*)
19514 haiku*)
19515 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19516 link_all_deplibs_CXX=yes
19519 hpux9*)
19520 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19521 hardcode_libdir_separator_CXX=:
19522 export_dynamic_flag_spec_CXX='${wl}-E'
19523 hardcode_direct_CXX=yes
19524 hardcode_minus_L_CXX=yes # Not in the search PATH,
19525 # but as the default
19526 # location of the library.
19528 case $cc_basename in
19529 CC*)
19530 # FIXME: insert proper C++ library support
19531 ld_shlibs_CXX=no
19533 aCC*)
19534 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'
19535 # Commands to make compiler produce verbose output that lists
19536 # what "hidden" libraries, object files and flags are used when
19537 # linking a shared library.
19539 # There doesn't appear to be a way to prevent this compiler from
19540 # explicitly linking system object files so we need to strip them
19541 # from the output so that they don't get included in the library
19542 # dependencies.
19543 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"'
19546 if test "$GXX" = yes; then
19547 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'
19548 else
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19553 esac
19556 hpux10*|hpux11*)
19557 if test $with_gnu_ld = no; then
19558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19559 hardcode_libdir_separator_CXX=:
19561 case $host_cpu in
19562 hppa*64*|ia64*)
19565 export_dynamic_flag_spec_CXX='${wl}-E'
19567 esac
19569 case $host_cpu in
19570 hppa*64*|ia64*)
19571 hardcode_direct_CXX=no
19572 hardcode_shlibpath_var_CXX=no
19575 hardcode_direct_CXX=yes
19576 hardcode_direct_absolute_CXX=yes
19577 hardcode_minus_L_CXX=yes # Not in the search PATH,
19578 # but as the default
19579 # location of the library.
19581 esac
19583 case $cc_basename in
19584 CC*)
19585 # FIXME: insert proper C++ library support
19586 ld_shlibs_CXX=no
19588 aCC*)
19589 case $host_cpu in
19590 hppa*64*)
19591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19593 ia64*)
19594 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19597 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19599 esac
19600 # Commands to make compiler produce verbose output that lists
19601 # what "hidden" libraries, object files and flags are used when
19602 # linking a shared library.
19604 # There doesn't appear to be a way to prevent this compiler from
19605 # explicitly linking system object files so we need to strip them
19606 # from the output so that they don't get included in the library
19607 # dependencies.
19608 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"'
19611 if test "$GXX" = yes; then
19612 if test $with_gnu_ld = no; then
19613 case $host_cpu in
19614 hppa*64*)
19615 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19617 ia64*)
19618 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19621 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'
19623 esac
19625 else
19626 # FIXME: insert proper C++ library support
19627 ld_shlibs_CXX=no
19630 esac
19633 interix[3-9]*)
19634 hardcode_direct_CXX=no
19635 hardcode_shlibpath_var_CXX=no
19636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19637 export_dynamic_flag_spec_CXX='${wl}-E'
19638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19639 # Instead, shared libraries are loaded at an image base (0x10000000 by
19640 # default) and relocated if they conflict, which is a slow very memory
19641 # consuming and fragmenting process. To avoid this, we pick a random,
19642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19644 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'
19645 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'
19647 irix5* | irix6*)
19648 case $cc_basename in
19649 CC*)
19650 # SGI C++
19651 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'
19653 # Archives containing C++ object files must be created using
19654 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19655 # necessary to make sure instantiated templates are included
19656 # in the archive.
19657 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19660 if test "$GXX" = yes; then
19661 if test "$with_gnu_ld" = no; then
19662 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'
19663 else
19664 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'
19667 link_all_deplibs_CXX=yes
19669 esac
19670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19671 hardcode_libdir_separator_CXX=:
19672 inherit_rpath_CXX=yes
19675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19676 case $cc_basename in
19677 KCC*)
19678 # Kuck and Associates, Inc. (KAI) C++ Compiler
19680 # KCC will only create a shared library if the output file
19681 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19682 # to its proper name (with version) after linking.
19683 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'
19684 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'
19685 # Commands to make compiler produce verbose output that lists
19686 # what "hidden" libraries, object files and flags are used when
19687 # linking a shared library.
19689 # There doesn't appear to be a way to prevent this compiler from
19690 # explicitly linking system object files so we need to strip them
19691 # from the output so that they don't get included in the library
19692 # dependencies.
19693 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"'
19695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19696 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19698 # Archives containing C++ object files must be created using
19699 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19700 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19702 icpc* | ecpc* )
19703 # Intel C++
19704 with_gnu_ld=yes
19705 # version 8.0 and above of icpc choke on multiply defined symbols
19706 # if we add $predep_objects and $postdep_objects, however 7.1 and
19707 # earlier do not add the objects themselves.
19708 case `$CC -V 2>&1` in
19709 *"Version 7."*)
19710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19711 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'
19713 *) # Version 8.0 or newer
19714 tmp_idyn=
19715 case $host_cpu in
19716 ia64*) tmp_idyn=' -i_dynamic';;
19717 esac
19718 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19719 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'
19721 esac
19722 archive_cmds_need_lc_CXX=no
19723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19725 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19727 pgCC* | pgcpp*)
19728 # Portland Group C++ compiler
19729 case `$CC -V` in
19730 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19731 prelink_cmds_CXX='tpldir=Template.dir~
19732 rm -rf $tpldir~
19733 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19734 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19735 old_archive_cmds_CXX='tpldir=Template.dir~
19736 rm -rf $tpldir~
19737 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19738 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19739 $RANLIB $oldlib'
19740 archive_cmds_CXX='tpldir=Template.dir~
19741 rm -rf $tpldir~
19742 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19743 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19744 archive_expsym_cmds_CXX='tpldir=Template.dir~
19745 rm -rf $tpldir~
19746 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19747 $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'
19749 *) # Version 6 and above use weak symbols
19750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19751 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'
19753 esac
19755 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19757 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'
19759 cxx*)
19760 # Compaq C++
19761 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19762 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'
19764 runpath_var=LD_RUN_PATH
19765 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19766 hardcode_libdir_separator_CXX=:
19768 # Commands to make compiler produce verbose output that lists
19769 # what "hidden" libraries, object files and flags are used when
19770 # linking a shared library.
19772 # There doesn't appear to be a way to prevent this compiler from
19773 # explicitly linking system object files so we need to strip them
19774 # from the output so that they don't get included in the library
19775 # dependencies.
19776 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'
19778 xl* | mpixl* | bgxl*)
19779 # IBM XL 8.0 on PPC, with GNU ld
19780 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19781 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19782 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19783 if test "x$supports_anon_versioning" = xyes; then
19784 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19786 echo "local: *; };" >> $output_objdir/$libname.ver~
19787 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19791 case `$CC -V 2>&1 | sed 5q` in
19792 *Sun\ C*)
19793 # Sun C++ 5.9
19794 no_undefined_flag_CXX=' -zdefs'
19795 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19796 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'
19797 hardcode_libdir_flag_spec_CXX='-R$libdir'
19798 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'
19799 compiler_needs_object_CXX=yes
19801 # Not sure whether something based on
19802 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19803 # would be better.
19804 output_verbose_link_cmd='func_echo_all'
19806 # Archives containing C++ object files must be created using
19807 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19808 # necessary to make sure instantiated templates are included
19809 # in the archive.
19810 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19812 esac
19814 esac
19817 lynxos*)
19818 # FIXME: insert proper C++ library support
19819 ld_shlibs_CXX=no
19822 m88k*)
19823 # FIXME: insert proper C++ library support
19824 ld_shlibs_CXX=no
19827 mvs*)
19828 case $cc_basename in
19829 cxx*)
19830 # FIXME: insert proper C++ library support
19831 ld_shlibs_CXX=no
19834 # FIXME: insert proper C++ library support
19835 ld_shlibs_CXX=no
19837 esac
19840 netbsd*)
19841 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19842 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19843 wlarc=
19844 hardcode_libdir_flag_spec_CXX='-R$libdir'
19845 hardcode_direct_CXX=yes
19846 hardcode_shlibpath_var_CXX=no
19848 # Workaround some broken pre-1.5 toolchains
19849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19852 *nto* | *qnx*)
19853 ld_shlibs_CXX=yes
19856 openbsd2*)
19857 # C++ shared libraries are fairly broken
19858 ld_shlibs_CXX=no
19861 openbsd*)
19862 if test -f /usr/libexec/ld.so; then
19863 hardcode_direct_CXX=yes
19864 hardcode_shlibpath_var_CXX=no
19865 hardcode_direct_absolute_CXX=yes
19866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19869 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19870 export_dynamic_flag_spec_CXX='${wl}-E'
19871 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19873 output_verbose_link_cmd=func_echo_all
19874 else
19875 ld_shlibs_CXX=no
19879 osf3* | osf4* | osf5*)
19880 case $cc_basename in
19881 KCC*)
19882 # Kuck and Associates, Inc. (KAI) C++ Compiler
19884 # KCC will only create a shared library if the output file
19885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19886 # to its proper name (with version) after linking.
19887 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'
19889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19890 hardcode_libdir_separator_CXX=:
19892 # Archives containing C++ object files must be created using
19893 # the KAI C++ compiler.
19894 case $host in
19895 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19896 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19897 esac
19899 RCC*)
19900 # Rational C++ 2.4.1
19901 # FIXME: insert proper C++ library support
19902 ld_shlibs_CXX=no
19904 cxx*)
19905 case $host in
19906 osf3*)
19907 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19908 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'
19909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19912 allow_undefined_flag_CXX=' -expect_unresolved \*'
19913 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'
19914 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19915 echo "-hidden">> $lib.exp~
19916 $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~
19917 $RM $lib.exp'
19918 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19920 esac
19922 hardcode_libdir_separator_CXX=:
19924 # Commands to make compiler produce verbose output that lists
19925 # what "hidden" libraries, object files and flags are used when
19926 # linking a shared library.
19928 # There doesn't appear to be a way to prevent this compiler from
19929 # explicitly linking system object files so we need to strip them
19930 # from the output so that they don't get included in the library
19931 # dependencies.
19932 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"'
19935 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19936 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19937 case $host in
19938 osf3*)
19939 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'
19942 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'
19944 esac
19946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19947 hardcode_libdir_separator_CXX=:
19949 # Commands to make compiler produce verbose output that lists
19950 # what "hidden" libraries, object files and flags are used when
19951 # linking a shared library.
19952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19954 else
19955 # FIXME: insert proper C++ library support
19956 ld_shlibs_CXX=no
19959 esac
19962 psos*)
19963 # FIXME: insert proper C++ library support
19964 ld_shlibs_CXX=no
19967 sunos4*)
19968 case $cc_basename in
19969 CC*)
19970 # Sun C++ 4.x
19971 # FIXME: insert proper C++ library support
19972 ld_shlibs_CXX=no
19974 lcc*)
19975 # Lucid
19976 # FIXME: insert proper C++ library support
19977 ld_shlibs_CXX=no
19980 # FIXME: insert proper C++ library support
19981 ld_shlibs_CXX=no
19983 esac
19986 solaris*)
19987 case $cc_basename in
19988 CC*)
19989 # Sun C++ 4.2, 5.x and Centerline C++
19990 archive_cmds_need_lc_CXX=yes
19991 no_undefined_flag_CXX=' -zdefs'
19992 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19993 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19994 $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'
19996 hardcode_libdir_flag_spec_CXX='-R$libdir'
19997 hardcode_shlibpath_var_CXX=no
19998 case $host_os in
19999 solaris2.[0-5] | solaris2.[0-5].*) ;;
20001 # The compiler driver will combine and reorder linker options,
20002 # but understands `-z linker_flag'.
20003 # Supported since Solaris 2.6 (maybe 2.5.1?)
20004 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20006 esac
20007 link_all_deplibs_CXX=yes
20009 output_verbose_link_cmd='func_echo_all'
20011 # Archives containing C++ object files must be created using
20012 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20013 # necessary to make sure instantiated templates are included
20014 # in the archive.
20015 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20017 gcx*)
20018 # Green Hills C++ Compiler
20019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20021 # The C++ compiler must be used to create the archive.
20022 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20025 # GNU C++ compiler with Solaris linker
20026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20027 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20028 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20029 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20030 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20031 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20033 # Commands to make compiler produce verbose output that lists
20034 # what "hidden" libraries, object files and flags are used when
20035 # linking a shared library.
20036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20037 else
20038 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20039 # platform.
20040 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20042 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20044 # Commands to make compiler produce verbose output that lists
20045 # what "hidden" libraries, object files and flags are used when
20046 # linking a shared library.
20047 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20050 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20051 case $host_os in
20052 solaris2.[0-5] | solaris2.[0-5].*) ;;
20054 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20056 esac
20059 esac
20062 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20063 no_undefined_flag_CXX='${wl}-z,text'
20064 archive_cmds_need_lc_CXX=no
20065 hardcode_shlibpath_var_CXX=no
20066 runpath_var='LD_RUN_PATH'
20068 case $cc_basename in
20069 CC*)
20070 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20071 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20074 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20075 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20077 esac
20080 sysv5* | sco3.2v5* | sco5v6*)
20081 # Note: We can NOT use -z defs as we might desire, because we do not
20082 # link with -lc, and that would cause any symbols used from libc to
20083 # always be unresolved, which means just about no library would
20084 # ever link correctly. If we're not using GNU ld we use -z text
20085 # though, which does catch some bad symbols but isn't as heavy-handed
20086 # as -z defs.
20087 no_undefined_flag_CXX='${wl}-z,text'
20088 allow_undefined_flag_CXX='${wl}-z,nodefs'
20089 archive_cmds_need_lc_CXX=no
20090 hardcode_shlibpath_var_CXX=no
20091 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20092 hardcode_libdir_separator_CXX=':'
20093 link_all_deplibs_CXX=yes
20094 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20095 runpath_var='LD_RUN_PATH'
20097 case $cc_basename in
20098 CC*)
20099 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20100 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20102 '"$old_archive_cmds_CXX"
20103 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20104 '"$reload_cmds_CXX"
20107 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20108 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20110 esac
20113 tandem*)
20114 case $cc_basename in
20115 NCC*)
20116 # NonStop-UX NCC 3.20
20117 # FIXME: insert proper C++ library support
20118 ld_shlibs_CXX=no
20121 # FIXME: insert proper C++ library support
20122 ld_shlibs_CXX=no
20124 esac
20127 vxworks*)
20128 # FIXME: insert proper C++ library support
20129 ld_shlibs_CXX=no
20133 # FIXME: insert proper C++ library support
20134 ld_shlibs_CXX=no
20136 esac
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20139 $as_echo "$ld_shlibs_CXX" >&6; }
20140 test "$ld_shlibs_CXX" = no && can_build_shared=no
20142 GCC_CXX="$GXX"
20143 LD_CXX="$LD"
20145 ## CAVEAT EMPTOR:
20146 ## There is no encapsulation within the following macros, do not change
20147 ## the running order or otherwise move them around unless you know exactly
20148 ## what you are doing...
20149 # Dependencies to place before and after the object being linked:
20150 predep_objects_CXX=
20151 postdep_objects_CXX=
20152 predeps_CXX=
20153 postdeps_CXX=
20154 compiler_lib_search_path_CXX=
20156 cat > conftest.$ac_ext <<_LT_EOF
20157 class Foo
20159 public:
20160 Foo (void) { a = 0; }
20161 private:
20162 int a;
20164 _LT_EOF
20166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20167 (eval $ac_compile) 2>&5
20168 ac_status=$?
20169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20170 test $ac_status = 0; }; then
20171 # Parse the compiler output and extract the necessary
20172 # objects, libraries and library flags.
20174 # Sentinel used to keep track of whether or not we are before
20175 # the conftest object file.
20176 pre_test_object_deps_done=no
20178 for p in `eval "$output_verbose_link_cmd"`; do
20179 case $p in
20181 -L* | -R* | -l*)
20182 # Some compilers place space between "-{L,R}" and the path.
20183 # Remove the space.
20184 if test $p = "-L" ||
20185 test $p = "-R"; then
20186 prev=$p
20187 continue
20188 else
20189 prev=
20192 if test "$pre_test_object_deps_done" = no; then
20193 case $p in
20194 -L* | -R*)
20195 # Internal compiler library paths should come after those
20196 # provided the user. The postdeps already come after the
20197 # user supplied libs so there is no need to process them.
20198 if test -z "$compiler_lib_search_path_CXX"; then
20199 compiler_lib_search_path_CXX="${prev}${p}"
20200 else
20201 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20204 # The "-l" case would never come before the object being
20205 # linked, so don't bother handling this case.
20206 esac
20207 else
20208 if test -z "$postdeps_CXX"; then
20209 postdeps_CXX="${prev}${p}"
20210 else
20211 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20216 *.$objext)
20217 # This assumes that the test object file only shows up
20218 # once in the compiler output.
20219 if test "$p" = "conftest.$objext"; then
20220 pre_test_object_deps_done=yes
20221 continue
20224 if test "$pre_test_object_deps_done" = no; then
20225 if test -z "$predep_objects_CXX"; then
20226 predep_objects_CXX="$p"
20227 else
20228 predep_objects_CXX="$predep_objects_CXX $p"
20230 else
20231 if test -z "$postdep_objects_CXX"; then
20232 postdep_objects_CXX="$p"
20233 else
20234 postdep_objects_CXX="$postdep_objects_CXX $p"
20239 *) ;; # Ignore the rest.
20241 esac
20242 done
20244 # Clean up.
20245 rm -f a.out a.exe
20246 else
20247 echo "libtool.m4: error: problem compiling CXX test program"
20250 $RM -f confest.$objext
20252 # PORTME: override above test on systems where it is broken
20253 case $host_os in
20254 interix[3-9]*)
20255 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20256 # hack all around it, let's just trust "g++" to DTRT.
20257 predep_objects_CXX=
20258 postdep_objects_CXX=
20259 postdeps_CXX=
20262 linux*)
20263 case `$CC -V 2>&1 | sed 5q` in
20264 *Sun\ C*)
20265 # Sun C++ 5.9
20267 # The more standards-conforming stlport4 library is
20268 # incompatible with the Cstd library. Avoid specifying
20269 # it if it's in CXXFLAGS. Ignore libCrun as
20270 # -library=stlport4 depends on it.
20271 case " $CXX $CXXFLAGS " in
20272 *" -library=stlport4 "*)
20273 solaris_use_stlport4=yes
20275 esac
20277 if test "$solaris_use_stlport4" != yes; then
20278 postdeps_CXX='-library=Cstd -library=Crun'
20281 esac
20284 solaris*)
20285 case $cc_basename in
20286 CC*)
20287 # The more standards-conforming stlport4 library is
20288 # incompatible with the Cstd library. Avoid specifying
20289 # it if it's in CXXFLAGS. Ignore libCrun as
20290 # -library=stlport4 depends on it.
20291 case " $CXX $CXXFLAGS " in
20292 *" -library=stlport4 "*)
20293 solaris_use_stlport4=yes
20295 esac
20297 # Adding this requires a known-good setup of shared libraries for
20298 # Sun compiler versions before 5.6, else PIC objects from an old
20299 # archive will be linked into the output, leading to subtle bugs.
20300 if test "$solaris_use_stlport4" != yes; then
20301 postdeps_CXX='-library=Cstd -library=Crun'
20304 esac
20306 esac
20309 case " $postdeps_CXX " in
20310 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20311 esac
20312 compiler_lib_search_dirs_CXX=
20313 if test -n "${compiler_lib_search_path_CXX}"; then
20314 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20347 lt_prog_compiler_wl_CXX=
20348 lt_prog_compiler_pic_CXX=
20349 lt_prog_compiler_static_CXX=
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20352 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20354 # C++ specific cases for pic, static, wl, etc.
20355 if test "$GXX" = yes; then
20356 lt_prog_compiler_wl_CXX='-Wl,'
20357 lt_prog_compiler_static_CXX='-static'
20359 case $host_os in
20360 aix*)
20361 # All AIX code is PIC.
20362 if test "$host_cpu" = ia64; then
20363 # AIX 5 now supports IA64 processor
20364 lt_prog_compiler_static_CXX='-Bstatic'
20366 lt_prog_compiler_pic_CXX='-fPIC'
20369 amigaos*)
20370 case $host_cpu in
20371 powerpc)
20372 # see comment about AmigaOS4 .so support
20373 lt_prog_compiler_pic_CXX='-fPIC'
20375 m68k)
20376 # FIXME: we need at least 68020 code to build shared libraries, but
20377 # adding the `-m68020' flag to GCC prevents building anything better,
20378 # like `-m68040'.
20379 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20381 esac
20384 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20385 # PIC is the default for these OSes.
20387 mingw* | cygwin* | os2* | pw32* | cegcc*)
20388 # This hack is so that the source file can tell whether it is being
20389 # built for inclusion in a dll (and should export symbols for example).
20390 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20391 # (--disable-auto-import) libraries
20392 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20394 darwin* | rhapsody*)
20395 # PIC is the default on this platform
20396 # Common symbols not allowed in MH_DYLIB files
20397 lt_prog_compiler_pic_CXX='-fno-common'
20399 *djgpp*)
20400 # DJGPP does not support shared libraries at all
20401 lt_prog_compiler_pic_CXX=
20403 haiku*)
20404 # PIC is the default for Haiku.
20405 # The "-static" flag exists, but is broken.
20406 lt_prog_compiler_static_CXX=
20408 interix[3-9]*)
20409 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20410 # Instead, we relocate shared libraries at runtime.
20412 sysv4*MP*)
20413 if test -d /usr/nec; then
20414 lt_prog_compiler_pic_CXX=-Kconform_pic
20417 hpux*)
20418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20420 # sets the default TLS model and affects inlining.
20421 case $host_cpu in
20422 hppa*64*)
20425 lt_prog_compiler_pic_CXX='-fPIC'
20427 esac
20429 *qnx* | *nto*)
20430 # QNX uses GNU C++, but need to define -shared option too, otherwise
20431 # it will coredump.
20432 lt_prog_compiler_pic_CXX='-fPIC -shared'
20435 lt_prog_compiler_pic_CXX='-fPIC'
20437 esac
20438 else
20439 case $host_os in
20440 aix[4-9]*)
20441 # All AIX code is PIC.
20442 if test "$host_cpu" = ia64; then
20443 # AIX 5 now supports IA64 processor
20444 lt_prog_compiler_static_CXX='-Bstatic'
20445 else
20446 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20449 chorus*)
20450 case $cc_basename in
20451 cxch68*)
20452 # Green Hills C++ Compiler
20453 # _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"
20455 esac
20457 dgux*)
20458 case $cc_basename in
20459 ec++*)
20460 lt_prog_compiler_pic_CXX='-KPIC'
20462 ghcx*)
20463 # Green Hills C++ Compiler
20464 lt_prog_compiler_pic_CXX='-pic'
20468 esac
20470 freebsd* | dragonfly*)
20471 # FreeBSD uses GNU C++
20473 hpux9* | hpux10* | hpux11*)
20474 case $cc_basename in
20475 CC*)
20476 lt_prog_compiler_wl_CXX='-Wl,'
20477 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20478 if test "$host_cpu" != ia64; then
20479 lt_prog_compiler_pic_CXX='+Z'
20482 aCC*)
20483 lt_prog_compiler_wl_CXX='-Wl,'
20484 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20485 case $host_cpu in
20486 hppa*64*|ia64*)
20487 # +Z the default
20490 lt_prog_compiler_pic_CXX='+Z'
20492 esac
20496 esac
20498 interix*)
20499 # This is c89, which is MS Visual C++ (no shared libs)
20500 # Anyone wants to do a port?
20502 irix5* | irix6* | nonstopux*)
20503 case $cc_basename in
20504 CC*)
20505 lt_prog_compiler_wl_CXX='-Wl,'
20506 lt_prog_compiler_static_CXX='-non_shared'
20507 # CC pic flag -KPIC is the default.
20511 esac
20513 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20514 case $cc_basename in
20515 KCC*)
20516 # KAI C++ Compiler
20517 lt_prog_compiler_wl_CXX='--backend -Wl,'
20518 lt_prog_compiler_pic_CXX='-fPIC'
20520 ecpc* )
20521 # old Intel C++ for x86_64 which still supported -KPIC.
20522 lt_prog_compiler_wl_CXX='-Wl,'
20523 lt_prog_compiler_pic_CXX='-KPIC'
20524 lt_prog_compiler_static_CXX='-static'
20526 icpc* )
20527 # Intel C++, used to be incompatible with GCC.
20528 # ICC 10 doesn't accept -KPIC any more.
20529 lt_prog_compiler_wl_CXX='-Wl,'
20530 lt_prog_compiler_pic_CXX='-fPIC'
20531 lt_prog_compiler_static_CXX='-static'
20533 pgCC* | pgcpp*)
20534 # Portland Group C++ compiler
20535 lt_prog_compiler_wl_CXX='-Wl,'
20536 lt_prog_compiler_pic_CXX='-fpic'
20537 lt_prog_compiler_static_CXX='-Bstatic'
20539 cxx*)
20540 # Compaq C++
20541 # Make sure the PIC flag is empty. It appears that all Alpha
20542 # Linux and Compaq Tru64 Unix objects are PIC.
20543 lt_prog_compiler_pic_CXX=
20544 lt_prog_compiler_static_CXX='-non_shared'
20546 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20547 # IBM XL 8.0, 9.0 on PPC and BlueGene
20548 lt_prog_compiler_wl_CXX='-Wl,'
20549 lt_prog_compiler_pic_CXX='-qpic'
20550 lt_prog_compiler_static_CXX='-qstaticlink'
20553 case `$CC -V 2>&1 | sed 5q` in
20554 *Sun\ C*)
20555 # Sun C++ 5.9
20556 lt_prog_compiler_pic_CXX='-KPIC'
20557 lt_prog_compiler_static_CXX='-Bstatic'
20558 lt_prog_compiler_wl_CXX='-Qoption ld '
20560 esac
20562 esac
20564 lynxos*)
20566 m88k*)
20568 mvs*)
20569 case $cc_basename in
20570 cxx*)
20571 lt_prog_compiler_pic_CXX='-W c,exportall'
20575 esac
20577 netbsd*)
20579 *qnx* | *nto*)
20580 # QNX uses GNU C++, but need to define -shared option too, otherwise
20581 # it will coredump.
20582 lt_prog_compiler_pic_CXX='-fPIC -shared'
20584 osf3* | osf4* | osf5*)
20585 case $cc_basename in
20586 KCC*)
20587 lt_prog_compiler_wl_CXX='--backend -Wl,'
20589 RCC*)
20590 # Rational C++ 2.4.1
20591 lt_prog_compiler_pic_CXX='-pic'
20593 cxx*)
20594 # Digital/Compaq C++
20595 lt_prog_compiler_wl_CXX='-Wl,'
20596 # Make sure the PIC flag is empty. It appears that all Alpha
20597 # Linux and Compaq Tru64 Unix objects are PIC.
20598 lt_prog_compiler_pic_CXX=
20599 lt_prog_compiler_static_CXX='-non_shared'
20603 esac
20605 psos*)
20607 solaris*)
20608 case $cc_basename in
20609 CC*)
20610 # Sun C++ 4.2, 5.x and Centerline C++
20611 lt_prog_compiler_pic_CXX='-KPIC'
20612 lt_prog_compiler_static_CXX='-Bstatic'
20613 lt_prog_compiler_wl_CXX='-Qoption ld '
20615 gcx*)
20616 # Green Hills C++ Compiler
20617 lt_prog_compiler_pic_CXX='-PIC'
20621 esac
20623 sunos4*)
20624 case $cc_basename in
20625 CC*)
20626 # Sun C++ 4.x
20627 lt_prog_compiler_pic_CXX='-pic'
20628 lt_prog_compiler_static_CXX='-Bstatic'
20630 lcc*)
20631 # Lucid
20632 lt_prog_compiler_pic_CXX='-pic'
20636 esac
20638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20639 case $cc_basename in
20640 CC*)
20641 lt_prog_compiler_wl_CXX='-Wl,'
20642 lt_prog_compiler_pic_CXX='-KPIC'
20643 lt_prog_compiler_static_CXX='-Bstatic'
20645 esac
20647 tandem*)
20648 case $cc_basename in
20649 NCC*)
20650 # NonStop-UX NCC 3.20
20651 lt_prog_compiler_pic_CXX='-KPIC'
20655 esac
20657 vxworks*)
20660 lt_prog_compiler_can_build_shared_CXX=no
20662 esac
20665 case $host_os in
20666 # For platforms which do not support PIC, -DPIC is meaningless:
20667 *djgpp*)
20668 lt_prog_compiler_pic_CXX=
20671 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20673 esac
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20675 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20680 # Check to make sure the PIC flag actually works.
20682 if test -n "$lt_prog_compiler_pic_CXX"; then
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20684 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20685 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20686 $as_echo_n "(cached) " >&6
20687 else
20688 lt_cv_prog_compiler_pic_works_CXX=no
20689 ac_outfile=conftest.$ac_objext
20690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20691 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20692 # Insert the option either (1) after the last *FLAGS variable, or
20693 # (2) before a word containing "conftest.", or (3) at the end.
20694 # Note that $ac_compile itself does not contain backslashes and begins
20695 # with a dollar sign (not a hyphen), so the echo should work correctly.
20696 # The option is referenced via a variable to avoid confusing sed.
20697 lt_compile=`echo "$ac_compile" | $SED \
20698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20700 -e 's:$: $lt_compiler_flag:'`
20701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20702 (eval "$lt_compile" 2>conftest.err)
20703 ac_status=$?
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 if (exit $ac_status) && test -s "$ac_outfile"; then
20707 # The compiler can only warn and ignore the option if not recognized
20708 # So say no if there are warnings other than the usual output.
20709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20712 lt_cv_prog_compiler_pic_works_CXX=yes
20715 $RM conftest*
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20719 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20721 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20722 case $lt_prog_compiler_pic_CXX in
20723 "" | " "*) ;;
20724 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20725 esac
20726 else
20727 lt_prog_compiler_pic_CXX=
20728 lt_prog_compiler_can_build_shared_CXX=no
20736 # Check to make sure the static flag actually works.
20738 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20741 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20742 $as_echo_n "(cached) " >&6
20743 else
20744 lt_cv_prog_compiler_static_works_CXX=no
20745 save_LDFLAGS="$LDFLAGS"
20746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20749 # The linker can only warn and ignore the option if not recognized
20750 # So say no if there are warnings
20751 if test -s conftest.err; then
20752 # Append any errors to the config.log.
20753 cat conftest.err 1>&5
20754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20756 if diff conftest.exp conftest.er2 >/dev/null; then
20757 lt_cv_prog_compiler_static_works_CXX=yes
20759 else
20760 lt_cv_prog_compiler_static_works_CXX=yes
20763 $RM -r conftest*
20764 LDFLAGS="$save_LDFLAGS"
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20768 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20770 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20772 else
20773 lt_prog_compiler_static_CXX=
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20781 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20782 $as_echo_n "(cached) " >&6
20783 else
20784 lt_cv_prog_compiler_c_o_CXX=no
20785 $RM -r conftest 2>/dev/null
20786 mkdir conftest
20787 cd conftest
20788 mkdir out
20789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20791 lt_compiler_flag="-o out/conftest2.$ac_objext"
20792 # Insert the option either (1) after the last *FLAGS variable, or
20793 # (2) before a word containing "conftest.", or (3) at the end.
20794 # Note that $ac_compile itself does not contain backslashes and begins
20795 # with a dollar sign (not a hyphen), so the echo should work correctly.
20796 lt_compile=`echo "$ac_compile" | $SED \
20797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20799 -e 's:$: $lt_compiler_flag:'`
20800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20801 (eval "$lt_compile" 2>out/conftest.err)
20802 ac_status=$?
20803 cat out/conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20806 then
20807 # The compiler can only warn and ignore the option if not recognized
20808 # So say no if there are warnings
20809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20812 lt_cv_prog_compiler_c_o_CXX=yes
20815 chmod u+w . 2>&5
20816 $RM conftest*
20817 # SGI C++ compiler will create directory out/ii_files/ for
20818 # template instantiation
20819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20820 $RM out/* && rmdir out
20821 cd ..
20822 $RM -r conftest
20823 $RM conftest*
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20827 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20832 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20833 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20834 $as_echo_n "(cached) " >&6
20835 else
20836 lt_cv_prog_compiler_c_o_CXX=no
20837 $RM -r conftest 2>/dev/null
20838 mkdir conftest
20839 cd conftest
20840 mkdir out
20841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20843 lt_compiler_flag="-o out/conftest2.$ac_objext"
20844 # Insert the option either (1) after the last *FLAGS variable, or
20845 # (2) before a word containing "conftest.", or (3) at the end.
20846 # Note that $ac_compile itself does not contain backslashes and begins
20847 # with a dollar sign (not a hyphen), so the echo should work correctly.
20848 lt_compile=`echo "$ac_compile" | $SED \
20849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20851 -e 's:$: $lt_compiler_flag:'`
20852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20853 (eval "$lt_compile" 2>out/conftest.err)
20854 ac_status=$?
20855 cat out/conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20858 then
20859 # The compiler can only warn and ignore the option if not recognized
20860 # So say no if there are warnings
20861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20864 lt_cv_prog_compiler_c_o_CXX=yes
20867 chmod u+w . 2>&5
20868 $RM conftest*
20869 # SGI C++ compiler will create directory out/ii_files/ for
20870 # template instantiation
20871 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20872 $RM out/* && rmdir out
20873 cd ..
20874 $RM -r conftest
20875 $RM conftest*
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20879 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20884 hard_links="nottested"
20885 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20886 # do not overwrite the value of need_locks provided by the user
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20888 $as_echo_n "checking if we can lock with hard links... " >&6; }
20889 hard_links=yes
20890 $RM conftest*
20891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20892 touch conftest.a
20893 ln conftest.a conftest.b 2>&5 || hard_links=no
20894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20896 $as_echo "$hard_links" >&6; }
20897 if test "$hard_links" = no; then
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20899 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20900 need_locks=warn
20902 else
20903 need_locks=no
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20909 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20912 case $host_os in
20913 aix[4-9]*)
20914 # If we're using GNU nm, then we don't want the "-C" option.
20915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20916 # Also, AIX nm treats weak defined symbols like other global defined
20917 # symbols, whereas GNU nm marks them as "W".
20918 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20919 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'
20920 else
20921 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'
20924 pw32*)
20925 export_symbols_cmds_CXX="$ltdll_cmds"
20927 cygwin* | mingw* | cegcc*)
20928 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'
20931 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20933 esac
20934 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20937 $as_echo "$ld_shlibs_CXX" >&6; }
20938 test "$ld_shlibs_CXX" = no && can_build_shared=no
20940 with_gnu_ld_CXX=$with_gnu_ld
20948 # Do we need to explicitly link libc?
20950 case "x$archive_cmds_need_lc_CXX" in
20951 x|xyes)
20952 # Assume -lc should be added
20953 archive_cmds_need_lc_CXX=yes
20955 if test "$enable_shared" = yes && test "$GCC" = yes; then
20956 case $archive_cmds_CXX in
20957 *'~'*)
20958 # FIXME: we may have to deal with multi-command sequences.
20960 '$CC '*)
20961 # Test whether the compiler implicitly links with -lc since on some
20962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20963 # to ld, don't add -lc before -lgcc.
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20966 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20967 $as_echo_n "(cached) " >&6
20968 else
20969 $RM conftest*
20970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20973 (eval $ac_compile) 2>&5
20974 ac_status=$?
20975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20976 test $ac_status = 0; } 2>conftest.err; then
20977 soname=conftest
20978 lib=conftest
20979 libobjs=conftest.$ac_objext
20980 deplibs=
20981 wl=$lt_prog_compiler_wl_CXX
20982 pic_flag=$lt_prog_compiler_pic_CXX
20983 compiler_flags=-v
20984 linker_flags=-v
20985 verstring=
20986 output_objdir=.
20987 libname=conftest
20988 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20989 allow_undefined_flag_CXX=
20990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20991 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20992 ac_status=$?
20993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994 test $ac_status = 0; }
20995 then
20996 lt_cv_archive_cmds_need_lc_CXX=no
20997 else
20998 lt_cv_archive_cmds_need_lc_CXX=yes
21000 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21001 else
21002 cat conftest.err 1>&5
21004 $RM conftest*
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21008 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21009 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21011 esac
21014 esac
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21080 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21082 library_names_spec=
21083 libname_spec='lib$name'
21084 soname_spec=
21085 shrext_cmds=".so"
21086 postinstall_cmds=
21087 postuninstall_cmds=
21088 finish_cmds=
21089 finish_eval=
21090 shlibpath_var=
21091 shlibpath_overrides_runpath=unknown
21092 version_type=none
21093 dynamic_linker="$host_os ld.so"
21094 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21095 need_lib_prefix=unknown
21096 hardcode_into_libs=no
21098 # when you set need_version to no, make sure it does not cause -set_version
21099 # flags to be left without arguments
21100 need_version=unknown
21102 case $host_os in
21103 aix3*)
21104 version_type=linux
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21106 shlibpath_var=LIBPATH
21108 # AIX 3 has no versioning support, so we append a major version to the name.
21109 soname_spec='${libname}${release}${shared_ext}$major'
21112 aix[4-9]*)
21113 version_type=linux
21114 need_lib_prefix=no
21115 need_version=no
21116 hardcode_into_libs=yes
21117 if test "$host_cpu" = ia64; then
21118 # AIX 5 supports IA64
21119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21120 shlibpath_var=LD_LIBRARY_PATH
21121 else
21122 # With GCC up to 2.95.x, collect2 would create an import file
21123 # for dependence libraries. The import file would start with
21124 # the line `#! .'. This would cause the generated library to
21125 # depend on `.', always an invalid library. This was fixed in
21126 # development snapshots of GCC prior to 3.0.
21127 case $host_os in
21128 aix4 | aix4.[01] | aix4.[01].*)
21129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21130 echo ' yes '
21131 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21133 else
21134 can_build_shared=no
21137 esac
21138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21139 # soname into executable. Probably we can add versioning support to
21140 # collect2, so additional links can be useful in future.
21141 if test "$aix_use_runtimelinking" = yes; then
21142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21143 # instead of lib<name>.a to let people know that these are not
21144 # typical AIX shared libraries.
21145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21146 else
21147 # We preserve .a as extension for shared libraries through AIX4.2
21148 # and later when we are not doing run time linking.
21149 library_names_spec='${libname}${release}.a $libname.a'
21150 soname_spec='${libname}${release}${shared_ext}$major'
21152 shlibpath_var=LIBPATH
21156 amigaos*)
21157 case $host_cpu in
21158 powerpc)
21159 # Since July 2007 AmigaOS4 officially supports .so libraries.
21160 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21163 m68k)
21164 library_names_spec='$libname.ixlibrary $libname.a'
21165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21166 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'
21168 esac
21171 beos*)
21172 library_names_spec='${libname}${shared_ext}'
21173 dynamic_linker="$host_os ld.so"
21174 shlibpath_var=LIBRARY_PATH
21177 bsdi[45]*)
21178 version_type=linux
21179 need_version=no
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 soname_spec='${libname}${release}${shared_ext}$major'
21182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21183 shlibpath_var=LD_LIBRARY_PATH
21184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21186 # the default ld.so.conf also contains /usr/contrib/lib and
21187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21188 # libtool to hard-code these into programs
21191 cygwin* | mingw* | pw32* | cegcc*)
21192 version_type=windows
21193 shrext_cmds=".dll"
21194 need_version=no
21195 need_lib_prefix=no
21197 case $GCC,$host_os in
21198 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21199 library_names_spec='$libname.dll.a'
21200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21201 postinstall_cmds='base_file=`basename \${file}`~
21202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21203 dldir=$destdir/`dirname \$dlpath`~
21204 test -d \$dldir || mkdir -p \$dldir~
21205 $install_prog $dir/$dlname \$dldir/$dlname~
21206 chmod a+x \$dldir/$dlname~
21207 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21208 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21211 dlpath=$dir/\$dldll~
21212 $RM \$dlpath'
21213 shlibpath_overrides_runpath=yes
21215 case $host_os in
21216 cygwin*)
21217 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21218 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21221 mingw* | cegcc*)
21222 # MinGW DLLs use traditional 'lib' prefix
21223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21225 pw32*)
21226 # pw32 DLLs use 'pw' prefix rather than 'lib'
21227 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21229 esac
21233 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21235 esac
21236 dynamic_linker='Win32 ld.exe'
21237 # FIXME: first we should search . and the directory the executable is in
21238 shlibpath_var=PATH
21241 darwin* | rhapsody*)
21242 dynamic_linker="$host_os dyld"
21243 version_type=darwin
21244 need_lib_prefix=no
21245 need_version=no
21246 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21247 soname_spec='${libname}${release}${major}$shared_ext'
21248 shlibpath_overrides_runpath=yes
21249 shlibpath_var=DYLD_LIBRARY_PATH
21250 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21255 dgux*)
21256 version_type=linux
21257 need_lib_prefix=no
21258 need_version=no
21259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21260 soname_spec='${libname}${release}${shared_ext}$major'
21261 shlibpath_var=LD_LIBRARY_PATH
21264 freebsd* | dragonfly*)
21265 # DragonFly does not have aout. When/if they implement a new
21266 # versioning mechanism, adjust this.
21267 if test -x /usr/bin/objformat; then
21268 objformat=`/usr/bin/objformat`
21269 else
21270 case $host_os in
21271 freebsd[23].*) objformat=aout ;;
21272 *) objformat=elf ;;
21273 esac
21275 version_type=freebsd-$objformat
21276 case $version_type in
21277 freebsd-elf*)
21278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21279 need_version=no
21280 need_lib_prefix=no
21282 freebsd-*)
21283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21284 need_version=yes
21286 esac
21287 shlibpath_var=LD_LIBRARY_PATH
21288 case $host_os in
21289 freebsd2.*)
21290 shlibpath_overrides_runpath=yes
21292 freebsd3.[01]* | freebsdelf3.[01]*)
21293 shlibpath_overrides_runpath=yes
21294 hardcode_into_libs=yes
21296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21298 shlibpath_overrides_runpath=no
21299 hardcode_into_libs=yes
21301 *) # from 4.6 on, and DragonFly
21302 shlibpath_overrides_runpath=yes
21303 hardcode_into_libs=yes
21305 esac
21308 gnu*)
21309 version_type=linux
21310 need_lib_prefix=no
21311 need_version=no
21312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21313 soname_spec='${libname}${release}${shared_ext}$major'
21314 shlibpath_var=LD_LIBRARY_PATH
21315 hardcode_into_libs=yes
21318 haiku*)
21319 version_type=linux
21320 need_lib_prefix=no
21321 need_version=no
21322 dynamic_linker="$host_os runtime_loader"
21323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21324 soname_spec='${libname}${release}${shared_ext}$major'
21325 shlibpath_var=LIBRARY_PATH
21326 shlibpath_overrides_runpath=yes
21327 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21328 hardcode_into_libs=yes
21331 hpux9* | hpux10* | hpux11*)
21332 # Give a soname corresponding to the major version so that dld.sl refuses to
21333 # link against other versions.
21334 version_type=sunos
21335 need_lib_prefix=no
21336 need_version=no
21337 case $host_cpu in
21338 ia64*)
21339 shrext_cmds='.so'
21340 hardcode_into_libs=yes
21341 dynamic_linker="$host_os dld.so"
21342 shlibpath_var=LD_LIBRARY_PATH
21343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21345 soname_spec='${libname}${release}${shared_ext}$major'
21346 if test "X$HPUX_IA64_MODE" = X32; then
21347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21348 else
21349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21353 hppa*64*)
21354 shrext_cmds='.sl'
21355 hardcode_into_libs=yes
21356 dynamic_linker="$host_os dld.sl"
21357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21360 soname_spec='${libname}${release}${shared_ext}$major'
21361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21365 shrext_cmds='.sl'
21366 dynamic_linker="$host_os dld.sl"
21367 shlibpath_var=SHLIB_PATH
21368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21370 soname_spec='${libname}${release}${shared_ext}$major'
21372 esac
21373 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21374 postinstall_cmds='chmod 555 $lib'
21375 # or fails outright, so override atomically:
21376 install_override_mode=555
21379 interix[3-9]*)
21380 version_type=linux
21381 need_lib_prefix=no
21382 need_version=no
21383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21384 soname_spec='${libname}${release}${shared_ext}$major'
21385 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21386 shlibpath_var=LD_LIBRARY_PATH
21387 shlibpath_overrides_runpath=no
21388 hardcode_into_libs=yes
21391 irix5* | irix6* | nonstopux*)
21392 case $host_os in
21393 nonstopux*) version_type=nonstopux ;;
21395 if test "$lt_cv_prog_gnu_ld" = yes; then
21396 version_type=linux
21397 else
21398 version_type=irix
21399 fi ;;
21400 esac
21401 need_lib_prefix=no
21402 need_version=no
21403 soname_spec='${libname}${release}${shared_ext}$major'
21404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21405 case $host_os in
21406 irix5* | nonstopux*)
21407 libsuff= shlibsuff=
21410 case $LD in # libtool.m4 will add one of these switches to LD
21411 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21412 libsuff= shlibsuff= libmagic=32-bit;;
21413 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21414 libsuff=32 shlibsuff=N32 libmagic=N32;;
21415 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21416 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21417 *) libsuff= shlibsuff= libmagic=never-match;;
21418 esac
21420 esac
21421 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21422 shlibpath_overrides_runpath=no
21423 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21424 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21425 hardcode_into_libs=yes
21428 # No shared lib support for Linux oldld, aout, or coff.
21429 linux*oldld* | linux*aout* | linux*coff*)
21430 dynamic_linker=no
21433 # This must be Linux ELF.
21434 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21435 version_type=linux
21436 need_lib_prefix=no
21437 need_version=no
21438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21439 soname_spec='${libname}${release}${shared_ext}$major'
21440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21441 shlibpath_var=LD_LIBRARY_PATH
21442 shlibpath_overrides_runpath=no
21444 # Some binutils ld are patched to set DT_RUNPATH
21445 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21446 $as_echo_n "(cached) " >&6
21447 else
21448 lt_cv_shlibpath_overrides_runpath=no
21449 save_LDFLAGS=$LDFLAGS
21450 save_libdir=$libdir
21451 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21452 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21454 /* end confdefs.h. */
21457 main ()
21461 return 0;
21463 _ACEOF
21464 if ac_fn_cxx_try_link "$LINENO"; then :
21465 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21466 lt_cv_shlibpath_overrides_runpath=yes
21469 rm -f core conftest.err conftest.$ac_objext \
21470 conftest$ac_exeext conftest.$ac_ext
21471 LDFLAGS=$save_LDFLAGS
21472 libdir=$save_libdir
21476 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21478 # This implies no fast_install, which is unacceptable.
21479 # Some rework will be needed to allow for fast_install
21480 # before this can be enabled.
21481 hardcode_into_libs=yes
21483 # Append ld.so.conf contents to the search path
21484 if test -f /etc/ld.so.conf; then
21485 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' ' '`
21486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21489 # We used to test for /lib/ld.so.1 and disable shared libraries on
21490 # powerpc, because MkLinux only supported shared libraries with the
21491 # GNU dynamic linker. Since this was broken with cross compilers,
21492 # most powerpc-linux boxes support dynamic linking these days and
21493 # people can always --disable-shared, the test was removed, and we
21494 # assume the GNU/Linux dynamic linker is in use.
21495 dynamic_linker='GNU/Linux ld.so'
21498 netbsd*)
21499 version_type=sunos
21500 need_lib_prefix=no
21501 need_version=no
21502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21505 dynamic_linker='NetBSD (a.out) ld.so'
21506 else
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21508 soname_spec='${libname}${release}${shared_ext}$major'
21509 dynamic_linker='NetBSD ld.elf_so'
21511 shlibpath_var=LD_LIBRARY_PATH
21512 shlibpath_overrides_runpath=yes
21513 hardcode_into_libs=yes
21516 newsos6)
21517 version_type=linux
21518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21519 shlibpath_var=LD_LIBRARY_PATH
21520 shlibpath_overrides_runpath=yes
21523 *nto* | *qnx*)
21524 version_type=qnx
21525 need_lib_prefix=no
21526 need_version=no
21527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21528 soname_spec='${libname}${release}${shared_ext}$major'
21529 shlibpath_var=LD_LIBRARY_PATH
21530 shlibpath_overrides_runpath=no
21531 hardcode_into_libs=yes
21532 dynamic_linker='ldqnx.so'
21535 openbsd*)
21536 version_type=sunos
21537 sys_lib_dlsearch_path_spec="/usr/lib"
21538 need_lib_prefix=no
21539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21540 case $host_os in
21541 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21542 *) need_version=no ;;
21543 esac
21544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21546 shlibpath_var=LD_LIBRARY_PATH
21547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21548 case $host_os in
21549 openbsd2.[89] | openbsd2.[89].*)
21550 shlibpath_overrides_runpath=no
21553 shlibpath_overrides_runpath=yes
21555 esac
21556 else
21557 shlibpath_overrides_runpath=yes
21561 os2*)
21562 libname_spec='$name'
21563 shrext_cmds=".dll"
21564 need_lib_prefix=no
21565 library_names_spec='$libname${shared_ext} $libname.a'
21566 dynamic_linker='OS/2 ld.exe'
21567 shlibpath_var=LIBPATH
21570 osf3* | osf4* | osf5*)
21571 version_type=osf
21572 need_lib_prefix=no
21573 need_version=no
21574 soname_spec='${libname}${release}${shared_ext}$major'
21575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21576 shlibpath_var=LD_LIBRARY_PATH
21577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21581 rdos*)
21582 dynamic_linker=no
21585 solaris*)
21586 version_type=linux
21587 need_lib_prefix=no
21588 need_version=no
21589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21590 soname_spec='${libname}${release}${shared_ext}$major'
21591 shlibpath_var=LD_LIBRARY_PATH
21592 shlibpath_overrides_runpath=yes
21593 hardcode_into_libs=yes
21594 # ldd complains unless libraries are executable
21595 postinstall_cmds='chmod +x $lib'
21598 sunos4*)
21599 version_type=sunos
21600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21601 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21602 shlibpath_var=LD_LIBRARY_PATH
21603 shlibpath_overrides_runpath=yes
21604 if test "$with_gnu_ld" = yes; then
21605 need_lib_prefix=no
21607 need_version=yes
21610 sysv4 | sysv4.3*)
21611 version_type=linux
21612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21613 soname_spec='${libname}${release}${shared_ext}$major'
21614 shlibpath_var=LD_LIBRARY_PATH
21615 case $host_vendor in
21616 sni)
21617 shlibpath_overrides_runpath=no
21618 need_lib_prefix=no
21619 runpath_var=LD_RUN_PATH
21621 siemens)
21622 need_lib_prefix=no
21624 motorola)
21625 need_lib_prefix=no
21626 need_version=no
21627 shlibpath_overrides_runpath=no
21628 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21630 esac
21633 sysv4*MP*)
21634 if test -d /usr/nec ;then
21635 version_type=linux
21636 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21637 soname_spec='$libname${shared_ext}.$major'
21638 shlibpath_var=LD_LIBRARY_PATH
21642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21643 version_type=freebsd-elf
21644 need_lib_prefix=no
21645 need_version=no
21646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21647 soname_spec='${libname}${release}${shared_ext}$major'
21648 shlibpath_var=LD_LIBRARY_PATH
21649 shlibpath_overrides_runpath=yes
21650 hardcode_into_libs=yes
21651 if test "$with_gnu_ld" = yes; then
21652 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21653 else
21654 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21655 case $host_os in
21656 sco3.2v5*)
21657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21659 esac
21661 sys_lib_dlsearch_path_spec='/usr/lib'
21664 tpf*)
21665 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21666 version_type=linux
21667 need_lib_prefix=no
21668 need_version=no
21669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21670 shlibpath_var=LD_LIBRARY_PATH
21671 shlibpath_overrides_runpath=no
21672 hardcode_into_libs=yes
21675 uts4*)
21676 version_type=linux
21677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21678 soname_spec='${libname}${release}${shared_ext}$major'
21679 shlibpath_var=LD_LIBRARY_PATH
21683 dynamic_linker=no
21685 esac
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21687 $as_echo "$dynamic_linker" >&6; }
21688 test "$dynamic_linker" = no && can_build_shared=no
21690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21691 if test "$GCC" = yes; then
21692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21695 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21696 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21698 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21699 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21740 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21741 hardcode_action_CXX=
21742 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21743 test -n "$runpath_var_CXX" ||
21744 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21746 # We can hardcode non-existent directories.
21747 if test "$hardcode_direct_CXX" != no &&
21748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21749 # have to relink, otherwise we might link with an installed library
21750 # when we should be linking with a yet-to-be-installed one
21751 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21752 test "$hardcode_minus_L_CXX" != no; then
21753 # Linking always hardcodes the temporary library directory.
21754 hardcode_action_CXX=relink
21755 else
21756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21757 hardcode_action_CXX=immediate
21759 else
21760 # We cannot hardcode anything, or else we can only hardcode existing
21761 # directories.
21762 hardcode_action_CXX=unsupported
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21765 $as_echo "$hardcode_action_CXX" >&6; }
21767 if test "$hardcode_action_CXX" = relink ||
21768 test "$inherit_rpath_CXX" = yes; then
21769 # Fast installation is not supported
21770 enable_fast_install=no
21771 elif test "$shlibpath_overrides_runpath" = yes ||
21772 test "$enable_shared" = no; then
21773 # Fast installation is not necessary
21774 enable_fast_install=needless
21783 fi # test -n "$compiler"
21785 CC=$lt_save_CC
21786 LDCXX=$LD
21787 LD=$lt_save_LD
21788 GCC=$lt_save_GCC
21789 with_gnu_ld=$lt_save_with_gnu_ld
21790 lt_cv_path_LDCXX=$lt_cv_path_LD
21791 lt_cv_path_LD=$lt_save_path_LD
21792 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21793 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21794 fi # test "$_lt_caught_CXX_error" != yes
21796 ac_ext=cpp
21797 ac_cpp='$CXXCPP $CPPFLAGS'
21798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21817 # Only expand once:
21823 # Identify the assembler which will work hand-in-glove with the newly
21824 # built GCC, so that we can examine its features. This is the assembler
21825 # which will be driven by the driver program.
21827 # If build != host, and we aren't building gas in-tree, we identify a
21828 # build->target assembler and hope that it will have the same features
21829 # as the host->target assembler we'll be using.
21830 gcc_cv_gas_major_version=
21831 gcc_cv_gas_minor_version=
21832 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21834 if test "${gcc_cv_as+set}" = set; then :
21836 else
21838 if test -x "$DEFAULT_ASSEMBLER"; then
21839 gcc_cv_as="$DEFAULT_ASSEMBLER"
21840 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21841 && test -f ../gas/Makefile \
21842 && test x$build = x$host; then
21843 gcc_cv_as=../gas/as-new$build_exeext
21844 elif test -x as$build_exeext; then
21845 # Build using assembler in the current directory.
21846 gcc_cv_as=./as$build_exeext
21847 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21848 gcc_cv_as="$AS_FOR_TARGET"
21849 else
21850 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21851 set dummy $AS_FOR_TARGET; ac_word=$2
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21853 $as_echo_n "checking for $ac_word... " >&6; }
21854 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21856 else
21857 case $gcc_cv_as in
21858 [\\/]* | ?:[\\/]*)
21859 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21863 for as_dir in $PATH
21865 IFS=$as_save_IFS
21866 test -z "$as_dir" && as_dir=.
21867 for ac_exec_ext in '' $ac_executable_extensions; do
21868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21869 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21871 break 2
21873 done
21874 done
21875 IFS=$as_save_IFS
21878 esac
21880 gcc_cv_as=$ac_cv_path_gcc_cv_as
21881 if test -n "$gcc_cv_as"; then
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21883 $as_echo "$gcc_cv_as" >&6; }
21884 else
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886 $as_echo "no" >&6; }
21893 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21895 case "$ORIGINAL_AS_FOR_TARGET" in
21896 ./as | ./as$build_exeext) ;;
21897 *) ac_config_files="$ac_config_files as:exec-tool.in"
21899 esac
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21902 $as_echo_n "checking what assembler to use... " >&6; }
21903 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21904 # Single tree build which includes gas. We want to prefer it
21905 # over whatever linker top-level may have detected, since
21906 # we'll use what we're building after installation anyway.
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21908 $as_echo "newly built gas" >&6; }
21909 in_tree_gas=yes
21910 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21911 for f in $gcc_cv_as_bfd_srcdir/configure \
21912 $gcc_cv_as_gas_srcdir/configure \
21913 $gcc_cv_as_gas_srcdir/configure.ac \
21914 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21915 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21916 if test x$gcc_cv_gas_version != x; then
21917 break
21919 done
21920 case $gcc_cv_gas_version in
21921 VERSION=[0-9]*) ;;
21922 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21923 esac
21924 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21925 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21926 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21927 case $gcc_cv_gas_patch_version in
21928 "") gcc_cv_gas_patch_version="0" ;;
21929 esac
21930 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21931 + $gcc_cv_gas_minor_version \) \* 1000 \
21932 + $gcc_cv_gas_patch_version`
21934 in_tree_gas_is_elf=no
21935 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21936 || (grep 'obj_format = multi' ../gas/Makefile \
21937 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21938 then
21939 in_tree_gas_is_elf=yes
21941 else
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21943 $as_echo "$gcc_cv_as" >&6; }
21944 in_tree_gas=no
21947 default_ld=
21948 # Check whether --enable-ld was given.
21949 if test "${enable_ld+set}" = set; then :
21950 enableval=$enable_ld; case "${enableval}" in
21952 default_ld=ld.gold
21954 esac
21958 install_gold_as_default=no
21959 # Check whether --enable-gold was given.
21960 if test "${enable_gold+set}" = set; then :
21961 enableval=$enable_gold; case "${enableval}" in
21962 default)
21963 install_gold_as_default=yes
21965 yes)
21966 if test x${default_ld} != x; then
21967 install_gold_as_default=yes
21973 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21975 esac
21979 # Identify the linker which will work hand-in-glove with the newly
21980 # built GCC, so that we can examine its features. This is the linker
21981 # which will be driven by the driver program.
21983 # If build != host, and we aren't building gas in-tree, we identify a
21984 # build->target linker and hope that it will have the same features
21985 # as the host->target linker we'll be using.
21986 gcc_cv_gld_major_version=
21987 gcc_cv_gld_minor_version=
21988 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21989 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21990 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21992 if test "${gcc_cv_ld+set}" = set; then :
21994 else
21996 if test -x "$DEFAULT_LINKER"; then
21997 gcc_cv_ld="$DEFAULT_LINKER"
21998 elif test $install_gold_as_default = yes \
21999 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22000 && test -f ../gold/Makefile \
22001 && test x$build = x$host; then
22002 gcc_cv_ld=../gold/ld-new$build_exeext
22003 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22004 && test -f ../ld/Makefile \
22005 && test x$build = x$host; then
22006 gcc_cv_ld=../ld/ld-new$build_exeext
22007 elif test -x collect-ld$build_exeext; then
22008 # Build using linker in the current directory.
22009 gcc_cv_ld=./collect-ld$build_exeext
22010 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22011 gcc_cv_ld="$LD_FOR_TARGET"
22012 else
22013 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22014 set dummy $LD_FOR_TARGET; ac_word=$2
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22016 $as_echo_n "checking for $ac_word... " >&6; }
22017 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22018 $as_echo_n "(cached) " >&6
22019 else
22020 case $gcc_cv_ld in
22021 [\\/]* | ?:[\\/]*)
22022 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22026 for as_dir in $PATH
22028 IFS=$as_save_IFS
22029 test -z "$as_dir" && as_dir=.
22030 for ac_exec_ext in '' $ac_executable_extensions; do
22031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22032 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22034 break 2
22036 done
22037 done
22038 IFS=$as_save_IFS
22041 esac
22043 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22044 if test -n "$gcc_cv_ld"; then
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22046 $as_echo "$gcc_cv_ld" >&6; }
22047 else
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22049 $as_echo "no" >&6; }
22056 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22057 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22058 # if the PLUGIN_LD is set ld-new, just have it as ld
22059 # as that is the installed named.
22060 if test x$PLUGIN_LD_SUFFIX = xld-new \
22061 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22062 PLUGIN_LD_SUFFIX=ld
22065 # Check whether --with-plugin-ld was given.
22066 if test "${with_plugin_ld+set}" = set; then :
22067 withval=$with_plugin_ld; if test x"$withval" != x; then
22068 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22069 PLUGIN_LD_SUFFIX="$withval"
22075 cat >>confdefs.h <<_ACEOF
22076 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22077 _ACEOF
22080 # Check to see if we are using gold instead of ld
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22082 $as_echo_n "checking whether we are using gold... " >&6; }
22083 ld_is_gold=no
22084 if test x$gcc_cv_ld != x; then
22085 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22086 | grep "GNU gold" > /dev/null; then
22087 ld_is_gold=yes
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22091 $as_echo "$ld_is_gold" >&6; }
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22094 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22095 # Check to see if default ld is not gold, but gold is
22096 # available and has support for split stack. If gcc was configured
22097 # with gold then no checking is done.
22099 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22101 # For platforms other than powerpc64*, enable as appropriate.
22103 gold_non_default=no
22104 ld_gold=`which ${gcc_cv_ld}.gold`
22105 # Make sure this gold has minimal split stack support
22106 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22107 ld_vers=`$ld_gold --version | sed 1q`
22108 gold_vers=`echo $ld_vers | sed -n \
22109 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22110 case $target in
22111 # check that the gold version contains the complete split stack support
22112 # on powerpc64 big and little endian
22113 powerpc64*-*-*)
22114 case "$gold_vers" in
22115 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22117 *) gold_non_default=no
22119 esac
22121 esac
22123 if test $gold_non_default = yes; then
22125 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22130 $as_echo "$gold_non_default" >&6; }
22132 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22134 case "$ORIGINAL_LD_FOR_TARGET" in
22135 ./collect-ld | ./collect-ld$build_exeext) ;;
22136 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22138 esac
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22141 $as_echo_n "checking what linker to use... " >&6; }
22142 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22143 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22144 # Single tree build which includes ld. We want to prefer it
22145 # over whatever linker top-level may have detected, since
22146 # we'll use what we're building after installation anyway.
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22148 $as_echo "newly built ld" >&6; }
22149 in_tree_ld=yes
22150 in_tree_ld_is_elf=no
22151 if (grep 'EMUL = .*elf' ../ld/Makefile \
22152 || grep 'EMUL = .*linux' ../ld/Makefile \
22153 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22154 in_tree_ld_is_elf=yes
22155 elif test "$ld_is_gold" = yes; then
22156 in_tree_ld_is_elf=yes
22158 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
22160 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22161 if test x$gcc_cv_gld_version != x; then
22162 break
22164 done
22165 case $gcc_cv_gld_version in
22166 VERSION=[0-9]*) ;;
22167 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22168 esac
22169 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22170 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22171 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22172 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22173 else
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22175 $as_echo "$gcc_cv_ld" >&6; }
22176 in_tree_ld=no
22177 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22178 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22179 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22185 # Figure out what nm we will be using.
22186 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22187 if test "${gcc_cv_nm+set}" = set; then :
22189 else
22191 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22192 && test -f ../binutils/Makefile \
22193 && test x$build = x$host; then
22194 gcc_cv_nm=../binutils/nm-new$build_exeext
22195 elif test -x nm$build_exeext; then
22196 gcc_cv_nm=./nm$build_exeext
22197 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22198 gcc_cv_nm="$NM_FOR_TARGET"
22199 else
22200 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22201 set dummy $NM_FOR_TARGET; ac_word=$2
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22203 $as_echo_n "checking for $ac_word... " >&6; }
22204 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22205 $as_echo_n "(cached) " >&6
22206 else
22207 case $gcc_cv_nm in
22208 [\\/]* | ?:[\\/]*)
22209 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22213 for as_dir in $PATH
22215 IFS=$as_save_IFS
22216 test -z "$as_dir" && as_dir=.
22217 for ac_exec_ext in '' $ac_executable_extensions; do
22218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22219 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22221 break 2
22223 done
22224 done
22225 IFS=$as_save_IFS
22228 esac
22230 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22231 if test -n "$gcc_cv_nm"; then
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22233 $as_echo "$gcc_cv_nm" >&6; }
22234 else
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22236 $as_echo "no" >&6; }
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22244 $as_echo_n "checking what nm to use... " >&6; }
22245 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22246 # Single tree build which includes binutils.
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22248 $as_echo "newly built nm" >&6; }
22249 in_tree_nm=yes
22250 else
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22252 $as_echo "$gcc_cv_nm" >&6; }
22253 in_tree_nm=no
22256 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22258 case "$ORIGINAL_NM_FOR_TARGET" in
22259 ./nm | ./nm$build_exeext) ;;
22260 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22262 esac
22265 # Figure out what objdump we will be using.
22266 if test "${gcc_cv_objdump+set}" = set; then :
22268 else
22270 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22271 && test -f ../binutils/Makefile \
22272 && test x$build = x$host; then
22273 # Single tree build which includes binutils.
22274 gcc_cv_objdump=../binutils/objdump$build_exeext
22275 elif test -x objdump$build_exeext; then
22276 gcc_cv_objdump=./objdump$build_exeext
22277 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22278 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22279 else
22280 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22281 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22283 $as_echo_n "checking for $ac_word... " >&6; }
22284 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22285 $as_echo_n "(cached) " >&6
22286 else
22287 case $gcc_cv_objdump in
22288 [\\/]* | ?:[\\/]*)
22289 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22293 for as_dir in $PATH
22295 IFS=$as_save_IFS
22296 test -z "$as_dir" && as_dir=.
22297 for ac_exec_ext in '' $ac_executable_extensions; do
22298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22299 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22301 break 2
22303 done
22304 done
22305 IFS=$as_save_IFS
22308 esac
22310 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22311 if test -n "$gcc_cv_objdump"; then
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22313 $as_echo "$gcc_cv_objdump" >&6; }
22314 else
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22316 $as_echo "no" >&6; }
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22324 $as_echo_n "checking what objdump to use... " >&6; }
22325 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22326 # Single tree build which includes binutils.
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22328 $as_echo "newly built objdump" >&6; }
22329 elif test x$gcc_cv_objdump = x; then
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22331 $as_echo "not found" >&6; }
22332 else
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22334 $as_echo "$gcc_cv_objdump" >&6; }
22337 # Figure out what readelf we will be using.
22338 if test "${gcc_cv_readelf+set}" = set; then :
22340 else
22342 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22343 && test -f ../binutils/Makefile \
22344 && test x$build = x$host; then
22345 # Single tree build which includes binutils.
22346 gcc_cv_readelf=../binutils/readelf$build_exeext
22347 elif test -x readelf$build_exeext; then
22348 gcc_cv_readelf=./readelf$build_exeext
22349 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22350 gcc_cv_readelf="$READELF_FOR_TARGET"
22351 else
22352 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22353 set dummy $READELF_FOR_TARGET; ac_word=$2
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22355 $as_echo_n "checking for $ac_word... " >&6; }
22356 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22358 else
22359 case $gcc_cv_readelf in
22360 [\\/]* | ?:[\\/]*)
22361 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22365 for as_dir in $PATH
22367 IFS=$as_save_IFS
22368 test -z "$as_dir" && as_dir=.
22369 for ac_exec_ext in '' $ac_executable_extensions; do
22370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22371 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22373 break 2
22375 done
22376 done
22377 IFS=$as_save_IFS
22380 esac
22382 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22383 if test -n "$gcc_cv_readelf"; then
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22385 $as_echo "$gcc_cv_readelf" >&6; }
22386 else
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22388 $as_echo "no" >&6; }
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22396 $as_echo_n "checking what readelf to use... " >&6; }
22397 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22398 # Single tree build which includes binutils.
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22400 $as_echo "newly built readelf" >&6; }
22401 elif test x$gcc_cv_readelf = x; then
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22403 $as_echo "not found" >&6; }
22404 else
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22406 $as_echo "$gcc_cv_readelf" >&6; }
22409 # Figure out what assembler alignment features are present.
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22411 $as_echo_n "checking assembler flags... " >&6; }
22412 if test "${gcc_cv_as_flags+set}" = set; then :
22413 $as_echo_n "(cached) " >&6
22414 else
22415 case "$target" in
22416 i[34567]86-*-linux*)
22417 gcc_cv_as_flags=--32
22419 x86_64-*-linux-gnux32)
22420 gcc_cv_as_flags=--x32
22422 x86_64-*-linux*)
22423 gcc_cv_as_flags=--64
22425 powerpc*-*-darwin*)
22426 gcc_cv_as_flags="-arch ppc"
22429 gcc_cv_as_flags=" "
22431 esac
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22434 $as_echo "$gcc_cv_as_flags" >&6; }
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22437 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22438 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22439 $as_echo_n "(cached) " >&6
22440 else
22441 gcc_cv_as_balign_and_p2align=no
22442 if test $in_tree_gas = yes; then
22443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22444 then gcc_cv_as_balign_and_p2align=yes
22446 elif test x$gcc_cv_as != x; then
22447 $as_echo '.balign 4
22448 .p2align 2' > conftest.s
22449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22454 test $ac_status = 0; }; }
22455 then
22456 gcc_cv_as_balign_and_p2align=yes
22457 else
22458 echo "configure: failed program was" >&5
22459 cat conftest.s >&5
22461 rm -f conftest.o conftest.s
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22465 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22466 if test $gcc_cv_as_balign_and_p2align = yes; then
22468 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22473 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22474 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22475 $as_echo_n "(cached) " >&6
22476 else
22477 gcc_cv_as_max_skip_p2align=no
22478 if test $in_tree_gas = yes; then
22479 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22480 then gcc_cv_as_max_skip_p2align=yes
22482 elif test x$gcc_cv_as != x; then
22483 $as_echo '.p2align 4,,7' > conftest.s
22484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22486 (eval $ac_try) 2>&5
22487 ac_status=$?
22488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22489 test $ac_status = 0; }; }
22490 then
22491 gcc_cv_as_max_skip_p2align=yes
22492 else
22493 echo "configure: failed program was" >&5
22494 cat conftest.s >&5
22496 rm -f conftest.o conftest.s
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22500 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22501 if test $gcc_cv_as_max_skip_p2align = yes; then
22503 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22508 $as_echo_n "checking assembler for .literal16... " >&6; }
22509 if test "${gcc_cv_as_literal16+set}" = set; then :
22510 $as_echo_n "(cached) " >&6
22511 else
22512 gcc_cv_as_literal16=no
22513 if test $in_tree_gas = yes; then
22514 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22515 then gcc_cv_as_literal16=yes
22517 elif test x$gcc_cv_as != x; then
22518 $as_echo '.literal16' > conftest.s
22519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22524 test $ac_status = 0; }; }
22525 then
22526 gcc_cv_as_literal16=yes
22527 else
22528 echo "configure: failed program was" >&5
22529 cat conftest.s >&5
22531 rm -f conftest.o conftest.s
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22535 $as_echo "$gcc_cv_as_literal16" >&6; }
22536 if test $gcc_cv_as_literal16 = yes; then
22538 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22543 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22544 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22546 else
22547 gcc_cv_as_subsection_m1=no
22548 if test $in_tree_gas = yes; then
22549 if test $in_tree_gas_is_elf = yes \
22550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22551 then gcc_cv_as_subsection_m1=yes
22553 elif test x$gcc_cv_as != x; then
22554 $as_echo 'conftest_label1: .word 0
22555 .subsection -1
22556 conftest_label2: .word 0
22557 .previous' > conftest.s
22558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563 test $ac_status = 0; }; }
22564 then
22565 if test x$gcc_cv_nm != x; then
22566 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22567 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22568 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22569 then :
22570 else gcc_cv_as_subsection_m1=yes
22572 rm -f conftest.nm1 conftest.nm2
22574 else
22575 echo "configure: failed program was" >&5
22576 cat conftest.s >&5
22578 rm -f conftest.o conftest.s
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22582 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22583 if test $gcc_cv_as_subsection_m1 = yes; then
22585 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22590 $as_echo_n "checking assembler for .weak... " >&6; }
22591 if test "${gcc_cv_as_weak+set}" = set; then :
22592 $as_echo_n "(cached) " >&6
22593 else
22594 gcc_cv_as_weak=no
22595 if test $in_tree_gas = yes; then
22596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22597 then gcc_cv_as_weak=yes
22599 elif test x$gcc_cv_as != x; then
22600 $as_echo ' .weak foobar' > conftest.s
22601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22603 (eval $ac_try) 2>&5
22604 ac_status=$?
22605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22606 test $ac_status = 0; }; }
22607 then
22608 gcc_cv_as_weak=yes
22609 else
22610 echo "configure: failed program was" >&5
22611 cat conftest.s >&5
22613 rm -f conftest.o conftest.s
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22617 $as_echo "$gcc_cv_as_weak" >&6; }
22618 if test $gcc_cv_as_weak = yes; then
22620 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22625 $as_echo_n "checking assembler for .weakref... " >&6; }
22626 if test "${gcc_cv_as_weakref+set}" = set; then :
22627 $as_echo_n "(cached) " >&6
22628 else
22629 gcc_cv_as_weakref=no
22630 if test $in_tree_gas = yes; then
22631 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22632 then gcc_cv_as_weakref=yes
22634 elif test x$gcc_cv_as != x; then
22635 $as_echo ' .weakref foobar, barfnot' > conftest.s
22636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22638 (eval $ac_try) 2>&5
22639 ac_status=$?
22640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22641 test $ac_status = 0; }; }
22642 then
22643 gcc_cv_as_weakref=yes
22644 else
22645 echo "configure: failed program was" >&5
22646 cat conftest.s >&5
22648 rm -f conftest.o conftest.s
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22652 $as_echo "$gcc_cv_as_weakref" >&6; }
22653 if test $gcc_cv_as_weakref = yes; then
22655 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22660 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22661 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22663 else
22664 gcc_cv_as_nsubspa_comdat=no
22665 if test $in_tree_gas = yes; then
22666 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22667 then gcc_cv_as_nsubspa_comdat=yes
22669 elif test x$gcc_cv_as != x; then
22670 $as_echo ' .SPACE $TEXT$
22671 .NSUBSPA $CODE$,COMDAT' > conftest.s
22672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22677 test $ac_status = 0; }; }
22678 then
22679 gcc_cv_as_nsubspa_comdat=yes
22680 else
22681 echo "configure: failed program was" >&5
22682 cat conftest.s >&5
22684 rm -f conftest.o conftest.s
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22688 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22689 if test $gcc_cv_as_nsubspa_comdat = yes; then
22691 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22695 # .hidden needs to be supported in both the assembler and the linker,
22696 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22697 # This is irritatingly difficult to feature test for; we have to check the
22698 # date string after the version number. If we've got an in-tree
22699 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22700 # to be safe.
22701 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22703 $as_echo_n "checking assembler for .hidden... " >&6; }
22704 if test "${gcc_cv_as_hidden+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22706 else
22707 gcc_cv_as_hidden=no
22708 if test $in_tree_gas = yes; then
22709 if test $in_tree_gas_is_elf = yes \
22710 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22711 then gcc_cv_as_hidden=yes
22713 elif test x$gcc_cv_as != x; then
22714 $as_echo ' .hidden foobar
22715 foobar:' > conftest.s
22716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22718 (eval $ac_try) 2>&5
22719 ac_status=$?
22720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22721 test $ac_status = 0; }; }
22722 then
22723 gcc_cv_as_hidden=yes
22724 else
22725 echo "configure: failed program was" >&5
22726 cat conftest.s >&5
22728 rm -f conftest.o conftest.s
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22732 $as_echo "$gcc_cv_as_hidden" >&6; }
22734 case "${target}" in
22735 *-*-darwin*)
22736 # Darwin as has some visibility support, though with a different syntax.
22737 gcc_cv_as_hidden=yes
22739 esac
22741 # gnu_indirect_function type is an extension proposed at
22742 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22743 # selection of function implementation
22744 # Check whether --enable-gnu-indirect-function was given.
22745 if test "${enable_gnu_indirect_function+set}" = set; then :
22746 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22747 yes | no) ;;
22748 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22749 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22750 esac
22751 else
22752 enable_gnu_indirect_function="$default_gnu_indirect_function"
22756 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22758 cat >>confdefs.h <<_ACEOF
22759 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22760 _ACEOF
22764 if test $in_tree_ld != yes ; then
22765 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22766 if echo "$ld_ver" | grep GNU > /dev/null; then
22767 if test x"$ld_is_gold" = xyes; then
22768 # GNU gold --version looks like this:
22770 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22772 # We extract the binutils version which is more familiar and specific
22773 # than the gold version.
22774 ld_vers=`echo $ld_ver | sed -n \
22775 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22776 else
22777 # GNU ld --version looks like this:
22779 # GNU ld (GNU Binutils) 2.21.51.20110225
22780 ld_vers=`echo $ld_ver | sed -n \
22781 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22783 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'`
22784 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22785 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22786 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22787 else
22788 case "${target}" in
22789 *-*-solaris2*)
22790 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22791 # format.
22793 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22794 # /usr/ccs/bin/ld has been configured.
22795 ld_ver=`$gcc_cv_ld -V 2>&1`
22796 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22797 ld_vers=`echo $ld_ver | sed -n \
22798 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22799 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22800 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22803 esac
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22808 $as_echo_n "checking linker for .hidden support... " >&6; }
22809 if test "${gcc_cv_ld_hidden+set}" = set; then :
22810 $as_echo_n "(cached) " >&6
22811 else
22812 if test $in_tree_ld = yes ; then
22813 gcc_cv_ld_hidden=no
22814 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 \
22815 && test $in_tree_ld_is_elf = yes; then
22816 gcc_cv_ld_hidden=yes
22818 else
22819 gcc_cv_ld_hidden=yes
22820 if test x"$ld_is_gold" = xyes; then
22822 elif echo "$ld_ver" | grep GNU > /dev/null; then
22823 case "${target}" in
22824 mmix-knuth-mmixware)
22825 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22826 gcc_cv_ld_hidden=no
22828 esac
22829 if test 0"$ld_date" -lt 20020404; then
22830 if test -n "$ld_date"; then
22831 # If there was date string, but was earlier than 2002-04-04, fail
22832 gcc_cv_ld_hidden=no
22833 elif test -z "$ld_vers"; then
22834 # If there was no date string nor ld version number, something is wrong
22835 gcc_cv_ld_hidden=no
22836 else
22837 test -z "$ld_vers_patch" && ld_vers_patch=0
22838 if test "$ld_vers_major" -lt 2; then
22839 gcc_cv_ld_hidden=no
22840 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22841 gcc_cv_ld_hidden="no"
22842 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22843 gcc_cv_ld_hidden=no
22847 else
22848 case "${target}" in
22849 *-*-darwin*)
22850 # Darwin ld has some visibility support.
22851 gcc_cv_ld_hidden=yes
22853 hppa64*-*-hpux* | ia64*-*-hpux*)
22854 gcc_cv_ld_hidden=yes
22856 *-*-solaris2.1[0-9]*)
22857 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22858 # .symbolic was only added in Solaris 9 12/02.
22859 gcc_cv_ld_hidden=yes
22862 gcc_cv_ld_hidden=no
22864 esac
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22869 $as_echo "$gcc_cv_ld_hidden" >&6; }
22870 libgcc_visibility=no
22873 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22874 libgcc_visibility=yes
22876 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22881 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22882 gcc_cv_ld_ro_rw_mix=unknown
22883 if test $in_tree_ld = yes ; then
22884 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 \
22885 && test $in_tree_ld_is_elf = yes; then
22886 gcc_cv_ld_ro_rw_mix=read-write
22888 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22889 echo '.section myfoosect, "a"' > conftest1.s
22890 echo '.section myfoosect, "aw"' > conftest2.s
22891 echo '.byte 1' >> conftest2.s
22892 echo '.section myfoosect, "a"' > conftest3.s
22893 echo '.byte 0' >> conftest3.s
22894 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22895 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22896 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22897 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22898 conftest2.o conftest3.o > /dev/null 2>&1; then
22899 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22900 | sed -e '/myfoosect/!d' -e N`
22901 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22902 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22903 gcc_cv_ld_ro_rw_mix=read-only
22904 else
22905 gcc_cv_ld_ro_rw_mix=read-write
22909 rm -f conftest.* conftest[123].*
22911 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22913 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22917 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22919 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22920 case "${target}" in
22921 *-*-solaris2*)
22923 # Solaris 2 ld -V output looks like this for a regular version:
22925 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22927 # but test versions add stuff at the end:
22929 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22931 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22932 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22933 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22934 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22935 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22936 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22939 esac
22942 # Check whether --enable-initfini-array was given.
22943 if test "${enable_initfini_array+set}" = set; then :
22944 enableval=$enable_initfini_array;
22945 else
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22948 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22949 if test "${gcc_cv_initfini_array+set}" = set; then :
22950 $as_echo_n "(cached) " >&6
22951 else
22952 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22953 case "${target}" in
22954 ia64-*)
22955 if test "$cross_compiling" = yes; then :
22956 gcc_cv_initfini_array=no
22957 else
22958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h. */
22961 #ifndef __ELF__
22962 #error Not an ELF OS
22963 #endif
22964 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22965 if it can be used. */
22966 static int x = -1;
22967 int main (void) { return x; }
22968 int foo (void) { x = 0; }
22969 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22971 _ACEOF
22972 if ac_fn_cxx_try_run "$LINENO"; then :
22973 gcc_cv_initfini_array=yes
22974 else
22975 gcc_cv_initfini_array=no
22977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22978 conftest.$ac_objext conftest.beam conftest.$ac_ext
22982 gcc_cv_initfini_array=no
22983 if test $in_tree_ld = yes ; then
22984 if test "$gcc_cv_gld_major_version" -eq 2 \
22985 -a "$gcc_cv_gld_minor_version" -ge 22 \
22986 -o "$gcc_cv_gld_major_version" -gt 2 \
22987 && test $in_tree_ld_is_elf = yes; then
22988 gcc_cv_initfini_array=yes
22990 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22991 case $target:$gas in
22992 *:yes)
22993 sh_flags='"a"'
22994 sh_type='%progbits'
22996 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22997 sh_flags='"a"'
22998 sh_type='@progbits'
23000 sparc*-*-solaris2*:no)
23001 sh_flags='#alloc'
23002 sh_type='#progbits'
23003 sh_quote='"'
23005 esac
23006 case "$target:$gnu_ld" in
23007 *:yes)
23008 cat > conftest.s <<EOF
23009 .section .dtors,$sh_flags,$sh_type
23010 .balign 4
23011 .byte 'A', 'A', 'A', 'A'
23012 .section .ctors,$sh_flags,$sh_type
23013 .balign 4
23014 .byte 'B', 'B', 'B', 'B'
23015 .section .fini_array.65530,$sh_flags,$sh_type
23016 .balign 4
23017 .byte 'C', 'C', 'C', 'C'
23018 .section .init_array.65530,$sh_flags,$sh_type
23019 .balign 4
23020 .byte 'D', 'D', 'D', 'D'
23021 .section .dtors.64528,$sh_flags,$sh_type
23022 .balign 4
23023 .byte 'E', 'E', 'E', 'E'
23024 .section .ctors.64528,$sh_flags,$sh_type
23025 .balign 4
23026 .byte 'F', 'F', 'F', 'F'
23027 .section .fini_array.01005,$sh_flags,$sh_type
23028 .balign 4
23029 .byte 'G', 'G', 'G', 'G'
23030 .section .init_array.01005,$sh_flags,$sh_type
23031 .balign 4
23032 .byte 'H', 'H', 'H', 'H'
23033 .text
23034 .globl _start
23035 _start:
23037 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23038 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23039 && $gcc_cv_objdump -s -j .init_array conftest \
23040 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23041 && $gcc_cv_objdump -s -j .fini_array conftest \
23042 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23043 gcc_cv_initfini_array=yes
23046 *-*-solaris2*:no)
23047 # When Solaris ld added constructor priority support, it was
23048 # decided to only handle .init_array.N/.fini_array.N since
23049 # there was no need for backwards compatibility with
23050 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23051 # sections with correct execution order resp. to
23052 # .init_array/.fini_array, while gld merges them into
23053 # .init_array/.fini_array.
23054 cat > conftest.s <<EOF
23055 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23056 .align 4
23057 .byte 'C', 'C', 'C', 'C'
23058 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23059 .align 4
23060 .byte 'D', 'D', 'D', 'D'
23061 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23062 .align 4
23063 .byte 'G', 'G', 'G', 'G'
23064 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23065 .align 4
23066 .byte 'H', 'H', 'H', 'H'
23067 .text
23068 .globl _start
23069 _start:
23071 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23072 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23073 && $gcc_cv_objdump -s -j .init_array conftest \
23074 | grep HHHHDDDD > /dev/null 2>&1 \
23075 && $gcc_cv_objdump -s -j .fini_array conftest \
23076 | grep GGGGCCCC > /dev/null 2>&1; then
23077 gcc_cv_initfini_array=yes
23080 esac
23081 rm -f conftest conftest.*
23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23084 /* end confdefs.h. */
23086 #ifndef __ELF__
23087 # error Not an ELF OS
23088 #endif
23089 #include <stdlib.h>
23090 #if defined __GLIBC_PREREQ
23091 # if __GLIBC_PREREQ (2, 4)
23092 # else
23093 # error GLIBC 2.4 required
23094 # endif
23095 #else
23096 # if defined __sun__ && defined __svr4__
23097 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23098 # else
23099 # error The C library not known to support .init_array/.fini_array
23100 # endif
23101 #endif
23103 _ACEOF
23104 if ac_fn_cxx_try_cpp "$LINENO"; then :
23106 else
23107 gcc_cv_initfini_array=no
23109 rm -f conftest.err conftest.$ac_ext;;
23110 esac
23111 else
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23113 $as_echo_n "checking cross compile... guessing... " >&6; }
23114 gcc_cv_initfini_array=no
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23118 $as_echo "$gcc_cv_initfini_array" >&6; }
23119 enable_initfini_array=$gcc_cv_initfini_array
23124 cat >>confdefs.h <<_ACEOF
23125 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23126 _ACEOF
23130 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23132 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23133 if test "${gcc_cv_as_leb128+set}" = set; then :
23134 $as_echo_n "(cached) " >&6
23135 else
23136 gcc_cv_as_leb128=no
23137 if test $in_tree_gas = yes; then
23138 if test $in_tree_gas_is_elf = yes \
23139 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23140 then gcc_cv_as_leb128=yes
23142 elif test x$gcc_cv_as != x; then
23143 $as_echo ' .data
23144 .uleb128 L2 - L1
23146 .uleb128 1280
23147 .sleb128 -1010
23148 L2:' > conftest.s
23149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154 test $ac_status = 0; }; }
23155 then
23156 # GAS versions before 2.11 do not support uleb128,
23157 # despite appearing to.
23158 # ??? There exists an elf-specific test that will crash
23159 # the assembler. Perhaps it's better to figure out whether
23160 # arbitrary sections are supported and try the test.
23161 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23162 if echo "$as_ver" | grep GNU > /dev/null; then
23163 as_vers=`echo $as_ver | sed -n \
23164 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23165 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23166 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23167 if test $as_major -eq 2 && test $as_minor -lt 11
23168 then :
23169 else gcc_cv_as_leb128=yes
23172 else
23173 echo "configure: failed program was" >&5
23174 cat conftest.s >&5
23176 rm -f conftest.o conftest.s
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23180 $as_echo "$gcc_cv_as_leb128" >&6; }
23181 if test $gcc_cv_as_leb128 = yes; then
23183 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23187 # Check if we have assembler support for unwind directives.
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23189 $as_echo_n "checking assembler for cfi directives... " >&6; }
23190 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23191 $as_echo_n "(cached) " >&6
23192 else
23193 gcc_cv_as_cfi_directive=no
23194 if test x$gcc_cv_as != x; then
23195 $as_echo ' .text
23196 .cfi_startproc
23197 .cfi_offset 0, 0
23198 .cfi_same_value 1
23199 .cfi_def_cfa 1, 2
23200 .cfi_escape 1, 2, 3, 4, 5
23201 .cfi_endproc' > conftest.s
23202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23204 (eval $ac_try) 2>&5
23205 ac_status=$?
23206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23207 test $ac_status = 0; }; }
23208 then
23209 case "$target" in
23210 *-*-solaris*)
23211 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23212 # read-only and read-write sections, we need to make sure that the
23213 # assembler used emits read-write .eh_frame sections.
23214 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23215 if test "x$gcc_cv_objdump" != x; then
23216 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23217 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23218 gcc_cv_as_cfi_directive=no
23219 else
23220 case "$target" in
23221 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23222 # On Solaris/x86, make sure that GCC and assembler agree on using
23223 # read-only .eh_frame sections for 64-bit.
23224 if test x$gas = xyes; then
23225 as_ix86_64_opt="--64"
23226 else
23227 as_ix86_64_opt="-xarch=amd64"
23229 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23230 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23231 sed -e /.eh_frame/!d -e N | \
23232 grep READONLY > /dev/null; then
23233 gcc_cv_as_cfi_directive=yes
23234 else
23235 gcc_cv_as_cfi_directive=no
23239 gcc_cv_as_cfi_directive=yes
23241 esac
23243 else
23244 # no objdump, err on the side of caution
23245 gcc_cv_as_cfi_directive=no
23247 else
23248 gcc_cv_as_cfi_directive=yes
23251 *-*-*)
23252 gcc_cv_as_cfi_directive=yes
23254 esac
23255 else
23256 echo "configure: failed program was" >&5
23257 cat conftest.s >&5
23259 rm -f conftest.o conftest.s
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23263 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23265 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23267 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23268 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23269 $as_echo_n "(cached) " >&6
23270 else
23271 gcc_cv_as_cfi_advance_working=no
23272 if test x$gcc_cv_as != x; then
23273 $as_echo ' .text
23274 .cfi_startproc
23275 .cfi_adjust_cfa_offset 64
23276 .skip 75040, 0
23277 .cfi_adjust_cfa_offset 128
23278 .cfi_endproc' > conftest.s
23279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23285 then
23287 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23288 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23289 gcc_cv_as_cfi_advance_working=yes
23292 else
23293 echo "configure: failed program was" >&5
23294 cat conftest.s >&5
23296 rm -f conftest.o conftest.s
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23300 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23302 else
23303 # no objdump, err on the side of caution
23304 gcc_cv_as_cfi_advance_working=no
23308 cat >>confdefs.h <<_ACEOF
23309 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23310 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23311 _ACEOF
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23316 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23317 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23318 $as_echo_n "(cached) " >&6
23319 else
23320 gcc_cv_as_cfi_personality_directive=no
23321 if test x$gcc_cv_as != x; then
23322 $as_echo ' .text
23323 .cfi_startproc
23324 .cfi_personality 0, symbol
23325 .cfi_endproc' > conftest.s
23326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23328 (eval $ac_try) 2>&5
23329 ac_status=$?
23330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23331 test $ac_status = 0; }; }
23332 then
23333 gcc_cv_as_cfi_personality_directive=yes
23334 else
23335 echo "configure: failed program was" >&5
23336 cat conftest.s >&5
23338 rm -f conftest.o conftest.s
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23342 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23345 cat >>confdefs.h <<_ACEOF
23346 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23347 then echo 1; else echo 0; fi`
23348 _ACEOF
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23352 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23353 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23354 $as_echo_n "(cached) " >&6
23355 else
23356 gcc_cv_as_cfi_sections_directive=no
23357 if test x$gcc_cv_as != x; then
23358 $as_echo ' .text
23359 .cfi_sections .debug_frame, .eh_frame
23360 .cfi_startproc
23361 .cfi_endproc' > conftest.s
23362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23364 (eval $ac_try) 2>&5
23365 ac_status=$?
23366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23367 test $ac_status = 0; }; }
23368 then
23369 case $target_os in
23370 win32 | pe | cygwin* | mingw32*)
23371 # Need to check that we generated the correct relocation for the
23372 # .debug_frame section. This was fixed for binutils 2.21.
23373 gcc_cv_as_cfi_sections_directive=no
23374 if test "x$gcc_cv_objdump" != x; then
23375 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23376 grep secrel > /dev/null; then
23377 gcc_cv_as_cfi_sections_directive=yes
23382 gcc_cv_as_cfi_sections_directive=yes
23384 esac
23385 else
23386 echo "configure: failed program was" >&5
23387 cat conftest.s >&5
23389 rm -f conftest.o conftest.s
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23393 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23397 cat >>confdefs.h <<_ACEOF
23398 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23399 then echo 1; else echo 0; fi`
23400 _ACEOF
23403 # GAS versions up to and including 2.11.0 may mis-optimize
23404 # .eh_frame data.
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23406 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23407 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23408 $as_echo_n "(cached) " >&6
23409 else
23410 gcc_cv_as_eh_frame=no
23411 if test $in_tree_gas = yes; then
23412 if test $in_tree_gas_is_elf = yes \
23413 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23414 then gcc_cv_as_eh_frame=yes
23416 elif test x$gcc_cv_as != x; then
23417 $as_echo ' .text
23418 .LFB1:
23419 .4byte 0
23420 .L1:
23421 .4byte 0
23422 .LFE1:
23423 .section .eh_frame,"aw",@progbits
23424 __FRAME_BEGIN__:
23425 .4byte .LECIE1-.LSCIE1
23426 .LSCIE1:
23427 .4byte 0x0
23428 .byte 0x1
23429 .ascii "z\0"
23430 .byte 0x1
23431 .byte 0x78
23432 .byte 0x1a
23433 .byte 0x0
23434 .byte 0x4
23435 .4byte 1
23436 .p2align 1
23437 .LECIE1:
23438 .LSFDE1:
23439 .4byte .LEFDE1-.LASFDE1
23440 .LASFDE1:
23441 .4byte .LASFDE1-__FRAME_BEGIN__
23442 .4byte .LFB1
23443 .4byte .LFE1-.LFB1
23444 .byte 0x4
23445 .4byte .LFE1-.LFB1
23446 .byte 0x4
23447 .4byte .L1-.LFB1
23448 .LEFDE1:' > conftest.s
23449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23451 (eval $ac_try) 2>&5
23452 ac_status=$?
23453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23454 test $ac_status = 0; }; }
23455 then
23456 cat > conftest.lit <<EOF
23457 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23458 0010 01000000 12000000 18000000 00000000 ................
23459 0020 08000000 04080000 0044 .........D
23461 cat > conftest.big <<EOF
23462 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23463 0010 00000001 00000012 00000018 00000000 ................
23464 0020 00000008 04000000 0844 .........D
23466 # If the assembler didn't choke, and we can objdump,
23467 # and we got the correct data, then succeed.
23468 # The text in the here-document typically retains its unix-style line
23469 # endings, while the output of objdump will use host line endings.
23470 # Therefore, use diff -b for the comparisons.
23471 if test x$gcc_cv_objdump != x \
23472 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23473 | tail -3 > conftest.got \
23474 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23475 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23476 then
23477 gcc_cv_as_eh_frame=yes
23478 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23480 (eval $ac_try) 2>&5
23481 ac_status=$?
23482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23483 test $ac_status = 0; }; }; then
23484 gcc_cv_as_eh_frame=buggy
23485 else
23486 # Uh oh, what do we do now?
23487 gcc_cv_as_eh_frame=no
23489 else
23490 echo "configure: failed program was" >&5
23491 cat conftest.s >&5
23493 rm -f conftest.o conftest.s
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23497 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23500 if test $gcc_cv_as_eh_frame = buggy; then
23502 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23507 $as_echo_n "checking assembler for section merging support... " >&6; }
23508 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23509 $as_echo_n "(cached) " >&6
23510 else
23511 gcc_cv_as_shf_merge=no
23512 if test $in_tree_gas = yes; then
23513 if test $in_tree_gas_is_elf = yes \
23514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23515 then gcc_cv_as_shf_merge=yes
23517 elif test x$gcc_cv_as != x; then
23518 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23521 (eval $ac_try) 2>&5
23522 ac_status=$?
23523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23524 test $ac_status = 0; }; }
23525 then
23526 gcc_cv_as_shf_merge=yes
23527 else
23528 echo "configure: failed program was" >&5
23529 cat conftest.s >&5
23531 rm -f conftest.o conftest.s
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23535 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23537 if test $gcc_cv_as_shf_merge = no; then
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23539 $as_echo_n "checking assembler for section merging support... " >&6; }
23540 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23541 $as_echo_n "(cached) " >&6
23542 else
23543 gcc_cv_as_shf_merge=no
23544 if test $in_tree_gas = yes; then
23545 if test $in_tree_gas_is_elf = yes \
23546 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23547 then gcc_cv_as_shf_merge=yes
23549 elif test x$gcc_cv_as != x; then
23550 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23553 (eval $ac_try) 2>&5
23554 ac_status=$?
23555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23556 test $ac_status = 0; }; }
23557 then
23558 gcc_cv_as_shf_merge=yes
23559 else
23560 echo "configure: failed program was" >&5
23561 cat conftest.s >&5
23563 rm -f conftest.o conftest.s
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23567 $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
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23608 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23609 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23610 $as_echo_n "(cached) " >&6
23611 else
23612 gcc_cv_as_comdat_group=no
23613 if test $in_tree_gas = yes; then
23614 if test $in_tree_gas_is_elf = yes \
23615 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23616 then gcc_cv_as_comdat_group=yes
23618 elif test x$gcc_cv_as != x; then
23619 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23622 (eval $ac_try) 2>&5
23623 ac_status=$?
23624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23625 test $ac_status = 0; }; }
23626 then
23627 gcc_cv_as_comdat_group=yes
23628 else
23629 echo "configure: failed program was" >&5
23630 cat conftest.s >&5
23632 rm -f conftest.o conftest.s
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23636 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23638 if test $gcc_cv_as_comdat_group = yes; then
23639 gcc_cv_as_comdat_group_percent=no
23640 gcc_cv_as_comdat_group_group=no
23641 else
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23643 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23644 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23645 $as_echo_n "(cached) " >&6
23646 else
23647 gcc_cv_as_comdat_group_percent=no
23648 if test $in_tree_gas = yes; then
23649 if test $in_tree_gas_is_elf = yes \
23650 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23651 then gcc_cv_as_comdat_group_percent=yes
23653 elif test x$gcc_cv_as != x; then
23654 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23657 (eval $ac_try) 2>&5
23658 ac_status=$?
23659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23660 test $ac_status = 0; }; }
23661 then
23662 gcc_cv_as_comdat_group_percent=yes
23663 else
23664 echo "configure: failed program was" >&5
23665 cat conftest.s >&5
23667 rm -f conftest.o conftest.s
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23671 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23673 if test $gcc_cv_as_comdat_group_percent = yes; then
23674 gcc_cv_as_comdat_group_group=no
23675 else
23676 case "${target}" in
23677 # Sun as uses a completely different syntax.
23678 *-*-solaris2*)
23679 case "${target}" in
23680 sparc*-*-solaris2*)
23681 conftest_s='
23682 .group foo,".text%foo",#comdat
23683 .section ".text%foo", #alloc,#execinstr,#progbits
23684 .globl foo
23685 foo:
23688 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23689 conftest_s='
23690 .group foo,.text%foo,#comdat
23691 .section .text%foo, "ax", @progbits
23692 .globl foo
23693 foo:
23696 esac
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23698 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23699 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23700 $as_echo_n "(cached) " >&6
23701 else
23702 gcc_cv_as_comdat_group_group=no
23703 if test x$gcc_cv_as != x; then
23704 $as_echo "$conftest_s" > conftest.s
23705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
23709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23710 test $ac_status = 0; }; }
23711 then
23712 gcc_cv_as_comdat_group_group=yes
23713 else
23714 echo "configure: failed program was" >&5
23715 cat conftest.s >&5
23717 rm -f conftest.o conftest.s
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23721 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23724 esac
23725 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23726 gcc_cv_as_comdat_group_group=no
23730 if test x"$ld_is_gold" = xyes; then
23731 comdat_group=yes
23732 elif test $in_tree_ld = yes ; then
23733 comdat_group=no
23734 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 \
23735 && test $in_tree_ld_is_elf = yes; then
23736 comdat_group=yes
23738 elif echo "$ld_ver" | grep GNU > /dev/null; then
23739 comdat_group=yes
23740 if test 0"$ld_date" -lt 20050308; then
23741 if test -n "$ld_date"; then
23742 # If there was date string, but was earlier than 2005-03-08, fail
23743 comdat_group=no
23744 elif test "$ld_vers_major" -lt 2; then
23745 comdat_group=no
23746 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23747 comdat_group=no
23750 else
23751 case "${target}" in
23752 *-*-solaris2.1[1-9]*)
23753 comdat_group=no
23754 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23755 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23756 # version 1.688.
23758 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23759 # least ld version 1.2267.
23760 if test "$ld_vers_major" -gt 1; then
23761 comdat_group=yes
23762 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23763 comdat_group=yes
23764 elif test "$ld_vers_minor" -ge 2267; then
23765 comdat_group=yes
23769 # Assume linkers other than GNU ld don't support COMDAT group.
23770 comdat_group=no
23772 esac
23774 # Allow overriding the automatic COMDAT group tests above.
23775 # Check whether --enable-comdat was given.
23776 if test "${enable_comdat+set}" = set; then :
23777 enableval=$enable_comdat; comdat_group="$enable_comdat"
23780 if test $comdat_group = no; then
23781 gcc_cv_as_comdat_group=no
23782 gcc_cv_as_comdat_group_percent=no
23783 gcc_cv_as_comdat_group_group=no
23786 cat >>confdefs.h <<_ACEOF
23787 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23788 || test $gcc_cv_as_comdat_group_percent = yes \
23789 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23790 _ACEOF
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23794 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23795 if test "${gcc_cv_as_discriminator+set}" = set; then :
23796 $as_echo_n "(cached) " >&6
23797 else
23798 gcc_cv_as_discriminator=no
23799 if test $in_tree_gas = yes; then
23800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23801 then gcc_cv_as_discriminator=yes
23803 elif test x$gcc_cv_as != x; then
23804 $as_echo ' .text
23805 .file 1 "conf.c"
23806 .loc 1 1 0 discriminator 1' > conftest.s
23807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23813 then
23814 gcc_cv_as_discriminator=yes
23815 else
23816 echo "configure: failed program was" >&5
23817 cat conftest.s >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23823 $as_echo "$gcc_cv_as_discriminator" >&6; }
23824 if test $gcc_cv_as_discriminator = yes; then
23826 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23830 # Thread-local storage - the check is heavily parameterized.
23831 conftest_s=
23832 tls_first_major=
23833 tls_first_minor=
23834 tls_as_opt=
23835 case "$target" in
23836 alpha*-*-*)
23837 conftest_s='
23838 .section ".tdata","awT",@progbits
23839 foo: .long 25
23840 .text
23841 ldq $27,__tls_get_addr($29) !literal!1
23842 lda $16,foo($29) !tlsgd!1
23843 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23844 ldq $27,__tls_get_addr($29) !literal!2
23845 lda $16,foo($29) !tlsldm!2
23846 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23847 ldq $1,foo($29) !gotdtprel
23848 ldah $2,foo($29) !dtprelhi
23849 lda $3,foo($2) !dtprello
23850 lda $4,foo($29) !dtprel
23851 ldq $1,foo($29) !gottprel
23852 ldah $2,foo($29) !tprelhi
23853 lda $3,foo($2) !tprello
23854 lda $4,foo($29) !tprel'
23855 tls_first_major=2
23856 tls_first_minor=13
23857 tls_as_opt=--fatal-warnings
23859 cris-*-*|crisv32-*-*)
23860 conftest_s='
23861 .section ".tdata","awT",@progbits
23862 x: .long 25
23863 .text
23864 move.d x:IE,$r10
23865 nop'
23866 tls_first_major=2
23867 tls_first_minor=20
23868 tls_as_opt=--fatal-warnings
23870 frv*-*-*)
23871 conftest_s='
23872 .section ".tdata","awT",@progbits
23873 x: .long 25
23874 .text
23875 call #gettlsoff(x)'
23876 tls_first_major=2
23877 tls_first_minor=14
23879 hppa*-*-linux*)
23880 conftest_s='
23881 t1: .reg %r20
23882 t2: .reg %r21
23883 gp: .reg %r19
23884 .section ".tdata","awT",@progbits
23885 foo: .long 25
23886 .text
23887 .align 4
23888 addil LT%foo-$tls_gdidx$,gp
23889 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23890 b __tls_get_addr
23892 addil LT%foo-$tls_ldidx$,gp
23893 b __tls_get_addr
23894 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23895 addil LR%foo-$tls_dtpoff$,%ret0
23896 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23897 mfctl %cr27,%t1
23898 addil LT%foo-$tls_ieoff$,gp
23899 ldw RT%foo-$tls_ieoff$(%r1),%t2
23900 add %t1,%t2,%t3
23901 mfctl %cr27,%t1
23902 addil LR%foo-$tls_leoff$,%t1
23903 ldo RR%foo-$tls_leoff$(%r1),%t2'
23904 tls_first_major=2
23905 tls_first_minor=15
23906 tls_as_opt=--fatal-warnings
23908 arm*-*-*)
23909 conftest_s='
23910 .section ".tdata","awT",%progbits
23911 foo: .long 25
23912 .text
23913 .word foo(gottpoff)
23914 .word foo(tpoff)
23915 .word foo(tlsgd)
23916 .word foo(tlsldm)
23917 .word foo(tlsldo)'
23918 tls_first_major=2
23919 tls_first_minor=17
23921 i[34567]86-*-* | x86_64-*-*)
23922 case "$target" in
23923 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23924 on_solaris=yes
23927 on_solaris=no
23929 esac
23930 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23931 conftest_s='
23932 .section .tdata,"awt",@progbits'
23933 tls_first_major=0
23934 tls_first_minor=0
23935 tls_section_flag=t
23937 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23939 else
23940 conftest_s='
23941 .section ".tdata","awT",@progbits'
23942 tls_first_major=2
23943 tls_first_minor=14
23944 tls_section_flag=T
23945 tls_as_opt="--fatal-warnings"
23947 case "$target" in
23948 i[34567]86-*-*)
23949 conftest_s="$conftest_s
23950 foo: .long 25
23951 .text
23952 movl %gs:0, %eax
23953 leal foo@tlsgd(,%ebx,1), %eax
23954 leal foo@tlsldm(%ebx), %eax
23955 leal foo@dtpoff(%eax), %edx
23956 movl foo@gottpoff(%ebx), %eax
23957 subl foo@gottpoff(%ebx), %eax
23958 addl foo@gotntpoff(%ebx), %eax
23959 movl foo@indntpoff, %eax
23960 movl \$foo@tpoff, %eax
23961 subl \$foo@tpoff, %eax
23962 leal foo@ntpoff(%ecx), %eax"
23964 x86_64-*-*)
23965 if test x$on_solaris = xyes; then
23966 case $gas_flag in
23967 yes) tls_as_opt="$tls_as_opt --64" ;;
23968 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23969 esac
23971 conftest_s="$conftest_s
23972 foo: .long 25
23973 .text
23974 movq %fs:0, %rax
23975 leaq foo@tlsgd(%rip), %rdi
23976 leaq foo@tlsld(%rip), %rdi
23977 leaq foo@dtpoff(%rax), %rdx
23978 movq foo@gottpoff(%rip), %rax
23979 movq \$foo@tpoff, %rax"
23981 esac
23983 ia64-*-*)
23984 conftest_s='
23985 .section ".tdata","awT",@progbits
23986 foo: data8 25
23987 .text
23988 addl r16 = @ltoff(@dtpmod(foo#)), gp
23989 addl r17 = @ltoff(@dtprel(foo#)), gp
23990 addl r18 = @ltoff(@tprel(foo#)), gp
23991 addl r19 = @dtprel(foo#), gp
23992 adds r21 = @dtprel(foo#), r13
23993 movl r23 = @dtprel(foo#)
23994 addl r20 = @tprel(foo#), gp
23995 adds r22 = @tprel(foo#), r13
23996 movl r24 = @tprel(foo#)'
23997 tls_first_major=2
23998 tls_first_minor=13
23999 tls_as_opt=--fatal-warnings
24001 microblaze*-*-*)
24002 conftest_s='
24003 .section .tdata,"awT",@progbits
24005 .word 2
24006 .text
24007 addik r5,r20,x@TLSGD
24008 addik r5,r20,x@TLSLDM'
24009 tls_first_major=2
24010 tls_first_minor=20
24011 tls_as_opt='--fatal-warnings'
24013 mips*-*-*)
24014 conftest_s='
24015 .section .tdata,"awT",@progbits
24017 .word 2
24018 .text
24019 addiu $4, $28, %tlsgd(x)
24020 addiu $4, $28, %tlsldm(x)
24021 lui $4, %dtprel_hi(x)
24022 addiu $4, $4, %dtprel_lo(x)
24023 lw $4, %gottprel(x)($28)
24024 lui $4, %tprel_hi(x)
24025 addiu $4, $4, %tprel_lo(x)'
24026 tls_first_major=2
24027 tls_first_minor=16
24028 tls_as_opt='-32 --fatal-warnings'
24030 m68k-*-*)
24031 conftest_s='
24032 .section .tdata,"awT",@progbits
24034 .word 2
24035 .text
24036 foo:
24037 move.l x@TLSGD(%a5),%a0
24038 move.l x@TLSLDM(%a5),%a0
24039 move.l x@TLSLDO(%a5),%a0
24040 move.l x@TLSIE(%a5),%a0
24041 move.l x@TLSLE(%a5),%a0'
24042 tls_first_major=2
24043 tls_first_minor=19
24044 tls_as_opt='--fatal-warnings'
24046 nios2-*-*)
24047 conftest_s='
24048 .section ".tdata","awT",@progbits'
24049 tls_first_major=2
24050 tls_first_minor=23
24051 tls_as_opt="--fatal-warnings"
24053 aarch64*-*-*)
24054 conftest_s='
24055 .section ".tdata","awT",%progbits
24056 foo: .long 25
24057 .text
24058 adrp x0, :tlsgd:x
24059 add x0, x0, #:tlsgd_lo12:x
24060 bl __tls_get_addr
24061 nop'
24062 tls_first_major=2
24063 tls_first_minor=20
24064 tls_as_opt='--fatal-warnings'
24066 powerpc-ibm-aix*)
24067 conftest_s='
24068 .extern __get_tpointer
24069 .toc
24070 LC..1:
24071 .tc a[TC],a[TL]@le
24072 .csect .text[PR]
24073 .tlstest:
24074 lwz 9,LC..1(2)
24075 bla __get_tpointer
24076 lwzx 3,9,3
24077 .globl a
24078 .csect a[TL],4
24080 .space 4'
24081 tls_first_major=0
24082 tls_first_minor=0
24084 powerpc64*-*-*)
24085 conftest_s='
24086 .section ".tdata","awT",@progbits
24087 .align 3
24088 ld0: .space 8
24089 ld1: .space 8
24090 x1: .space 8
24091 x2: .space 8
24092 x3: .space 8
24093 .text
24094 addi 3,2,ld0@got@tlsgd
24095 bl .__tls_get_addr
24097 addi 3,2,ld1@toc
24098 bl .__tls_get_addr
24100 addi 3,2,x1@got@tlsld
24101 bl .__tls_get_addr
24103 addi 9,3,x1@dtprel
24104 bl .__tls_get_addr
24106 addis 9,3,x2@dtprel@ha
24107 addi 9,9,x2@dtprel@l
24108 bl .__tls_get_addr
24110 ld 9,x3@got@dtprel(2)
24111 add 9,9,3
24112 bl .__tls_get_addr
24113 nop'
24114 tls_first_major=2
24115 tls_first_minor=14
24116 tls_as_opt="-a64 --fatal-warnings"
24118 powerpc*-*-*)
24119 conftest_s='
24120 .section ".tdata","awT",@progbits
24121 .align 2
24122 ld0: .space 4
24123 ld1: .space 4
24124 x1: .space 4
24125 x2: .space 4
24126 x3: .space 4
24127 .text
24128 addi 3,31,ld0@got@tlsgd
24129 bl __tls_get_addr
24130 addi 3,31,x1@got@tlsld
24131 bl __tls_get_addr
24132 addi 9,3,x1@dtprel
24133 addis 9,3,x2@dtprel@ha
24134 addi 9,9,x2@dtprel@l
24135 lwz 9,x3@got@tprel(31)
24136 add 9,9,x@tls
24137 addi 9,2,x1@tprel
24138 addis 9,2,x2@tprel@ha
24139 addi 9,9,x2@tprel@l'
24140 tls_first_major=2
24141 tls_first_minor=14
24142 tls_as_opt="-a32 --fatal-warnings"
24144 s390-*-*)
24145 conftest_s='
24146 .section ".tdata","awT",@progbits
24147 foo: .long 25
24148 .text
24149 .long foo@TLSGD
24150 .long foo@TLSLDM
24151 .long foo@DTPOFF
24152 .long foo@NTPOFF
24153 .long foo@GOTNTPOFF
24154 .long foo@INDNTPOFF
24155 l %r1,foo@GOTNTPOFF(%r12)
24156 l %r1,0(%r1):tls_load:foo
24157 bas %r14,0(%r1,%r13):tls_gdcall:foo
24158 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24159 tls_first_major=2
24160 tls_first_minor=14
24161 tls_as_opt="-m31 --fatal-warnings"
24163 s390x-*-*)
24164 conftest_s='
24165 .section ".tdata","awT",@progbits
24166 foo: .long 25
24167 .text
24168 .quad foo@TLSGD
24169 .quad foo@TLSLDM
24170 .quad foo@DTPOFF
24171 .quad foo@NTPOFF
24172 .quad foo@GOTNTPOFF
24173 lg %r1,foo@GOTNTPOFF(%r12)
24174 larl %r1,foo@INDNTPOFF
24175 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24176 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24177 tls_first_major=2
24178 tls_first_minor=14
24179 tls_as_opt="-m64 -Aesame --fatal-warnings"
24181 sh-*-* | sh[123456789lbe]*-*-*)
24182 conftest_s='
24183 .section ".tdata","awT",@progbits
24184 foo: .long 25
24185 .text
24186 .long foo@TLSGD
24187 .long foo@TLSLDM
24188 .long foo@DTPOFF
24189 .long foo@GOTTPOFF
24190 .long foo@TPOFF'
24191 tls_first_major=2
24192 tls_first_minor=13
24193 tls_as_opt=--fatal-warnings
24195 sparc*-*-*)
24196 case "$target" in
24197 sparc*-sun-solaris2.*)
24198 on_solaris=yes
24201 on_solaris=no
24203 esac
24204 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24205 conftest_s='
24206 .section ".tdata",#alloc,#write,#tls'
24207 tls_first_major=0
24208 tls_first_minor=0
24209 else
24210 conftest_s='
24211 .section ".tdata","awT",@progbits'
24212 tls_first_major=2
24213 tls_first_minor=14
24214 tls_as_opt="-32 --fatal-warnings"
24216 conftest_s="$conftest_s
24217 foo: .long 25
24218 .text
24219 sethi %tgd_hi22(foo), %o0
24220 add %o0, %tgd_lo10(foo), %o1
24221 add %l7, %o1, %o0, %tgd_add(foo)
24222 call __tls_get_addr, %tgd_call(foo)
24223 sethi %tldm_hi22(foo), %l1
24224 add %l1, %tldm_lo10(foo), %l2
24225 add %l7, %l2, %o0, %tldm_add(foo)
24226 call __tls_get_addr, %tldm_call(foo)
24227 sethi %tldo_hix22(foo), %l3
24228 xor %l3, %tldo_lox10(foo), %l4
24229 add %o0, %l4, %l5, %tldo_add(foo)
24230 sethi %tie_hi22(foo), %o3
24231 add %o3, %tie_lo10(foo), %o3
24232 ld [%l7 + %o3], %o2, %tie_ld(foo)
24233 add %g7, %o2, %o4, %tie_add(foo)
24234 sethi %tle_hix22(foo), %l1
24235 xor %l1, %tle_lox10(foo), %o5
24236 ld [%g7 + %o5], %o1"
24238 tilepro*-*-*)
24239 conftest_s='
24240 .section ".tdata","awT",@progbits
24241 foo: .long 25
24242 .text
24243 addli r0, zero, tls_gd(foo)
24244 auli r0, zero, tls_gd_ha16(foo)
24245 addli r0, r0, tls_gd_lo16(foo)
24246 jal __tls_get_addr
24247 addli r0, zero, tls_ie(foo)
24248 auli r0, r0, tls_ie_ha16(foo)
24249 addli r0, r0, tls_ie_lo16(foo)'
24250 tls_first_major=2
24251 tls_first_minor=22
24252 tls_as_opt="--fatal-warnings"
24254 tilegx*-*-*)
24255 conftest_s='
24256 .section ".tdata","awT",@progbits
24257 foo: .long 25
24258 .text
24259 shl16insli r0, zero, hw0_last_tls_gd(foo)
24260 shl16insli r0, zero, hw1_last_tls_gd(foo)
24261 shl16insli r0, r0, hw0_tls_gd(foo)
24262 jal __tls_get_addr
24263 shl16insli r0, zero, hw1_last_tls_ie(foo)
24264 shl16insli r0, r0, hw0_tls_ie(foo)'
24265 tls_first_major=2
24266 tls_first_minor=22
24267 tls_as_opt="--fatal-warnings"
24269 xtensa*-*-*)
24270 conftest_s='
24271 .section ".tdata","awT",@progbits
24272 foo: .long 25
24273 .text
24274 movi a8, foo@TLSFUNC
24275 movi a10, foo@TLSARG
24276 callx8.tls a8, foo@TLSCALL'
24277 tls_first_major=2
24278 tls_first_minor=19
24280 esac
24281 set_have_as_tls=no
24282 if test "x$enable_tls" = xno ; then
24283 : # TLS explicitly disabled.
24284 elif test "x$enable_tls" = xyes ; then
24285 set_have_as_tls=yes # TLS explicitly enabled.
24286 elif test -z "$tls_first_major"; then
24287 : # If we don't have a check, assume no support.
24288 else
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24290 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24291 if test "${gcc_cv_as_tls+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24293 else
24294 gcc_cv_as_tls=no
24295 if test $in_tree_gas = yes; then
24296 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24297 then gcc_cv_as_tls=yes
24299 elif test x$gcc_cv_as != x; then
24300 $as_echo "$conftest_s" > conftest.s
24301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }; }
24307 then
24308 gcc_cv_as_tls=yes
24309 else
24310 echo "configure: failed program was" >&5
24311 cat conftest.s >&5
24313 rm -f conftest.o conftest.s
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24317 $as_echo "$gcc_cv_as_tls" >&6; }
24318 if test $gcc_cv_as_tls = yes; then
24319 set_have_as_tls=yes
24322 if test $set_have_as_tls = yes ; then
24324 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24328 # Target-specific assembler checks.
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24331 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24332 gcc_cv_ld_static_dynamic=no
24333 gcc_cv_ld_static_option='-Bstatic'
24334 gcc_cv_ld_dynamic_option='-Bdynamic'
24335 if test $in_tree_ld = yes ; then
24336 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
24337 gcc_cv_ld_static_dynamic=yes
24339 elif test x$gcc_cv_ld != x; then
24340 # Check if linker supports -Bstatic/-Bdynamic option
24341 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24342 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24343 gcc_cv_ld_static_dynamic=yes
24344 else
24345 case "$target" in
24346 # AIX ld uses -b flags
24347 *-*-aix4.[23]* | *-*-aix[5-9]*)
24348 gcc_cv_ld_static_dynamic=yes
24349 gcc_cv_ld_static_option="-bstatic"
24350 gcc_cv_ld_dynamic_option="-bdynamic"
24352 # HP-UX ld uses -a flags to select between shared and archive.
24353 *-*-hpux*)
24354 if test x"$gnu_ld" = xno; then
24355 gcc_cv_ld_static_dynamic=yes
24356 gcc_cv_ld_static_option="-aarchive_shared"
24357 gcc_cv_ld_dynamic_option="-adefault"
24360 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24361 *-*-solaris2*)
24362 gcc_cv_ld_static_dynamic=yes
24364 esac
24367 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24369 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24372 cat >>confdefs.h <<_ACEOF
24373 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24374 _ACEOF
24377 cat >>confdefs.h <<_ACEOF
24378 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24379 _ACEOF
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24383 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24385 if test x"$demangler_in_ld" = xyes; then
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24387 $as_echo_n "checking linker --demangle support... " >&6; }
24388 gcc_cv_ld_demangle=no
24389 if test $in_tree_ld = yes; then
24390 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 \
24391 gcc_cv_ld_demangle=yes
24393 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24394 # Check if the GNU linker supports --demangle option
24395 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24396 gcc_cv_ld_demangle=yes
24399 if test x"$gcc_cv_ld_demangle" = xyes; then
24401 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24405 $as_echo "$gcc_cv_ld_demangle" >&6; }
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24409 $as_echo_n "checking linker plugin support... " >&6; }
24410 gcc_cv_lto_plugin=0
24411 if test -f liblto_plugin.la; then
24412 save_ld_ver="$ld_ver"
24413 save_ld_vers_major="$ld_vers_major"
24414 save_ld_vers_minor="$ld_vers_minor"
24415 save_ld_is_gold="$ld_is_gold"
24417 ld_is_gold=no
24419 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24420 ld_ver="GNU ld"
24421 # FIXME: ld_is_gold?
24422 ld_vers_major="$gcc_cv_gld_major_version"
24423 ld_vers_minor="$gcc_cv_gld_minor_version"
24424 else
24425 # Determine plugin linker version.
24426 # FIXME: Partial duplicate from above, generalize.
24427 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24428 if echo "$ld_ver" | grep GNU > /dev/null; then
24429 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24430 ld_is_gold=yes
24431 ld_vers=`echo $ld_ver | sed -n \
24432 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24433 else
24434 ld_vers=`echo $ld_ver | sed -n \
24435 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24437 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24438 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24442 # Determine plugin support.
24443 if echo "$ld_ver" | grep GNU > /dev/null; then
24444 # Require GNU ld or gold 2.21+ for plugin support by default.
24445 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24446 gcc_cv_lto_plugin=2
24447 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24448 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24449 gcc_cv_lto_plugin=1
24453 ld_ver="$save_ld_ver"
24454 ld_vers_major="$save_ld_vers_major"
24455 ld_vers_minor="$save_ld_vers_minor"
24456 ld_is_gold="$save_ld_is_gold"
24459 cat >>confdefs.h <<_ACEOF
24460 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24461 _ACEOF
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24464 $as_echo "$gcc_cv_lto_plugin" >&6; }
24466 # Target OS-specific assembler checks.
24468 case "$target_os" in
24469 darwin*)
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24471 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24472 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24473 $as_echo_n "(cached) " >&6
24474 else
24475 gcc_cv_as_mmacosx_version_min=no
24476 if test x$gcc_cv_as != x; then
24477 $as_echo '.text' > conftest.s
24478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24480 (eval $ac_try) 2>&5
24481 ac_status=$?
24482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24483 test $ac_status = 0; }; }
24484 then
24485 gcc_cv_as_mmacosx_version_min=yes
24486 else
24487 echo "configure: failed program was" >&5
24488 cat conftest.s >&5
24490 rm -f conftest.o conftest.s
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24494 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24495 if test $gcc_cv_as_mmacosx_version_min = yes; then
24497 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24501 esac
24503 # Target CPU-specific assembler checks.
24505 case "$target" in
24506 aarch64*-*-*)
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24508 $as_echo_n "checking assembler for -mabi option... " >&6; }
24509 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24510 $as_echo_n "(cached) " >&6
24511 else
24512 gcc_cv_as_aarch64_mabi=no
24513 if test x$gcc_cv_as != x; then
24514 $as_echo '.text' > conftest.s
24515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517 (eval $ac_try) 2>&5
24518 ac_status=$?
24519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520 test $ac_status = 0; }; }
24521 then
24522 gcc_cv_as_aarch64_mabi=yes
24523 else
24524 echo "configure: failed program was" >&5
24525 cat conftest.s >&5
24527 rm -f conftest.o conftest.s
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24531 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24533 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24535 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24537 else
24538 if test x$with_abi = xilp32; then
24539 as_fn_error "Assembler does not support -mabi=ilp32.\
24540 Upgrade the Assembler." "$LINENO" 5
24542 if test x"$with_multilib_list" = xdefault; then
24543 TM_MULTILIB_CONFIG=lp64
24544 else
24545 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24546 for aarch64_multilib in ${aarch64_multilibs}; do
24547 case ${aarch64_multilib} in
24548 ilp32)
24549 as_fn_error "Assembler does not support -mabi=ilp32.\
24550 Upgrade the Assembler." "$LINENO" 5
24554 esac
24555 done
24558 # Check if we have binutils support for relocations types needed by -fpic
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24560 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24561 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24562 $as_echo_n "(cached) " >&6
24563 else
24564 gcc_cv_as_aarch64_picreloc=no
24565 if test x$gcc_cv_as != x; then
24566 $as_echo '
24567 .text
24568 ldr x0, [x2, #:gotpage_lo15:globalsym]
24569 ' > conftest.s
24570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24576 then
24577 gcc_cv_as_aarch64_picreloc=yes
24578 else
24579 echo "configure: failed program was" >&5
24580 cat conftest.s >&5
24582 rm -f conftest.o conftest.s
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24586 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24587 if test $gcc_cv_as_aarch64_picreloc = yes; then
24589 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24592 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24593 # Check whether --enable-fix-cortex-a53-835769 was given.
24594 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24595 enableval=$enable_fix_cortex_a53_835769;
24596 case $enableval in
24597 yes)
24598 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24603 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24604 Valid choices are 'yes' and 'no'." "$LINENO" 5
24607 esac
24611 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24612 # Check whether --enable-fix-cortex-a53-843419 was given.
24613 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24614 enableval=$enable_fix_cortex_a53_843419;
24615 case $enableval in
24616 yes)
24617 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24622 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24623 Valid choices are 'yes' and 'no'." "$LINENO" 5
24626 esac
24632 # All TARGET_ABI_OSF targets.
24633 alpha*-*-linux* | alpha*-*-*bsd*)
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24635 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24636 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24638 else
24639 gcc_cv_as_alpha_explicit_relocs=no
24640 if test $in_tree_gas = yes; then
24641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24642 then gcc_cv_as_alpha_explicit_relocs=yes
24644 elif test x$gcc_cv_as != x; then
24645 $as_echo ' .set nomacro
24646 .text
24647 extbl $3, $2, $3 !lituse_bytoff!1
24648 ldq $2, a($29) !literal!1
24649 ldq $4, b($29) !literal!2
24650 ldq_u $3, 0($2) !lituse_base!1
24651 ldq $27, f($29) !literal!5
24652 jsr $26, ($27), f !lituse_jsr!5
24653 ldah $29, 0($26) !gpdisp!3
24654 lda $0, c($29) !gprel
24655 ldah $1, d($29) !gprelhigh
24656 lda $1, d($1) !gprellow
24657 lda $29, 0($29) !gpdisp!3' > conftest.s
24658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24660 (eval $ac_try) 2>&5
24661 ac_status=$?
24662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24663 test $ac_status = 0; }; }
24664 then
24665 gcc_cv_as_alpha_explicit_relocs=yes
24666 else
24667 echo "configure: failed program was" >&5
24668 cat conftest.s >&5
24670 rm -f conftest.o conftest.s
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24674 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24675 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24677 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24681 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24682 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24683 $as_echo_n "(cached) " >&6
24684 else
24685 gcc_cv_as_alpha_jsrdirect_relocs=no
24686 if test $in_tree_gas = yes; then
24687 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24688 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24690 elif test x$gcc_cv_as != x; then
24691 $as_echo ' .set nomacro
24692 .text
24693 ldq $27, a($29) !literal!1
24694 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24698 ac_status=$?
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24701 then
24702 gcc_cv_as_alpha_jsrdirect_relocs=yes
24703 else
24704 echo "configure: failed program was" >&5
24705 cat conftest.s >&5
24707 rm -f conftest.o conftest.s
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24711 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24712 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24714 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24719 avr-*-*)
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24721 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24722 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 gcc_cv_as_avr_mlink_relax=no
24726 if test x$gcc_cv_as != x; then
24727 $as_echo '.text' > conftest.s
24728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24730 (eval $ac_try) 2>&5
24731 ac_status=$?
24732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24733 test $ac_status = 0; }; }
24734 then
24735 gcc_cv_as_avr_mlink_relax=yes
24736 else
24737 echo "configure: failed program was" >&5
24738 cat conftest.s >&5
24740 rm -f conftest.o conftest.s
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24744 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24745 if test $gcc_cv_as_avr_mlink_relax = yes; then
24747 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24752 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24753 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24755 else
24756 gcc_cv_as_avr_mrmw=no
24757 if test x$gcc_cv_as != x; then
24758 $as_echo '.text' > conftest.s
24759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24765 then
24766 gcc_cv_as_avr_mrmw=yes
24767 else
24768 echo "configure: failed program was" >&5
24769 cat conftest.s >&5
24771 rm -f conftest.o conftest.s
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24775 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24776 if test $gcc_cv_as_avr_mrmw = yes; then
24778 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24783 cris-*-*)
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24785 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24786 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24787 $as_echo_n "(cached) " >&6
24788 else
24789 gcc_cv_as_cris_no_mul_bug=no
24790 if test $in_tree_gas = yes; then
24791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24792 then gcc_cv_as_cris_no_mul_bug=yes
24794 elif test x$gcc_cv_as != x; then
24795 $as_echo '.text' > conftest.s
24796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24801 test $ac_status = 0; }; }
24802 then
24803 gcc_cv_as_cris_no_mul_bug=yes
24804 else
24805 echo "configure: failed program was" >&5
24806 cat conftest.s >&5
24808 rm -f conftest.o conftest.s
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24812 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24813 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24815 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24820 sparc*-*-*)
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24822 $as_echo_n "checking assembler for .register... " >&6; }
24823 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24825 else
24826 gcc_cv_as_sparc_register_op=no
24827 if test x$gcc_cv_as != x; then
24828 $as_echo '.register %g2, #scratch' > conftest.s
24829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24831 (eval $ac_try) 2>&5
24832 ac_status=$?
24833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24834 test $ac_status = 0; }; }
24835 then
24836 gcc_cv_as_sparc_register_op=yes
24837 else
24838 echo "configure: failed program was" >&5
24839 cat conftest.s >&5
24841 rm -f conftest.o conftest.s
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24845 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24846 if test $gcc_cv_as_sparc_register_op = yes; then
24848 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24853 $as_echo_n "checking assembler for -relax option... " >&6; }
24854 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24855 $as_echo_n "(cached) " >&6
24856 else
24857 gcc_cv_as_sparc_relax=no
24858 if test x$gcc_cv_as != x; then
24859 $as_echo '.text' > conftest.s
24860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24865 test $ac_status = 0; }; }
24866 then
24867 gcc_cv_as_sparc_relax=yes
24868 else
24869 echo "configure: failed program was" >&5
24870 cat conftest.s >&5
24872 rm -f conftest.o conftest.s
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24876 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24877 if test $gcc_cv_as_sparc_relax = yes; then
24879 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24884 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24885 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24886 $as_echo_n "(cached) " >&6
24887 else
24888 gcc_cv_as_sparc_gotdata_op=no
24889 if test x$gcc_cv_as != x; then
24890 $as_echo '.text
24891 .align 4
24892 foo:
24894 bar:
24895 sethi %gdop_hix22(foo), %g1
24896 xor %g1, %gdop_lox10(foo), %g1
24897 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24903 test $ac_status = 0; }; }
24904 then
24905 if test x$gcc_cv_ld != x \
24906 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24907 if test x$gcc_cv_objdump != x; then
24908 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24909 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24910 gcc_cv_as_sparc_gotdata_op=no
24911 else
24912 gcc_cv_as_sparc_gotdata_op=yes
24916 rm -f conftest
24917 else
24918 echo "configure: failed program was" >&5
24919 cat conftest.s >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24925 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24926 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24928 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24933 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24934 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24935 $as_echo_n "(cached) " >&6
24936 else
24937 gcc_cv_as_sparc_ua_pcrel=no
24938 if test x$gcc_cv_as != x; then
24939 $as_echo '.text
24940 foo:
24942 .data
24943 .align 4
24944 .byte 0
24945 .uaword %r_disp32(foo)' > conftest.s
24946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24948 (eval $ac_try) 2>&5
24949 ac_status=$?
24950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24951 test $ac_status = 0; }; }
24952 then
24953 if test x$gcc_cv_ld != x \
24954 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24955 gcc_cv_as_sparc_ua_pcrel=yes
24957 rm -f conftest
24958 else
24959 echo "configure: failed program was" >&5
24960 cat conftest.s >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24966 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24967 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24969 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24973 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24974 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24976 else
24977 gcc_cv_as_sparc_ua_pcrel_hidden=no
24978 if test x$gcc_cv_as != x; then
24979 $as_echo '.data
24980 .align 4
24981 .byte 0x31
24982 .uaword %r_disp32(foo)
24983 .byte 0x32, 0x33, 0x34
24984 .global foo
24985 .hidden foo
24986 foo:
24987 .skip 4' > conftest.s
24988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24994 then
24995 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24996 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24997 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24998 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24999 if $gcc_cv_objdump -R conftest 2> /dev/null \
25000 | grep 'DISP32' > /dev/null 2>&1; then
25002 else
25003 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25006 rm -f conftest
25007 else
25008 echo "configure: failed program was" >&5
25009 cat conftest.s >&5
25011 rm -f conftest.o conftest.s
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25015 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25016 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25018 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25022 fi # unaligned pcrel relocs
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25025 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25026 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25027 $as_echo_n "(cached) " >&6
25028 else
25029 gcc_cv_as_sparc_offsetable_lo10=no
25030 if test x$gcc_cv_as != x; then
25031 $as_echo '.text
25032 or %g1, %lo(ab) + 12, %g1
25033 or %g1, %lo(ab + 12), %g1' > conftest.s
25034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25037 ac_status=$?
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25040 then
25041 if test x$gcc_cv_objdump != x \
25042 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25043 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25044 gcc_cv_as_sparc_offsetable_lo10=yes
25046 else
25047 echo "configure: failed program was" >&5
25048 cat conftest.s >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25054 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25055 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25057 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25062 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25063 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066 gcc_cv_as_sparc_fmaf=no
25067 if test x$gcc_cv_as != x; then
25068 $as_echo '.text
25069 .register %g2, #scratch
25070 .register %g3, #scratch
25071 .align 4
25072 fmaddd %f0, %f2, %f4, %f6
25073 addxccc %g1, %g2, %g3
25074 fsrl32 %f2, %f4, %f8
25075 fnaddd %f10, %f12, %f14' > conftest.s
25076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25078 (eval $ac_try) 2>&5
25079 ac_status=$?
25080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25081 test $ac_status = 0; }; }
25082 then
25083 gcc_cv_as_sparc_fmaf=yes
25084 else
25085 echo "configure: failed program was" >&5
25086 cat conftest.s >&5
25088 rm -f conftest.o conftest.s
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25092 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25093 if test $gcc_cv_as_sparc_fmaf = yes; then
25095 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25100 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25101 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25102 $as_echo_n "(cached) " >&6
25103 else
25104 gcc_cv_as_sparc_sparc4=no
25105 if test x$gcc_cv_as != x; then
25106 $as_echo '.text
25107 .register %g2, #scratch
25108 .register %g3, #scratch
25109 .align 4
25110 cxbe %g2, %g3, 1f
25111 1: cwbneg %g2, %g3, 1f
25112 1: sha1
25114 aes_kexpand0 %f4, %f6, %f8
25115 des_round %f38, %f40, %f42, %f44
25116 camellia_f %f54, %f56, %f58, %f60
25117 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25124 then
25125 gcc_cv_as_sparc_sparc4=yes
25126 else
25127 echo "configure: failed program was" >&5
25128 cat conftest.s >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25134 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25135 if test $gcc_cv_as_sparc_sparc4 = yes; then
25137 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25142 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25143 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25144 $as_echo_n "(cached) " >&6
25145 else
25146 gcc_cv_as_sparc_sparc5=no
25147 if test x$gcc_cv_as != x; then
25148 $as_echo '.text
25149 .register %g2, #scratch
25150 .register %g3, #scratch
25151 .align 4
25152 subxc %g1, %g2, %g3
25153 fpadd8 %f0, %f2, %f4' > conftest.s
25154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159 test $ac_status = 0; }; }
25160 then
25161 gcc_cv_as_sparc_sparc5=yes
25162 else
25163 echo "configure: failed program was" >&5
25164 cat conftest.s >&5
25166 rm -f conftest.o conftest.s
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25170 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25171 if test $gcc_cv_as_sparc_sparc5 = yes; then
25173 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25178 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25179 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 gcc_cv_as_sparc_leon=no
25183 if test x$gcc_cv_as != x; then
25184 $as_echo '.text
25185 .register %g2, #scratch
25186 .register %g3, #scratch
25187 .align 4
25188 smac %g2, %g3, %g1
25189 umac %g2, %g3, %g1
25190 casa [%g2] 0xb, %g3, %g1' > conftest.s
25191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25196 test $ac_status = 0; }; }
25197 then
25198 gcc_cv_as_sparc_leon=yes
25199 else
25200 echo "configure: failed program was" >&5
25201 cat conftest.s >&5
25203 rm -f conftest.o conftest.s
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25207 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25208 if test $gcc_cv_as_sparc_leon = yes; then
25210 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25215 i[34567]86-*-* | x86_64-*-*)
25216 case $target_os in
25217 cygwin*)
25218 # Full C++ conformance when using a shared libstdc++-v3 requires some
25219 # support from the Cygwin DLL, which in more recent versions exports
25220 # wrappers to aid in interposing and redirecting operators new, delete,
25221 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25222 # are configuring for a version of Cygwin that exports the wrappers.
25223 if test x$host = x$target && test x$host_cpu = xi686; then
25224 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25225 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25226 gcc_ac_cygwin_dll_wrappers=yes
25227 else
25228 gcc_ac_cygwin_dll_wrappers=no
25231 else
25232 # Can't check presence of libc functions during cross-compile, so
25233 # we just have to assume we're building for an up-to-date target.
25234 gcc_ac_cygwin_dll_wrappers=yes
25237 cat >>confdefs.h <<_ACEOF
25238 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25239 _ACEOF
25241 esac
25242 case $target_os in
25243 cygwin* | pe | mingw32* | interix*)
25244 # Recent binutils allows the three-operand form of ".comm" on PE. This
25245 # definition is used unconditionally to initialise the default state of
25246 # the target option variable that governs usage of the feature.
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25248 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25249 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25250 $as_echo_n "(cached) " >&6
25251 else
25252 gcc_cv_as_comm_has_align=no
25253 if test $in_tree_gas = yes; then
25254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25255 then gcc_cv_as_comm_has_align=yes
25257 elif test x$gcc_cv_as != x; then
25258 $as_echo '.comm foo,1,32' > conftest.s
25259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25261 (eval $ac_try) 2>&5
25262 ac_status=$?
25263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25264 test $ac_status = 0; }; }
25265 then
25266 gcc_cv_as_comm_has_align=yes
25267 else
25268 echo "configure: failed program was" >&5
25269 cat conftest.s >&5
25271 rm -f conftest.o conftest.s
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25275 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25278 cat >>confdefs.h <<_ACEOF
25279 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25280 _ACEOF
25282 # Used for DWARF 2 in PE
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25284 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25285 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25287 else
25288 gcc_cv_as_ix86_pe_secrel32=no
25289 if test $in_tree_gas = yes; then
25290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25291 then gcc_cv_as_ix86_pe_secrel32=yes
25293 elif test x$gcc_cv_as != x; then
25294 $as_echo '.text
25295 foo: nop
25296 .data
25297 .secrel32 foo' > conftest.s
25298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25304 then
25305 if test x$gcc_cv_ld != x \
25306 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25307 gcc_cv_as_ix86_pe_secrel32=yes
25309 rm -f conftest
25310 else
25311 echo "configure: failed program was" >&5
25312 cat conftest.s >&5
25314 rm -f conftest.o conftest.s
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25318 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25319 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25321 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25324 # Test if the assembler supports the extended form of the .section
25325 # directive that specifies section alignment. LTO support uses this,
25326 # but normally only after installation, so we warn but don't fail the
25327 # configure if LTO is enabled but the assembler does not support it.
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25329 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25330 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25331 $as_echo_n "(cached) " >&6
25332 else
25333 gcc_cv_as_section_has_align=no
25334 if test $in_tree_gas = yes; then
25335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25336 then gcc_cv_as_section_has_align=yes
25338 elif test x$gcc_cv_as != x; then
25339 $as_echo '.section lto_test,"dr0"' > conftest.s
25340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25343 ac_status=$?
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25346 then
25347 gcc_cv_as_section_has_align=yes
25348 else
25349 echo "configure: failed program was" >&5
25350 cat conftest.s >&5
25352 rm -f conftest.o conftest.s
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25356 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25358 if test x$gcc_cv_as_section_has_align != xyes; then
25359 case ",$enable_languages," in
25360 *,lto,*)
25361 { $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
25362 $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;}
25364 esac
25367 esac
25369 # Test if the assembler supports the section flag 'e' for specifying
25370 # an excluded section.
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25372 $as_echo_n "checking assembler for .section with e... " >&6; }
25373 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25374 $as_echo_n "(cached) " >&6
25375 else
25376 gcc_cv_as_section_has_e=no
25377 if test $in_tree_gas = yes; then
25378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25379 then gcc_cv_as_section_has_e=yes
25381 elif test x$gcc_cv_as != x; then
25382 $as_echo '.section foo1,"e"
25383 .byte 0,0,0,0' > conftest.s
25384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25386 (eval $ac_try) 2>&5
25387 ac_status=$?
25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25389 test $ac_status = 0; }; }
25390 then
25391 gcc_cv_as_section_has_e=yes
25392 else
25393 echo "configure: failed program was" >&5
25394 cat conftest.s >&5
25396 rm -f conftest.o conftest.s
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25400 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25403 cat >>confdefs.h <<_ACEOF
25404 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25405 _ACEOF
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25409 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25410 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25411 $as_echo_n "(cached) " >&6
25412 else
25413 gcc_cv_as_ix86_filds=no
25414 if test x$gcc_cv_as != x; then
25415 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25418 (eval $ac_try) 2>&5
25419 ac_status=$?
25420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25421 test $ac_status = 0; }; }
25422 then
25423 gcc_cv_as_ix86_filds=yes
25424 else
25425 echo "configure: failed program was" >&5
25426 cat conftest.s >&5
25428 rm -f conftest.o conftest.s
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25432 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25433 if test $gcc_cv_as_ix86_filds = yes; then
25435 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25440 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25441 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25442 $as_echo_n "(cached) " >&6
25443 else
25444 gcc_cv_as_ix86_fildq=no
25445 if test x$gcc_cv_as != x; then
25446 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25449 (eval $ac_try) 2>&5
25450 ac_status=$?
25451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25452 test $ac_status = 0; }; }
25453 then
25454 gcc_cv_as_ix86_fildq=yes
25455 else
25456 echo "configure: failed program was" >&5
25457 cat conftest.s >&5
25459 rm -f conftest.o conftest.s
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25463 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25464 if test $gcc_cv_as_ix86_fildq = yes; then
25466 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25471 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25472 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25473 $as_echo_n "(cached) " >&6
25474 else
25475 gcc_cv_as_ix86_cmov_sun_syntax=no
25476 if test x$gcc_cv_as != x; then
25477 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25483 test $ac_status = 0; }; }
25484 then
25485 gcc_cv_as_ix86_cmov_sun_syntax=yes
25486 else
25487 echo "configure: failed program was" >&5
25488 cat conftest.s >&5
25490 rm -f conftest.o conftest.s
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25494 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25495 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25497 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25502 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25503 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25504 $as_echo_n "(cached) " >&6
25505 else
25506 gcc_cv_as_ix86_ffreep=no
25507 if test x$gcc_cv_as != x; then
25508 $as_echo 'ffreep %st(1)' > conftest.s
25509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; }
25515 then
25516 gcc_cv_as_ix86_ffreep=yes
25517 else
25518 echo "configure: failed program was" >&5
25519 cat conftest.s >&5
25521 rm -f conftest.o conftest.s
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25525 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25526 if test $gcc_cv_as_ix86_ffreep = yes; then
25528 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25533 $as_echo_n "checking assembler for .quad directive... " >&6; }
25534 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25535 $as_echo_n "(cached) " >&6
25536 else
25537 gcc_cv_as_ix86_quad=no
25538 if test x$gcc_cv_as != x; then
25539 $as_echo '.quad 0' > conftest.s
25540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25542 (eval $ac_try) 2>&5
25543 ac_status=$?
25544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25545 test $ac_status = 0; }; }
25546 then
25547 gcc_cv_as_ix86_quad=yes
25548 else
25549 echo "configure: failed program was" >&5
25550 cat conftest.s >&5
25552 rm -f conftest.o conftest.s
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25556 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25557 if test $gcc_cv_as_ix86_quad = yes; then
25559 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25564 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25565 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25566 $as_echo_n "(cached) " >&6
25567 else
25568 gcc_cv_as_ix86_sahf=no
25569 if test x$gcc_cv_as != x; then
25570 $as_echo '.code64
25571 sahf' > conftest.s
25572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25574 (eval $ac_try) 2>&5
25575 ac_status=$?
25576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25577 test $ac_status = 0; }; }
25578 then
25579 gcc_cv_as_ix86_sahf=yes
25580 else
25581 echo "configure: failed program was" >&5
25582 cat conftest.s >&5
25584 rm -f conftest.o conftest.s
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25588 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25589 if test $gcc_cv_as_ix86_sahf = yes; then
25591 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25596 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25597 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25598 $as_echo_n "(cached) " >&6
25599 else
25600 gcc_cv_as_ix86_interunit_movq=no
25601 if test x$gcc_cv_as != x; then
25602 $as_echo '.code64
25603 movq %mm0, %rax
25604 movq %rax, %xmm0' > conftest.s
25605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25610 test $ac_status = 0; }; }
25611 then
25612 gcc_cv_as_ix86_interunit_movq=yes
25613 else
25614 echo "configure: failed program was" >&5
25615 cat conftest.s >&5
25617 rm -f conftest.o conftest.s
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25621 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25624 cat >>confdefs.h <<_ACEOF
25625 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25626 _ACEOF
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25630 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25631 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25633 else
25634 gcc_cv_as_ix86_hle=no
25635 if test x$gcc_cv_as != x; then
25636 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; }
25643 then
25644 gcc_cv_as_ix86_hle=yes
25645 else
25646 echo "configure: failed program was" >&5
25647 cat conftest.s >&5
25649 rm -f conftest.o conftest.s
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25653 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25654 if test $gcc_cv_as_ix86_hle = yes; then
25656 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25661 $as_echo_n "checking assembler for swap suffix... " >&6; }
25662 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25663 $as_echo_n "(cached) " >&6
25664 else
25665 gcc_cv_as_ix86_swap=no
25666 if test x$gcc_cv_as != x; then
25667 $as_echo 'movl.s %esp, %ebp' > conftest.s
25668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
25672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25673 test $ac_status = 0; }; }
25674 then
25675 gcc_cv_as_ix86_swap=yes
25676 else
25677 echo "configure: failed program was" >&5
25678 cat conftest.s >&5
25680 rm -f conftest.o conftest.s
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25684 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25685 if test $gcc_cv_as_ix86_swap = yes; then
25687 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25692 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25693 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25695 else
25696 gcc_cv_as_ix86_diff_sect_delta=no
25697 if test x$gcc_cv_as != x; then
25698 $as_echo '.section .rodata
25699 .L1:
25700 .long .L2-.L1
25701 .long .L3-.L1
25702 .text
25703 .L3: nop
25704 .L2: nop' > conftest.s
25705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25707 (eval $ac_try) 2>&5
25708 ac_status=$?
25709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25710 test $ac_status = 0; }; }
25711 then
25712 gcc_cv_as_ix86_diff_sect_delta=yes
25713 else
25714 echo "configure: failed program was" >&5
25715 cat conftest.s >&5
25717 rm -f conftest.o conftest.s
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25721 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25722 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25724 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25728 # These two are used unconditionally by i386.[ch]; it is to be defined
25729 # to 1 if the feature is present, 0 otherwise.
25730 as_ix86_gotoff_in_data_opt=
25731 if test x$gas = xyes; then
25732 as_ix86_gotoff_in_data_opt="--32"
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25735 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25736 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25737 $as_echo_n "(cached) " >&6
25738 else
25739 gcc_cv_as_ix86_gotoff_in_data=no
25740 if test $in_tree_gas = yes; then
25741 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25742 then gcc_cv_as_ix86_gotoff_in_data=yes
25744 elif test x$gcc_cv_as != x; then
25745 $as_echo ' .text
25746 .L0:
25748 .data
25749 .long .L0@GOTOFF' > conftest.s
25750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755 test $ac_status = 0; }; }
25756 then
25757 gcc_cv_as_ix86_gotoff_in_data=yes
25758 else
25759 echo "configure: failed program was" >&5
25760 cat conftest.s >&5
25762 rm -f conftest.o conftest.s
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25766 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25769 cat >>confdefs.h <<_ACEOF
25770 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25771 _ACEOF
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25775 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25776 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25778 else
25779 gcc_cv_as_ix86_rep_lock_prefix=no
25780 if test x$gcc_cv_as != x; then
25781 $as_echo 'rep movsl
25782 rep ret
25783 rep nop
25784 rep bsf %ecx, %eax
25785 rep bsr %ecx, %eax
25786 lock addl %edi, (%eax,%esi)
25787 lock orl $0, (%esp)' > conftest.s
25788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25794 then
25795 gcc_cv_as_ix86_rep_lock_prefix=yes
25796 else
25797 echo "configure: failed program was" >&5
25798 cat conftest.s >&5
25800 rm -f conftest.o conftest.s
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25804 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25805 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25807 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25812 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25813 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25814 $as_echo_n "(cached) " >&6
25815 else
25816 gcc_cv_as_ix86_ud2=no
25817 if test x$gcc_cv_as != x; then
25818 $as_echo 'ud2' > 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_ud2=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_ud2" >&5
25835 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25836 if test $gcc_cv_as_ix86_ud2 = yes; then
25838 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25843 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25844 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25845 $as_echo_n "(cached) " >&6
25846 else
25847 gcc_cv_as_ix86_tlsgdplt=no
25848 if test x$gcc_cv_as != x; then
25849 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25852 (eval $ac_try) 2>&5
25853 ac_status=$?
25854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25855 test $ac_status = 0; }; }
25856 then
25857 if test x$gcc_cv_ld != x \
25858 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25859 gcc_cv_as_ix86_tlsgdplt=yes
25861 rm -f conftest
25862 else
25863 echo "configure: failed program was" >&5
25864 cat conftest.s >&5
25866 rm -f conftest.o conftest.s
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25870 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25871 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25873 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25877 conftest_s='
25878 .section .tdata,"aw'$tls_section_flag'",@progbits
25879 tls_ld:
25880 .section .text,"ax",@progbits
25881 call tls_ld@tlsldmplt'
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25883 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25884 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25885 $as_echo_n "(cached) " >&6
25886 else
25887 gcc_cv_as_ix86_tlsldmplt=no
25888 if test x$gcc_cv_as != x; then
25889 $as_echo "$conftest_s" > conftest.s
25890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25895 test $ac_status = 0; }; }
25896 then
25897 if test x$gcc_cv_ld != x \
25898 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25899 gcc_cv_as_ix86_tlsldmplt=yes
25901 rm -f conftest
25902 else
25903 echo "configure: failed program was" >&5
25904 cat conftest.s >&5
25906 rm -f conftest.o conftest.s
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25910 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25913 cat >>confdefs.h <<_ACEOF
25914 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25915 _ACEOF
25918 # Enforce 32-bit output with gas and gld.
25919 if test x$gas = xyes; then
25920 as_ix86_tls_ldm_opt="--32"
25922 if echo "$ld_ver" | grep GNU > /dev/null; then
25923 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25924 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25925 else
25926 ld_ix86_tls_ldm_opt="-melf_i386"
25929 conftest_s='
25930 .section .text,"ax",@progbits
25931 .globl _start
25932 .type _start, @function
25933 _start:
25934 leal value@tlsldm(%ebx), %eax
25935 call ___tls_get_addr@plt
25937 .section .tdata,"aw'$tls_section_flag'",@progbits
25938 .type value, @object
25939 value:'
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25941 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25942 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25943 $as_echo_n "(cached) " >&6
25944 else
25945 gcc_cv_as_ix86_tlsldm=no
25946 if test x$gcc_cv_as != x; then
25947 $as_echo "$conftest_s" > conftest.s
25948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25953 test $ac_status = 0; }; }
25954 then
25955 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25956 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25957 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25958 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25959 gcc_cv_as_ix86_tlsldm=yes
25962 rm -f conftest
25963 else
25964 echo "configure: failed program was" >&5
25965 cat conftest.s >&5
25967 rm -f conftest.o conftest.s
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25971 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25974 cat >>confdefs.h <<_ACEOF
25975 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25976 _ACEOF
25981 ia64*-*-*)
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25983 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25984 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25985 $as_echo_n "(cached) " >&6
25986 else
25987 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25988 if test $in_tree_gas = yes; then
25989 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25990 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25992 elif test x$gcc_cv_as != x; then
25993 $as_echo ' .text
25994 addl r15 = @ltoffx(x#), gp
25996 ld8.mov r16 = [r15], x#' > conftest.s
25997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25999 (eval $ac_try) 2>&5
26000 ac_status=$?
26001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26002 test $ac_status = 0; }; }
26003 then
26004 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26005 else
26006 echo "configure: failed program was" >&5
26007 cat conftest.s >&5
26009 rm -f conftest.o conftest.s
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26013 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26014 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26016 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26022 powerpc*-*-*)
26024 case $target in
26025 *-*-darwin*)
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26027 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26028 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26029 $as_echo_n "(cached) " >&6
26030 else
26031 gcc_cv_as_machine_directive=no
26032 if test x$gcc_cv_as != x; then
26033 $as_echo ' .machine ppc7400' > conftest.s
26034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26040 then
26041 gcc_cv_as_machine_directive=yes
26042 else
26043 echo "configure: failed program was" >&5
26044 cat conftest.s >&5
26046 rm -f conftest.o conftest.s
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26050 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26052 if test x$gcc_cv_as_machine_directive != xyes; then
26053 echo "*** This target requires an assembler supporting \".machine\"" >&2
26054 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26055 test x$build = x$target && exit 1
26058 esac
26060 case $target in
26061 *-*-aix*) conftest_s=' .machine "pwr5"
26062 .csect .text[PR]
26063 mfcr 3,128';;
26064 *-*-darwin*) conftest_s=' .text
26065 mfcr r3,128';;
26066 *) conftest_s=' .machine power4
26067 .text
26068 mfcr 3,128';;
26069 esac
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26072 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26073 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26074 $as_echo_n "(cached) " >&6
26075 else
26076 gcc_cv_as_powerpc_mfcrf=no
26077 if test $in_tree_gas = yes; then
26078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26079 then gcc_cv_as_powerpc_mfcrf=yes
26081 elif test x$gcc_cv_as != x; then
26082 $as_echo "$conftest_s" > conftest.s
26083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26085 (eval $ac_try) 2>&5
26086 ac_status=$?
26087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26088 test $ac_status = 0; }; }
26089 then
26090 gcc_cv_as_powerpc_mfcrf=yes
26091 else
26092 echo "configure: failed program was" >&5
26093 cat conftest.s >&5
26095 rm -f conftest.o conftest.s
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26099 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26100 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26102 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26106 case $target in
26107 *-*-aix*) conftest_s=' .machine "pwr5"
26108 .csect .text[PR]
26109 popcntb 3,3';;
26110 *) conftest_s=' .machine power5
26111 .text
26112 popcntb 3,3';;
26113 esac
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26116 $as_echo_n "checking assembler for popcntb support... " >&6; }
26117 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26118 $as_echo_n "(cached) " >&6
26119 else
26120 gcc_cv_as_powerpc_popcntb=no
26121 if test $in_tree_gas = yes; then
26122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26123 then gcc_cv_as_powerpc_popcntb=yes
26125 elif test x$gcc_cv_as != x; then
26126 $as_echo "$conftest_s" > conftest.s
26127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26133 then
26134 gcc_cv_as_powerpc_popcntb=yes
26135 else
26136 echo "configure: failed program was" >&5
26137 cat conftest.s >&5
26139 rm -f conftest.o conftest.s
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26143 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26144 if test $gcc_cv_as_powerpc_popcntb = yes; then
26146 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26150 case $target in
26151 *-*-aix*) conftest_s=' .machine "pwr5x"
26152 .csect .text[PR]
26153 frin 1,1';;
26154 *) conftest_s=' .machine power5
26155 .text
26156 frin 1,1';;
26157 esac
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26160 $as_echo_n "checking assembler for fp round support... " >&6; }
26161 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26162 $as_echo_n "(cached) " >&6
26163 else
26164 gcc_cv_as_powerpc_fprnd=no
26165 if test $in_tree_gas = yes; then
26166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26167 then gcc_cv_as_powerpc_fprnd=yes
26169 elif test x$gcc_cv_as != x; then
26170 $as_echo "$conftest_s" > conftest.s
26171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26173 (eval $ac_try) 2>&5
26174 ac_status=$?
26175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26176 test $ac_status = 0; }; }
26177 then
26178 gcc_cv_as_powerpc_fprnd=yes
26179 else
26180 echo "configure: failed program was" >&5
26181 cat conftest.s >&5
26183 rm -f conftest.o conftest.s
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26187 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26188 if test $gcc_cv_as_powerpc_fprnd = yes; then
26190 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26194 case $target in
26195 *-*-aix*) conftest_s=' .machine "pwr6"
26196 .csect .text[PR]
26197 mffgpr 1,3';;
26198 *) conftest_s=' .machine power6
26199 .text
26200 mffgpr 1,3';;
26201 esac
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26204 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26205 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26206 $as_echo_n "(cached) " >&6
26207 else
26208 gcc_cv_as_powerpc_mfpgpr=no
26209 if test $in_tree_gas = yes; then
26210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26211 then gcc_cv_as_powerpc_mfpgpr=yes
26213 elif test x$gcc_cv_as != x; then
26214 $as_echo "$conftest_s" > conftest.s
26215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26221 then
26222 gcc_cv_as_powerpc_mfpgpr=yes
26223 else
26224 echo "configure: failed program was" >&5
26225 cat conftest.s >&5
26227 rm -f conftest.o conftest.s
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26231 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26232 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26234 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26238 case $target in
26239 *-*-aix*) conftest_s=' .csect .text[PR]
26240 LCF..0:
26241 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26242 *-*-darwin*)
26243 conftest_s=' .text
26244 LCF0:
26245 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26246 *) conftest_s=' .text
26247 .LCF0:
26248 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26249 esac
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26252 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26253 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26254 $as_echo_n "(cached) " >&6
26255 else
26256 gcc_cv_as_powerpc_rel16=no
26257 if test $in_tree_gas = yes; then
26258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26259 then gcc_cv_as_powerpc_rel16=yes
26261 elif test x$gcc_cv_as != x; then
26262 $as_echo "$conftest_s" > conftest.s
26263 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26265 (eval $ac_try) 2>&5
26266 ac_status=$?
26267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26268 test $ac_status = 0; }; }
26269 then
26270 gcc_cv_as_powerpc_rel16=yes
26271 else
26272 echo "configure: failed program was" >&5
26273 cat conftest.s >&5
26275 rm -f conftest.o conftest.s
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26279 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26280 if test $gcc_cv_as_powerpc_rel16 = yes; then
26282 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26286 case $target in
26287 *-*-aix*) conftest_s=' .machine "pwr6"
26288 .csect .text[PR]
26289 cmpb 3,4,5';;
26290 *) conftest_s=' .machine power6
26291 .text
26292 cmpb 3,4,5';;
26293 esac
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26296 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26297 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26298 $as_echo_n "(cached) " >&6
26299 else
26300 gcc_cv_as_powerpc_cmpb=no
26301 if test $in_tree_gas = yes; then
26302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26303 then gcc_cv_as_powerpc_cmpb=yes
26305 elif test x$gcc_cv_as != x; then
26306 $as_echo "$conftest_s" > conftest.s
26307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26312 test $ac_status = 0; }; }
26313 then
26314 gcc_cv_as_powerpc_cmpb=yes
26315 else
26316 echo "configure: failed program was" >&5
26317 cat conftest.s >&5
26319 rm -f conftest.o conftest.s
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26323 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26324 if test $gcc_cv_as_powerpc_cmpb = yes; then
26326 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26330 case $target in
26331 *-*-aix*) conftest_s=' .machine "pwr6"
26332 .csect .text[PR]
26333 dadd 1,2,3';;
26334 *) conftest_s=' .machine power6
26335 .text
26336 dadd 1,2,3';;
26337 esac
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26340 $as_echo_n "checking assembler for decimal float support... " >&6; }
26341 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26342 $as_echo_n "(cached) " >&6
26343 else
26344 gcc_cv_as_powerpc_dfp=no
26345 if test $in_tree_gas = yes; then
26346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26347 then gcc_cv_as_powerpc_dfp=yes
26349 elif test x$gcc_cv_as != x; then
26350 $as_echo "$conftest_s" > conftest.s
26351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26356 test $ac_status = 0; }; }
26357 then
26358 gcc_cv_as_powerpc_dfp=yes
26359 else
26360 echo "configure: failed program was" >&5
26361 cat conftest.s >&5
26363 rm -f conftest.o conftest.s
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26367 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26368 if test $gcc_cv_as_powerpc_dfp = yes; then
26370 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26374 case $target in
26375 *-*-aix*) conftest_s=' .machine "pwr7"
26376 .csect .text[PR]
26377 lxvd2x 1,2,3';;
26378 *) conftest_s=' .machine power7
26379 .text
26380 lxvd2x 1,2,3';;
26381 esac
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26384 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26385 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26386 $as_echo_n "(cached) " >&6
26387 else
26388 gcc_cv_as_powerpc_vsx=no
26389 if test $in_tree_gas = yes; then
26390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26391 then gcc_cv_as_powerpc_vsx=yes
26393 elif test x$gcc_cv_as != x; then
26394 $as_echo "$conftest_s" > conftest.s
26395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26401 then
26402 gcc_cv_as_powerpc_vsx=yes
26403 else
26404 echo "configure: failed program was" >&5
26405 cat conftest.s >&5
26407 rm -f conftest.o conftest.s
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26411 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26412 if test $gcc_cv_as_powerpc_vsx = yes; then
26414 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26418 case $target in
26419 *-*-aix*) conftest_s=' .machine "pwr7"
26420 .csect .text[PR]
26421 popcntd 3,3';;
26422 *) conftest_s=' .machine power7
26423 .text
26424 popcntd 3,3';;
26425 esac
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26428 $as_echo_n "checking assembler for popcntd support... " >&6; }
26429 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26430 $as_echo_n "(cached) " >&6
26431 else
26432 gcc_cv_as_powerpc_popcntd=no
26433 if test $in_tree_gas = yes; then
26434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26435 then gcc_cv_as_powerpc_popcntd=yes
26437 elif test x$gcc_cv_as != x; then
26438 $as_echo "$conftest_s" > conftest.s
26439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26441 (eval $ac_try) 2>&5
26442 ac_status=$?
26443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26444 test $ac_status = 0; }; }
26445 then
26446 gcc_cv_as_powerpc_popcntd=yes
26447 else
26448 echo "configure: failed program was" >&5
26449 cat conftest.s >&5
26451 rm -f conftest.o conftest.s
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26455 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26456 if test $gcc_cv_as_powerpc_popcntd = yes; then
26458 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26462 case $target in
26463 *-*-aix*) conftest_s=' .machine "pwr8"
26464 .csect .text[PR]';;
26465 *) conftest_s=' .machine power8
26466 .text';;
26467 esac
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26470 $as_echo_n "checking assembler for power8 support... " >&6; }
26471 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26472 $as_echo_n "(cached) " >&6
26473 else
26474 gcc_cv_as_powerpc_power8=no
26475 if test $in_tree_gas = yes; then
26476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26477 then gcc_cv_as_powerpc_power8=yes
26479 elif test x$gcc_cv_as != x; then
26480 $as_echo "$conftest_s" > conftest.s
26481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486 test $ac_status = 0; }; }
26487 then
26488 gcc_cv_as_powerpc_power8=yes
26489 else
26490 echo "configure: failed program was" >&5
26491 cat conftest.s >&5
26493 rm -f conftest.o conftest.s
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26497 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26498 if test $gcc_cv_as_powerpc_power8 = yes; then
26500 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26504 case $target in
26505 *-*-aix*) conftest_s=' .machine "pwr9"
26506 .csect .text[PR]';;
26507 *) conftest_s=' .machine power9
26508 .text';;
26509 esac
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26512 $as_echo_n "checking assembler for power9 support... " >&6; }
26513 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26514 $as_echo_n "(cached) " >&6
26515 else
26516 gcc_cv_as_powerpc_power9=no
26517 if test $in_tree_gas = yes; then
26518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26519 then gcc_cv_as_powerpc_power9=yes
26521 elif test x$gcc_cv_as != x; then
26522 $as_echo "$conftest_s" > conftest.s
26523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26526 ac_status=$?
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }
26529 then
26530 gcc_cv_as_powerpc_power9=yes
26531 else
26532 echo "configure: failed program was" >&5
26533 cat conftest.s >&5
26535 rm -f conftest.o conftest.s
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26539 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26540 if test $gcc_cv_as_powerpc_power9 = yes; then
26542 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26546 case $target in
26547 *-*-aix*) conftest_s=' .csect .text[PR]
26548 lwsync';;
26549 *) conftest_s=' .text
26550 lwsync';;
26551 esac
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26554 $as_echo_n "checking assembler for lwsync support... " >&6; }
26555 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26556 $as_echo_n "(cached) " >&6
26557 else
26558 gcc_cv_as_powerpc_lwsync=no
26559 if test $in_tree_gas = yes; then
26560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26561 then gcc_cv_as_powerpc_lwsync=yes
26563 elif test x$gcc_cv_as != x; then
26564 $as_echo "$conftest_s" > conftest.s
26565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26567 (eval $ac_try) 2>&5
26568 ac_status=$?
26569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26570 test $ac_status = 0; }; }
26571 then
26572 gcc_cv_as_powerpc_lwsync=yes
26573 else
26574 echo "configure: failed program was" >&5
26575 cat conftest.s >&5
26577 rm -f conftest.o conftest.s
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26581 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26582 if test $gcc_cv_as_powerpc_lwsync = yes; then
26584 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26588 case $target in
26589 *-*-aix*) conftest_s=' .machine "476"
26590 .csect .text[PR]
26591 dci 0';;
26592 *) conftest_s=' .machine "476"
26593 .text
26594 dci 0';;
26595 esac
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26598 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26599 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26600 $as_echo_n "(cached) " >&6
26601 else
26602 gcc_cv_as_powerpc_dci=no
26603 if test $in_tree_gas = yes; then
26604 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26605 then gcc_cv_as_powerpc_dci=yes
26607 elif test x$gcc_cv_as != x; then
26608 $as_echo "$conftest_s" > conftest.s
26609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26614 test $ac_status = 0; }; }
26615 then
26616 gcc_cv_as_powerpc_dci=yes
26617 else
26618 echo "configure: failed program was" >&5
26619 cat conftest.s >&5
26621 rm -f conftest.o conftest.s
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26625 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26626 if test $gcc_cv_as_powerpc_dci = yes; then
26628 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26633 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26634 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26635 $as_echo_n "(cached) " >&6
26636 else
26637 gcc_cv_as_powerpc_gnu_attribute=no
26638 if test $in_tree_gas = yes; then
26639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26640 then gcc_cv_as_powerpc_gnu_attribute=yes
26642 elif test x$gcc_cv_as != x; then
26643 $as_echo '.gnu_attribute 4,1' > conftest.s
26644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26650 then
26651 gcc_cv_as_powerpc_gnu_attribute=yes
26652 else
26653 echo "configure: failed program was" >&5
26654 cat conftest.s >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26660 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26661 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26663 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26668 $as_echo_n "checking assembler for tls marker support... " >&6; }
26669 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26670 $as_echo_n "(cached) " >&6
26671 else
26672 gcc_cv_as_powerpc_tls_markers=no
26673 if test $in_tree_gas = yes; then
26674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26675 then gcc_cv_as_powerpc_tls_markers=yes
26677 elif test x$gcc_cv_as != x; then
26678 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26685 then
26686 gcc_cv_as_powerpc_tls_markers=yes
26687 else
26688 echo "configure: failed program was" >&5
26689 cat conftest.s >&5
26691 rm -f conftest.o conftest.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26695 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26696 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26698 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26703 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26704 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26705 $as_echo_n "(cached) " >&6
26706 else
26707 gcc_cv_as_powerpc_entry_markers=no
26708 if test $in_tree_gas = yes; then
26709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26710 then gcc_cv_as_powerpc_entry_markers=yes
26712 elif test x$gcc_cv_as != x; then
26713 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26716 (eval $ac_try) 2>&5
26717 ac_status=$?
26718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26719 test $ac_status = 0; }; }
26720 then
26721 gcc_cv_as_powerpc_entry_markers=yes
26722 else
26723 echo "configure: failed program was" >&5
26724 cat conftest.s >&5
26726 rm -f conftest.o conftest.s
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26730 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26731 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26733 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26737 case $target in
26738 *-*-aix*)
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26740 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26741 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26742 $as_echo_n "(cached) " >&6
26743 else
26744 gcc_cv_as_aix_ref=no
26745 if test $in_tree_gas = yes; then
26746 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26747 then gcc_cv_as_aix_ref=yes
26749 elif test x$gcc_cv_as != x; then
26750 $as_echo ' .csect stuff[rw]
26751 stuff:
26752 .long 1
26753 .extern sym
26754 .ref sym
26755 ' > conftest.s
26756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26758 (eval $ac_try) 2>&5
26759 ac_status=$?
26760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26761 test $ac_status = 0; }; }
26762 then
26763 gcc_cv_as_aix_ref=yes
26764 else
26765 echo "configure: failed program was" >&5
26766 cat conftest.s >&5
26768 rm -f conftest.o conftest.s
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26772 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26773 if test $gcc_cv_as_aix_ref = yes; then
26775 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26780 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26781 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26782 $as_echo_n "(cached) " >&6
26783 else
26784 gcc_cv_as_aix_dwloc=no
26785 if test $in_tree_gas = yes; then
26786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26787 then gcc_cv_as_aix_dwloc=yes
26789 elif test x$gcc_cv_as != x; then
26790 $as_echo ' .dwsect 0xA0000
26791 Lframe..0:
26792 .vbyte 4,Lframe..0
26793 ' > conftest.s
26794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26796 (eval $ac_try) 2>&5
26797 ac_status=$?
26798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799 test $ac_status = 0; }; }
26800 then
26801 gcc_cv_as_aix_dwloc=yes
26802 else
26803 echo "configure: failed program was" >&5
26804 cat conftest.s >&5
26806 rm -f conftest.o conftest.s
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26810 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26811 if test $gcc_cv_as_aix_dwloc = yes; then
26813 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26817 esac
26820 mips*-*-*)
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26822 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26823 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26824 $as_echo_n "(cached) " >&6
26825 else
26826 gcc_cv_as_mips_explicit_relocs=no
26827 if test $in_tree_gas = yes; then
26828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26829 then gcc_cv_as_mips_explicit_relocs=yes
26831 elif test x$gcc_cv_as != x; then
26832 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26835 (eval $ac_try) 2>&5
26836 ac_status=$?
26837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26838 test $ac_status = 0; }; }
26839 then
26840 gcc_cv_as_mips_explicit_relocs=yes
26841 else
26842 echo "configure: failed program was" >&5
26843 cat conftest.s >&5
26845 rm -f conftest.o conftest.s
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26849 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26850 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26851 if test x$target_cpu_default = x
26852 then target_cpu_default=MASK_EXPLICIT_RELOCS
26853 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26858 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26859 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26860 $as_echo_n "(cached) " >&6
26861 else
26862 gcc_cv_as_mips_no_shared=no
26863 if test $in_tree_gas = yes; then
26864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26865 then gcc_cv_as_mips_no_shared=yes
26867 elif test x$gcc_cv_as != x; then
26868 $as_echo 'nop' > conftest.s
26869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26871 (eval $ac_try) 2>&5
26872 ac_status=$?
26873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26874 test $ac_status = 0; }; }
26875 then
26876 gcc_cv_as_mips_no_shared=yes
26877 else
26878 echo "configure: failed program was" >&5
26879 cat conftest.s >&5
26881 rm -f conftest.o conftest.s
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26885 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26886 if test $gcc_cv_as_mips_no_shared = yes; then
26888 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26893 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26894 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26895 $as_echo_n "(cached) " >&6
26896 else
26897 gcc_cv_as_mips_gnu_attribute=no
26898 if test $in_tree_gas = yes; then
26899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26900 then gcc_cv_as_mips_gnu_attribute=yes
26902 elif test x$gcc_cv_as != x; then
26903 $as_echo '.gnu_attribute 4,1' > conftest.s
26904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26906 (eval $ac_try) 2>&5
26907 ac_status=$?
26908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26909 test $ac_status = 0; }; }
26910 then
26911 gcc_cv_as_mips_gnu_attribute=yes
26912 else
26913 echo "configure: failed program was" >&5
26914 cat conftest.s >&5
26916 rm -f conftest.o conftest.s
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26920 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26921 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26923 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26928 $as_echo_n "checking assembler for .module support... " >&6; }
26929 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26930 $as_echo_n "(cached) " >&6
26931 else
26932 gcc_cv_as_mips_dot_module=no
26933 if test x$gcc_cv_as != x; then
26934 $as_echo '.module mips2
26935 .module fp=xx' > conftest.s
26936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26938 (eval $ac_try) 2>&5
26939 ac_status=$?
26940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26941 test $ac_status = 0; }; }
26942 then
26943 gcc_cv_as_mips_dot_module=yes
26944 else
26945 echo "configure: failed program was" >&5
26946 cat conftest.s >&5
26948 rm -f conftest.o conftest.s
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26952 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26953 if test $gcc_cv_as_mips_dot_module = yes; then
26955 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26958 if test x$gcc_cv_as_mips_dot_module = xno \
26959 && test x$with_fp_32 != x; then
26960 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26964 $as_echo_n "checking assembler for .micromips support... " >&6; }
26965 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26966 $as_echo_n "(cached) " >&6
26967 else
26968 gcc_cv_as_micromips_support=no
26969 if test x$gcc_cv_as != x; then
26970 $as_echo '.set micromips' > conftest.s
26971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26976 test $ac_status = 0; }; }
26977 then
26978 gcc_cv_as_micromips_support=yes
26979 else
26980 echo "configure: failed program was" >&5
26981 cat conftest.s >&5
26983 rm -f conftest.o conftest.s
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26987 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26988 if test $gcc_cv_as_micromips_support = yes; then
26990 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26995 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26996 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26997 $as_echo_n "(cached) " >&6
26998 else
26999 gcc_cv_as_mips_dtprelword=no
27000 if test $in_tree_gas = yes; then
27001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27002 then gcc_cv_as_mips_dtprelword=yes
27004 elif test x$gcc_cv_as != x; then
27005 $as_echo '.section .tdata,"awT",@progbits
27007 .word 2
27008 .text
27009 .dtprelword x+0x8000' > conftest.s
27010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27012 (eval $ac_try) 2>&5
27013 ac_status=$?
27014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27015 test $ac_status = 0; }; }
27016 then
27017 gcc_cv_as_mips_dtprelword=yes
27018 else
27019 echo "configure: failed program was" >&5
27020 cat conftest.s >&5
27022 rm -f conftest.o conftest.s
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27026 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27027 if test $gcc_cv_as_mips_dtprelword = yes; then
27029 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27034 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27035 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27036 $as_echo_n "(cached) " >&6
27037 else
27038 gcc_cv_as_mips_dspr1_mult=no
27039 if test x$gcc_cv_as != x; then
27040 $as_echo ' .set mips32r2
27041 .set nodspr2
27042 .set dsp
27043 madd $ac3,$4,$5
27044 maddu $ac3,$4,$5
27045 msub $ac3,$4,$5
27046 msubu $ac3,$4,$5
27047 mult $ac3,$4,$5
27048 multu $ac3,$4,$5' > conftest.s
27049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27051 (eval $ac_try) 2>&5
27052 ac_status=$?
27053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27054 test $ac_status = 0; }; }
27055 then
27056 gcc_cv_as_mips_dspr1_mult=yes
27057 else
27058 echo "configure: failed program was" >&5
27059 cat conftest.s >&5
27061 rm -f conftest.o conftest.s
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27065 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27066 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27068 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27073 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27074 gcc_cv_as_ld_jalr_reloc=no
27075 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27076 if test $in_tree_ld = yes ; then
27077 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 \
27078 && test $in_tree_ld_is_elf = yes; then
27079 gcc_cv_as_ld_jalr_reloc=yes
27081 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27082 echo ' .ent x' > conftest.s
27083 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27084 echo ' lw $25,%call16(y)($28)' >> conftest.s
27085 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27086 echo '1: jalr $25' >> conftest.s
27087 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27088 echo '1: jalr $25' >> conftest.s
27089 echo ' .end x' >> conftest.s
27090 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27091 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27092 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27093 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27094 gcc_cv_as_ld_jalr_reloc=yes
27097 rm -f conftest.*
27100 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27101 if test x$target_cpu_default = x; then
27102 target_cpu_default=MASK_RELAX_PIC_CALLS
27103 else
27104 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27108 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27111 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27112 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27113 $as_echo_n "(cached) " >&6
27114 else
27115 gcc_cv_ld_mips_personality_relaxation=no
27116 if test $in_tree_ld = yes ; then
27117 if test "$gcc_cv_gld_major_version" -eq 2 \
27118 -a "$gcc_cv_gld_minor_version" -ge 21 \
27119 -o "$gcc_cv_gld_major_version" -gt 2; then
27120 gcc_cv_ld_mips_personality_relaxation=yes
27122 elif test x$gcc_cv_as != x \
27123 -a x$gcc_cv_ld != x \
27124 -a x$gcc_cv_readelf != x ; then
27125 cat > conftest.s <<EOF
27126 .cfi_startproc
27127 .cfi_personality 0x80,indirect_ptr
27128 .ent test
27129 test:
27131 .end test
27132 .cfi_endproc
27134 .section .data,"aw",@progbits
27135 indirect_ptr:
27136 .dc.a personality
27138 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27139 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27140 if $gcc_cv_readelf -d conftest 2>&1 \
27141 | grep TEXTREL > /dev/null 2>&1; then
27143 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27144 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27146 else
27147 gcc_cv_ld_mips_personality_relaxation=yes
27151 rm -f conftest.s conftest.o conftest
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27154 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27155 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27157 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27162 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27163 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27164 $as_echo_n "(cached) " >&6
27165 else
27166 gcc_cv_as_mips_nan=no
27167 if test x$gcc_cv_as != x; then
27168 $as_echo '' > conftest.s
27169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27175 then
27176 gcc_cv_as_mips_nan=yes
27177 else
27178 echo "configure: failed program was" >&5
27179 cat conftest.s >&5
27181 rm -f conftest.o conftest.s
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27185 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27186 if test $gcc_cv_as_mips_nan = yes; then
27188 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27191 if test x$gcc_cv_as_mips_nan = xno \
27192 && test x$with_nan != x; then
27193 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27196 s390*-*-*)
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27198 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27199 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27200 $as_echo_n "(cached) " >&6
27201 else
27202 gcc_cv_as_s390_gnu_attribute=no
27203 if test $in_tree_gas = yes; then
27204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27205 then gcc_cv_as_s390_gnu_attribute=yes
27207 elif test x$gcc_cv_as != x; then
27208 $as_echo '.gnu_attribute 8,1' > conftest.s
27209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27212 ac_status=$?
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27215 then
27216 gcc_cv_as_s390_gnu_attribute=yes
27217 else
27218 echo "configure: failed program was" >&5
27219 cat conftest.s >&5
27221 rm -f conftest.o conftest.s
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27225 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27226 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27228 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27232 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27233 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27234 $as_echo_n "(cached) " >&6
27235 else
27236 gcc_cv_as_s390_machine_machinemode=no
27237 if test $in_tree_gas = yes; then
27238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27239 then gcc_cv_as_s390_machine_machinemode=yes
27241 elif test x$gcc_cv_as != x; then
27242 $as_echo ' .machinemode push
27243 .machinemode pop
27244 .machine push
27245 .machine pop' > conftest.s
27246 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27248 (eval $ac_try) 2>&5
27249 ac_status=$?
27250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27251 test $ac_status = 0; }; }
27252 then
27253 gcc_cv_as_s390_machine_machinemode=yes
27254 else
27255 echo "configure: failed program was" >&5
27256 cat conftest.s >&5
27258 rm -f conftest.o conftest.s
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27262 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27263 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27265 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27269 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27270 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27271 $as_echo_n "(cached) " >&6
27272 else
27273 gcc_cv_as_s390_architecture_modifiers=no
27274 if test $in_tree_gas = yes; then
27275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27276 then gcc_cv_as_s390_architecture_modifiers=yes
27278 elif test x$gcc_cv_as != x; then
27279 $as_echo ' .machine z13+vx ' > conftest.s
27280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27282 (eval $ac_try) 2>&5
27283 ac_status=$?
27284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27285 test $ac_status = 0; }; }
27286 then
27287 gcc_cv_as_s390_architecture_modifiers=yes
27288 else
27289 echo "configure: failed program was" >&5
27290 cat conftest.s >&5
27292 rm -f conftest.o conftest.s
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27296 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27297 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27299 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27303 esac
27305 # Mips and HP-UX need the GNU assembler.
27306 # Linux on IA64 might be able to use the Intel assembler.
27308 case "$target" in
27309 mips*-*-* | *-*-hpux* )
27310 if test x$gas_flag = xyes \
27311 || test x"$host" != x"$build" \
27312 || test ! -x "$gcc_cv_as" \
27313 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27315 else
27316 echo "*** This configuration requires the GNU assembler" >&2
27317 exit 1
27320 esac
27322 # ??? Not all targets support dwarf2 debug_line, even within a version
27323 # of gas. Moreover, we need to emit a valid instruction to trigger any
27324 # info to the output file. So, as supported targets are added to gas 2.11,
27325 # add some instruction here to (also) show we expect this might work.
27326 # ??? Once 2.11 is released, probably need to add first known working
27327 # version to the per-target configury.
27328 case "$cpu_type" in
27329 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27330 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27331 | visium | xstormy16 | xtensa)
27332 insn="nop"
27334 ia64 | s390)
27335 insn="nop 0"
27337 mmix)
27338 insn="swym 0"
27340 esac
27341 if test x"$insn" != x; then
27342 conftest_s="\
27343 .file 1 \"conftest.s\"
27344 .loc 1 3 0
27345 $insn"
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27347 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27348 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27349 $as_echo_n "(cached) " >&6
27350 else
27351 gcc_cv_as_dwarf2_debug_line=no
27352 if test $in_tree_gas = yes; then
27353 if test $in_tree_gas_is_elf = yes \
27354 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27355 then gcc_cv_as_dwarf2_debug_line=yes
27357 elif test x$gcc_cv_as != x; then
27358 $as_echo "$conftest_s" > conftest.s
27359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27361 (eval $ac_try) 2>&5
27362 ac_status=$?
27363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27364 test $ac_status = 0; }; }
27365 then
27366 if test x$gcc_cv_objdump != x \
27367 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27368 | grep debug_line > /dev/null 2>&1; then
27369 gcc_cv_as_dwarf2_debug_line=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_dwarf2_debug_line" >&5
27379 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27382 # The .debug_line file table must be in the exact order that
27383 # we specified the files, since these indices are also used
27384 # by DW_AT_decl_file. Approximate this test by testing if
27385 # the assembler bitches if the same index is assigned twice.
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27387 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27388 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27389 $as_echo_n "(cached) " >&6
27390 else
27391 gcc_cv_as_dwarf2_file_buggy=no
27392 if test x$gcc_cv_as != x; then
27393 $as_echo ' .file 1 "foo.s"
27394 .file 1 "bar.s"' > conftest.s
27395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27397 (eval $ac_try) 2>&5
27398 ac_status=$?
27399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; }
27401 then
27402 gcc_cv_as_dwarf2_file_buggy=yes
27403 else
27404 echo "configure: failed program was" >&5
27405 cat conftest.s >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27411 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27414 if test $gcc_cv_as_dwarf2_debug_line = yes \
27415 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27417 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27422 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27423 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27424 $as_echo_n "(cached) " >&6
27425 else
27426 gcc_cv_as_gdwarf2_flag=no
27427 if test $in_tree_gas = yes; then
27428 if test $in_tree_gas_is_elf = yes \
27429 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27430 then gcc_cv_as_gdwarf2_flag=yes
27432 elif test x$gcc_cv_as != x; then
27433 $as_echo "$insn" > conftest.s
27434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27436 (eval $ac_try) 2>&5
27437 ac_status=$?
27438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27439 test $ac_status = 0; }; }
27440 then
27441 gcc_cv_as_gdwarf2_flag=yes
27442 else
27443 echo "configure: failed program was" >&5
27444 cat conftest.s >&5
27446 rm -f conftest.o conftest.s
27449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27450 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27451 if test $gcc_cv_as_gdwarf2_flag = yes; then
27453 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27458 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27459 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27460 $as_echo_n "(cached) " >&6
27461 else
27462 gcc_cv_as_gstabs_flag=no
27463 if test $in_tree_gas = yes; then
27464 if test $in_tree_gas_is_elf = yes \
27465 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27466 then gcc_cv_as_gstabs_flag=yes
27468 elif test x$gcc_cv_as != x; then
27469 $as_echo "$insn" > conftest.s
27470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27475 test $ac_status = 0; }; }
27476 then
27477 gcc_cv_as_gstabs_flag=yes
27478 else
27479 echo "configure: failed program was" >&5
27480 cat conftest.s >&5
27482 rm -f conftest.o conftest.s
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27486 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27487 if test $gcc_cv_as_gstabs_flag = yes; then
27489 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27494 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27495 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27496 $as_echo_n "(cached) " >&6
27497 else
27498 gcc_cv_as_debug_prefix_map_flag=no
27499 if test $in_tree_gas = yes; then
27500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27501 then gcc_cv_as_debug_prefix_map_flag=yes
27503 elif test x$gcc_cv_as != x; then
27504 $as_echo "$insn" > conftest.s
27505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27507 (eval $ac_try) 2>&5
27508 ac_status=$?
27509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27510 test $ac_status = 0; }; }
27511 then
27512 gcc_cv_as_debug_prefix_map_flag=yes
27513 else
27514 echo "configure: failed program was" >&5
27515 cat conftest.s >&5
27517 rm -f conftest.o conftest.s
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27521 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27522 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27524 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27530 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27531 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27532 $as_echo_n "(cached) " >&6
27533 else
27534 gcc_cv_as_compress_debug=no
27535 if test x$gcc_cv_as != x; then
27536 $as_echo '' > conftest.s
27537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27543 then
27544 # gas compiled without zlib cannot compress debug sections and warns
27545 # about it, but still exits successfully. So check for this, too.
27546 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27547 then
27548 gcc_cv_as_compress_debug=0
27549 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27550 then
27551 gcc_cv_as_compress_debug=1
27552 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27553 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27554 else
27555 gcc_cv_as_compress_debug=0
27556 # FIXME: Future gas versions will support ELF gABI style via
27557 # --compress-debug-sections[=type].
27559 else
27560 echo "configure: failed program was" >&5
27561 cat conftest.s >&5
27563 rm -f conftest.o conftest.s
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27567 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27570 cat >>confdefs.h <<_ACEOF
27571 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27572 _ACEOF
27575 cat >>confdefs.h <<_ACEOF
27576 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27577 _ACEOF
27580 cat >>confdefs.h <<_ACEOF
27581 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27582 _ACEOF
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27586 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27587 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27588 $as_echo_n "(cached) " >&6
27589 else
27590 gcc_cv_as_lcomm_with_alignment=no
27591 if test x$gcc_cv_as != x; then
27592 $as_echo '.lcomm bar,4,16' > conftest.s
27593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27595 (eval $ac_try) 2>&5
27596 ac_status=$?
27597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27598 test $ac_status = 0; }; }
27599 then
27600 gcc_cv_as_lcomm_with_alignment=yes
27601 else
27602 echo "configure: failed program was" >&5
27603 cat conftest.s >&5
27605 rm -f conftest.o conftest.s
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27609 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27610 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27612 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27616 if test x$with_sysroot = x && test x$host = x$target \
27617 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27618 && test "$prefix" != "NONE"; then
27620 cat >>confdefs.h <<_ACEOF
27621 #define PREFIX_INCLUDE_DIR "$prefix/include"
27622 _ACEOF
27626 # Determine the version of glibc, if any, used on the target.
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27628 $as_echo_n "checking for target glibc version... " >&6; }
27630 # Check whether --with-glibc-version was given.
27631 if test "${with_glibc_version+set}" = set; then :
27632 withval=$with_glibc_version;
27633 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27634 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27635 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27636 else
27637 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27639 else
27641 glibc_version_major=0
27642 glibc_version_minor=0
27643 if test -f $target_header_dir/features.h \
27644 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27645 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27646 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27647 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27652 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27654 cat >>confdefs.h <<_ACEOF
27655 #define TARGET_GLIBC_MAJOR $glibc_version_major
27656 _ACEOF
27659 cat >>confdefs.h <<_ACEOF
27660 #define TARGET_GLIBC_MINOR $glibc_version_minor
27661 _ACEOF
27664 # Check whether --enable-gnu-unique-object was given.
27665 if test "${enable_gnu_unique_object+set}" = set; then :
27666 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27667 yes | no) ;;
27668 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27669 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27670 esac
27671 else
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27673 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27674 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27675 $as_echo_n "(cached) " >&6
27676 else
27677 gcc_cv_as_gnu_unique_object=no
27678 if test $in_tree_gas = yes; then
27679 if test $in_tree_gas_is_elf = yes \
27680 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27681 then gcc_cv_as_gnu_unique_object=yes
27683 elif test x$gcc_cv_as != x; then
27684 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27687 (eval $ac_try) 2>&5
27688 ac_status=$?
27689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27690 test $ac_status = 0; }; }
27691 then
27692 gcc_cv_as_gnu_unique_object=yes
27693 else
27694 echo "configure: failed program was" >&5
27695 cat conftest.s >&5
27697 rm -f conftest.o conftest.s
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27701 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27702 if test $gcc_cv_as_gnu_unique_object = yes; then
27703 # We need to unquote above to to use the definition from config.gcc.
27704 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27706 if test $glibc_version_major -gt 2 \
27707 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27708 enable_gnu_unique_object=yes
27714 if test x$enable_gnu_unique_object = xyes; then
27716 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27721 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27722 if test "${gcc_cv_as_line_zero+set}" = set; then :
27723 $as_echo_n "(cached) " >&6
27724 else
27725 gcc_cv_as_line_zero=no
27726 if test $in_tree_gas = yes; then
27727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27728 then gcc_cv_as_line_zero=yes
27730 elif test "x$gcc_cv_as" != x; then
27731 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27732 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27734 (eval $ac_try) 2>&5
27735 ac_status=$?
27736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27737 test $ac_status = 0; }; } &&
27738 test "x`cat conftest.out`" = x
27739 then
27740 gcc_cv_as_line_zero=yes
27741 else
27742 echo "configure: failed program was" >&5
27743 cat conftest.s >&5
27744 echo "configure: error output was" >&5
27745 cat conftest.out >&5
27747 rm -f conftest.o conftest.s conftest.out
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27751 $as_echo "$gcc_cv_as_line_zero" >&6; }
27752 if test "x$gcc_cv_as_line_zero" = xyes; then
27754 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27759 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27760 gcc_cv_ld_eh_frame_hdr=no
27761 if test $in_tree_ld = yes ; then
27762 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 \
27763 && test $in_tree_ld_is_elf = yes; then
27764 gcc_cv_ld_eh_frame_hdr=yes
27766 elif test x$gcc_cv_ld != x; then
27767 if echo "$ld_ver" | grep GNU > /dev/null; then
27768 # Check if linker supports --eh-frame-hdr option
27769 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27770 gcc_cv_ld_eh_frame_hdr=yes
27772 else
27773 case "$target" in
27774 *-*-solaris2*)
27775 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27776 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27777 gcc_cv_ld_eh_frame_hdr=yes
27780 esac
27784 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27786 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27790 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27793 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27794 gcc_cv_ld_eh_frame_ciev3=no
27795 if test $in_tree_ld = yes ; then
27796 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 \
27797 && test $in_tree_ld_is_elf = yes; then
27798 gcc_cv_ld_eh_frame_ciev3=yes
27800 elif test x$gcc_cv_ld != x; then
27801 if echo "$ld_ver" | grep GNU > /dev/null; then
27802 gcc_cv_ld_eh_frame_ciev3=yes
27803 if test 0"$ld_date" -lt 20040513; then
27804 if test -n "$ld_date"; then
27805 # If there was date string, but was earlier than 2004-05-13, fail
27806 gcc_cv_ld_eh_frame_ciev3=no
27807 elif test "$ld_vers_major" -lt 2; then
27808 gcc_cv_ld_eh_frame_ciev3=no
27809 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27810 gcc_cv_ld_eh_frame_ciev3=no
27813 else
27814 case "$target" in
27815 *-*-solaris2*)
27816 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27817 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27818 gcc_cv_ld_eh_frame_ciev3=yes
27821 esac
27825 cat >>confdefs.h <<_ACEOF
27826 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27827 _ACEOF
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27830 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27833 $as_echo_n "checking linker position independent executable support... " >&6; }
27834 gcc_cv_ld_pie=no
27835 if test $in_tree_ld = yes ; then
27836 case "$target" in
27837 # Full PIE support on Solaris was only introduced in gld 2.26.
27838 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27839 *) gcc_gld_pie_min_version=15 ;;
27840 esac
27841 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 \
27842 && test $in_tree_ld_is_elf = yes; then
27843 gcc_cv_ld_pie=yes
27845 elif test x$gcc_cv_ld != x; then
27846 # Check if linker supports -pie option
27847 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27848 gcc_cv_ld_pie=yes
27849 case "$target" in
27850 *-*-solaris2*)
27851 if echo "$ld_ver" | grep GNU > /dev/null \
27852 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27853 gcc_cv_ld_pie=no
27856 esac
27857 else
27858 case "$target" in
27859 *-*-solaris2.1[1-9]*)
27860 # Solaris 11.x and Solaris 12 added PIE support.
27861 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27862 gcc_cv_ld_pie=yes
27865 esac
27868 if test x"$gcc_cv_ld_pie" = xyes; then
27870 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27874 $as_echo "$gcc_cv_ld_pie" >&6; }
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27877 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27878 gcc_cv_ld_pie_copyreloc=no
27879 if test $gcc_cv_ld_pie = yes ; then
27880 if test $in_tree_ld = yes ; then
27881 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
27882 gcc_cv_ld_pie_copyreloc=yes
27884 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27885 # Check if linker supports -pie option with copy reloc
27886 case "$target" in
27887 i?86-*-linux* | x86_64-*-linux*)
27888 cat > conftest1.s <<EOF
27889 .globl a_glob
27890 .data
27891 .type a_glob, @object
27892 .size a_glob, 4
27893 a_glob:
27894 .long 2
27896 cat > conftest2.s <<EOF
27897 .text
27898 .globl main
27899 .type main, @function
27900 main:
27901 movl %eax, a_glob(%rip)
27902 .size main, .-main
27903 .globl ptr
27904 .section .data.rel,"aw",@progbits
27905 .type ptr, @object
27906 ptr:
27907 .quad a_glob
27909 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27910 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27911 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27912 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27913 gcc_cv_ld_pie_copyreloc=yes
27915 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27917 esac
27921 cat >>confdefs.h <<_ACEOF
27922 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27923 _ACEOF
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27926 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27929 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27930 gcc_cv_ld_eh_gc_sections=no
27931 if test $in_tree_ld = yes ; then
27932 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 \
27933 && test $in_tree_ld_is_elf = yes; then
27934 gcc_cv_ld_eh_gc_sections=yes
27936 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27937 cat > conftest.s <<EOF
27938 .section .text
27939 .globl _start
27940 .type _start, @function
27941 _start:
27942 .long foo
27943 .size _start, .-_start
27944 .section .text.foo,"ax",@progbits
27945 .type foo, @function
27946 foo:
27947 .long 0
27948 .size foo, .-foo
27949 .section .gcc_except_table.foo,"a",@progbits
27950 .L0:
27951 .long 0
27952 .section .eh_frame,"a",@progbits
27953 .long .L0
27955 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27956 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27957 | grep "gc-sections option ignored" > /dev/null; then
27958 gcc_cv_ld_eh_gc_sections=no
27959 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27960 | grep gcc_except_table > /dev/null; then
27961 gcc_cv_ld_eh_gc_sections=yes
27962 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27963 if test x$gcc_cv_as_comdat_group != xyes; then
27964 gcc_cv_ld_eh_gc_sections=no
27965 cat > conftest.s <<EOF
27966 .section .text
27967 .globl _start
27968 .type _start, @function
27969 _start:
27970 .long foo
27971 .size _start, .-_start
27972 .section .gnu.linkonce.t.foo,"ax",@progbits
27973 .type foo, @function
27974 foo:
27975 .long 0
27976 .size foo, .-foo
27977 .section .gcc_except_table.foo,"a",@progbits
27978 .L0:
27979 .long 0
27980 .section .eh_frame,"a",@progbits
27981 .long .L0
27983 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27984 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27985 | grep "gc-sections option ignored" > /dev/null; then
27986 gcc_cv_ld_eh_gc_sections=no
27987 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27988 | grep gcc_except_table > /dev/null; then
27989 gcc_cv_ld_eh_gc_sections=yes
27995 rm -f conftest.s conftest.o conftest
27997 case "$target" in
27998 hppa*-*-linux*)
27999 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28000 gcc_cv_ld_eh_gc_sections=no
28002 esac
28003 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28005 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28009 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28012 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28013 gcc_cv_ld_eh_gc_sections_bug=no
28014 if test $in_tree_ld = yes ; then
28015 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
28016 && test $in_tree_ld_is_elf = yes; then
28017 gcc_cv_ld_eh_gc_sections_bug=yes
28019 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
28020 gcc_cv_ld_eh_gc_sections_bug=yes
28021 cat > conftest.s <<EOF
28022 .section .text
28023 .globl _start
28024 .type _start, @function
28025 _start:
28026 .long foo
28027 .size _start, .-_start
28028 .section .text.startup.foo,"ax",@progbits
28029 .type foo, @function
28030 foo:
28031 .long 0
28032 .size foo, .-foo
28033 .section .gcc_except_table.foo,"a",@progbits
28034 .L0:
28035 .long 0
28036 .section .eh_frame,"a",@progbits
28037 .long .L0
28039 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28040 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28041 | grep "gc-sections option ignored" > /dev/null; then
28043 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28044 | grep gcc_except_table > /dev/null; then
28045 gcc_cv_ld_eh_gc_sections_bug=no
28048 rm -f conftest.s conftest.o conftest
28050 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28052 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28056 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28059 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28060 # gold/gld support compressed debug sections since binutils 2.19/2.21
28061 if test $in_tree_ld = yes ; then
28062 gcc_cv_ld_compress_debug=0
28063 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 \
28064 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28065 gcc_cv_ld_compress_debug=2
28066 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28067 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 \
28068 && test $in_tree_ld_is_elf = yes; then
28069 gcc_cv_ld_compress_debug=1
28071 elif echo "$ld_ver" | grep GNU > /dev/null; then
28072 gcc_cv_ld_compress_debug=1
28073 if test 0"$ld_date" -lt 20050308; then
28074 if test -n "$ld_date"; then
28075 # If there was date string, but was earlier than 2005-03-08, fail
28076 gcc_cv_ld_compress_debug=0
28077 elif test "$ld_vers_major" -lt 2; then
28078 gcc_cv_ld_compress_debug=0
28079 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28080 gcc_cv_ld_compress_debug=0
28083 if test $ld_is_gold = yes; then
28084 gcc_cv_ld_compress_debug=2
28085 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28087 else
28088 case "${target}" in
28089 *-*-solaris2*)
28090 # Introduced in Solaris 11.2.
28091 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28092 gcc_cv_ld_compress_debug=3
28093 gcc_cv_ld_compress_debug_option="-z compress-sections"
28094 else
28095 gcc_cv_ld_compress_debug=0
28099 # Assume linkers other than GNU ld don't support compessed debug
28100 # sections.
28101 gcc_cv_ld_compress_debug=0
28103 esac
28106 cat >>confdefs.h <<_ACEOF
28107 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28108 _ACEOF
28111 cat >>confdefs.h <<_ACEOF
28112 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28113 _ACEOF
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28116 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28118 if test x"$ld64_flag" = x"yes"; then
28120 # Set defaults for possibly untestable items.
28121 gcc_cv_ld64_export_dynamic=0
28123 if test "$build" = "$host"; then
28124 darwin_try_test=1
28125 else
28126 darwin_try_test=0
28129 # On Darwin, because of FAT library support, it is often possible to execute
28130 # exes from compatible archs even when the host differs from the build system.
28131 case "$build","$host" in
28132 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28133 darwin_try_test=1;;
28134 *) ;;
28135 esac
28137 # If the configurer specified a minimum ld64 version to be supported, then use
28138 # that to determine feature support.
28139 if test x"${gcc_cv_ld64_version}" != x; then
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28141 $as_echo_n "checking ld64 specified version... " >&6; }
28142 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28144 $as_echo "$gcc_cv_ld64_major" >&6; }
28145 if test "$gcc_cv_ld64_major" -ge 236; then
28146 gcc_cv_ld64_export_dynamic=1
28148 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28149 # If the version was not specified, try to find it.
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28151 $as_echo_n "checking linker version... " >&6; }
28152 if test x"${gcc_cv_ld64_version}" = x; then
28153 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28156 $as_echo "$gcc_cv_ld64_version" >&6; }
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28159 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28160 gcc_cv_ld64_export_dynamic=1
28161 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28162 gcc_cv_ld64_export_dynamic=0
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28165 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28168 if test x"${gcc_cv_ld64_version}" != x; then
28170 cat >>confdefs.h <<_ACEOF
28171 #define LD64_VERSION "${gcc_cv_ld64_version}"
28172 _ACEOF
28177 cat >>confdefs.h <<_ACEOF
28178 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28179 _ACEOF
28183 # --------
28184 # UNSORTED
28185 # --------
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28188 $as_echo_n "checking linker --as-needed support... " >&6; }
28189 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28190 $as_echo_n "(cached) " >&6
28191 else
28192 gcc_cv_ld_as_needed=no
28193 gcc_cv_ld_as_needed_option='--as-needed'
28194 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28195 if test $in_tree_ld = yes ; then
28196 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 \
28197 && test $in_tree_ld_is_elf = yes; then
28198 gcc_cv_ld_as_needed=yes
28200 elif test x$gcc_cv_ld != x; then
28201 # Check if linker supports --as-needed and --no-as-needed options
28202 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28203 gcc_cv_ld_as_needed=yes
28204 else
28205 case "$target" in
28206 # Solaris 2 ld always supports -z ignore/-z record.
28207 *-*-solaris2*)
28208 gcc_cv_ld_as_needed=yes
28209 gcc_cv_ld_as_needed_option="-z ignore"
28210 gcc_cv_ld_no_as_needed_option="-z record"
28212 esac
28215 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28216 # dl_iterate_phdr, i.e. since Solaris 11.
28217 case "$target" in
28218 *-*-solaris2.1[1-9]*)
28219 case "$target" in
28220 i?86-*-* | x86_64-*-*)
28221 if echo "$ld_ver" | grep GNU > /dev/null; then
28222 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28223 gcc_cv_ld_as_needed=no
28226 esac
28228 *-*-solaris2*)
28229 gcc_cv_ld_as_needed=no
28231 esac
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28235 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28236 if test x"$gcc_cv_ld_as_needed" = xyes; then
28238 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28241 cat >>confdefs.h <<_ACEOF
28242 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28243 _ACEOF
28246 cat >>confdefs.h <<_ACEOF
28247 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28248 _ACEOF
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28253 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28254 saved_LDFLAGS="$LDFLAGS"
28255 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28256 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28258 /* end confdefs.h. */
28259 int main(void) {return 0;}
28260 _ACEOF
28261 if ac_fn_cxx_try_link "$LINENO"; then :
28262 gcc_cv_ld_clearcap=yes; break
28263 else
28264 gcc_cv_ld_clearcap=no
28266 rm -f core conftest.err conftest.$ac_objext \
28267 conftest$ac_exeext conftest.$ac_ext
28268 done
28269 LDFLAGS="$saved_LDFLAGS"
28270 if test "x$gcc_cv_ld_clearcap" = xyes; then
28272 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28274 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28278 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28280 case "$target:$tm_file" in
28281 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28282 case "$target" in
28283 *le-*-linux*)
28284 emul_name="-melf64lppc"
28286 *-*-linux*)
28287 emul_name="-melf64ppc"
28289 *-*-freebsd*)
28290 emul_name="-melf64ppc_fbsd"
28292 esac
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28294 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28295 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28296 $as_echo_n "(cached) " >&6
28297 else
28298 gcc_cv_ld_no_dot_syms=no
28299 if test x"$ld_is_gold" = xyes; then
28300 gcc_cv_ld_no_dot_syms=yes
28301 elif test $in_tree_ld = yes ; then
28302 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
28303 gcc_cv_ld_no_dot_syms=yes
28305 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28306 cat > conftest1.s <<EOF
28307 .text
28308 bl .foo
28310 cat > conftest2.s <<EOF
28311 .section ".opd","aw"
28312 .align 3
28313 .globl foo
28314 .type foo,@function
28315 foo:
28316 .quad .LEfoo,.TOC.@tocbase,0
28317 .text
28318 .LEfoo:
28320 .size foo,.-.LEfoo
28322 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28323 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28324 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28325 gcc_cv_ld_no_dot_syms=yes
28327 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28332 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28333 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28335 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28340 $as_echo_n "checking linker large toc support... " >&6; }
28341 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28342 $as_echo_n "(cached) " >&6
28343 else
28344 gcc_cv_ld_large_toc=no
28345 if test x"$ld_is_gold" = xyes; then
28346 gcc_cv_ld_large_toc=yes
28347 elif test $in_tree_ld = yes ; then
28348 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
28349 gcc_cv_ld_large_toc=yes
28351 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28352 cat > conftest.s <<EOF
28353 .section ".tbss","awT",@nobits
28354 .align 3
28355 ie0: .space 8
28356 .global _start
28357 .text
28358 _start:
28359 addis 9,13,ie0@got@tprel@ha
28360 ld 9,ie0@got@tprel@l(9)
28362 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28363 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28364 gcc_cv_ld_large_toc=yes
28366 rm -f conftest conftest.o conftest.s
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28371 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28372 if test x"$gcc_cv_ld_large_toc" = xyes; then
28374 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28379 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28380 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28381 $as_echo_n "(cached) " >&6
28382 else
28383 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28384 cat > conftest.s <<EOF
28385 .global _start
28386 .text
28387 _start:
28388 addis 9,2,x@got@ha
28389 .section .data.rel.ro,"aw",@progbits
28390 .p2align 16
28391 .space 32768
28392 x: .quad .TOC.
28394 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28395 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28396 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)) }'`
28398 rm -f conftest conftest.o conftest.s
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28403 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28404 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28406 cat >>confdefs.h <<_ACEOF
28407 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28408 _ACEOF
28412 esac
28414 case "$target" in
28415 *-*-aix*)
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28417 $as_echo_n "checking linker large toc support... " >&6; }
28418 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28419 $as_echo_n "(cached) " >&6
28420 else
28421 gcc_cv_ld_large_toc=no
28422 if test x$gcc_cv_as != x ; then
28423 cat > conftest.s <<EOF
28424 .toc
28425 LC..1:
28426 .tc a[TC],a[RW]
28427 .extern a[RW]
28428 .csect .text[PR]
28429 .largetoctest:
28430 addis 9,LC..1@u(2)
28431 ld 3,LC..1@l(9)
28433 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28434 gcc_cv_ld_large_toc=yes
28436 rm -f conftest conftest.o conftest.s
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28441 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28442 if test x"$gcc_cv_ld_large_toc" = xyes; then
28444 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28448 esac
28450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28451 $as_echo_n "checking linker --build-id support... " >&6; }
28452 if test "${gcc_cv_ld_buildid+set}" = set; then :
28453 $as_echo_n "(cached) " >&6
28454 else
28455 gcc_cv_ld_buildid=no
28456 if test $in_tree_ld = yes ; then
28457 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28458 "$gcc_cv_gld_minor_version" -ge 18 -o \
28459 "$gcc_cv_gld_major_version" -gt 2 \
28460 && test $in_tree_ld_is_elf = yes; then
28461 gcc_cv_ld_buildid=yes
28463 elif test x$gcc_cv_ld != x; then
28464 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28465 gcc_cv_ld_buildid=yes
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28470 $as_echo "$gcc_cv_ld_buildid" >&6; }
28471 if test x"$gcc_cv_ld_buildid" = xyes; then
28473 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28477 # Check whether --enable-linker-build-id was given.
28478 if test "${enable_linker_build_id+set}" = set; then :
28479 enableval=$enable_linker_build_id;
28480 else
28481 enable_linker_build_id=no
28485 if test x"$enable_linker_build_id" = xyes; then
28486 if test x"$gcc_cv_ld_buildid" = xyes; then
28488 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28490 else
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28492 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28496 # In binutils 2.21, GNU ld gained support for new emulations fully
28497 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28499 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28500 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28501 $as_echo_n "(cached) " >&6
28502 else
28503 gcc_cv_ld_sol2_emulation=no
28504 if test $in_tree_ld = yes ; then
28505 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28506 "$gcc_cv_gld_minor_version" -ge 21 -o \
28507 "$gcc_cv_gld_major_version" -gt 2 \
28508 && test $in_tree_ld_is_elf = yes; then
28509 gcc_cv_ld_sol2_emulation=yes
28511 elif test x$gcc_cv_ld != x; then
28512 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28513 grep _sol2 > /dev/null; then
28514 gcc_cv_ld_sol2_emulation=yes
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28519 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28520 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28522 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28527 $as_echo_n "checking linker --sysroot support... " >&6; }
28528 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28529 $as_echo_n "(cached) " >&6
28530 else
28531 gcc_cv_ld_sysroot=no
28532 if test $in_tree_ld = yes ; then
28533 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
28534 gcc_cv_ld_sysroot=yes
28536 elif test x$gcc_cv_ld != x; then
28537 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28538 gcc_cv_ld_sysroot=yes
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28543 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28544 if test x"$gcc_cv_ld_sysroot" = xyes; then
28546 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28550 case $target in
28551 *-*-solaris2*)
28552 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28554 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28555 if test "${gcc_cv_solaris_crts+set}" = set; then :
28556 $as_echo_n "(cached) " >&6
28557 else
28558 gcc_cv_solaris_crts=no
28559 if test x$host != x$target; then
28560 if test "x$with_sysroot" = xyes; then
28561 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28562 else
28563 target_sysroot="${with_sysroot}"
28566 target_libdir="$target_sysroot/usr/lib"
28567 # At the time they were added, gcrt1.o became a symlink for backwards
28568 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28569 case $target in
28570 i?86-*-solaris2* | x86_64-*-solaris2*)
28571 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28573 sparc*-*-solaris2*)
28574 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28576 esac
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28579 $as_echo "$gcc_cv_solaris_crts" >&6; }
28581 esac
28582 if test x$gcc_cv_solaris_crts = xyes; then
28584 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28588 # Test for stack protector support in target C library.
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28590 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28591 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28592 $as_echo_n "(cached) " >&6
28593 else
28594 gcc_cv_libc_provides_ssp=no
28595 case "$target" in
28596 *-*-musl*)
28597 # All versions of musl provide stack protector
28598 gcc_cv_libc_provides_ssp=yes;;
28599 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28600 # glibc 2.4 and later provides __stack_chk_fail and
28601 # either __stack_chk_guard, or TLS access to stack guard canary.
28603 if test $glibc_version_major -gt 2 \
28604 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28605 gcc_cv_libc_provides_ssp=yes
28606 else
28608 if test -f $target_header_dir/features.h \
28609 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28610 $target_header_dir/features.h > /dev/null; then
28611 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28612 $target_header_dir/features.h > /dev/null && \
28613 test -f $target_header_dir/bits/uClibc_config.h && \
28614 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28615 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28616 gcc_cv_libc_provides_ssp=yes
28618 # all versions of Bionic support stack protector
28619 elif test -f $target_header_dir/sys/cdefs.h \
28620 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28621 $target_header_dir/sys/cdefs.h > /dev/null; then
28622 gcc_cv_libc_provides_ssp=yes
28626 *-*-gnu*)
28627 # Avoid complicated tests (see
28628 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28629 # simply assert that glibc does provide this, which is true for all
28630 # realistically usable GNU/Hurd configurations.
28631 # All supported versions of musl provide it as well
28632 gcc_cv_libc_provides_ssp=yes;;
28633 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28634 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28635 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28636 gcc_cv_libc_provides_ssp=yes
28637 else
28638 echo "no __stack_chk_fail on this target"
28642 *) gcc_cv_libc_provides_ssp=no ;;
28643 esac
28645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28646 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28648 if test x$gcc_cv_libc_provides_ssp = xyes; then
28650 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28654 # Check whether --enable-default-ssp was given.
28655 # Check whether --enable-default-ssp was given.
28656 if test "${enable_default_ssp+set}" = set; then :
28657 enableval=$enable_default_ssp;
28658 if test x$gcc_cv_libc_provides_ssp = xyes; then
28659 case "$target" in
28660 ia64*-*-*) enable_default_ssp=no ;;
28661 *) enable_default_ssp=$enableval ;;
28662 esac
28663 else
28664 enable_default_ssp=no
28666 else
28667 enable_default_ssp=no
28670 if test x$enable_default_ssp = xyes ; then
28672 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28677 # Test for <sys/sdt.h> on the target.
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28680 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28681 have_sys_sdt_h=no
28682 if test -f $target_header_dir/sys/sdt.h; then
28683 have_sys_sdt_h=yes
28685 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28689 $as_echo "$have_sys_sdt_h" >&6; }
28691 # Check if TFmode long double should be used by default or not.
28692 # Some glibc targets used DFmode long double, but with glibc 2.4
28693 # and later they can use TFmode.
28694 case "$target" in
28695 powerpc*-*-linux* | \
28696 sparc*-*-linux* | \
28697 s390*-*-linux* | \
28698 alpha*-*-linux*)
28700 # Check whether --with-long-double-128 was given.
28701 if test "${with_long_double_128+set}" = set; then :
28702 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28703 else
28705 if test $glibc_version_major -gt 2 \
28706 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28707 gcc_cv_target_ldbl128=yes
28708 else
28710 gcc_cv_target_ldbl128=no
28711 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28712 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28713 && gcc_cv_target_ldbl128=yes
28719 esac
28720 if test x$gcc_cv_target_ldbl128 = xyes; then
28722 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28726 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28727 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28728 gcc_cv_libc_provides_hwcap_in_tcb=no
28729 case "$target" in
28730 powerpc*-*-linux*)
28732 if test $glibc_version_major -gt 2 \
28733 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28734 gcc_cv_libc_provides_hwcap_in_tcb=yes
28737 esac
28738 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28740 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28745 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28746 gcc_cv_target_dl_iterate_phdr=unknown
28747 case "$target" in
28748 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28749 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28750 # libdl there, both complicating its use and breaking compatibility
28751 # between Solaris 10 updates.
28752 *-*-solaris2.1[1-9]*)
28753 # <link.h> needs both a dl_iterate_phdr declaration and support for
28754 # compilation with largefile support.
28755 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28756 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28757 gcc_cv_target_dl_iterate_phdr=yes
28758 else
28759 gcc_cv_target_dl_iterate_phdr=no
28762 *-*-dragonfly* | *-*-freebsd*)
28763 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28764 gcc_cv_target_dl_iterate_phdr=yes
28765 else
28766 gcc_cv_target_dl_iterate_phdr=no
28769 *-linux-musl*)
28770 gcc_cv_target_dl_iterate_phdr=yes
28772 esac
28774 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28776 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28780 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28782 # We no longer support different GC mechanisms. Emit an error if
28783 # the user configures with --with-gc.
28785 # Check whether --with-gc was given.
28786 if test "${with_gc+set}" = set; then :
28787 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28791 # Libraries to use on the host. This will normally be set by the top
28792 # level Makefile. Here we simply capture the value for our Makefile.
28793 if test -z "${HOST_LIBS+set}"; then
28794 HOST_LIBS=
28798 # Use the system's zlib library.
28800 # Use the system's zlib library.
28801 zlibdir="-L\$(top_builddir)/../zlib"
28802 zlibinc="-I\$(top_srcdir)/../zlib"
28804 # Check whether --with-system-zlib was given.
28805 if test "${with_system_zlib+set}" = set; then :
28806 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28807 zlibdir=
28808 zlibinc=
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28819 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28820 # Check whether --enable-maintainer-mode was given.
28821 if test "${enable_maintainer_mode+set}" = set; then :
28822 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28823 else
28824 maintainer_mode=no
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28829 $as_echo "$maintainer_mode" >&6; }
28831 if test "$maintainer_mode" = "yes"; then
28832 MAINT=''
28833 else
28834 MAINT='#'
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28839 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28840 # Check whether --enable-link-mutex was given.
28841 if test "${enable_link_mutex+set}" = set; then :
28842 enableval=$enable_link_mutex; do_link_mutex=$enableval
28843 else
28844 do_link_mutex=no
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28848 $as_echo "$do_link_mutex" >&6; }
28850 if test "$do_link_mutex" = "yes"; then
28851 DO_LINK_MUTEX=true
28852 else
28853 DO_LINK_MUTEX=false
28857 # --------------
28858 # Language hooks
28859 # --------------
28861 # Make empty files to contain the specs and options for each language.
28862 # Then add #include lines to for a compiler that has specs and/or options.
28864 subdirs=
28865 lang_opt_files=
28866 lang_specs_files=
28867 lang_tree_files=
28868 # These (without "all_") are set in each config-lang.in.
28869 # `language' must be a single word so is spelled singularly.
28870 all_languages=
28871 all_compilers=
28872 all_outputs='Makefile'
28873 # List of language makefile fragments.
28874 all_lang_makefrags=
28875 # Additional files for gengtype
28876 all_gtfiles="$target_gtfiles"
28878 # These are the languages that are set in --enable-languages,
28879 # and are available in the GCC tree.
28880 all_selected_languages=
28882 # Add the language fragments.
28883 # Languages are added via two mechanisms. Some information must be
28884 # recorded in makefile variables, these are defined in config-lang.in.
28885 # We accumulate them and plug them into the main Makefile.
28886 # The other mechanism is a set of hooks for each of the main targets
28887 # like `clean', `install', etc.
28889 language_hooks="Make-hooks"
28891 for lang in ${srcdir}/*/config-lang.in
28893 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28895 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28896 if test "x$lang_alias" = x
28897 then
28898 echo "$lang doesn't set \$language." 1>&2
28899 exit 1
28901 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28902 subdirs="$subdirs $subdir"
28904 # $gcc_subdir is where the gcc integration files are to be found
28905 # for a language, both for internal compiler purposes (compiler
28906 # sources implementing front-end to GCC tree converters), and for
28907 # build infrastructure purposes (Make-lang.in, etc.)
28909 # This will be <subdir> (relative to $srcdir) if a line like
28910 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28911 # is found in <langdir>/config-lang.in, and will remain <langdir>
28912 # otherwise.
28914 # Except for the language alias (fetched above), the regular
28915 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28916 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28917 # only this and the language alias.
28919 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28920 if [ "$gcc_subdir" = "" ]; then
28921 gcc_subdir="$subdir"
28924 case ",$enable_languages," in
28925 *,$lang_alias,*)
28926 all_selected_languages="$all_selected_languages $lang_alias"
28927 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28928 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28931 esac
28933 language=
28934 boot_language=
28935 compilers=
28936 outputs=
28937 gtfiles=
28938 subdir_requires=
28939 . ${srcdir}/$gcc_subdir/config-lang.in
28940 if test "x$language" = x
28941 then
28942 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28943 exit 1
28946 ok=:
28947 case ",$enable_languages," in
28948 *,$lang_alias,*) ;;
28950 for i in $subdir_requires; do
28951 test -f "${srcdir}/$i/config-lang.in" && continue
28952 ok=false
28953 break
28954 done
28956 esac
28957 $ok || continue
28959 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28960 if test -f $srcdir/$gcc_subdir/lang.opt; then
28961 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28962 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28964 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28965 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28967 all_languages="$all_languages $language"
28968 all_compilers="$all_compilers $compilers"
28969 all_outputs="$all_outputs $outputs"
28970 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28971 case ",$enable_languages," in
28972 *,lto,*)
28974 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28976 enable_lto=yes
28979 *) ;;
28980 esac
28981 done
28983 check_languages=
28984 for language in $all_selected_languages
28986 check_languages="$check_languages check-$language"
28987 done
28989 # We link each language in with a set of hooks, reached indirectly via
28990 # lang.${target}. Only do so for selected languages.
28992 rm -f Make-hooks
28993 touch Make-hooks
28994 target_list="all.cross start.encap rest.encap tags \
28995 install-common install-man install-info install-pdf install-html dvi \
28996 pdf html uninstall info man srcextra srcman srcinfo \
28997 mostlyclean clean distclean maintainer-clean install-plugin"
28999 for t in $target_list
29002 for lang in $all_selected_languages
29004 x="$x $lang.$t"
29005 done
29006 echo "lang.$t: $x" >> Make-hooks
29007 done
29009 # --------
29010 # Option include files
29011 # --------
29013 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29014 option_includes="option-includes.mk"
29017 # --------
29018 # UNSORTED
29019 # --------
29021 # Create .gdbinit.
29023 echo "dir ." > .gdbinit
29024 echo "dir ${srcdir}" >> .gdbinit
29025 if test x$gdb_needs_out_file_path = xyes
29026 then
29027 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29029 if test "x$subdirs" != x; then
29030 for s in $subdirs
29032 echo "dir ${srcdir}/$s" >> .gdbinit
29033 done
29035 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29036 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29038 # Put a breakpoint on __asan_report_error to help with debugging buffer
29039 # overflow.
29040 case "$CFLAGS" in
29041 *-fsanitize=address*)
29042 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29044 esac
29046 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29050 # Find a directory in which to install a shared libgcc.
29052 # Check whether --enable-version-specific-runtime-libs was given.
29053 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29054 enableval=$enable_version_specific_runtime_libs;
29058 # Substitute configuration variables
29121 # Echo link setup.
29122 if test x${build} = x${host} ; then
29123 if test x${host} = x${target} ; then
29124 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29125 else
29126 echo "Links are now set up to build a cross-compiler" 1>&2
29127 echo " from ${host} to ${target}." 1>&2
29129 else
29130 if test x${host} = x${target} ; then
29131 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29132 echo " for ${target}." 1>&2
29133 else
29134 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29135 echo " from ${host} to ${target}." 1>&2
29144 if test "x${ISLLIBS}" != "x" ; then
29146 $as_echo "#define HAVE_isl 1" >>confdefs.h
29150 # Check whether isl_options_set_schedule_serialize_sccs is available;
29151 # it's new in isl 0.15.
29152 if test "x${ISLLIBS}" != "x" ; then
29153 saved_CXXFLAGS="$CXXFLAGS"
29154 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29155 saved_LIBS="$LIBS"
29156 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29159 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29161 /* end confdefs.h. */
29162 #include <isl/schedule.h>
29164 main ()
29166 isl_options_set_schedule_serialize_sccs (NULL, 0);
29168 return 0;
29170 _ACEOF
29171 if ac_fn_cxx_try_link "$LINENO"; then :
29172 ac_has_isl_options_set_schedule_serialize_sccs=yes
29173 else
29174 ac_has_isl_options_set_schedule_serialize_sccs=no
29176 rm -f core conftest.err conftest.$ac_objext \
29177 conftest$ac_exeext conftest.$ac_ext
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29179 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29181 LIBS="$saved_LIBS"
29182 CXXFLAGS="$saved_CXXFLAGS"
29184 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29186 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29191 # Check for plugin support
29192 # Check whether --enable-plugin was given.
29193 if test "${enable_plugin+set}" = set; then :
29194 enableval=$enable_plugin; enable_plugin=$enableval
29195 else
29196 enable_plugin=yes; default_plugin=yes
29200 pluginlibs=
29202 case "${host}" in
29203 *-*-darwin*)
29204 if test x$build = x$host; then
29205 export_sym_check="nm${exeext} -g"
29206 elif test x$host = x$target; then
29207 export_sym_check="$gcc_cv_nm -g"
29208 else
29209 export_sym_check=
29213 if test x$build = x$host; then
29214 export_sym_check="objdump${exeext} -T"
29215 elif test x$host = x$target; then
29216 export_sym_check="$gcc_cv_objdump -T"
29217 else
29218 export_sym_check=
29221 esac
29223 if test x"$enable_plugin" = x"yes"; then
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29226 $as_echo_n "checking for exported symbols... " >&6; }
29227 if test "x$export_sym_check" != x; then
29228 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29229 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29230 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29231 : # No need to use a flag
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29233 $as_echo "yes" >&6; }
29234 else
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29236 $as_echo "yes" >&6; }
29237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29238 $as_echo_n "checking for -rdynamic... " >&6; }
29239 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29240 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29241 plugin_rdynamic=yes
29242 pluginlibs="-rdynamic"
29243 else
29244 plugin_rdynamic=no
29245 enable_plugin=no
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29248 $as_echo "$plugin_rdynamic" >&6; }
29250 else
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29252 $as_echo "unable to check" >&6; }
29255 # Check -ldl
29256 saved_LIBS="$LIBS"
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29258 $as_echo_n "checking for library containing dlopen... " >&6; }
29259 if test "${ac_cv_search_dlopen+set}" = set; then :
29260 $as_echo_n "(cached) " >&6
29261 else
29262 ac_func_search_save_LIBS=$LIBS
29263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29264 /* end confdefs.h. */
29266 /* Override any GCC internal prototype to avoid an error.
29267 Use char because int might match the return type of a GCC
29268 builtin and then its argument prototype would still apply. */
29269 #ifdef __cplusplus
29270 extern "C"
29271 #endif
29272 char dlopen ();
29274 main ()
29276 return dlopen ();
29278 return 0;
29280 _ACEOF
29281 for ac_lib in '' dl; do
29282 if test -z "$ac_lib"; then
29283 ac_res="none required"
29284 else
29285 ac_res=-l$ac_lib
29286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29288 if ac_fn_cxx_try_link "$LINENO"; then :
29289 ac_cv_search_dlopen=$ac_res
29291 rm -f core conftest.err conftest.$ac_objext \
29292 conftest$ac_exeext
29293 if test "${ac_cv_search_dlopen+set}" = set; then :
29294 break
29296 done
29297 if test "${ac_cv_search_dlopen+set}" = set; then :
29299 else
29300 ac_cv_search_dlopen=no
29302 rm conftest.$ac_ext
29303 LIBS=$ac_func_search_save_LIBS
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29306 $as_echo "$ac_cv_search_dlopen" >&6; }
29307 ac_res=$ac_cv_search_dlopen
29308 if test "$ac_res" != no; then :
29309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29313 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29314 pluginlibs="$pluginlibs -ldl"
29316 LIBS="$saved_LIBS"
29318 # Check that we can build shared objects with -fPIC -shared
29319 saved_LDFLAGS="$LDFLAGS"
29320 saved_CFLAGS="$CFLAGS"
29321 case "${host}" in
29322 *-*-darwin*)
29323 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29324 CFLAGS="$CFLAGS -fPIC"
29325 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29328 CFLAGS="$CFLAGS -fPIC"
29329 LDFLAGS="$LDFLAGS -fPIC -shared"
29331 esac
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29333 $as_echo_n "checking for -fPIC -shared... " >&6; }
29334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29335 /* end confdefs.h. */
29336 extern int X;
29338 main ()
29340 return X == 0;
29342 return 0;
29344 _ACEOF
29345 if ac_fn_cxx_try_link "$LINENO"; then :
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29347 $as_echo "yes" >&6; }; have_pic_shared=yes
29348 else
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350 $as_echo "no" >&6; }; have_pic_shared=no
29352 rm -f core conftest.err conftest.$ac_objext \
29353 conftest$ac_exeext conftest.$ac_ext
29354 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29355 pluginlibs=
29356 enable_plugin=no
29358 LDFLAGS="$saved_LDFLAGS"
29359 CFLAGS="$saved_CFLAGS"
29361 # If plugin support had been requested but not available, fail.
29362 if test x"$enable_plugin" = x"no" ; then
29363 if test x"$default_plugin" != x"yes"; then
29364 as_fn_error "
29365 Building GCC with plugin support requires a host that supports
29366 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29373 if test x"$enable_plugin" = x"yes"; then
29375 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29380 # Enable --enable-host-shared
29381 # Check whether --enable-host-shared was given.
29382 if test "${enable_host_shared+set}" = set; then :
29383 enableval=$enable_host_shared; PICFLAG=-fPIC
29384 else
29385 PICFLAG=
29392 # Check whether --enable-libquadmath-support was given.
29393 if test "${enable_libquadmath_support+set}" = set; then :
29394 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29395 else
29396 ENABLE_LIBQUADMATH_SUPPORT=yes
29399 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29401 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29406 # Specify what hash style to use by default.
29408 # Check whether --with-linker-hash-style was given.
29409 if test "${with_linker_hash_style+set}" = set; then :
29410 withval=$with_linker_hash_style; case x"$withval" in
29411 xsysv)
29412 LINKER_HASH_STYLE=sysv
29414 xgnu)
29415 LINKER_HASH_STYLE=gnu
29417 xboth)
29418 LINKER_HASH_STYLE=both
29421 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29423 esac
29424 else
29425 LINKER_HASH_STYLE=''
29428 if test x"${LINKER_HASH_STYLE}" != x; then
29430 cat >>confdefs.h <<_ACEOF
29431 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29432 _ACEOF
29436 # Specify what should be the default of -fdiagnostics-color option.
29438 # Check whether --with-diagnostics-color was given.
29439 if test "${with_diagnostics_color+set}" = set; then :
29440 withval=$with_diagnostics_color; case x"$withval" in
29441 xnever)
29442 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29444 xauto)
29445 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29447 xauto-if-env)
29448 DIAGNOSTICS_COLOR_DEFAULT=-1
29450 xalways)
29451 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29454 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29456 esac
29457 else
29458 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29462 cat >>confdefs.h <<_ACEOF
29463 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29464 _ACEOF
29467 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29468 # of jit/jit-playback.c.
29469 cat > gcc-driver-name.h <<EOF
29470 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29473 # Check whether --enable-default-pie was given.
29474 # Check whether --enable-default-pie was given.
29475 if test "${enable_default_pie+set}" = set; then :
29476 enableval=$enable_default_pie; enable_default_pie=$enableval
29477 else
29478 enable_default_pie=no
29481 if test x$enable_default_pie = xyes ; then
29483 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29488 # Check if -fno-PIE works.
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29490 $as_echo_n "checking for -fno-PIE option... " >&6; }
29491 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29492 $as_echo_n "(cached) " >&6
29493 else
29494 saved_CXXFLAGS="$CXXFLAGS"
29495 CXXFLAGS="$CXXFLAGS -fno-PIE"
29496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h. */
29498 int main(void) {return 0;}
29499 _ACEOF
29500 if ac_fn_cxx_try_compile "$LINENO"; then :
29501 gcc_cv_c_no_fpie=yes
29502 else
29503 gcc_cv_c_no_fpie=no
29505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29506 CXXFLAGS="$saved_CXXFLAGS"
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29509 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29510 if test "$gcc_cv_c_no_fpie" = "yes"; then
29511 NO_PIE_CFLAGS="-fno-PIE"
29515 # Check if -no-pie works.
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29517 $as_echo_n "checking for -no-pie option... " >&6; }
29518 if test "${gcc_cv_no_pie+set}" = set; then :
29519 $as_echo_n "(cached) " >&6
29520 else
29521 saved_LDFLAGS="$LDFLAGS"
29522 LDFLAGS="$LDFLAGS -no-pie"
29523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29524 /* end confdefs.h. */
29525 int main(void) {return 0;}
29526 _ACEOF
29527 if ac_fn_cxx_try_link "$LINENO"; then :
29528 gcc_cv_no_pie=yes
29529 else
29530 gcc_cv_no_pie=no
29532 rm -f core conftest.err conftest.$ac_objext \
29533 conftest$ac_exeext conftest.$ac_ext
29534 LDFLAGS="$saved_LDFLAGS"
29536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29537 $as_echo "$gcc_cv_no_pie" >&6; }
29538 if test "$gcc_cv_no_pie" = "yes"; then
29539 NO_PIE_FLAG="-no-pie"
29543 # Check linker supports '-z bndplt'
29544 ld_bndplt_support=no
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29546 $as_echo_n "checking linker -z bndplt option... " >&6; }
29547 if test x"$ld_is_gold" = xno; then
29548 if test $in_tree_ld = yes ; then
29549 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
29550 ld_bndplt_support=yes
29552 elif test x$gcc_cv_ld != x; then
29553 # Check if linker supports -a bndplt option
29554 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29555 ld_bndplt_support=yes
29559 if test x"$ld_bndplt_support" = xyes; then
29561 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29565 $as_echo "$ld_bndplt_support" >&6; }
29567 # Configure the subdirectories
29568 # AC_CONFIG_SUBDIRS($subdirs)
29570 # Create the Makefile
29571 # and configure language subdirectories
29572 ac_config_files="$ac_config_files $all_outputs"
29575 ac_config_commands="$ac_config_commands default"
29577 cat >confcache <<\_ACEOF
29578 # This file is a shell script that caches the results of configure
29579 # tests run on this system so they can be shared between configure
29580 # scripts and configure runs, see configure's option --config-cache.
29581 # It is not useful on other systems. If it contains results you don't
29582 # want to keep, you may remove or edit it.
29584 # config.status only pays attention to the cache file if you give it
29585 # the --recheck option to rerun configure.
29587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29589 # following values.
29591 _ACEOF
29593 # The following way of writing the cache mishandles newlines in values,
29594 # but we know of no workaround that is simple, portable, and efficient.
29595 # So, we kill variables containing newlines.
29596 # Ultrix sh set writes to stderr and can't be redirected directly,
29597 # and sets the high bit in the cache file unless we assign to the vars.
29599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29600 eval ac_val=\$$ac_var
29601 case $ac_val in #(
29602 *${as_nl}*)
29603 case $ac_var in #(
29604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29606 esac
29607 case $ac_var in #(
29608 _ | IFS | as_nl) ;; #(
29609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29610 *) { eval $ac_var=; unset $ac_var;} ;;
29611 esac ;;
29612 esac
29613 done
29615 (set) 2>&1 |
29616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29617 *${as_nl}ac_space=\ *)
29618 # `set' does not quote correctly, so add quotes: double-quote
29619 # substitution turns \\\\ into \\, and sed turns \\ into \.
29620 sed -n \
29621 "s/'/'\\\\''/g;
29622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29623 ;; #(
29625 # `set' quotes correctly as required by POSIX, so do not add quotes.
29626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29628 esac |
29629 sort
29631 sed '
29632 /^ac_cv_env_/b end
29633 t clear
29634 :clear
29635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29636 t end
29637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29638 :end' >>confcache
29639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29640 if test -w "$cache_file"; then
29641 test "x$cache_file" != "x/dev/null" &&
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29643 $as_echo "$as_me: updating cache $cache_file" >&6;}
29644 cat confcache >$cache_file
29645 else
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29650 rm -f confcache
29652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29653 # Let make expand exec_prefix.
29654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29656 DEFS=-DHAVE_CONFIG_H
29658 ac_libobjs=
29659 ac_ltlibobjs=
29660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29661 # 1. Remove the extension, and $U if already installed.
29662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29665 # will be set to the directory where LIBOBJS objects are built.
29666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29668 done
29669 LIBOBJS=$ac_libobjs
29671 LTLIBOBJS=$ac_ltlibobjs
29676 : ${CONFIG_STATUS=./config.status}
29677 ac_write_fail=0
29678 ac_clean_files_save=$ac_clean_files
29679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29682 as_write_fail=0
29683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29684 #! $SHELL
29685 # Generated by $as_me.
29686 # Run this file to recreate the current configuration.
29687 # Compiler output produced by configure, useful for debugging
29688 # configure, is in config.log if it exists.
29690 debug=false
29691 ac_cs_recheck=false
29692 ac_cs_silent=false
29694 SHELL=\${CONFIG_SHELL-$SHELL}
29695 export SHELL
29696 _ASEOF
29697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29698 ## -------------------- ##
29699 ## M4sh Initialization. ##
29700 ## -------------------- ##
29702 # Be more Bourne compatible
29703 DUALCASE=1; export DUALCASE # for MKS sh
29704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29705 emulate sh
29706 NULLCMD=:
29707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29708 # is contrary to our usage. Disable this feature.
29709 alias -g '${1+"$@"}'='"$@"'
29710 setopt NO_GLOB_SUBST
29711 else
29712 case `(set -o) 2>/dev/null` in #(
29713 *posix*) :
29714 set -o posix ;; #(
29715 *) :
29717 esac
29721 as_nl='
29723 export as_nl
29724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29725 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29728 # Prefer a ksh shell builtin over an external printf program on Solaris,
29729 # but without wasting forks for bash or zsh.
29730 if test -z "$BASH_VERSION$ZSH_VERSION" \
29731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29732 as_echo='print -r --'
29733 as_echo_n='print -rn --'
29734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29735 as_echo='printf %s\n'
29736 as_echo_n='printf %s'
29737 else
29738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29740 as_echo_n='/usr/ucb/echo -n'
29741 else
29742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29743 as_echo_n_body='eval
29744 arg=$1;
29745 case $arg in #(
29746 *"$as_nl"*)
29747 expr "X$arg" : "X\\(.*\\)$as_nl";
29748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29749 esac;
29750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29752 export as_echo_n_body
29753 as_echo_n='sh -c $as_echo_n_body as_echo'
29755 export as_echo_body
29756 as_echo='sh -c $as_echo_body as_echo'
29759 # The user is always right.
29760 if test "${PATH_SEPARATOR+set}" != set; then
29761 PATH_SEPARATOR=:
29762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29764 PATH_SEPARATOR=';'
29769 # IFS
29770 # We need space, tab and new line, in precisely that order. Quoting is
29771 # there to prevent editors from complaining about space-tab.
29772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29773 # splitting by setting IFS to empty value.)
29774 IFS=" "" $as_nl"
29776 # Find who we are. Look in the path if we contain no directory separator.
29777 case $0 in #((
29778 *[\\/]* ) as_myself=$0 ;;
29779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29780 for as_dir in $PATH
29782 IFS=$as_save_IFS
29783 test -z "$as_dir" && as_dir=.
29784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29785 done
29786 IFS=$as_save_IFS
29789 esac
29790 # We did not find ourselves, most probably we were run as `sh COMMAND'
29791 # in which case we are not to be found in the path.
29792 if test "x$as_myself" = x; then
29793 as_myself=$0
29795 if test ! -f "$as_myself"; then
29796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29797 exit 1
29800 # Unset variables that we do not need and which cause bugs (e.g. in
29801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29802 # suppresses any "Segmentation fault" message there. '((' could
29803 # trigger a bug in pdksh 5.2.14.
29804 for as_var in BASH_ENV ENV MAIL MAILPATH
29805 do eval test x\${$as_var+set} = xset \
29806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29807 done
29808 PS1='$ '
29809 PS2='> '
29810 PS4='+ '
29812 # NLS nuisances.
29813 LC_ALL=C
29814 export LC_ALL
29815 LANGUAGE=C
29816 export LANGUAGE
29818 # CDPATH.
29819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29822 # as_fn_error ERROR [LINENO LOG_FD]
29823 # ---------------------------------
29824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29826 # script with status $?, using 1 if that was 0.
29827 as_fn_error ()
29829 as_status=$?; test $as_status -eq 0 && as_status=1
29830 if test "$3"; then
29831 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29834 $as_echo "$as_me: error: $1" >&2
29835 as_fn_exit $as_status
29836 } # as_fn_error
29839 # as_fn_set_status STATUS
29840 # -----------------------
29841 # Set $? to STATUS, without forking.
29842 as_fn_set_status ()
29844 return $1
29845 } # as_fn_set_status
29847 # as_fn_exit STATUS
29848 # -----------------
29849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29850 as_fn_exit ()
29852 set +e
29853 as_fn_set_status $1
29854 exit $1
29855 } # as_fn_exit
29857 # as_fn_unset VAR
29858 # ---------------
29859 # Portably unset VAR.
29860 as_fn_unset ()
29862 { eval $1=; unset $1;}
29864 as_unset=as_fn_unset
29865 # as_fn_append VAR VALUE
29866 # ----------------------
29867 # Append the text in VALUE to the end of the definition contained in VAR. Take
29868 # advantage of any shell optimizations that allow amortized linear growth over
29869 # repeated appends, instead of the typical quadratic growth present in naive
29870 # implementations.
29871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29872 eval 'as_fn_append ()
29874 eval $1+=\$2
29876 else
29877 as_fn_append ()
29879 eval $1=\$$1\$2
29881 fi # as_fn_append
29883 # as_fn_arith ARG...
29884 # ------------------
29885 # Perform arithmetic evaluation on the ARGs, and store the result in the
29886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29887 # must be portable across $(()) and expr.
29888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29889 eval 'as_fn_arith ()
29891 as_val=$(( $* ))
29893 else
29894 as_fn_arith ()
29896 as_val=`expr "$@" || test $? -eq 1`
29898 fi # as_fn_arith
29901 if expr a : '\(a\)' >/dev/null 2>&1 &&
29902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29903 as_expr=expr
29904 else
29905 as_expr=false
29908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29909 as_basename=basename
29910 else
29911 as_basename=false
29914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29915 as_dirname=dirname
29916 else
29917 as_dirname=false
29920 as_me=`$as_basename -- "$0" ||
29921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29922 X"$0" : 'X\(//\)$' \| \
29923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29924 $as_echo X/"$0" |
29925 sed '/^.*\/\([^/][^/]*\)\/*$/{
29926 s//\1/
29929 /^X\/\(\/\/\)$/{
29930 s//\1/
29933 /^X\/\(\/\).*/{
29934 s//\1/
29937 s/.*/./; q'`
29939 # Avoid depending upon Character Ranges.
29940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29943 as_cr_digits='0123456789'
29944 as_cr_alnum=$as_cr_Letters$as_cr_digits
29946 ECHO_C= ECHO_N= ECHO_T=
29947 case `echo -n x` in #(((((
29948 -n*)
29949 case `echo 'xy\c'` in
29950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29951 xy) ECHO_C='\c';;
29952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29953 ECHO_T=' ';;
29954 esac;;
29956 ECHO_N='-n';;
29957 esac
29959 rm -f conf$$ conf$$.exe conf$$.file
29960 if test -d conf$$.dir; then
29961 rm -f conf$$.dir/conf$$.file
29962 else
29963 rm -f conf$$.dir
29964 mkdir conf$$.dir 2>/dev/null
29966 if (echo >conf$$.file) 2>/dev/null; then
29967 if ln -s conf$$.file conf$$ 2>/dev/null; then
29968 as_ln_s='ln -s'
29969 # ... but there are two gotchas:
29970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29972 # In both cases, we have to default to `cp -p'.
29973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29974 as_ln_s='cp -p'
29975 elif ln conf$$.file conf$$ 2>/dev/null; then
29976 as_ln_s=ln
29977 else
29978 as_ln_s='cp -p'
29980 else
29981 as_ln_s='cp -p'
29983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29984 rmdir conf$$.dir 2>/dev/null
29987 # as_fn_mkdir_p
29988 # -------------
29989 # Create "$as_dir" as a directory, including parents if necessary.
29990 as_fn_mkdir_p ()
29993 case $as_dir in #(
29994 -*) as_dir=./$as_dir;;
29995 esac
29996 test -d "$as_dir" || eval $as_mkdir_p || {
29997 as_dirs=
29998 while :; do
29999 case $as_dir in #(
30000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30001 *) as_qdir=$as_dir;;
30002 esac
30003 as_dirs="'$as_qdir' $as_dirs"
30004 as_dir=`$as_dirname -- "$as_dir" ||
30005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30006 X"$as_dir" : 'X\(//\)[^/]' \| \
30007 X"$as_dir" : 'X\(//\)$' \| \
30008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30009 $as_echo X"$as_dir" |
30010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30011 s//\1/
30014 /^X\(\/\/\)[^/].*/{
30015 s//\1/
30018 /^X\(\/\/\)$/{
30019 s//\1/
30022 /^X\(\/\).*/{
30023 s//\1/
30026 s/.*/./; q'`
30027 test -d "$as_dir" && break
30028 done
30029 test -z "$as_dirs" || eval "mkdir $as_dirs"
30030 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30033 } # as_fn_mkdir_p
30034 if mkdir -p . 2>/dev/null; then
30035 as_mkdir_p='mkdir -p "$as_dir"'
30036 else
30037 test -d ./-p && rmdir ./-p
30038 as_mkdir_p=false
30041 if test -x / >/dev/null 2>&1; then
30042 as_test_x='test -x'
30043 else
30044 if ls -dL / >/dev/null 2>&1; then
30045 as_ls_L_option=L
30046 else
30047 as_ls_L_option=
30049 as_test_x='
30050 eval sh -c '\''
30051 if test -d "$1"; then
30052 test -d "$1/.";
30053 else
30054 case $1 in #(
30055 -*)set "./$1";;
30056 esac;
30057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30058 ???[sx]*):;;*)false;;esac;fi
30059 '\'' sh
30062 as_executable_p=$as_test_x
30064 # Sed expression to map a string onto a valid CPP name.
30065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30067 # Sed expression to map a string onto a valid variable name.
30068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30071 exec 6>&1
30072 ## ----------------------------------- ##
30073 ## Main body of $CONFIG_STATUS script. ##
30074 ## ----------------------------------- ##
30075 _ASEOF
30076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30079 # Save the log message, to keep $0 and so on meaningful, and to
30080 # report actual input values of CONFIG_FILES etc. instead of their
30081 # values after options handling.
30082 ac_log="
30083 This file was extended by $as_me, which was
30084 generated by GNU Autoconf 2.64. Invocation command line was
30086 CONFIG_FILES = $CONFIG_FILES
30087 CONFIG_HEADERS = $CONFIG_HEADERS
30088 CONFIG_LINKS = $CONFIG_LINKS
30089 CONFIG_COMMANDS = $CONFIG_COMMANDS
30090 $ $0 $@
30092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30095 _ACEOF
30097 case $ac_config_files in *"
30098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30099 esac
30101 case $ac_config_headers in *"
30102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30103 esac
30106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30107 # Files that config.status was made for.
30108 config_files="$ac_config_files"
30109 config_headers="$ac_config_headers"
30110 config_links="$ac_config_links"
30111 config_commands="$ac_config_commands"
30113 _ACEOF
30115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30116 ac_cs_usage="\
30117 \`$as_me' instantiates files and other configuration actions
30118 from templates according to the current configuration. Unless the files
30119 and actions are specified as TAGs, all are instantiated by default.
30121 Usage: $0 [OPTION]... [TAG]...
30123 -h, --help print this help, then exit
30124 -V, --version print version number and configuration settings, then exit
30125 -q, --quiet, --silent
30126 do not print progress messages
30127 -d, --debug don't remove temporary files
30128 --recheck update $as_me by reconfiguring in the same conditions
30129 --file=FILE[:TEMPLATE]
30130 instantiate the configuration file FILE
30131 --header=FILE[:TEMPLATE]
30132 instantiate the configuration header FILE
30134 Configuration files:
30135 $config_files
30137 Configuration headers:
30138 $config_headers
30140 Configuration links:
30141 $config_links
30143 Configuration commands:
30144 $config_commands
30146 Report bugs to the package provider."
30148 _ACEOF
30149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30150 ac_cs_version="\\
30151 config.status
30152 configured by $0, generated by GNU Autoconf 2.64,
30153 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30155 Copyright (C) 2009 Free Software Foundation, Inc.
30156 This config.status script is free software; the Free Software Foundation
30157 gives unlimited permission to copy, distribute and modify it."
30159 ac_pwd='$ac_pwd'
30160 srcdir='$srcdir'
30161 AWK='$AWK'
30162 test -n "\$AWK" || AWK=awk
30163 _ACEOF
30165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30166 # The default lists apply if the user does not specify any file.
30167 ac_need_defaults=:
30168 while test $# != 0
30170 case $1 in
30171 --*=*)
30172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30174 ac_shift=:
30177 ac_option=$1
30178 ac_optarg=$2
30179 ac_shift=shift
30181 esac
30183 case $ac_option in
30184 # Handling of the options.
30185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30186 ac_cs_recheck=: ;;
30187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30188 $as_echo "$ac_cs_version"; exit ;;
30189 --debug | --debu | --deb | --de | --d | -d )
30190 debug=: ;;
30191 --file | --fil | --fi | --f )
30192 $ac_shift
30193 case $ac_optarg in
30194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30195 esac
30196 as_fn_append CONFIG_FILES " '$ac_optarg'"
30197 ac_need_defaults=false;;
30198 --header | --heade | --head | --hea )
30199 $ac_shift
30200 case $ac_optarg in
30201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30202 esac
30203 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30204 ac_need_defaults=false;;
30205 --he | --h)
30206 # Conflict between --help and --header
30207 as_fn_error "ambiguous option: \`$1'
30208 Try \`$0 --help' for more information.";;
30209 --help | --hel | -h )
30210 $as_echo "$ac_cs_usage"; exit ;;
30211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30212 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30213 ac_cs_silent=: ;;
30215 # This is an error.
30216 -*) as_fn_error "unrecognized option: \`$1'
30217 Try \`$0 --help' for more information." ;;
30219 *) as_fn_append ac_config_targets " $1"
30220 ac_need_defaults=false ;;
30222 esac
30223 shift
30224 done
30226 ac_configure_extra_args=
30228 if $ac_cs_silent; then
30229 exec 6>/dev/null
30230 ac_configure_extra_args="$ac_configure_extra_args --silent"
30233 _ACEOF
30234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30235 if \$ac_cs_recheck; then
30236 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30237 shift
30238 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30239 CONFIG_SHELL='$SHELL'
30240 export CONFIG_SHELL
30241 exec "\$@"
30244 _ACEOF
30245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30246 exec 5>>config.log
30248 echo
30249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30250 ## Running $as_me. ##
30251 _ASBOX
30252 $as_echo "$ac_log"
30253 } >&5
30255 _ACEOF
30256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30258 # INIT-COMMANDS
30260 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30261 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30262 subdirs='$subdirs'
30264 _ACEOF
30266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30268 # Handling of arguments.
30269 for ac_config_target in $ac_config_targets
30271 case $ac_config_target in
30272 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30273 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30274 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30275 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30276 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30277 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30278 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30279 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30280 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30282 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30283 esac
30284 done
30287 # If the user did not use the arguments to specify the items to instantiate,
30288 # then the envvar interface is used. Set only those that are not.
30289 # We use the long form for the default assignment because of an extremely
30290 # bizarre bug on SunOS 4.1.3.
30291 if $ac_need_defaults; then
30292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30294 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30295 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30298 # Have a temporary directory for convenience. Make it in the build tree
30299 # simply because there is no reason against having it here, and in addition,
30300 # creating and moving files from /tmp can sometimes cause problems.
30301 # Hook for its removal unless debugging.
30302 # Note that there is a small window in which the directory will not be cleaned:
30303 # after its creation but before its name has been assigned to `$tmp'.
30304 $debug ||
30306 tmp=
30307 trap 'exit_status=$?
30308 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30310 trap 'as_fn_exit 1' 1 2 13 15
30312 # Create a (secure) tmp directory for tmp files.
30315 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30316 test -n "$tmp" && test -d "$tmp"
30317 } ||
30319 tmp=./conf$$-$RANDOM
30320 (umask 077 && mkdir "$tmp")
30321 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30323 # Set up the scripts for CONFIG_FILES section.
30324 # No need to generate them if there are no CONFIG_FILES.
30325 # This happens for instance with `./config.status config.h'.
30326 if test -n "$CONFIG_FILES"; then
30328 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30329 ac_cs_awk_getline=:
30330 ac_cs_awk_pipe_init=
30331 ac_cs_awk_read_file='
30332 while ((getline aline < (F[key])) > 0)
30333 print(aline)
30334 close(F[key])'
30335 ac_cs_awk_pipe_fini=
30336 else
30337 ac_cs_awk_getline=false
30338 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30339 ac_cs_awk_read_file='
30340 print "|#_!!_#|"
30341 print "cat " F[key] " &&"
30342 '$ac_cs_awk_pipe_init
30343 # The final `:' finishes the AND list.
30344 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30346 ac_cr=`echo X | tr X '\015'`
30347 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30348 # But we know of no other shell where ac_cr would be empty at this
30349 # point, so we can use a bashism as a fallback.
30350 if test "x$ac_cr" = x; then
30351 eval ac_cr=\$\'\\r\'
30353 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30354 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30355 ac_cs_awk_cr='\r'
30356 else
30357 ac_cs_awk_cr=$ac_cr
30360 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30361 _ACEOF
30363 # Create commands to substitute file output variables.
30365 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30366 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30367 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30368 echo "_ACAWK" &&
30369 echo "_ACEOF"
30370 } >conf$$files.sh &&
30371 . ./conf$$files.sh ||
30372 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30373 rm -f conf$$files.sh
30376 echo "cat >conf$$subs.awk <<_ACEOF" &&
30377 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30378 echo "_ACEOF"
30379 } >conf$$subs.sh ||
30380 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30381 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30382 ac_delim='%!_!# '
30383 for ac_last_try in false false false false false :; do
30384 . ./conf$$subs.sh ||
30385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30387 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30388 if test $ac_delim_n = $ac_delim_num; then
30389 break
30390 elif $ac_last_try; then
30391 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30392 else
30393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30395 done
30396 rm -f conf$$subs.sh
30398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30399 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30400 _ACEOF
30401 sed -n '
30403 s/^/S["/; s/!.*/"]=/
30406 s/^[^!]*!//
30407 :repl
30408 t repl
30409 s/'"$ac_delim"'$//
30410 t delim
30413 s/\(.\{148\}\).*/\1/
30414 t more1
30415 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30418 b repl
30419 :more1
30420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30423 s/.\{148\}//
30424 t nl
30425 :delim
30427 s/\(.\{148\}\).*/\1/
30428 t more2
30429 s/["\\]/\\&/g; s/^/"/; s/$/"/
30432 :more2
30433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30436 s/.\{148\}//
30437 t delim
30438 ' <conf$$subs.awk | sed '
30439 /^[^""]/{
30441 s/\n//
30443 ' >>$CONFIG_STATUS || ac_write_fail=1
30444 rm -f conf$$subs.awk
30445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30446 _ACAWK
30447 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30448 for (key in S) S_is_set[key] = 1
30449 FS = "\a"
30450 \$ac_cs_awk_pipe_init
30453 line = $ 0
30454 nfields = split(line, field, "@")
30455 substed = 0
30456 len = length(field[1])
30457 for (i = 2; i < nfields; i++) {
30458 key = field[i]
30459 keylen = length(key)
30460 if (S_is_set[key]) {
30461 value = S[key]
30462 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30463 len += length(value) + length(field[++i])
30464 substed = 1
30465 } else
30466 len += 1 + keylen
30468 if (nfields == 3 && !substed) {
30469 key = field[2]
30470 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30471 \$ac_cs_awk_read_file
30472 next
30475 print line
30477 \$ac_cs_awk_pipe_fini
30478 _ACAWK
30479 _ACEOF
30480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30481 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30482 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30483 else
30485 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30486 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30487 _ACEOF
30489 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30490 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30491 # trailing colons and then remove the whole line if VPATH becomes empty
30492 # (actually we leave an empty line to preserve line numbers).
30493 if test "x$srcdir" = x.; then
30494 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30495 s/:*\$(srcdir):*/:/
30496 s/:*\${srcdir}:*/:/
30497 s/:*@srcdir@:*/:/
30498 s/^\([^=]*=[ ]*\):*/\1/
30499 s/:*$//
30500 s/^[^=]*=[ ]*$//
30504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30505 fi # test -n "$CONFIG_FILES"
30507 # Set up the scripts for CONFIG_HEADERS section.
30508 # No need to generate them if there are no CONFIG_HEADERS.
30509 # This happens for instance with `./config.status Makefile'.
30510 if test -n "$CONFIG_HEADERS"; then
30511 cat >"$tmp/defines.awk" <<\_ACAWK ||
30512 BEGIN {
30513 _ACEOF
30515 # Transform confdefs.h into an awk script `defines.awk', embedded as
30516 # here-document in config.status, that substitutes the proper values into
30517 # config.h.in to produce config.h.
30519 # Create a delimiter string that does not exist in confdefs.h, to ease
30520 # handling of long lines.
30521 ac_delim='%!_!# '
30522 for ac_last_try in false false :; do
30523 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30524 if test -z "$ac_t"; then
30525 break
30526 elif $ac_last_try; then
30527 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30528 else
30529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30531 done
30533 # For the awk script, D is an array of macro values keyed by name,
30534 # likewise P contains macro parameters if any. Preserve backslash
30535 # newline sequences.
30537 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30538 sed -n '
30539 s/.\{148\}/&'"$ac_delim"'/g
30540 t rset
30541 :rset
30542 s/^[ ]*#[ ]*define[ ][ ]*/ /
30543 t def
30545 :def
30546 s/\\$//
30547 t bsnl
30548 s/["\\]/\\&/g
30549 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30550 D["\1"]=" \3"/p
30551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30553 :bsnl
30554 s/["\\]/\\&/g
30555 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30556 D["\1"]=" \3\\\\\\n"\\/p
30557 t cont
30558 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30559 t cont
30561 :cont
30563 s/.\{148\}/&'"$ac_delim"'/g
30564 t clear
30565 :clear
30566 s/\\$//
30567 t bsnlc
30568 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30570 :bsnlc
30571 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30572 b cont
30573 ' <confdefs.h | sed '
30574 s/'"$ac_delim"'/"\\\
30575 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30578 for (key in D) D_is_set[key] = 1
30579 FS = "\a"
30581 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30582 line = \$ 0
30583 split(line, arg, " ")
30584 if (arg[1] == "#") {
30585 defundef = arg[2]
30586 mac1 = arg[3]
30587 } else {
30588 defundef = substr(arg[1], 2)
30589 mac1 = arg[2]
30591 split(mac1, mac2, "(") #)
30592 macro = mac2[1]
30593 prefix = substr(line, 1, index(line, defundef) - 1)
30594 if (D_is_set[macro]) {
30595 # Preserve the white space surrounding the "#".
30596 print prefix "define", macro P[macro] D[macro]
30597 next
30598 } else {
30599 # Replace #undef with comments. This is necessary, for example,
30600 # in the case of _POSIX_SOURCE, which is predefined and required
30601 # on some systems where configure will not decide to define it.
30602 if (defundef == "undef") {
30603 print "/*", prefix defundef, macro, "*/"
30604 next
30608 { print }
30609 _ACAWK
30610 _ACEOF
30611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30612 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30613 fi # test -n "$CONFIG_HEADERS"
30616 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30617 shift
30618 for ac_tag
30620 case $ac_tag in
30621 :[FHLC]) ac_mode=$ac_tag; continue;;
30622 esac
30623 case $ac_mode$ac_tag in
30624 :[FHL]*:*);;
30625 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30626 :[FH]-) ac_tag=-:-;;
30627 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30628 esac
30629 ac_save_IFS=$IFS
30630 IFS=:
30631 set x $ac_tag
30632 IFS=$ac_save_IFS
30633 shift
30634 ac_file=$1
30635 shift
30637 case $ac_mode in
30638 :L) ac_source=$1;;
30639 :[FH])
30640 ac_file_inputs=
30641 for ac_f
30643 case $ac_f in
30644 -) ac_f="$tmp/stdin";;
30645 *) # Look for the file first in the build tree, then in the source tree
30646 # (if the path is not absolute). The absolute path cannot be DOS-style,
30647 # because $ac_f cannot contain `:'.
30648 test -f "$ac_f" ||
30649 case $ac_f in
30650 [\\/$]*) false;;
30651 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30652 esac ||
30653 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30654 esac
30655 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30656 as_fn_append ac_file_inputs " '$ac_f'"
30657 done
30659 # Let's still pretend it is `configure' which instantiates (i.e., don't
30660 # use $as_me), people would be surprised to read:
30661 # /* config.h. Generated by config.status. */
30662 configure_input='Generated from '`
30663 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30664 `' by configure.'
30665 if test x"$ac_file" != x-; then
30666 configure_input="$ac_file. $configure_input"
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30668 $as_echo "$as_me: creating $ac_file" >&6;}
30670 # Neutralize special characters interpreted by sed in replacement strings.
30671 case $configure_input in #(
30672 *\&* | *\|* | *\\* )
30673 ac_sed_conf_input=`$as_echo "$configure_input" |
30674 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30675 *) ac_sed_conf_input=$configure_input;;
30676 esac
30678 case $ac_tag in
30679 *:-:* | *:-) cat >"$tmp/stdin" \
30680 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30681 esac
30683 esac
30685 ac_dir=`$as_dirname -- "$ac_file" ||
30686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30687 X"$ac_file" : 'X\(//\)[^/]' \| \
30688 X"$ac_file" : 'X\(//\)$' \| \
30689 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30690 $as_echo X"$ac_file" |
30691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30692 s//\1/
30695 /^X\(\/\/\)[^/].*/{
30696 s//\1/
30699 /^X\(\/\/\)$/{
30700 s//\1/
30703 /^X\(\/\).*/{
30704 s//\1/
30707 s/.*/./; q'`
30708 as_dir="$ac_dir"; as_fn_mkdir_p
30709 ac_builddir=.
30711 case "$ac_dir" in
30712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30715 # A ".." for each directory in $ac_dir_suffix.
30716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30717 case $ac_top_builddir_sub in
30718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30720 esac ;;
30721 esac
30722 ac_abs_top_builddir=$ac_pwd
30723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30724 # for backward compatibility:
30725 ac_top_builddir=$ac_top_build_prefix
30727 case $srcdir in
30728 .) # We are building in place.
30729 ac_srcdir=.
30730 ac_top_srcdir=$ac_top_builddir_sub
30731 ac_abs_top_srcdir=$ac_pwd ;;
30732 [\\/]* | ?:[\\/]* ) # Absolute name.
30733 ac_srcdir=$srcdir$ac_dir_suffix;
30734 ac_top_srcdir=$srcdir
30735 ac_abs_top_srcdir=$srcdir ;;
30736 *) # Relative name.
30737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30738 ac_top_srcdir=$ac_top_build_prefix$srcdir
30739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30740 esac
30741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30744 case $ac_mode in
30747 # CONFIG_FILE
30750 _ACEOF
30752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30753 # If the template does not know about datarootdir, expand it.
30754 # FIXME: This hack should be removed a few years after 2.60.
30755 ac_datarootdir_hack=; ac_datarootdir_seen=
30756 ac_sed_dataroot='
30757 /datarootdir/ {
30761 /@datadir@/p
30762 /@docdir@/p
30763 /@infodir@/p
30764 /@localedir@/p
30765 /@mandir@/p'
30766 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30767 *datarootdir*) ac_datarootdir_seen=yes;;
30768 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30770 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30771 _ACEOF
30772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30773 ac_datarootdir_hack='
30774 s&@datadir@&$datadir&g
30775 s&@docdir@&$docdir&g
30776 s&@infodir@&$infodir&g
30777 s&@localedir@&$localedir&g
30778 s&@mandir@&$mandir&g
30779 s&\\\${datarootdir}&$datarootdir&g' ;;
30780 esac
30781 _ACEOF
30783 # Neutralize VPATH when `$srcdir' = `.'.
30784 # Shell code in configure.ac might set extrasub.
30785 # FIXME: do we really want to maintain this feature?
30786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30787 ac_sed_extra="$ac_vpsub
30788 $extrasub
30789 _ACEOF
30790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30793 s|@configure_input@|$ac_sed_conf_input|;t t
30794 s&@top_builddir@&$ac_top_builddir_sub&;t t
30795 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30796 s&@srcdir@&$ac_srcdir&;t t
30797 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30798 s&@top_srcdir@&$ac_top_srcdir&;t t
30799 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30800 s&@builddir@&$ac_builddir&;t t
30801 s&@abs_builddir@&$ac_abs_builddir&;t t
30802 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30803 $ac_datarootdir_hack
30805 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30806 if $ac_cs_awk_getline; then
30807 $AWK -f "$tmp/subs.awk"
30808 else
30809 $AWK -f "$tmp/subs.awk" | $SHELL
30810 fi >$tmp/out \
30811 || as_fn_error "could not create $ac_file" "$LINENO" 5
30813 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30814 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30815 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30817 which seems to be undefined. Please make sure it is defined." >&5
30818 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30819 which seems to be undefined. Please make sure it is defined." >&2;}
30821 rm -f "$tmp/stdin"
30822 case $ac_file in
30823 -) cat "$tmp/out" && rm -f "$tmp/out";;
30824 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30825 esac \
30826 || as_fn_error "could not create $ac_file" "$LINENO" 5
30830 # CONFIG_HEADER
30832 if test x"$ac_file" != x-; then
30834 $as_echo "/* $configure_input */" \
30835 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30836 } >"$tmp/config.h" \
30837 || as_fn_error "could not create $ac_file" "$LINENO" 5
30838 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30840 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30841 else
30842 rm -f "$ac_file"
30843 mv "$tmp/config.h" "$ac_file" \
30844 || as_fn_error "could not create $ac_file" "$LINENO" 5
30846 else
30847 $as_echo "/* $configure_input */" \
30848 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30849 || as_fn_error "could not create -" "$LINENO" 5
30854 # CONFIG_LINK
30857 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30859 else
30860 # Prefer the file from the source tree if names are identical.
30861 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30862 ac_source=$srcdir/$ac_source
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30866 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30868 if test ! -r "$ac_source"; then
30869 as_fn_error "$ac_source: file not found" "$LINENO" 5
30871 rm -f "$ac_file"
30873 # Try a relative symlink, then a hard link, then a copy.
30874 case $srcdir in
30875 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30876 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30877 esac
30878 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30879 ln "$ac_source" "$ac_file" 2>/dev/null ||
30880 cp -p "$ac_source" "$ac_file" ||
30881 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30884 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30885 $as_echo "$as_me: executing $ac_file commands" >&6;}
30887 esac
30890 case $ac_file$ac_mode in
30891 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30892 "gccdepdir":C)
30893 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30894 for lang in $subdirs c-family common
30896 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30897 done ;;
30898 "as":F) chmod +x as ;;
30899 "collect-ld":F) chmod +x collect-ld ;;
30900 "nm":F) chmod +x nm ;;
30901 "default":C)
30902 case ${CONFIG_HEADERS} in
30903 *auto-host.h:config.in*)
30904 echo > cstamp-h ;;
30905 esac
30906 # Make sure all the subdirs exist.
30907 for d in $subdirs doc build common c-family
30909 test -d $d || mkdir $d
30910 done
30913 esac
30914 done # for ac_tag
30917 as_fn_exit 0
30918 _ACEOF
30919 ac_clean_files=$ac_clean_files_save
30921 test $ac_write_fail = 0 ||
30922 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30925 # configure is writing to config.log, and then calls config.status.
30926 # config.status does its own redirection, appending to config.log.
30927 # Unfortunately, on DOS this fails, as config.log is still kept open
30928 # by configure, so config.status won't be able to write to it; its
30929 # output is simply discarded. So we exec the FD to /dev/null,
30930 # effectively closing config.log, so it can be properly (re)opened and
30931 # appended to by config.status. When coming back to configure, we
30932 # need to make the FD available again.
30933 if test "$no_create" != yes; then
30934 ac_cs_success=:
30935 ac_config_status_args=
30936 test "$silent" = yes &&
30937 ac_config_status_args="$ac_config_status_args --quiet"
30938 exec 5>/dev/null
30939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30940 exec 5>>config.log
30941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30942 # would make configure fail if this is the last instruction.
30943 $ac_cs_success || as_fn_exit $?
30945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}