2014-10-24 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / configure
blob16f128f6a3131136b897112fff2ae223eae6a3d1
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 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
761 LN_S
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 EGREP
794 GREP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 enable_valgrind_annotations
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_dwarf2
896 enable_shared
897 with_native_system_header_dir
898 with_build_sysroot
899 with_sysroot
900 with_specs
901 with_pkgversion
902 with_bugurl
903 enable_languages
904 with_multilib_list
905 enable_rpath
906 with_libiconv_prefix
907 enable_sjlj_exceptions
908 enable_secureplt
909 enable_leading_mingw64_underscores
910 enable_cld
911 enable_frame_pointer
912 enable_win32_registry
913 enable_static
914 with_pic
915 enable_fast_install
916 enable_libtool_lock
917 enable_ld
918 enable_gold
919 with_plugin_ld
920 enable_gnu_indirect_function
921 enable_initfini_array
922 enable_comdat
923 enable_fix_cortex_a53_835769
924 with_glibc_version
925 enable_gnu_unique_object
926 enable_linker_build_id
927 with_long_double_128
928 with_gc
929 with_system_zlib
930 enable_maintainer_mode
931 enable_link_mutex
932 enable_version_specific_runtime_libs
933 enable_plugin
934 enable_host_shared
935 enable_libquadmath_support
936 with_linker_hash_style
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
947 CXXFLAGS
950 CXXCPP
951 GMPLIBS
952 GMPINC
953 ISLLIBS
954 ISLINC
955 CLOOGLIBS
956 CLOOGINC'
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1027 ac_dashdash=yes ;;
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1061 -disable-* | --disable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=no ;;
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1087 -enable-* | --enable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=\$ac_optarg ;;
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1291 -with-* | --with-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=\$ac_optarg ;;
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=no ;;
1323 --x)
1324 # Obsolete; use --with-x.
1325 with_x=yes ;;
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1341 -*) as_fn_error "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information."
1345 *=*)
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' | [0-9]* | *[!_$as_cr_alnum]* )
1350 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1351 esac
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1363 esac
1364 done
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error "missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1373 no) ;;
1374 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376 esac
1379 # Check all directory arguments for consistency.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1387 case $ac_val in
1388 */ )
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1391 esac
1392 # Be sure to have absolute directory names.
1393 case $ac_val in
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396 esac
1397 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1398 done
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
1411 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412 If a cross compiler is detected then cross compile mode will be used." >&2
1413 elif test "x$build_alias" != "x$host_alias"; then
1414 cross_compiling=yes
1418 ac_tool_prefix=
1419 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421 test "$silent" = yes && exec 6>/dev/null
1424 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di=`ls -di .` &&
1426 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error "working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error "pwd does not report name of working directory"
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 s//\1/
1446 /^X\(\/\/\)[^/].*/{
1447 s//\1/
1450 /^X\(\/\/\)$/{
1451 s//\1/
1454 /^X\(\/\).*/{
1455 s//\1/
1458 s/.*/./; q'`
1459 srcdir=$ac_confdir
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 srcdir=..
1463 else
1464 ac_srcdir_defaulted=no
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 ac_abs_confdir=`(
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1473 pwd)`
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 srcdir=.
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1481 case $srcdir in
1482 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483 esac
1484 for ac_var in $ac_precious_vars; do
1485 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_${ac_var}_value=\$${ac_var}
1487 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489 done
1492 # Report the --help message.
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1497 cat <<_ACEOF
1498 \`configure' configures this package to adapt to many kinds of systems.
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1505 Defaults for the options are specified in brackets.
1507 Configuration:
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 [PREFIX]
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1529 For better control, use the options below.
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1551 _ACEOF
1553 cat <<\_ACEOF
1555 Program names:
1556 --program-prefix=PREFIX prepend PREFIX to installed program names
1557 --program-suffix=SUFFIX append SUFFIX to installed program names
1558 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1560 System types:
1561 --build=BUILD configure for building on BUILD [guessed]
1562 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 --target=TARGET configure for building compilers for TARGET [HOST]
1564 _ACEOF
1567 if test -n "$ac_init_help"; then
1569 cat <<\_ACEOF
1571 Optional Features:
1572 --disable-option-checking ignore unrecognized --enable/--with options
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --enable-generated-files-in-srcdir
1576 put copies of generated files in source dir intended
1577 for creating source tarballs for users without
1578 texinfo bison or flex
1579 --disable-largefile omit support for large files
1580 --disable-build-format-warnings
1581 don't use -Wformat while building GCC
1582 --enable-werror-always enable -Werror despite compiler version
1583 --enable-checking[=LIST]
1584 enable expensive run-time checks. With LIST, enable
1585 only specific categories of checks. Categories are:
1586 yes,no,all,none,release. Flags are:
1587 assert,df,fold,gc,gcac,gimple,misc,
1588 rtlflag,rtl,runtime,tree,valgrind,types
1589 --enable-coverage[=LEVEL]
1590 enable compiler's code coverage collection. Use to
1591 measure compiler performance and locate unused parts
1592 of the compiler. With LEVEL, specify optimization.
1593 Values are opt, noopt, default is noopt
1594 --enable-gather-detailed-mem-stats
1595 enable detailed memory allocation stats gathering
1596 --enable-valgrind-annotations
1597 enable valgrind runtime interaction
1598 --enable-multilib enable library support for multiple ABIs
1599 --enable-multiarch enable support for multiarch paths
1600 --enable-__cxa_atexit enable __cxa_atexit for C++
1601 --enable-decimal-float={no,yes,bid,dpd}
1602 enable decimal float extension to C. Selecting 'bid'
1603 or 'dpd' choses which decimal floating point format
1604 to use
1605 --enable-fixed-point enable fixed-point arithmetic extension to C
1606 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1607 package
1608 --enable-tls enable or disable generation of tls code overriding
1609 the assembler check for tls support
1610 --enable-objc-gc enable the use of Boehm's garbage collector with the
1611 GNU Objective-C runtime
1612 --disable-shared don't provide a shared libgcc
1613 --enable-languages=LIST specify which front-ends to build
1614 --disable-rpath do not hardcode runtime library paths
1615 --enable-sjlj-exceptions
1616 arrange to use setjmp/longjmp exception handling
1617 --enable-secureplt enable -msecure-plt by default for PowerPC
1618 --enable-leading-mingw64-underscores
1619 enable leading underscores on 64 bit mingw targets
1620 --enable-cld enable -mcld by default for 32bit x86
1621 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1623 --disable-win32-registry
1624 disable lookup of installation paths in the Registry
1625 on Windows hosts
1626 --enable-win32-registry enable registry lookup (default)
1627 --enable-win32-registry=KEY
1628 use KEY instead of GCC version as the last portion
1629 of the registry key
1630 --enable-shared[=PKGS] build shared libraries [default=yes]
1631 --enable-static[=PKGS] build static libraries [default=yes]
1632 --enable-fast-install[=PKGS]
1633 optimize for fast installation [default=yes]
1634 --disable-libtool-lock avoid locking (might break parallel builds)
1635 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1636 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1637 --enable-gnu-indirect-function
1638 enable the use of the @gnu_indirect_function to
1639 glibc systems
1640 --enable-initfini-array use .init_array/.fini_array sections
1641 --enable-comdat enable COMDAT group support
1643 --enable-fix-cortex-a53-835769
1644 enable workaround for AArch64 Cortex-A53 erratum
1645 835769 by default
1646 --disable-fix-cortex-a53-835769
1647 disable workaround for AArch64 Cortex-A53 erratum
1648 835769 by default
1650 --enable-gnu-unique-object
1651 enable the use of the @gnu_unique_object ELF
1652 extension on glibc systems
1653 --enable-linker-build-id
1654 compiler will always pass --build-id to linker
1655 --enable-maintainer-mode
1656 enable make rules and dependencies not useful (and
1657 sometimes confusing) to the casual installer
1658 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1659 thrashing on the build machine
1660 --enable-version-specific-runtime-libs
1661 specify that runtime libraries should be installed
1662 in a compiler-specific directory
1663 --enable-plugin enable plugin support
1664 --enable-host-shared build host code as shared libraries
1665 --disable-libquadmath-support
1666 disable libquadmath support for Fortran
1668 Optional Packages:
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-build-libsubdir=DIR Directory where to find libraries for build system
1672 --with-local-prefix=DIR specifies directory to put local include
1673 --with-gxx-include-dir=DIR
1674 specifies directory to put g++ header files
1675 --with-cpp-install-dir=DIR
1676 install the user visible C preprocessor in DIR
1677 (relative to PREFIX) as well as PREFIX/bin
1678 --with-gnu-ld arrange to work with GNU ld
1679 --with-ld arrange to use the specified ld (full pathname)
1680 --with-demangler-in-ld try to use demangler in GNU ld
1681 --with-gnu-as arrange to work with GNU as
1682 --with-as arrange to use the specified as (full pathname)
1683 --with-stabs arrange to use stabs instead of host debug format
1684 --with-dwarf2 force the default debug format to be DWARF 2
1685 --with-native-system-header-dir=dir
1686 use dir as the directory to look for standard
1687 system header files in. Defaults to /usr/include.
1688 --with-build-sysroot=sysroot
1689 use sysroot as the system root during the build
1690 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1691 --with-specs=SPECS add SPECS to driver command-line processing
1692 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1693 --with-bugurl=URL Direct users to URL to report a bug
1694 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1695 --with-gnu-ld assume the C compiler uses GNU ld default=no
1696 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1697 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1698 --with-pic try to use only PIC/non-PIC objects [default=use
1699 both]
1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1701 --with-plugin-ld=[ARG] specify the plugin linker
1702 --with-glibc-version=M.N
1703 assume GCC used with glibc version M.N or later
1704 --with-long-double-128 use 128-bit long double by default
1705 --with-gc={page,zone} this option is not supported anymore. It used to
1706 choose the garbage collection mechanism to use with
1707 the compiler
1708 --with-system-zlib use installed libz
1709 --with-linker-hash-style={sysv,gnu,both}
1710 specify the linker hash style
1712 Some influential environment variables:
1713 CC C compiler command
1714 CFLAGS C compiler flags
1715 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1716 nonstandard directory <lib dir>
1717 LIBS libraries to pass to the linker, e.g. -l<library>
1718 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1719 you have headers in a nonstandard directory <include dir>
1720 CXX C++ compiler command
1721 CXXFLAGS C++ compiler flags
1722 CPP C preprocessor
1723 CXXCPP C++ preprocessor
1724 GMPLIBS How to link GMP
1725 GMPINC How to find GMP include files
1726 ISLLIBS How to link ISL
1727 ISLINC How to find ISL include files
1728 CLOOGLIBS How to link CLOOG
1729 CLOOGINC How to find CLOOG include files
1731 Use these variables to override the choices made by `configure' or to help
1732 it to find libraries and programs with nonstandard names/locations.
1734 Report bugs to the package provider.
1735 _ACEOF
1736 ac_status=$?
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1744 continue
1745 ac_builddir=.
1747 case "$ac_dir" in
1748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1756 esac ;;
1757 esac
1758 ac_abs_top_builddir=$ac_pwd
1759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir=$ac_top_build_prefix
1763 case $srcdir in
1764 .) # We are building in place.
1765 ac_srcdir=.
1766 ac_top_srcdir=$ac_top_builddir_sub
1767 ac_abs_top_srcdir=$ac_pwd ;;
1768 [\\/]* | ?:[\\/]* ) # Absolute name.
1769 ac_srcdir=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir=$srcdir
1771 ac_abs_top_srcdir=$srcdir ;;
1772 *) # Relative name.
1773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1776 esac
1777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1779 cd "$ac_dir" || { ac_status=$?; continue; }
1780 # Check for guested configure.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1785 echo &&
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1787 else
1788 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1789 fi || ac_status=$?
1790 cd "$ac_pwd" || { ac_status=$?; break; }
1791 done
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1796 cat <<\_ACEOF
1797 configure
1798 generated by GNU Autoconf 2.64
1800 Copyright (C) 2009 Free Software Foundation, Inc.
1801 This configure script is free software; the Free Software Foundation
1802 gives unlimited permission to copy, distribute and modify it.
1803 _ACEOF
1804 exit
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1811 # ac_fn_c_try_compile LINENO
1812 # --------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_compile ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=1
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1847 } # ac_fn_c_try_compile
1849 # ac_fn_cxx_try_compile LINENO
1850 # ----------------------------
1851 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_cxx_try_compile ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext
1856 if { { ac_try="$ac_compile"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_compile") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_cxx_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest.$ac_objext; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1885 } # ac_fn_cxx_try_compile
1887 # ac_fn_c_try_cpp LINENO
1888 # ----------------------
1889 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_cpp ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_cpp conftest.$ac_ext"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } >/dev/null && {
1909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1910 test ! -s conftest.err
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=1
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 return $ac_retval
1922 } # ac_fn_c_try_cpp
1924 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927 # the include files in INCLUDES and setting the cache variable VAR
1928 # accordingly.
1929 ac_fn_c_check_header_mongrel ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 $as_echo_n "(cached) " >&6
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 else
1942 # Is the header compilable?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944 $as_echo_n "checking $2 usability... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_header_compiler=yes
1952 else
1953 ac_header_compiler=no
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957 $as_echo "$ac_header_compiler" >&6; }
1959 # Is the header present?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961 $as_echo_n "checking $2 presence... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_cpp "$LINENO"; then :
1967 ac_header_preproc=yes
1968 else
1969 ac_header_preproc=no
1971 rm -f conftest.err conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973 $as_echo "$ac_header_preproc" >&6; }
1975 # So? What about this header?
1976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1977 yes:no: )
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 no:yes:* )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1987 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1991 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 esac
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 eval "$3=\$ac_header_compiler"
2003 eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 } # ac_fn_c_check_header_mongrel
2011 # ac_fn_c_try_run LINENO
2012 # ----------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014 # that executables *can* be run.
2015 ac_fn_c_try_run ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if { { ac_try="$ac_link"
2019 case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>&5
2026 ac_status=$?
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2029 { { case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_try") 2>&5
2036 ac_status=$?
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; }; }; then :
2039 ac_retval=0
2040 else
2041 $as_echo "$as_me: program exited with status $ac_status" >&5
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 ac_retval=$ac_status
2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 return $ac_retval
2051 } # ac_fn_c_try_run
2053 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2054 # -------------------------------------------------------
2055 # Tests whether HEADER exists and can be compiled using the include files in
2056 # INCLUDES, setting the cache variable VAR accordingly.
2057 ac_fn_c_check_header_compile ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2068 #include <$2>
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 eval "$3=yes"
2072 else
2073 eval "$3=no"
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 } # ac_fn_c_check_header_compile
2084 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085 # --------------------------------------------
2086 # Tries to find the compile-time value of EXPR in a program that includes
2087 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2088 # computed
2089 ac_fn_c_compute_int ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if test "$cross_compiling" = yes; then
2093 # Depending upon the size, compute the lo and hi bounds.
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main ()
2100 static int test_array [1 - 2 * !(($2) >= 0)];
2101 test_array [0] = 0
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=0 ac_mid=0
2109 while :; do
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2114 main ()
2116 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2117 test_array [0] = 0
2120 return 0;
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 ac_hi=$ac_mid; break
2125 else
2126 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2127 if test $ac_lo -le $ac_mid; then
2128 ac_lo= ac_hi=
2129 break
2131 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 done
2135 else
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2140 main ()
2142 static int test_array [1 - 2 * !(($2) < 0)];
2143 test_array [0] = 0
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=-1 ac_mid=-1
2151 while :; do
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 main ()
2158 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2159 test_array [0] = 0
2162 return 0;
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_lo=$ac_mid; break
2167 else
2168 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2169 if test $ac_mid -le $ac_hi; then
2170 ac_lo= ac_hi=
2171 break
2173 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 else
2178 ac_lo= ac_hi=
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 # Binary search between lo and hi bounds.
2184 while test "x$ac_lo" != "x$ac_hi"; do
2185 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2190 main ()
2192 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 test_array [0] = 0
2196 return 0;
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid
2201 else
2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 case $ac_lo in #((
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208 '') ac_retval=1 ;;
2209 esac
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2214 static long int longval () { return $2; }
2215 static unsigned long int ulongval () { return $2; }
2216 #include <stdio.h>
2217 #include <stdlib.h>
2219 main ()
2222 FILE *f = fopen ("conftest.val", "w");
2223 if (! f)
2224 return 1;
2225 if (($2) < 0)
2227 long int i = longval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%ld", i);
2232 else
2234 unsigned long int i = ulongval ();
2235 if (i != ($2))
2236 return 1;
2237 fprintf (f, "%lu", i);
2239 /* Do not output a trailing newline, as this causes \r\n confusion
2240 on some platforms. */
2241 return ferror (f) || fclose (f) != 0;
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_run "$LINENO"; then :
2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2249 else
2250 ac_retval=1
2252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253 conftest.$ac_objext conftest.beam conftest.$ac_ext
2254 rm -f conftest.val
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 return $ac_retval
2260 } # ac_fn_c_compute_int
2262 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2263 # -------------------------------------------
2264 # Tests whether TYPE exists after having included INCLUDES, setting cache
2265 # variable VAR accordingly.
2266 ac_fn_c_check_type ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 eval "$3=no"
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2279 main ()
2281 if (sizeof ($2))
2282 return 0;
2284 return 0;
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2292 main ()
2294 if (sizeof (($2)))
2295 return 0;
2297 return 0;
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2302 else
2303 eval "$3=yes"
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314 } # ac_fn_c_check_type
2316 # ac_fn_c_find_intX_t LINENO BITS VAR
2317 # -----------------------------------
2318 # Finds a signed integer type with width BITS, setting cache variable VAR
2319 # accordingly.
2320 ac_fn_c_find_intX_t ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2324 $as_echo_n "checking for int$2_t... " >&6; }
2325 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 eval "$3=no"
2329 for ac_type in int$2_t 'int' 'long int' \
2330 'long long int' 'short int' 'signed char'; do
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2333 $ac_includes_default
2335 main ()
2337 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2338 test_array [0] = 0
2341 return 0;
2343 _ACEOF
2344 if ac_fn_c_try_compile "$LINENO"; then :
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2347 $ac_includes_default
2349 main ()
2351 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2352 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2353 test_array [0] = 0
2356 return 0;
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2361 else
2362 case $ac_type in #(
2363 int$2_t) :
2364 eval "$3=yes" ;; #(
2365 *) :
2366 eval "$3=\$ac_type" ;;
2367 esac
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 eval as_val=\$$3
2373 if test "x$as_val" = x""no; then :
2375 else
2376 break
2378 done
2380 eval ac_res=\$$3
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385 } # ac_fn_c_find_intX_t
2387 # ac_fn_c_try_link LINENO
2388 # -----------------------
2389 # Try to link conftest.$ac_ext, and return whether this succeeded.
2390 ac_fn_c_try_link ()
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 rm -f conftest.$ac_objext conftest$ac_exeext
2394 if { { ac_try="$ac_link"
2395 case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401 (eval "$ac_link") 2>conftest.err
2402 ac_status=$?
2403 if test -s conftest.err; then
2404 grep -v '^ *+' conftest.err >conftest.er1
2405 cat conftest.er1 >&5
2406 mv -f conftest.er1 conftest.err
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; } && {
2410 test -z "$ac_c_werror_flag" ||
2411 test ! -s conftest.err
2412 } && test -s conftest$ac_exeext && {
2413 test "$cross_compiling" = yes ||
2414 $as_test_x conftest$ac_exeext
2415 }; then :
2416 ac_retval=0
2417 else
2418 $as_echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2421 ac_retval=1
2423 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2424 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2425 # interfere with the next link command; also delete a directory that is
2426 # left behind by Apple's compiler. We do this before executing the actions.
2427 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2429 return $ac_retval
2431 } # ac_fn_c_try_link
2433 # ac_fn_c_find_uintX_t LINENO BITS VAR
2434 # ------------------------------------
2435 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2436 # accordingly.
2437 ac_fn_c_find_uintX_t ()
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2441 $as_echo_n "checking for uint$2_t... " >&6; }
2442 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 eval "$3=no"
2446 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2447 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2450 $ac_includes_default
2452 main ()
2454 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2455 test_array [0] = 0
2458 return 0;
2460 _ACEOF
2461 if ac_fn_c_try_compile "$LINENO"; then :
2462 case $ac_type in #(
2463 uint$2_t) :
2464 eval "$3=yes" ;; #(
2465 *) :
2466 eval "$3=\$ac_type" ;;
2467 esac
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 eval as_val=\$$3
2471 if test "x$as_val" = x""no; then :
2473 else
2474 break
2476 done
2478 eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 } # ac_fn_c_find_uintX_t
2485 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2486 # ----------------------------------------------
2487 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2488 ac_fn_c_check_header_preproc ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 #include <$2>
2499 _ACEOF
2500 if ac_fn_c_try_cpp "$LINENO"; then :
2501 eval "$3=yes"
2502 else
2503 eval "$3=no"
2505 rm -f conftest.err conftest.$ac_ext
2507 eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 } # ac_fn_c_check_header_preproc
2514 # ac_fn_cxx_try_cpp LINENO
2515 # ------------------------
2516 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2517 ac_fn_cxx_try_cpp ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 if { { ac_try="$ac_cpp conftest.$ac_ext"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526 $as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2528 ac_status=$?
2529 if test -s conftest.err; then
2530 grep -v '^ *+' conftest.err >conftest.er1
2531 cat conftest.er1 >&5
2532 mv -f conftest.er1 conftest.err
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } >/dev/null && {
2536 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2537 test ! -s conftest.err
2538 }; then :
2539 ac_retval=0
2540 else
2541 $as_echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2544 ac_retval=1
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 return $ac_retval
2549 } # ac_fn_cxx_try_cpp
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 #include <$2>
2565 _ACEOF
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2571 rm -f conftest.err conftest.$ac_ext
2573 eval ac_res=\$$3
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_cxx_check_header_preproc
2580 # ac_fn_c_check_func LINENO FUNC VAR
2581 # ----------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_c_check_func ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2602 #ifdef __STDC__
2603 # include <limits.h>
2604 #else
2605 # include <assert.h>
2606 #endif
2608 #undef $2
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 char $2 ();
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2621 choke me
2622 #endif
2625 main ()
2627 return $2 ();
2629 return 0;
2631 _ACEOF
2632 if ac_fn_c_try_link "$LINENO"; then :
2633 eval "$3=yes"
2634 else
2635 eval "$3=no"
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2640 eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 } # ac_fn_c_check_func
2647 # ac_fn_cxx_try_link LINENO
2648 # -------------------------
2649 # Try to link conftest.$ac_ext, and return whether this succeeded.
2650 ac_fn_cxx_try_link ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 rm -f conftest.$ac_objext conftest$ac_exeext
2654 if { { ac_try="$ac_link"
2655 case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658 esac
2659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2660 $as_echo "$ac_try_echo"; } >&5
2661 (eval "$ac_link") 2>conftest.err
2662 ac_status=$?
2663 if test -s conftest.err; then
2664 grep -v '^ *+' conftest.err >conftest.er1
2665 cat conftest.er1 >&5
2666 mv -f conftest.er1 conftest.err
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; } && {
2670 test -z "$ac_cxx_werror_flag" ||
2671 test ! -s conftest.err
2672 } && test -s conftest$ac_exeext && {
2673 test "$cross_compiling" = yes ||
2674 $as_test_x conftest$ac_exeext
2675 }; then :
2676 ac_retval=0
2677 else
2678 $as_echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2681 ac_retval=1
2683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2685 # interfere with the next link command; also delete a directory that is
2686 # left behind by Apple's compiler. We do this before executing the actions.
2687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689 return $ac_retval
2691 } # ac_fn_cxx_try_link
2692 cat >config.log <<_ACEOF
2693 This file contains any messages produced by compilers while
2694 running configure, to aid debugging if configure makes a mistake.
2696 It was created by $as_me, which was
2697 generated by GNU Autoconf 2.64. Invocation command line was
2699 $ $0 $@
2701 _ACEOF
2702 exec 5>>config.log
2704 cat <<_ASUNAME
2705 ## --------- ##
2706 ## Platform. ##
2707 ## --------- ##
2709 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2710 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2711 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2712 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2713 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2715 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2716 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2718 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2719 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2720 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2721 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2722 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2723 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2724 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2726 _ASUNAME
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 $as_echo "PATH: $as_dir"
2734 done
2735 IFS=$as_save_IFS
2737 } >&5
2739 cat >&5 <<_ACEOF
2742 ## ----------- ##
2743 ## Core tests. ##
2744 ## ----------- ##
2746 _ACEOF
2749 # Keep a trace of the command line.
2750 # Strip out --no-create and --no-recursion so they do not pile up.
2751 # Strip out --silent because we don't want to record it for future runs.
2752 # Also quote any args containing shell meta-characters.
2753 # Make two passes to allow for proper duplicate-argument suppression.
2754 ac_configure_args=
2755 ac_configure_args0=
2756 ac_configure_args1=
2757 ac_must_keep_next=false
2758 for ac_pass in 1 2
2760 for ac_arg
2762 case $ac_arg in
2763 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2765 | -silent | --silent | --silen | --sile | --sil)
2766 continue ;;
2767 *\'*)
2768 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2769 esac
2770 case $ac_pass in
2771 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2773 as_fn_append ac_configure_args1 " '$ac_arg'"
2774 if test $ac_must_keep_next = true; then
2775 ac_must_keep_next=false # Got value, back to normal.
2776 else
2777 case $ac_arg in
2778 *=* | --config-cache | -C | -disable-* | --disable-* \
2779 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2780 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2781 | -with-* | --with-* | -without-* | --without-* | --x)
2782 case "$ac_configure_args0 " in
2783 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2784 esac
2786 -* ) ac_must_keep_next=true ;;
2787 esac
2789 as_fn_append ac_configure_args " '$ac_arg'"
2791 esac
2792 done
2793 done
2794 { ac_configure_args0=; unset ac_configure_args0;}
2795 { ac_configure_args1=; unset ac_configure_args1;}
2797 # When interrupted or exit'd, cleanup temporary files, and complete
2798 # config.log. We remove comments because anyway the quotes in there
2799 # would cause problems or look ugly.
2800 # WARNING: Use '\'' to represent an apostrophe within the trap.
2801 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2802 trap 'exit_status=$?
2803 # Save into config.log some information that might help in debugging.
2805 echo
2807 cat <<\_ASBOX
2808 ## ---------------- ##
2809 ## Cache variables. ##
2810 ## ---------------- ##
2811 _ASBOX
2812 echo
2813 # The following way of writing the cache mishandles newlines in values,
2815 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2816 eval ac_val=\$$ac_var
2817 case $ac_val in #(
2818 *${as_nl}*)
2819 case $ac_var in #(
2820 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2821 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2822 esac
2823 case $ac_var in #(
2824 _ | IFS | as_nl) ;; #(
2825 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2826 *) { eval $ac_var=; unset $ac_var;} ;;
2827 esac ;;
2828 esac
2829 done
2830 (set) 2>&1 |
2831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2832 *${as_nl}ac_space=\ *)
2833 sed -n \
2834 "s/'\''/'\''\\\\'\'''\''/g;
2835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2836 ;; #(
2838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2840 esac |
2841 sort
2843 echo
2845 cat <<\_ASBOX
2846 ## ----------------- ##
2847 ## Output variables. ##
2848 ## ----------------- ##
2849 _ASBOX
2850 echo
2851 for ac_var in $ac_subst_vars
2853 eval ac_val=\$$ac_var
2854 case $ac_val in
2855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2856 esac
2857 $as_echo "$ac_var='\''$ac_val'\''"
2858 done | sort
2859 echo
2861 if test -n "$ac_subst_files"; then
2862 cat <<\_ASBOX
2863 ## ------------------- ##
2864 ## File substitutions. ##
2865 ## ------------------- ##
2866 _ASBOX
2867 echo
2868 for ac_var in $ac_subst_files
2870 eval ac_val=\$$ac_var
2871 case $ac_val in
2872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2873 esac
2874 $as_echo "$ac_var='\''$ac_val'\''"
2875 done | sort
2876 echo
2879 if test -s confdefs.h; then
2880 cat <<\_ASBOX
2881 ## ----------- ##
2882 ## confdefs.h. ##
2883 ## ----------- ##
2884 _ASBOX
2885 echo
2886 cat confdefs.h
2887 echo
2889 test "$ac_signal" != 0 &&
2890 $as_echo "$as_me: caught signal $ac_signal"
2891 $as_echo "$as_me: exit $exit_status"
2892 } >&5
2893 rm -f core *.core core.conftest.* &&
2894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2895 exit $exit_status
2897 for ac_signal in 1 2 13 15; do
2898 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2899 done
2900 ac_signal=0
2902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2903 rm -f -r conftest* confdefs.h
2905 $as_echo "/* confdefs.h */" > confdefs.h
2907 # Predefined preprocessor variables.
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_NAME "$PACKAGE_NAME"
2911 _ACEOF
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2915 _ACEOF
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2919 _ACEOF
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_STRING "$PACKAGE_STRING"
2923 _ACEOF
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2927 _ACEOF
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_URL "$PACKAGE_URL"
2931 _ACEOF
2934 # Let the site file select an alternate cache file if it wants to.
2935 # Prefer an explicitly selected file to automatically selected ones.
2936 ac_site_file1=NONE
2937 ac_site_file2=NONE
2938 if test -n "$CONFIG_SITE"; then
2939 ac_site_file1=$CONFIG_SITE
2940 elif test "x$prefix" != xNONE; then
2941 ac_site_file1=$prefix/share/config.site
2942 ac_site_file2=$prefix/etc/config.site
2943 else
2944 ac_site_file1=$ac_default_prefix/share/config.site
2945 ac_site_file2=$ac_default_prefix/etc/config.site
2947 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2949 test "x$ac_site_file" = xNONE && continue
2950 if test -r "$ac_site_file"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2952 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2953 sed 's/^/| /' "$ac_site_file" >&5
2954 . "$ac_site_file"
2956 done
2958 if test -r "$cache_file"; then
2959 # Some versions of bash will fail to source /dev/null (special
2960 # files actually), so we avoid doing that.
2961 if test -f "$cache_file"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2963 $as_echo "$as_me: loading cache $cache_file" >&6;}
2964 case $cache_file in
2965 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2966 *) . "./$cache_file";;
2967 esac
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2971 $as_echo "$as_me: creating cache $cache_file" >&6;}
2972 >$cache_file
2975 # Check that the precious variables saved in the cache have kept the same
2976 # value.
2977 ac_cache_corrupted=false
2978 for ac_var in $ac_precious_vars; do
2979 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2980 eval ac_new_set=\$ac_env_${ac_var}_set
2981 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2982 eval ac_new_val=\$ac_env_${ac_var}_value
2983 case $ac_old_set,$ac_new_set in
2984 set,)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2986 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2987 ac_cache_corrupted=: ;;
2988 ,set)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2991 ac_cache_corrupted=: ;;
2992 ,);;
2994 if test "x$ac_old_val" != "x$ac_new_val"; then
2995 # differences in whitespace do not lead to failure.
2996 ac_old_val_w=`echo x $ac_old_val`
2997 ac_new_val_w=`echo x $ac_new_val`
2998 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3000 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3001 ac_cache_corrupted=:
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3004 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3005 eval $ac_var=\$ac_old_val
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3008 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3010 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3011 fi;;
3012 esac
3013 # Pass precious variables to config.status.
3014 if test "$ac_new_set" = set; then
3015 case $ac_new_val in
3016 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3017 *) ac_arg=$ac_var=$ac_new_val ;;
3018 esac
3019 case " $ac_configure_args " in
3020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3021 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3022 esac
3024 done
3025 if $ac_cache_corrupted; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3029 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3030 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3032 ## -------------------- ##
3033 ## Main body of script. ##
3034 ## -------------------- ##
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3050 gcc_version=`cat $srcdir/BASE-VER`
3052 # Determine the host, build, and target systems
3053 ac_aux_dir=
3054 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3055 for ac_t in install-sh install.sh shtool; do
3056 if test -f "$ac_dir/$ac_t"; then
3057 ac_aux_dir=$ac_dir
3058 ac_install_sh="$ac_aux_dir/$ac_t -c"
3059 break 2
3061 done
3062 done
3063 if test -z "$ac_aux_dir"; then
3064 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3067 # These three variables are undocumented and unsupported,
3068 # and are intended to be withdrawn in a future Autoconf release.
3069 # They can cause serious problems if a builder's source tree is in a directory
3070 # whose full name contains unusual characters.
3071 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3072 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3073 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3076 # Make sure we can run config.sub.
3077 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3078 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3081 $as_echo_n "checking build system type... " >&6; }
3082 if test "${ac_cv_build+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 ac_build_alias=$build_alias
3086 test "x$ac_build_alias" = x &&
3087 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3088 test "x$ac_build_alias" = x &&
3089 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3090 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3091 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3095 $as_echo "$ac_cv_build" >&6; }
3096 case $ac_cv_build in
3097 *-*-*) ;;
3098 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3099 esac
3100 build=$ac_cv_build
3101 ac_save_IFS=$IFS; IFS='-'
3102 set x $ac_cv_build
3103 shift
3104 build_cpu=$1
3105 build_vendor=$2
3106 shift; shift
3107 # Remember, the first character of IFS is used to create $*,
3108 # except with old shells:
3109 build_os=$*
3110 IFS=$ac_save_IFS
3111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3115 $as_echo_n "checking host system type... " >&6; }
3116 if test "${ac_cv_host+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test "x$host_alias" = x; then
3120 ac_cv_host=$ac_cv_build
3121 else
3122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3123 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3128 $as_echo "$ac_cv_host" >&6; }
3129 case $ac_cv_host in
3130 *-*-*) ;;
3131 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3132 esac
3133 host=$ac_cv_host
3134 ac_save_IFS=$IFS; IFS='-'
3135 set x $ac_cv_host
3136 shift
3137 host_cpu=$1
3138 host_vendor=$2
3139 shift; shift
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3142 host_os=$*
3143 IFS=$ac_save_IFS
3144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3148 $as_echo_n "checking target system type... " >&6; }
3149 if test "${ac_cv_target+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test "x$target_alias" = x; then
3153 ac_cv_target=$ac_cv_host
3154 else
3155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3156 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3161 $as_echo "$ac_cv_target" >&6; }
3162 case $ac_cv_target in
3163 *-*-*) ;;
3164 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3165 esac
3166 target=$ac_cv_target
3167 ac_save_IFS=$IFS; IFS='-'
3168 set x $ac_cv_target
3169 shift
3170 target_cpu=$1
3171 target_vendor=$2
3172 shift; shift
3173 # Remember, the first character of IFS is used to create $*,
3174 # except with old shells:
3175 target_os=$*
3176 IFS=$ac_save_IFS
3177 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3180 # The aliases save the names the user supplied, while $host etc.
3181 # will get canonicalized.
3182 test -n "$target_alias" &&
3183 test "$program_prefix$program_suffix$program_transform_name" = \
3184 NONENONEs,x,x, &&
3185 program_prefix=${target_alias}-
3187 # Determine the noncanonical target name, for directory use.
3188 case ${build_alias} in
3189 "") build_noncanonical=${build} ;;
3190 *) build_noncanonical=${build_alias} ;;
3191 esac
3193 case ${host_alias} in
3194 "") host_noncanonical=${build_noncanonical} ;;
3195 *) host_noncanonical=${host_alias} ;;
3196 esac
3198 case ${target_alias} in
3199 "") target_noncanonical=${host_noncanonical} ;;
3200 *) target_noncanonical=${target_alias} ;;
3201 esac
3206 # Determine the target- and build-specific subdirectories
3208 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3209 # have matching libraries, they should use host libraries: Makefile.tpl
3210 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3211 # However, they still use the build modules, because the corresponding
3212 # host modules (e.g. bison) are only built for the host when bootstrap
3213 # finishes. So:
3214 # - build_subdir is where we find build modules, and never changes.
3215 # - build_libsubdir is where we find build libraries, and can be overridden.
3217 # Prefix 'build-' so this never conflicts with target_subdir.
3218 build_subdir="build-${build_noncanonical}"
3220 # Check whether --with-build-libsubdir was given.
3221 if test "${with_build_libsubdir+set}" = set; then :
3222 withval=$with_build_libsubdir; build_libsubdir="$withval"
3223 else
3224 build_libsubdir="$build_subdir"
3227 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3228 if ( test $srcdir = . && test -d gcc ) \
3229 || test -d $srcdir/../host-${host_noncanonical}; then
3230 host_subdir="host-${host_noncanonical}"
3231 else
3232 host_subdir=.
3234 # No prefix.
3235 target_subdir=${target_noncanonical}
3238 # Set program_transform_name
3239 test "$program_prefix" != NONE &&
3240 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3241 # Use a double $ so make ignores it.
3242 test "$program_suffix" != NONE &&
3243 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3244 # Double any \ or $.
3245 # By default was `s,x,x', remove it if useless.
3246 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3247 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3250 # Check for bogus environment variables.
3251 # Test if LIBRARY_PATH contains the notation for the current directory
3252 # since this would lead to problems installing/building glibc.
3253 # LIBRARY_PATH contains the current directory if one of the following
3254 # is true:
3255 # - one of the terminals (":" and ";") is the first or last sign
3256 # - two terminals occur directly after each other
3257 # - the path contains an element with a dot in it
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3259 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3260 case ${LIBRARY_PATH} in
3261 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3262 library_path_setting="contains current directory"
3265 library_path_setting="ok"
3267 esac
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3269 $as_echo "$library_path_setting" >&6; }
3270 if test "$library_path_setting" != "ok"; then
3271 as_fn_error "
3272 *** LIBRARY_PATH shouldn't contain the current directory when
3273 *** building gcc. Please change the environment variable
3274 *** and run configure again." "$LINENO" 5
3277 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3278 # since this would lead to problems installing/building glibc.
3279 # GCC_EXEC_PREFIX contains the current directory if one of the following
3280 # is true:
3281 # - one of the terminals (":" and ";") is the first or last sign
3282 # - two terminals occur directly after each other
3283 # - the path contains an element with a dot in it
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3285 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3286 case ${GCC_EXEC_PREFIX} in
3287 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3288 gcc_exec_prefix_setting="contains current directory"
3291 gcc_exec_prefix_setting="ok"
3293 esac
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3295 $as_echo "$gcc_exec_prefix_setting" >&6; }
3296 if test "$gcc_exec_prefix_setting" != "ok"; then
3297 as_fn_error "
3298 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3299 *** building gcc. Please change the environment variable
3300 *** and run configure again." "$LINENO" 5
3303 # -----------
3304 # Directories
3305 # -----------
3307 # Specify the local prefix
3308 local_prefix=
3310 # Check whether --with-local-prefix was given.
3311 if test "${with_local_prefix+set}" = set; then :
3312 withval=$with_local_prefix; case "${withval}" in
3313 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3314 no) ;;
3315 *) local_prefix=$with_local_prefix ;;
3316 esac
3320 # Default local prefix if it is empty
3321 if test x$local_prefix = x; then
3322 local_prefix=/usr/local
3325 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3326 # passed in by the toplevel make and thus we'd get different behavior
3327 # depending on where we built the sources.
3328 gcc_gxx_include_dir=
3329 # Specify the g++ header file directory
3331 # Check whether --with-gxx-include-dir was given.
3332 if test "${with_gxx_include_dir+set}" = set; then :
3333 withval=$with_gxx_include_dir; case "${withval}" in
3334 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3335 no) ;;
3336 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3337 esac
3341 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3342 if test x${gcc_gxx_include_dir} = x; then
3343 if test x${enable_version_specific_runtime_libs} = xyes; then
3344 gcc_gxx_include_dir='${libsubdir}/include/c++'
3345 else
3346 libstdcxx_incdir='include/c++/$(version)'
3347 if test x$host != x$target; then
3348 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3350 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3354 gcc_gxx_include_dir_add_sysroot=0
3355 if test "${with_sysroot+set}" = set; then
3356 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3357 if test "${gcc_gxx_without_sysroot}"; then
3358 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3359 gcc_gxx_include_dir_add_sysroot=1
3364 # Check whether --with-cpp_install_dir was given.
3365 if test "${with_cpp_install_dir+set}" = set; then :
3366 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3367 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3368 elif test x$withval != xno; then
3369 cpp_install_dir=$withval
3374 # We would like to our source tree to be readonly. However when releases or
3375 # pre-releases are generated, the flex/bison generated files as well as the
3376 # various formats of manuals need to be included along with the rest of the
3377 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3378 # just that.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3381 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3382 # Check whether --enable-generated-files-in-srcdir was given.
3383 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3384 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3385 else
3386 generated_files_in_srcdir=no
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3391 $as_echo "$generated_files_in_srcdir" >&6; }
3393 if test "$generated_files_in_srcdir" = "yes"; then
3394 GENINSRC=''
3395 else
3396 GENINSRC='#'
3400 # -------------------
3401 # Find default linker
3402 # -------------------
3404 # With GNU ld
3406 # Check whether --with-gnu-ld was given.
3407 if test "${with_gnu_ld+set}" = set; then :
3408 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3409 else
3410 gnu_ld_flag=no
3414 # With pre-defined ld
3416 # Check whether --with-ld was given.
3417 if test "${with_ld+set}" = set; then :
3418 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3421 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3422 if test ! -x "$DEFAULT_LINKER"; then
3423 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3424 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3425 gnu_ld_flag=yes
3428 cat >>confdefs.h <<_ACEOF
3429 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3430 _ACEOF
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3435 $as_echo_n "checking whether a default linker was specified... " >&6; }
3436 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3437 if test x"$gnu_ld_flag" = x"no"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3439 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3440 else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3442 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3449 # With demangler in GNU ld
3451 # Check whether --with-demangler-in-ld was given.
3452 if test "${with_demangler_in_ld+set}" = set; then :
3453 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3454 else
3455 demangler_in_ld=yes
3459 # ----------------------
3460 # Find default assembler
3461 # ----------------------
3463 # With GNU as
3465 # Check whether --with-gnu-as was given.
3466 if test "${with_gnu_as+set}" = set; then :
3467 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3468 else
3469 gas_flag=no
3474 # Check whether --with-as was given.
3475 if test "${with_as+set}" = set; then :
3476 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3479 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3480 if test ! -x "$DEFAULT_ASSEMBLER"; then
3481 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3482 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3483 gas_flag=yes
3486 cat >>confdefs.h <<_ACEOF
3487 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3488 _ACEOF
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3493 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3494 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3495 if test x"$gas_flag" = x"no"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3497 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3500 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3507 # ---------------
3508 # Find C compiler
3509 # ---------------
3511 # If a non-executable a.out is present (e.g. created by GNU as above even if
3512 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3513 # file, even when creating an executable, so an execution test fails.
3514 # Remove possible default executable files to avoid this.
3516 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3517 # Autoconf includes it.
3518 rm -f a.out a.exe b.out
3520 # Find the native compiler
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 if test -n "$ac_tool_prefix"; then
3527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if test "${ac_cv_prog_CC+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 if test -n "$CC"; then
3535 ac_cv_prog_CC="$CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 break 2
3548 done
3549 done
3550 IFS=$as_save_IFS
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 $as_echo "$CC" >&6; }
3558 else
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3565 if test -z "$ac_cv_prog_CC"; then
3566 ac_ct_CC=$CC
3567 # Extract the first word of "gcc", so it can be a program name with args.
3568 set dummy gcc; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 if test -n "$ac_ct_CC"; then
3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_ac_ct_CC="gcc"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3588 done
3589 done
3590 IFS=$as_save_IFS
3594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595 if test -n "$ac_ct_CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597 $as_echo "$ac_ct_CC" >&6; }
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3603 if test "x$ac_ct_CC" = x; then
3604 CC=""
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612 CC=$ac_ct_CC
3614 else
3615 CC="$ac_cv_prog_CC"
3618 if test -z "$CC"; then
3619 if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}cc; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if test "${ac_cv_prog_CC+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 if test -n "$CC"; then
3628 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_CC="${ac_tool_prefix}cc"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3641 done
3642 done
3643 IFS=$as_save_IFS
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3659 if test -z "$CC"; then
3660 # Extract the first word of "cc", so it can be a program name with args.
3661 set dummy cc; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_prog_CC+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3669 else
3670 ac_prog_rejected=no
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3679 ac_prog_rejected=yes
3680 continue
3682 ac_cv_prog_CC="cc"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3686 done
3687 done
3688 IFS=$as_save_IFS
3690 if test $ac_prog_rejected = yes; then
3691 # We found a bogon in the path, so make sure we never use it.
3692 set dummy $ac_cv_prog_CC
3693 shift
3694 if test $# != 0; then
3695 # We chose a different compiler from the bogus one.
3696 # However, it has the same basename, so the bogon will be chosen
3697 # first if we set CC to just the basename; use the full file name.
3698 shift
3699 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3704 CC=$ac_cv_prog_CC
3705 if test -n "$CC"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3708 else
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3715 if test -z "$CC"; then
3716 if test -n "$ac_tool_prefix"; then
3717 for ac_prog in cl.exe
3719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3742 IFS=$as_save_IFS
3746 CC=$ac_cv_prog_CC
3747 if test -n "$CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3750 else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3756 test -n "$CC" && break
3757 done
3759 if test -z "$CC"; then
3760 ac_ct_CC=$CC
3761 for ac_prog in cl.exe
3763 # Extract the first word of "$ac_prog", so it can be a program name with args.
3764 set dummy $ac_prog; ac_word=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 if test -n "$ac_ct_CC"; then
3771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780 ac_cv_prog_ac_ct_CC="$ac_prog"
3781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3784 done
3785 done
3786 IFS=$as_save_IFS
3790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791 if test -n "$ac_ct_CC"; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793 $as_echo "$ac_ct_CC" >&6; }
3794 else
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3800 test -n "$ac_ct_CC" && break
3801 done
3803 if test "x$ac_ct_CC" = x; then
3804 CC=""
3805 else
3806 case $cross_compiling:$ac_tool_warned in
3807 yes:)
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810 ac_tool_warned=yes ;;
3811 esac
3812 CC=$ac_ct_CC
3819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error "no acceptable C compiler found in \$PATH
3822 See \`config.log' for more details." "$LINENO" 5; }
3824 # Provide some information about the compiler.
3825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3826 set X $ac_compile
3827 ac_compiler=$2
3828 for ac_option in --version -v -V -qversion; do
3829 { { ac_try="$ac_compiler $ac_option >&5"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3837 ac_status=$?
3838 if test -s conftest.err; then
3839 sed '10a\
3840 ... rest of stderr output deleted ...
3841 10q' conftest.err >conftest.er1
3842 cat conftest.er1 >&5
3843 rm -f conftest.er1 conftest.err
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }
3847 done
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3853 main ()
3857 return 0;
3859 _ACEOF
3860 ac_clean_files_save=$ac_clean_files
3861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3862 # Try to create an executable without -o first, disregard a.out.
3863 # It will help us diagnose broken compilers, and finding out an intuition
3864 # of exeext.
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3866 $as_echo_n "checking for C compiler default output file name... " >&6; }
3867 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3869 # The possible output files:
3870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3872 ac_rmfiles=
3873 for ac_file in $ac_files
3875 case $ac_file in
3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3877 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3878 esac
3879 done
3880 rm -f $ac_rmfiles
3882 if { { ac_try="$ac_link_default"
3883 case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_link_default") 2>&5
3890 ac_status=$?
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; then :
3893 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3895 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3896 # so that the user can short-circuit this test for compilers unknown to
3897 # Autoconf.
3898 for ac_file in $ac_files ''
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3904 [ab].out )
3905 # We found the default executable, but exeext='' is most
3906 # certainly right.
3907 break;;
3908 *.* )
3909 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3910 then :; else
3911 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3913 # We set ac_cv_exeext here because the later test for it is not
3914 # safe: cross compilers may not add the suffix if given an `-o'
3915 # argument, so we may need to know it at that point already.
3916 # Even if this section looks crufty: it has the advantage of
3917 # actually working.
3918 break;;
3920 break;;
3921 esac
3922 done
3923 test "$ac_cv_exeext" = no && ac_cv_exeext=
3925 else
3926 ac_file=''
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3929 $as_echo "$ac_file" >&6; }
3930 if test -z "$ac_file"; then :
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 { as_fn_set_status 77
3937 as_fn_error "C compiler cannot create executables
3938 See \`config.log' for more details." "$LINENO" 5; }; }
3940 ac_exeext=$ac_cv_exeext
3942 # Check that the compiler produces executables we can run. If not, either
3943 # the compiler is broken, or we cross compile.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3945 $as_echo_n "checking whether the C compiler works... " >&6; }
3946 # If not cross compiling, check that we can run a simple program.
3947 if test "$cross_compiling" != yes; then
3948 if { ac_try='./$ac_file'
3949 { { case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_try") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; }; then
3959 cross_compiling=no
3960 else
3961 if test "$cross_compiling" = maybe; then
3962 cross_compiling=yes
3963 else
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error "cannot run C compiled programs.
3967 If you meant to cross compile, use \`--host'.
3968 See \`config.log' for more details." "$LINENO" 5; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973 $as_echo "yes" >&6; }
3975 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3976 ac_clean_files=$ac_clean_files_save
3977 # Check that the compiler produces executables we can run. If not, either
3978 # the compiler is broken, or we cross compile.
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3980 $as_echo_n "checking whether we are cross compiling... " >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3982 $as_echo "$cross_compiling" >&6; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3985 $as_echo_n "checking for suffix of executables... " >&6; }
3986 if { { ac_try="$ac_link"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_link") 2>&5
3994 ac_status=$?
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; then :
3997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3999 # work properly (i.e., refer to `conftest.exe'), while it won't with
4000 # `rm'.
4001 for ac_file in conftest.exe conftest conftest.*; do
4002 test -f "$ac_file" || continue
4003 case $ac_file in
4004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4006 break;;
4007 * ) break;;
4008 esac
4009 done
4010 else
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error "cannot compute suffix of executables: cannot compile and link
4014 See \`config.log' for more details." "$LINENO" 5; }
4016 rm -f conftest$ac_cv_exeext
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4018 $as_echo "$ac_cv_exeext" >&6; }
4020 rm -f conftest.$ac_ext
4021 EXEEXT=$ac_cv_exeext
4022 ac_exeext=$EXEEXT
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4024 $as_echo_n "checking for suffix of object files... " >&6; }
4025 if test "${ac_cv_objext+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4032 main ()
4036 return 0;
4038 _ACEOF
4039 rm -f conftest.o conftest.obj
4040 if { { ac_try="$ac_compile"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_compile") 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; then :
4051 for ac_file in conftest.o conftest.obj conftest.*; do
4052 test -f "$ac_file" || continue;
4053 case $ac_file in
4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4056 break;;
4057 esac
4058 done
4059 else
4060 $as_echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error "cannot compute suffix of object files: cannot compile
4066 See \`config.log' for more details." "$LINENO" 5; }
4068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4071 $as_echo "$ac_cv_objext" >&6; }
4072 OBJEXT=$ac_cv_objext
4073 ac_objext=$OBJEXT
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4075 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4076 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4083 main ()
4085 #ifndef __GNUC__
4086 choke me
4087 #endif
4090 return 0;
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_compiler_gnu=yes
4095 else
4096 ac_compiler_gnu=no
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4103 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4104 if test $ac_compiler_gnu = yes; then
4105 GCC=yes
4106 else
4107 GCC=
4109 ac_test_CFLAGS=${CFLAGS+set}
4110 ac_save_CFLAGS=$CFLAGS
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4112 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4113 if test "${ac_cv_prog_cc_g+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 ac_save_c_werror_flag=$ac_c_werror_flag
4117 ac_c_werror_flag=yes
4118 ac_cv_prog_cc_g=no
4119 CFLAGS="-g"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4124 main ()
4128 return 0;
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_cv_prog_cc_g=yes
4133 else
4134 CFLAGS=""
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4139 main ()
4143 return 0;
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4148 else
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4150 CFLAGS="-g"
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4155 main ()
4159 return 0;
4161 _ACEOF
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_g=yes
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_c_werror_flag=$ac_save_c_werror_flag
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4173 $as_echo "$ac_cv_prog_cc_g" >&6; }
4174 if test "$ac_test_CFLAGS" = set; then
4175 CFLAGS=$ac_save_CFLAGS
4176 elif test $ac_cv_prog_cc_g = yes; then
4177 if test "$GCC" = yes; then
4178 CFLAGS="-g -O2"
4179 else
4180 CFLAGS="-g"
4182 else
4183 if test "$GCC" = yes; then
4184 CFLAGS="-O2"
4185 else
4186 CFLAGS=
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4190 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4191 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 ac_cv_prog_cc_c89=no
4195 ac_save_CC=$CC
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <stdarg.h>
4199 #include <stdio.h>
4200 #include <sys/types.h>
4201 #include <sys/stat.h>
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4206 char **p;
4207 int i;
4209 return p[i];
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4213 char *s;
4214 va_list v;
4215 va_start (v,p);
4216 s = g (p, va_arg (v,int));
4217 va_end (v);
4218 return s;
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4222 function prototypes and stuff, but not '\xHH' hex character constants.
4223 These don't provoke an error unfortunately, instead are silently treated
4224 as 'x'. The following induces an error, until -std is added to get
4225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4226 array size at least. It's necessary to write '\x00'==0 to get something
4227 that's true only with -std. */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231 inside strings and character constants. */
4232 #define FOO(x) 'x'
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4239 int argc;
4240 char **argv;
4242 main ()
4244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4246 return 0;
4248 _ACEOF
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_prog_cc_c89=$ac_arg
4256 rm -f core conftest.err conftest.$ac_objext
4257 test "x$ac_cv_prog_cc_c89" != "xno" && break
4258 done
4259 rm -f conftest.$ac_ext
4260 CC=$ac_save_CC
4263 # AC_CACHE_VAL
4264 case "x$ac_cv_prog_cc_c89" in
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4267 $as_echo "none needed" >&6; } ;;
4268 xno)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 $as_echo "unsupported" >&6; } ;;
4272 CC="$CC $ac_cv_prog_cc_c89"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4274 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4275 esac
4276 if test "x$ac_cv_prog_cc_c89" != xno; then :
4280 ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286 ac_ext=cpp
4287 ac_cpp='$CXXCPP $CPPFLAGS'
4288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4291 if test -z "$CXX"; then
4292 if test -n "$CCC"; then
4293 CXX=$CCC
4294 else
4295 if test -n "$ac_tool_prefix"; then
4296 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if test "${ac_cv_prog_CXX+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -n "$CXX"; then
4306 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 break 2
4319 done
4320 done
4321 IFS=$as_save_IFS
4325 CXX=$ac_cv_prog_CXX
4326 if test -n "$CXX"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4328 $as_echo "$CXX" >&6; }
4329 else
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4335 test -n "$CXX" && break
4336 done
4338 if test -z "$CXX"; then
4339 ac_ct_CXX=$CXX
4340 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4342 # Extract the first word of "$ac_prog", so it can be a program name with args.
4343 set dummy $ac_prog; ac_word=$2
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test -n "$ac_ct_CXX"; then
4350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_CXX="$ac_prog"
4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4369 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4370 if test -n "$ac_ct_CXX"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4372 $as_echo "$ac_ct_CXX" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4379 test -n "$ac_ct_CXX" && break
4380 done
4382 if test "x$ac_ct_CXX" = x; then
4383 CXX="g++"
4384 else
4385 case $cross_compiling:$ac_tool_warned in
4386 yes:)
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4389 ac_tool_warned=yes ;;
4390 esac
4391 CXX=$ac_ct_CXX
4397 # Provide some information about the compiler.
4398 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4399 set X $ac_compile
4400 ac_compiler=$2
4401 for ac_option in --version -v -V -qversion; do
4402 { { ac_try="$ac_compiler $ac_option >&5"
4403 case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4410 ac_status=$?
4411 if test -s conftest.err; then
4412 sed '10a\
4413 ... rest of stderr output deleted ...
4414 10q' conftest.err >conftest.er1
4415 cat conftest.er1 >&5
4416 rm -f conftest.er1 conftest.err
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }
4420 done
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4423 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4424 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4431 main ()
4433 #ifndef __GNUC__
4434 choke me
4435 #endif
4438 return 0;
4440 _ACEOF
4441 if ac_fn_cxx_try_compile "$LINENO"; then :
4442 ac_compiler_gnu=yes
4443 else
4444 ac_compiler_gnu=no
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4451 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4452 if test $ac_compiler_gnu = yes; then
4453 GXX=yes
4454 else
4455 GXX=
4457 ac_test_CXXFLAGS=${CXXFLAGS+set}
4458 ac_save_CXXFLAGS=$CXXFLAGS
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4460 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4461 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4465 ac_cxx_werror_flag=yes
4466 ac_cv_prog_cxx_g=no
4467 CXXFLAGS="-g"
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4472 main ()
4476 return 0;
4478 _ACEOF
4479 if ac_fn_cxx_try_compile "$LINENO"; then :
4480 ac_cv_prog_cxx_g=yes
4481 else
4482 CXXFLAGS=""
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4487 main ()
4491 return 0;
4493 _ACEOF
4494 if ac_fn_cxx_try_compile "$LINENO"; then :
4496 else
4497 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4498 CXXFLAGS="-g"
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4503 main ()
4507 return 0;
4509 _ACEOF
4510 if ac_fn_cxx_try_compile "$LINENO"; then :
4511 ac_cv_prog_cxx_g=yes
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4521 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4522 if test "$ac_test_CXXFLAGS" = set; then
4523 CXXFLAGS=$ac_save_CXXFLAGS
4524 elif test $ac_cv_prog_cxx_g = yes; then
4525 if test "$GXX" = yes; then
4526 CXXFLAGS="-g -O2"
4527 else
4528 CXXFLAGS="-g"
4530 else
4531 if test "$GXX" = yes; then
4532 CXXFLAGS="-O2"
4533 else
4534 CXXFLAGS=
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 if test -n "$ac_tool_prefix"; then
4547 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4548 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$GNATBIND"; then
4555 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 GNATBIND=$ac_cv_prog_GNATBIND
4575 if test -n "$GNATBIND"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4577 $as_echo "$GNATBIND" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4585 if test -z "$ac_cv_prog_GNATBIND"; then
4586 ac_ct_GNATBIND=$GNATBIND
4587 # Extract the first word of "gnatbind", so it can be a program name with args.
4588 set dummy gnatbind; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$ac_ct_GNATBIND"; then
4595 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4608 done
4609 done
4610 IFS=$as_save_IFS
4614 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4615 if test -n "$ac_ct_GNATBIND"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4617 $as_echo "$ac_ct_GNATBIND" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4623 if test "x$ac_ct_GNATBIND" = x; then
4624 GNATBIND="no"
4625 else
4626 case $cross_compiling:$ac_tool_warned in
4627 yes:)
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4631 esac
4632 GNATBIND=$ac_ct_GNATBIND
4634 else
4635 GNATBIND="$ac_cv_prog_GNATBIND"
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$GNATMAKE"; then
4647 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 GNATMAKE=$ac_cv_prog_GNATMAKE
4667 if test -n "$GNATMAKE"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4669 $as_echo "$GNATMAKE" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4677 if test -z "$ac_cv_prog_GNATMAKE"; then
4678 ac_ct_GNATMAKE=$GNATMAKE
4679 # Extract the first word of "gnatmake", so it can be a program name with args.
4680 set dummy gnatmake; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test -n "$ac_ct_GNATMAKE"; then
4687 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4700 done
4701 done
4702 IFS=$as_save_IFS
4706 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4707 if test -n "$ac_ct_GNATMAKE"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4709 $as_echo "$ac_ct_GNATMAKE" >&6; }
4710 else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4715 if test "x$ac_ct_GNATMAKE" = x; then
4716 GNATMAKE="no"
4717 else
4718 case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724 GNATMAKE=$ac_ct_GNATMAKE
4726 else
4727 GNATMAKE="$ac_cv_prog_GNATMAKE"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4731 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4732 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 cat >conftest.adb <<EOF
4736 procedure conftest is begin null; end conftest;
4738 acx_cv_cc_gcc_supports_ada=no
4739 # There is a bug in old released versions of GCC which causes the
4740 # driver to exit successfully when the appropriate language module
4741 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4742 # Therefore we must check for the error message as well as an
4743 # unsuccessful exit.
4744 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4745 # given a .adb file, but produce no object file. So we must check
4746 # if an object file was really produced to guard against this.
4747 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4748 if test x"$errors" = x && test -f conftest.$ac_objext; then
4749 acx_cv_cc_gcc_supports_ada=yes
4751 rm -f conftest.*
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4754 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4756 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4757 have_gnat=yes
4758 else
4759 have_gnat=no
4763 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4764 # optimizations to be activated explicitly by the toplevel.
4765 case "$CC" in
4766 */prev-gcc/xgcc*) ;;
4767 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4768 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4769 esac
4773 # Determine PICFLAG for target gnatlib.
4778 case "${target}" in
4779 # PIC is the default on some targets or must not be used.
4780 *-*-darwin*)
4781 # PIC is the default on this platform
4782 # Common symbols not allowed in MH_DYLIB files
4783 PICFLAG_FOR_TARGET=-fno-common
4785 alpha*-dec-osf5*)
4786 # PIC is the default.
4788 hppa*64*-*-hpux*)
4789 # PIC is the default for 64-bit PA HP-UX.
4791 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4793 i[34567]86-*-mingw* | x86_64-*-mingw*)
4795 i[34567]86-*-interix[3-9]*)
4796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4797 # Instead, we relocate shared libraries at runtime.
4799 i[34567]86-*-nto-qnx*)
4800 # QNX uses GNU C++, but need to define -shared option too, otherwise
4801 # it will coredump.
4802 PICFLAG_FOR_TARGET='-fPIC -shared'
4804 i[34567]86-pc-msdosdjgpp*)
4805 # DJGPP does not support shared libraries at all.
4807 ia64*-*-hpux*)
4808 # On IA64 HP-UX, PIC is the default but the pic flag
4809 # sets the default TLS model and affects inlining.
4810 PICFLAG_FOR_TARGET=-fPIC
4812 mips-sgi-irix6*)
4813 # PIC is the default.
4815 rs6000-ibm-aix* | powerpc-ibm-aix*)
4816 # All AIX code is PIC.
4819 # Some targets support both -fPIC and -fpic, but prefer the latter.
4820 # FIXME: Why?
4821 i[34567]86-*-* | x86_64-*-*)
4822 PICFLAG_FOR_TARGET=-fpic
4824 # FIXME: Override -fPIC default in libgcc only?
4825 sh-*-linux* | sh[2346lbe]*-*-linux*)
4826 PICFLAG_FOR_TARGET=-fpic
4828 # FIXME: Simplify to sh*-*-netbsd*?
4829 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4830 sh64-*-netbsd* | sh64l*-*-netbsd*)
4831 PICFLAG_FOR_TARGET=-fpic
4833 # Default to -fPIC unless specified otherwise.
4835 PICFLAG_FOR_TARGET=-fPIC
4837 esac
4839 # If the user explicitly uses -fpic/-fPIC, keep that.
4840 case "${CFLAGS_FOR_TARGET}" in
4841 *-fpic*)
4842 PICFLAG_FOR_TARGET=-fpic
4844 *-fPIC*)
4845 PICFLAG_FOR_TARGET=-fPIC
4847 esac
4851 # -------------------------
4852 # Check C compiler features
4853 # -------------------------
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4863 # On Suns, sometimes $CPP names a directory.
4864 if test -n "$CPP" && test -d "$CPP"; then
4865 CPP=
4867 if test -z "$CPP"; then
4868 if test "${ac_cv_prog_CPP+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 # Double quotes because CPP needs to be expanded
4872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4874 ac_preproc_ok=false
4875 for ac_c_preproc_warn_flag in '' yes
4877 # Use a header file that comes with gcc, so configuring glibc
4878 # with a fresh cross-compiler works.
4879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4880 # <limits.h> exists even on freestanding compilers.
4881 # On the NeXT, cc -E runs the code through the compiler's parser,
4882 # not just through cpp. "Syntax error" is here to catch this case.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #ifdef __STDC__
4886 # include <limits.h>
4887 #else
4888 # include <assert.h>
4889 #endif
4890 Syntax error
4891 _ACEOF
4892 if ac_fn_c_try_cpp "$LINENO"; then :
4894 else
4895 # Broken: fails on valid input.
4896 continue
4898 rm -f conftest.err conftest.$ac_ext
4900 # OK, works on sane cases. Now check whether nonexistent headers
4901 # can be detected and how.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <ac_nonexistent.h>
4905 _ACEOF
4906 if ac_fn_c_try_cpp "$LINENO"; then :
4907 # Broken: success on invalid input.
4908 continue
4909 else
4910 # Passes both tests.
4911 ac_preproc_ok=:
4912 break
4914 rm -f conftest.err conftest.$ac_ext
4916 done
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.$ac_ext
4919 if $ac_preproc_ok; then :
4920 break
4923 done
4924 ac_cv_prog_CPP=$CPP
4927 CPP=$ac_cv_prog_CPP
4928 else
4929 ac_cv_prog_CPP=$CPP
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4932 $as_echo "$CPP" >&6; }
4933 ac_preproc_ok=false
4934 for ac_c_preproc_warn_flag in '' yes
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #ifdef __STDC__
4945 # include <limits.h>
4946 #else
4947 # include <assert.h>
4948 #endif
4949 Syntax error
4950 _ACEOF
4951 if ac_fn_c_try_cpp "$LINENO"; then :
4953 else
4954 # Broken: fails on valid input.
4955 continue
4957 rm -f conftest.err conftest.$ac_ext
4959 # OK, works on sane cases. Now check whether nonexistent headers
4960 # can be detected and how.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <ac_nonexistent.h>
4964 _ACEOF
4965 if ac_fn_c_try_cpp "$LINENO"; then :
4966 # Broken: success on invalid input.
4967 continue
4968 else
4969 # Passes both tests.
4970 ac_preproc_ok=:
4971 break
4973 rm -f conftest.err conftest.$ac_ext
4975 done
4976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4977 rm -f conftest.err conftest.$ac_ext
4978 if $ac_preproc_ok; then :
4980 else
4981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4983 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4984 See \`config.log' for more details." "$LINENO" 5; }
4987 ac_ext=c
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4996 if test "${ac_cv_path_GREP+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if test -z "$GREP"; then
5000 ac_path_GREP_found=false
5001 # Loop through the user's path and test for each of PROGNAME-LIST
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_prog in grep ggrep; do
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5011 # Check for GNU ac_path_GREP and select it if it is found.
5012 # Check for GNU $ac_path_GREP
5013 case `"$ac_path_GREP" --version 2>&1` in
5014 *GNU*)
5015 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5017 ac_count=0
5018 $as_echo_n 0123456789 >"conftest.in"
5019 while :
5021 cat "conftest.in" "conftest.in" >"conftest.tmp"
5022 mv "conftest.tmp" "conftest.in"
5023 cp "conftest.in" "conftest.nl"
5024 $as_echo 'GREP' >> "conftest.nl"
5025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5027 as_fn_arith $ac_count + 1 && ac_count=$as_val
5028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5029 # Best one so far, save it but keep looking for a better one
5030 ac_cv_path_GREP="$ac_path_GREP"
5031 ac_path_GREP_max=$ac_count
5033 # 10*(2^10) chars as input seems more than enough
5034 test $ac_count -gt 10 && break
5035 done
5036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5037 esac
5039 $ac_path_GREP_found && break 3
5040 done
5041 done
5042 done
5043 IFS=$as_save_IFS
5044 if test -z "$ac_cv_path_GREP"; then
5045 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5047 else
5048 ac_cv_path_GREP=$GREP
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5053 $as_echo "$ac_cv_path_GREP" >&6; }
5054 GREP="$ac_cv_path_GREP"
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5058 $as_echo_n "checking for egrep... " >&6; }
5059 if test "${ac_cv_path_EGREP+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5063 then ac_cv_path_EGREP="$GREP -E"
5064 else
5065 if test -z "$EGREP"; then
5066 ac_path_EGREP_found=false
5067 # Loop through the user's path and test for each of PROGNAME-LIST
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_prog in egrep; do
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5077 # Check for GNU ac_path_EGREP and select it if it is found.
5078 # Check for GNU $ac_path_EGREP
5079 case `"$ac_path_EGREP" --version 2>&1` in
5080 *GNU*)
5081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5083 ac_count=0
5084 $as_echo_n 0123456789 >"conftest.in"
5085 while :
5087 cat "conftest.in" "conftest.in" >"conftest.tmp"
5088 mv "conftest.tmp" "conftest.in"
5089 cp "conftest.in" "conftest.nl"
5090 $as_echo 'EGREP' >> "conftest.nl"
5091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5093 as_fn_arith $ac_count + 1 && ac_count=$as_val
5094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5095 # Best one so far, save it but keep looking for a better one
5096 ac_cv_path_EGREP="$ac_path_EGREP"
5097 ac_path_EGREP_max=$ac_count
5099 # 10*(2^10) chars as input seems more than enough
5100 test $ac_count -gt 10 && break
5101 done
5102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5103 esac
5105 $ac_path_EGREP_found && break 3
5106 done
5107 done
5108 done
5109 IFS=$as_save_IFS
5110 if test -z "$ac_cv_path_EGREP"; then
5111 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5113 else
5114 ac_cv_path_EGREP=$EGREP
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5120 $as_echo "$ac_cv_path_EGREP" >&6; }
5121 EGREP="$ac_cv_path_EGREP"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5125 $as_echo_n "checking for ANSI C header files... " >&6; }
5126 if test "${ac_cv_header_stdc+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5131 #include <stdlib.h>
5132 #include <stdarg.h>
5133 #include <string.h>
5134 #include <float.h>
5137 main ()
5141 return 0;
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"; then :
5145 ac_cv_header_stdc=yes
5146 else
5147 ac_cv_header_stdc=no
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 if test $ac_cv_header_stdc = yes; then
5152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <string.h>
5157 _ACEOF
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "memchr" >/dev/null 2>&1; then :
5161 else
5162 ac_cv_header_stdc=no
5164 rm -f conftest*
5168 if test $ac_cv_header_stdc = yes; then
5169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <stdlib.h>
5174 _ACEOF
5175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5176 $EGREP "free" >/dev/null 2>&1; then :
5178 else
5179 ac_cv_header_stdc=no
5181 rm -f conftest*
5185 if test $ac_cv_header_stdc = yes; then
5186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5187 if test "$cross_compiling" = yes; then :
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <ctype.h>
5193 #include <stdlib.h>
5194 #if ((' ' & 0x0FF) == 0x020)
5195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5197 #else
5198 # define ISLOWER(c) \
5199 (('a' <= (c) && (c) <= 'i') \
5200 || ('j' <= (c) && (c) <= 'r') \
5201 || ('s' <= (c) && (c) <= 'z'))
5202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5203 #endif
5205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5207 main ()
5209 int i;
5210 for (i = 0; i < 256; i++)
5211 if (XOR (islower (i), ISLOWER (i))
5212 || toupper (i) != TOUPPER (i))
5213 return 2;
5214 return 0;
5216 _ACEOF
5217 if ac_fn_c_try_run "$LINENO"; then :
5219 else
5220 ac_cv_header_stdc=no
5222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5223 conftest.$ac_objext conftest.beam conftest.$ac_ext
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5229 $as_echo "$ac_cv_header_stdc" >&6; }
5230 if test $ac_cv_header_stdc = yes; then
5232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5238 inttypes.h stdint.h unistd.h
5239 do :
5240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5243 eval as_val=\$$as_ac_Header
5244 if test "x$as_val" = x""yes; then :
5245 cat >>confdefs.h <<_ACEOF
5246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5247 _ACEOF
5251 done
5255 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5256 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5257 MINIX=yes
5258 else
5259 MINIX=
5263 if test "$MINIX" = yes; then
5265 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5268 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5271 $as_echo "#define _MINIX 1" >>confdefs.h
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5277 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5278 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5284 # define __EXTENSIONS__ 1
5285 $ac_includes_default
5287 main ()
5291 return 0;
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_safe_to_define___extensions__=yes
5296 else
5297 ac_cv_safe_to_define___extensions__=no
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5302 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5303 test $ac_cv_safe_to_define___extensions__ = yes &&
5304 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5306 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5308 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5310 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5312 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5315 ac_ext=c
5316 ac_cpp='$CPP $CPPFLAGS'
5317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5321 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5322 # On Suns, sometimes $CPP names a directory.
5323 if test -n "$CPP" && test -d "$CPP"; then
5324 CPP=
5326 if test -z "$CPP"; then
5327 if test "${ac_cv_prog_CPP+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 # Double quotes because CPP needs to be expanded
5331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5333 ac_preproc_ok=false
5334 for ac_c_preproc_warn_flag in '' yes
5336 # Use a header file that comes with gcc, so configuring glibc
5337 # with a fresh cross-compiler works.
5338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5339 # <limits.h> exists even on freestanding compilers.
5340 # On the NeXT, cc -E runs the code through the compiler's parser,
5341 # not just through cpp. "Syntax error" is here to catch this case.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #ifdef __STDC__
5345 # include <limits.h>
5346 #else
5347 # include <assert.h>
5348 #endif
5349 Syntax error
5350 _ACEOF
5351 if ac_fn_c_try_cpp "$LINENO"; then :
5353 else
5354 # Broken: fails on valid input.
5355 continue
5357 rm -f conftest.err conftest.$ac_ext
5359 # OK, works on sane cases. Now check whether nonexistent headers
5360 # can be detected and how.
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <ac_nonexistent.h>
5364 _ACEOF
5365 if ac_fn_c_try_cpp "$LINENO"; then :
5366 # Broken: success on invalid input.
5367 continue
5368 else
5369 # Passes both tests.
5370 ac_preproc_ok=:
5371 break
5373 rm -f conftest.err conftest.$ac_ext
5375 done
5376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5377 rm -f conftest.err conftest.$ac_ext
5378 if $ac_preproc_ok; then :
5379 break
5382 done
5383 ac_cv_prog_CPP=$CPP
5386 CPP=$ac_cv_prog_CPP
5387 else
5388 ac_cv_prog_CPP=$CPP
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5391 $as_echo "$CPP" >&6; }
5392 ac_preproc_ok=false
5393 for ac_c_preproc_warn_flag in '' yes
5395 # Use a header file that comes with gcc, so configuring glibc
5396 # with a fresh cross-compiler works.
5397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 # <limits.h> exists even on freestanding compilers.
5399 # On the NeXT, cc -E runs the code through the compiler's parser,
5400 # not just through cpp. "Syntax error" is here to catch this case.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #ifdef __STDC__
5404 # include <limits.h>
5405 #else
5406 # include <assert.h>
5407 #endif
5408 Syntax error
5409 _ACEOF
5410 if ac_fn_c_try_cpp "$LINENO"; then :
5412 else
5413 # Broken: fails on valid input.
5414 continue
5416 rm -f conftest.err conftest.$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ac_nonexistent.h>
5423 _ACEOF
5424 if ac_fn_c_try_cpp "$LINENO"; then :
5425 # Broken: success on invalid input.
5426 continue
5427 else
5428 # Passes both tests.
5429 ac_preproc_ok=:
5430 break
5432 rm -f conftest.err conftest.$ac_ext
5434 done
5435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5436 rm -f conftest.err conftest.$ac_ext
5437 if $ac_preproc_ok; then :
5439 else
5440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5442 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5443 See \`config.log' for more details." "$LINENO" 5; }
5446 ac_ext=c
5447 ac_cpp='$CPP $CPPFLAGS'
5448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5453 $as_echo_n "checking for inline... " >&6; }
5454 if test "${ac_cv_c_inline+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 ac_cv_c_inline=no
5458 for ac_kw in inline __inline__ __inline; do
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #ifndef __cplusplus
5462 typedef int foo_t;
5463 static $ac_kw foo_t static_foo () {return 0; }
5464 $ac_kw foo_t foo () {return 0; }
5465 #endif
5467 _ACEOF
5468 if ac_fn_c_try_compile "$LINENO"; then :
5469 ac_cv_c_inline=$ac_kw
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 test "$ac_cv_c_inline" != no && break
5473 done
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5477 $as_echo "$ac_cv_c_inline" >&6; }
5479 case $ac_cv_c_inline in
5480 inline | yes) ;;
5482 case $ac_cv_c_inline in
5483 no) ac_val=;;
5484 *) ac_val=$ac_cv_c_inline;;
5485 esac
5486 cat >>confdefs.h <<_ACEOF
5487 #ifndef __cplusplus
5488 #define inline $ac_val
5489 #endif
5490 _ACEOF
5492 esac
5495 # Check whether --enable-largefile was given.
5496 if test "${enable_largefile+set}" = set; then :
5497 enableval=$enable_largefile;
5500 if test "$enable_largefile" != no; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5503 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5504 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 ac_cv_sys_largefile_CC=no
5508 if test "$GCC" != yes; then
5509 ac_save_CC=$CC
5510 while :; do
5511 # IRIX 6.2 and later do not support large files by default,
5512 # so use the C compiler's -n32 option if that helps.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <sys/types.h>
5516 /* Check that off_t can represent 2**63 - 1 correctly.
5517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5518 since some C++ compilers masquerading as C compilers
5519 incorrectly reject 9223372036854775807. */
5520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5522 && LARGE_OFF_T % 2147483647 == 1)
5523 ? 1 : -1];
5525 main ()
5529 return 0;
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 break
5535 rm -f core conftest.err conftest.$ac_objext
5536 CC="$CC -n32"
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 ac_cv_sys_largefile_CC=' -n32'; break
5540 rm -f core conftest.err conftest.$ac_objext
5541 break
5542 done
5543 CC=$ac_save_CC
5544 rm -f conftest.$ac_ext
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5548 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5549 if test "$ac_cv_sys_largefile_CC" != no; then
5550 CC=$CC$ac_cv_sys_largefile_CC
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5554 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5555 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 while :; do
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <sys/types.h>
5562 /* Check that off_t can represent 2**63 - 1 correctly.
5563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5564 since some C++ compilers masquerading as C compilers
5565 incorrectly reject 9223372036854775807. */
5566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5568 && LARGE_OFF_T % 2147483647 == 1)
5569 ? 1 : -1];
5571 main ()
5575 return 0;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 ac_cv_sys_file_offset_bits=no; break
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #define _FILE_OFFSET_BITS 64
5585 #include <sys/types.h>
5586 /* Check that off_t can represent 2**63 - 1 correctly.
5587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5588 since some C++ compilers masquerading as C compilers
5589 incorrectly reject 9223372036854775807. */
5590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5592 && LARGE_OFF_T % 2147483647 == 1)
5593 ? 1 : -1];
5595 main ()
5599 return 0;
5601 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 ac_cv_sys_file_offset_bits=64; break
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 ac_cv_sys_file_offset_bits=unknown
5607 break
5608 done
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5611 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5612 case $ac_cv_sys_file_offset_bits in #(
5613 no | unknown) ;;
5615 cat >>confdefs.h <<_ACEOF
5616 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5617 _ACEOF
5619 esac
5620 rm -rf conftest*
5621 if test $ac_cv_sys_file_offset_bits = unknown; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5623 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5624 if test "${ac_cv_sys_large_files+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 while :; do
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <sys/types.h>
5631 /* Check that off_t can represent 2**63 - 1 correctly.
5632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5633 since some C++ compilers masquerading as C compilers
5634 incorrectly reject 9223372036854775807. */
5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5637 && LARGE_OFF_T % 2147483647 == 1)
5638 ? 1 : -1];
5640 main ()
5644 return 0;
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 ac_cv_sys_large_files=no; break
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #define _LARGE_FILES 1
5654 #include <sys/types.h>
5655 /* Check that off_t can represent 2**63 - 1 correctly.
5656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657 since some C++ compilers masquerading as C compilers
5658 incorrectly reject 9223372036854775807. */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661 && LARGE_OFF_T % 2147483647 == 1)
5662 ? 1 : -1];
5664 main ()
5668 return 0;
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 ac_cv_sys_large_files=1; break
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 ac_cv_sys_large_files=unknown
5676 break
5677 done
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5680 $as_echo "$ac_cv_sys_large_files" >&6; }
5681 case $ac_cv_sys_large_files in #(
5682 no | unknown) ;;
5684 cat >>confdefs.h <<_ACEOF
5685 #define _LARGE_FILES $ac_cv_sys_large_files
5686 _ACEOF
5688 esac
5689 rm -rf conftest*
5694 # sizeof(char) is 1 by definition.
5695 # The cast to long int works around a bug in the HP C Compiler
5696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5698 # This bug is HP SR number 8606223364.
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5700 $as_echo_n "checking size of void *... " >&6; }
5701 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5706 else
5707 if test "$ac_cv_type_void_p" = yes; then
5708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5710 { as_fn_set_status 77
5711 as_fn_error "cannot compute sizeof (void *)
5712 See \`config.log' for more details." "$LINENO" 5; }; }
5713 else
5714 ac_cv_sizeof_void_p=0
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5720 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5724 cat >>confdefs.h <<_ACEOF
5725 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5726 _ACEOF
5729 # The cast to long int works around a bug in the HP C Compiler
5730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5732 # This bug is HP SR number 8606223364.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5734 $as_echo_n "checking size of short... " >&6; }
5735 if test "${ac_cv_sizeof_short+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5740 else
5741 if test "$ac_cv_type_short" = yes; then
5742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5744 { as_fn_set_status 77
5745 as_fn_error "cannot compute sizeof (short)
5746 See \`config.log' for more details." "$LINENO" 5; }; }
5747 else
5748 ac_cv_sizeof_short=0
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5754 $as_echo "$ac_cv_sizeof_short" >&6; }
5758 cat >>confdefs.h <<_ACEOF
5759 #define SIZEOF_SHORT $ac_cv_sizeof_short
5760 _ACEOF
5763 # The cast to long int works around a bug in the HP C Compiler
5764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5766 # This bug is HP SR number 8606223364.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5768 $as_echo_n "checking size of int... " >&6; }
5769 if test "${ac_cv_sizeof_int+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5774 else
5775 if test "$ac_cv_type_int" = yes; then
5776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5778 { as_fn_set_status 77
5779 as_fn_error "cannot compute sizeof (int)
5780 See \`config.log' for more details." "$LINENO" 5; }; }
5781 else
5782 ac_cv_sizeof_int=0
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5788 $as_echo "$ac_cv_sizeof_int" >&6; }
5792 cat >>confdefs.h <<_ACEOF
5793 #define SIZEOF_INT $ac_cv_sizeof_int
5794 _ACEOF
5797 # The cast to long int works around a bug in the HP C Compiler
5798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5800 # This bug is HP SR number 8606223364.
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5802 $as_echo_n "checking size of long... " >&6; }
5803 if test "${ac_cv_sizeof_long+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5808 else
5809 if test "$ac_cv_type_long" = yes; then
5810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5812 { as_fn_set_status 77
5813 as_fn_error "cannot compute sizeof (long)
5814 See \`config.log' for more details." "$LINENO" 5; }; }
5815 else
5816 ac_cv_sizeof_long=0
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5822 $as_echo "$ac_cv_sizeof_long" >&6; }
5826 cat >>confdefs.h <<_ACEOF
5827 #define SIZEOF_LONG $ac_cv_sizeof_long
5828 _ACEOF
5831 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5832 if test "x$ac_cv_type_long_long" = x""yes; then :
5834 cat >>confdefs.h <<_ACEOF
5835 #define HAVE_LONG_LONG 1
5836 _ACEOF
5838 # The cast to long int works around a bug in the HP C Compiler
5839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5841 # This bug is HP SR number 8606223364.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5843 $as_echo_n "checking size of long long... " >&6; }
5844 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5849 else
5850 if test "$ac_cv_type_long_long" = yes; then
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 { as_fn_set_status 77
5854 as_fn_error "cannot compute sizeof (long long)
5855 See \`config.log' for more details." "$LINENO" 5; }; }
5856 else
5857 ac_cv_sizeof_long_long=0
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5863 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5867 cat >>confdefs.h <<_ACEOF
5868 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5869 _ACEOF
5874 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5875 case $ac_cv_c_int8_t in #(
5876 no|yes) ;; #(
5879 cat >>confdefs.h <<_ACEOF
5880 #define int8_t $ac_cv_c_int8_t
5881 _ACEOF
5883 esac
5885 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5886 case $ac_cv_c_int16_t in #(
5887 no|yes) ;; #(
5890 cat >>confdefs.h <<_ACEOF
5891 #define int16_t $ac_cv_c_int16_t
5892 _ACEOF
5894 esac
5896 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5897 case $ac_cv_c_int32_t in #(
5898 no|yes) ;; #(
5901 cat >>confdefs.h <<_ACEOF
5902 #define int32_t $ac_cv_c_int32_t
5903 _ACEOF
5905 esac
5907 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5908 case $ac_cv_c_int64_t in #(
5909 no|yes) ;; #(
5912 cat >>confdefs.h <<_ACEOF
5913 #define int64_t $ac_cv_c_int64_t
5914 _ACEOF
5916 esac
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5920 $as_echo_n "checking for long long int... " >&6; }
5921 if test "${ac_cv_type_long_long_int+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5927 /* For now, do not test the preprocessor; as of 2007 there are too many
5928 implementations with broken preprocessors. Perhaps this can
5929 be revisited in 2012. In the meantime, code should not expect
5930 #if to work with literals wider than 32 bits. */
5931 /* Test literals. */
5932 long long int ll = 9223372036854775807ll;
5933 long long int nll = -9223372036854775807LL;
5934 unsigned long long int ull = 18446744073709551615ULL;
5935 /* Test constant expressions. */
5936 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5937 ? 1 : -1)];
5938 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5939 ? 1 : -1)];
5940 int i = 63;
5942 main ()
5944 /* Test availability of runtime routines for shift and division. */
5945 long long int llmax = 9223372036854775807ll;
5946 unsigned long long int ullmax = 18446744073709551615ull;
5947 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5948 | (llmax / ll) | (llmax % ll)
5949 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5950 | (ullmax / ull) | (ullmax % ull));
5952 return 0;
5955 _ACEOF
5956 if ac_fn_c_try_link "$LINENO"; then :
5957 if test "$cross_compiling" = yes; then :
5958 ac_cv_type_long_long_int=yes
5959 else
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962 #include <limits.h>
5963 #ifndef LLONG_MAX
5964 # define HALF \
5965 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5966 # define LLONG_MAX (HALF - 1 + HALF)
5967 #endif
5969 main ()
5971 long long int n = 1;
5972 int i;
5973 for (i = 0; ; i++)
5975 long long int m = n << i;
5976 if (m >> i != n)
5977 return 1;
5978 if (LLONG_MAX / 2 < m)
5979 break;
5981 return 0;
5983 return 0;
5985 _ACEOF
5986 if ac_fn_c_try_run "$LINENO"; then :
5987 ac_cv_type_long_long_int=yes
5988 else
5989 ac_cv_type_long_long_int=no
5991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5992 conftest.$ac_objext conftest.beam conftest.$ac_ext
5995 else
5996 ac_cv_type_long_long_int=no
5998 rm -f core conftest.err conftest.$ac_objext \
5999 conftest$ac_exeext conftest.$ac_ext
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6002 $as_echo "$ac_cv_type_long_long_int" >&6; }
6003 if test $ac_cv_type_long_long_int = yes; then
6005 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6011 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6012 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6014 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6016 else
6017 test $ac_cv_type_long_long_int = yes \
6018 && ac_type='long long int' \
6019 || ac_type='long int'
6021 cat >>confdefs.h <<_ACEOF
6022 #define intmax_t $ac_type
6023 _ACEOF
6029 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6030 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6032 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6034 else
6035 for ac_type in 'int' 'long int' 'long long int'; do
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 $ac_includes_default
6040 main ()
6042 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6043 test_array [0] = 0
6046 return 0;
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6051 cat >>confdefs.h <<_ACEOF
6052 #define intptr_t $ac_type
6053 _ACEOF
6055 ac_type=
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 test -z "$ac_type" && break
6059 done
6063 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6064 case $ac_cv_c_uint8_t in #(
6065 no|yes) ;; #(
6068 $as_echo "#define _UINT8_T 1" >>confdefs.h
6071 cat >>confdefs.h <<_ACEOF
6072 #define uint8_t $ac_cv_c_uint8_t
6073 _ACEOF
6075 esac
6077 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6078 case $ac_cv_c_uint16_t in #(
6079 no|yes) ;; #(
6083 cat >>confdefs.h <<_ACEOF
6084 #define uint16_t $ac_cv_c_uint16_t
6085 _ACEOF
6087 esac
6089 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6090 case $ac_cv_c_uint32_t in #(
6091 no|yes) ;; #(
6094 $as_echo "#define _UINT32_T 1" >>confdefs.h
6097 cat >>confdefs.h <<_ACEOF
6098 #define uint32_t $ac_cv_c_uint32_t
6099 _ACEOF
6101 esac
6103 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6104 case $ac_cv_c_uint64_t in #(
6105 no|yes) ;; #(
6108 $as_echo "#define _UINT64_T 1" >>confdefs.h
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint64_t $ac_cv_c_uint64_t
6113 _ACEOF
6115 esac
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6119 $as_echo_n "checking for unsigned long long int... " >&6; }
6120 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6126 /* For now, do not test the preprocessor; as of 2007 there are too many
6127 implementations with broken preprocessors. Perhaps this can
6128 be revisited in 2012. In the meantime, code should not expect
6129 #if to work with literals wider than 32 bits. */
6130 /* Test literals. */
6131 long long int ll = 9223372036854775807ll;
6132 long long int nll = -9223372036854775807LL;
6133 unsigned long long int ull = 18446744073709551615ULL;
6134 /* Test constant expressions. */
6135 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6136 ? 1 : -1)];
6137 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6138 ? 1 : -1)];
6139 int i = 63;
6141 main ()
6143 /* Test availability of runtime routines for shift and division. */
6144 long long int llmax = 9223372036854775807ll;
6145 unsigned long long int ullmax = 18446744073709551615ull;
6146 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6147 | (llmax / ll) | (llmax % ll)
6148 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6149 | (ullmax / ull) | (ullmax % ull));
6151 return 0;
6154 _ACEOF
6155 if ac_fn_c_try_link "$LINENO"; then :
6156 ac_cv_type_unsigned_long_long_int=yes
6157 else
6158 ac_cv_type_unsigned_long_long_int=no
6160 rm -f core conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6164 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6165 if test $ac_cv_type_unsigned_long_long_int = yes; then
6167 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6173 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6174 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6176 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6178 else
6179 test $ac_cv_type_unsigned_long_long_int = yes \
6180 && ac_type='unsigned long long int' \
6181 || ac_type='unsigned long int'
6183 cat >>confdefs.h <<_ACEOF
6184 #define uintmax_t $ac_type
6185 _ACEOF
6191 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6192 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6194 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6196 else
6197 for ac_type in 'unsigned int' 'unsigned long int' \
6198 'unsigned long long int'; do
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 $ac_includes_default
6203 main ()
6205 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6206 test_array [0] = 0
6209 return 0;
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6214 cat >>confdefs.h <<_ACEOF
6215 #define uintptr_t $ac_type
6216 _ACEOF
6218 ac_type=
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 test -z "$ac_type" && break
6222 done
6238 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6239 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6242 # check what underlying integer type int64_t uses
6243 ac_ext=cpp
6244 ac_cpp='$CXXCPP $CPPFLAGS'
6245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6251 $as_echo_n "checking for int64_t underlying type... " >&6; }
6252 if test "${ac_cv_int64_t_type+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6259 #ifdef HAVE_STDINT_H
6260 #include <stdint.h>
6261 #endif
6262 template <typename T> struct X { };
6263 template <>
6264 struct X<long> { typedef long t; };
6267 main ()
6269 X<int64_t>::t x;
6271 return 0;
6273 _ACEOF
6274 if ac_fn_cxx_try_compile "$LINENO"; then :
6275 ac_cv_int64_t_type=long
6276 else
6277 ac_cv_int64_t_type="long long"
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6282 $as_echo "$ac_cv_int64_t_type" >&6; }
6283 if test "$ac_cv_int64_t_type" = "long"; then
6285 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6291 #ifdef HAVE_STDINT_H
6292 #include <stdint.h>
6293 #endif
6294 template <typename T> struct X { };
6295 template <>
6296 struct X<long long> { typedef long long t; };
6299 main ()
6301 X<int64_t>::t x;
6303 return 0;
6305 _ACEOF
6306 if ac_fn_cxx_try_compile "$LINENO"; then :
6308 else
6309 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 ac_ext=c
6314 ac_cpp='$CPP $CPPFLAGS'
6315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323 # ---------------------
6324 # Warnings and checking
6325 # ---------------------
6327 # Check $CC warning features (if it's GCC).
6328 # We want to use -pedantic, but we don't want warnings about
6329 # * 'long long'
6330 # * variadic macros
6331 # * overlong strings
6332 # * C++11 narrowing conversions in { }
6333 # So, we only use -pedantic if we can disable those warnings.
6335 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6336 # Check whether --enable-build-format-warnings was given.
6337 if test "${enable_build_format_warnings+set}" = set; then :
6338 enableval=$enable_build_format_warnings;
6339 else
6340 enable_build_format_warnings=yes
6343 if test $enable_build_format_warnings = no; then :
6344 wf_opt=-Wno-format
6345 else
6346 wf_opt=
6348 loose_warn=
6349 save_CFLAGS="$CFLAGS"
6350 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6351 # Do the check with the no- prefix removed since gcc silently
6352 # accepts any -Wno-* option on purpose
6353 case $real_option in
6354 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6355 *) option=$real_option ;;
6356 esac
6357 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6360 $as_echo_n "checking whether $CC supports $option... " >&6; }
6361 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 CFLAGS="$option"
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6369 main ()
6373 return 0;
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 eval "$as_acx_Woption=yes"
6378 else
6379 eval "$as_acx_Woption=no"
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 eval ac_res=\$$as_acx_Woption
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6386 $as_echo "$ac_res" >&6; }
6387 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6388 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6390 done
6391 CFLAGS="$save_CFLAGS"
6393 c_loose_warn=
6394 save_CFLAGS="$CFLAGS"
6395 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6396 # Do the check with the no- prefix removed since gcc silently
6397 # accepts any -Wno-* option on purpose
6398 case $real_option in
6399 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6400 *) option=$real_option ;;
6401 esac
6402 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6405 $as_echo_n "checking whether $CC supports $option... " >&6; }
6406 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 CFLAGS="$option"
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6414 main ()
6418 return 0;
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422 eval "$as_acx_Woption=yes"
6423 else
6424 eval "$as_acx_Woption=no"
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 eval ac_res=\$$as_acx_Woption
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6431 $as_echo "$ac_res" >&6; }
6432 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6433 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6435 done
6436 CFLAGS="$save_CFLAGS"
6438 strict_warn=
6439 save_CFLAGS="$CFLAGS"
6440 for real_option in -Wmissing-format-attribute; do
6441 # Do the check with the no- prefix removed since gcc silently
6442 # accepts any -Wno-* option on purpose
6443 case $real_option in
6444 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6445 *) option=$real_option ;;
6446 esac
6447 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6450 $as_echo_n "checking whether $CC supports $option... " >&6; }
6451 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 CFLAGS="$option"
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6459 main ()
6463 return 0;
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 eval "$as_acx_Woption=yes"
6468 else
6469 eval "$as_acx_Woption=no"
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 eval ac_res=\$$as_acx_Woption
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6476 $as_echo "$ac_res" >&6; }
6477 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6478 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6480 done
6481 CFLAGS="$save_CFLAGS"
6483 save_CFLAGS="$CFLAGS"
6484 for real_option in -Woverloaded-virtual; do
6485 # Do the check with the no- prefix removed since gcc silently
6486 # accepts any -Wno-* option on purpose
6487 case $real_option in
6488 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6489 *) option=$real_option ;;
6490 esac
6491 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6494 $as_echo_n "checking whether $CC supports $option... " >&6; }
6495 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 CFLAGS="$option"
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6503 main ()
6507 return 0;
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511 eval "$as_acx_Woption=yes"
6512 else
6513 eval "$as_acx_Woption=no"
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 eval ac_res=\$$as_acx_Woption
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6520 $as_echo "$ac_res" >&6; }
6521 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6522 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6524 done
6525 CFLAGS="$save_CFLAGS"
6527 c_strict_warn=
6528 save_CFLAGS="$CFLAGS"
6529 for real_option in -Wold-style-definition -Wc++-compat; do
6530 # Do the check with the no- prefix removed since gcc silently
6531 # accepts any -Wno-* option on purpose
6532 case $real_option in
6533 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6534 *) option=$real_option ;;
6535 esac
6536 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6539 $as_echo_n "checking whether $CC supports $option... " >&6; }
6540 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 CFLAGS="$option"
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6548 main ()
6552 return 0;
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 eval "$as_acx_Woption=yes"
6557 else
6558 eval "$as_acx_Woption=no"
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 eval ac_res=\$$as_acx_Woption
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6565 $as_echo "$ac_res" >&6; }
6566 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6567 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6569 done
6570 CFLAGS="$save_CFLAGS"
6572 # Do the check with the no- prefix removed from the warning options
6573 # since gcc silently accepts any -Wno-* option on purpose
6574 if test "$GCC" = yes; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6576 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6577 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 save_CFLAGS="$CFLAGS"
6581 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6586 main ()
6590 return 0;
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6595 else
6596 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 CFLAGS="$save_CFLAGS"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6602 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6603 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6604 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6609 # Check whether --enable-werror-always was given.
6610 if test "${enable_werror_always+set}" = set; then :
6611 enableval=$enable_werror_always;
6612 else
6613 enable_werror_always=no
6616 if test $enable_werror_always = yes; then :
6617 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6622 # The above macros do nothing if the compiler is not GCC. However, the
6623 # Makefile has more goo to add other flags, so these variables are used
6624 # to enable warnings only for GCC.
6625 warn_cflags=
6626 warn_cxxflags=
6627 if test "x$GCC" = "xyes"; then
6628 warn_cflags='$(GCC_WARN_CFLAGS)'
6629 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6634 # Disable exceptions and RTTI if building with g++
6635 noexception_flags=
6636 save_CFLAGS="$CFLAGS"
6637 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6638 # Do the check with the no- prefix removed since gcc silently
6639 # accepts any -Wno-* option on purpose
6640 case $real_option in
6641 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6642 *) option=$real_option ;;
6643 esac
6644 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6647 $as_echo_n "checking whether $CC supports $option... " >&6; }
6648 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 CFLAGS="$option"
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6656 main ()
6660 return 0;
6662 _ACEOF
6663 if ac_fn_c_try_compile "$LINENO"; then :
6664 eval "$as_acx_Woption=yes"
6665 else
6666 eval "$as_acx_Woption=no"
6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 eval ac_res=\$$as_acx_Woption
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6673 $as_echo "$ac_res" >&6; }
6674 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6675 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6677 done
6678 CFLAGS="$save_CFLAGS"
6681 # Enable expensive internal checks
6682 is_release=
6683 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6684 is_release=yes
6687 # Check whether --enable-checking was given.
6688 if test "${enable_checking+set}" = set; then :
6689 enableval=$enable_checking; ac_checking_flags="${enableval}"
6690 else
6692 # Determine the default checks.
6693 if test x$is_release = x ; then
6694 ac_checking_flags=yes
6695 else
6696 ac_checking_flags=release
6700 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6701 for check in release $ac_checking_flags
6703 case $check in
6704 # these set all the flags to specific states
6705 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6706 ac_fold_checking= ; ac_gc_checking=1 ;
6707 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6708 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6709 ac_tree_checking=1 ; ac_valgrind_checking= ;
6710 ac_types_checking=1 ;;
6711 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6712 ac_fold_checking= ; ac_gc_checking= ;
6713 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6714 ac_rtlflag_checking= ; ac_runtime_checking= ;
6715 ac_tree_checking= ; ac_valgrind_checking= ;
6716 ac_types_checking= ;;
6717 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6718 ac_fold_checking=1 ; ac_gc_checking=1 ;
6719 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6720 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6721 ac_tree_checking=1 ; ac_valgrind_checking= ;
6722 ac_types_checking=1 ;;
6723 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6724 ac_fold_checking= ; ac_gc_checking= ;
6725 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6726 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6727 ac_tree_checking= ; ac_valgrind_checking= ;
6728 ac_types_checking= ;;
6729 # these enable particular checks
6730 assert) ac_assert_checking=1 ;;
6731 df) ac_df_checking=1 ;;
6732 fold) ac_fold_checking=1 ;;
6733 gc) ac_gc_checking=1 ;;
6734 gcac) ac_gc_always_collect=1 ;;
6735 gimple) ac_gimple_checking=1 ;;
6736 misc) ac_checking=1 ;;
6737 rtl) ac_rtl_checking=1 ;;
6738 rtlflag) ac_rtlflag_checking=1 ;;
6739 runtime) ac_runtime_checking=1 ;;
6740 tree) ac_tree_checking=1 ;;
6741 types) ac_types_checking=1 ;;
6742 valgrind) ac_valgrind_checking=1 ;;
6743 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6744 esac
6745 done
6746 IFS="$ac_save_IFS"
6748 nocommon_flag=""
6749 if test x$ac_checking != x ; then
6751 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6753 nocommon_flag=-fno-common
6756 if test x$ac_df_checking != x ; then
6758 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6761 if test x$ac_assert_checking != x ; then
6763 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6766 if test x$ac_gimple_checking != x ; then
6768 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6772 if test x$ac_runtime_checking != x ; then
6774 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6777 if test x$ac_tree_checking != x ; then
6779 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6781 TREEBROWSER=tree-browser.o
6782 TREECHECKING=yes
6784 if test x$ac_types_checking != x ; then
6786 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6791 if test x$ac_rtl_checking != x ; then
6793 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6796 if test x$ac_rtlflag_checking != x ; then
6798 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6801 if test x$ac_gc_checking != x ; then
6803 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6806 if test x$ac_gc_always_collect != x ; then
6808 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6811 if test x$ac_fold_checking != x ; then
6813 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6816 valgrind_path_defines=
6817 valgrind_command=
6819 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6820 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6821 have_valgrind_h=yes
6822 else
6823 have_valgrind_h=no
6828 # It is certainly possible that there's valgrind but no valgrind.h.
6829 # GCC relies on making annotations so we must have both.
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6831 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <valgrind/memcheck.h>
6835 #ifndef VALGRIND_DISCARD
6836 #error VALGRIND_DISCARD not defined
6837 #endif
6838 _ACEOF
6839 if ac_fn_c_try_cpp "$LINENO"; then :
6840 gcc_cv_header_valgrind_memcheck_h=yes
6841 else
6842 gcc_cv_header_valgrind_memcheck_h=no
6844 rm -f conftest.err conftest.$ac_ext
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6846 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6848 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <memcheck.h>
6852 #ifndef VALGRIND_DISCARD
6853 #error VALGRIND_DISCARD not defined
6854 #endif
6855 _ACEOF
6856 if ac_fn_c_try_cpp "$LINENO"; then :
6857 gcc_cv_header_memcheck_h=yes
6858 else
6859 gcc_cv_header_memcheck_h=no
6861 rm -f conftest.err conftest.$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6863 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6864 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6866 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6869 if test $gcc_cv_header_memcheck_h = yes; then
6871 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6875 if test x$ac_valgrind_checking != x ; then
6877 # Prepare PATH_SEPARATOR.
6878 # The user is always right.
6879 if test "${PATH_SEPARATOR+set}" != set; then
6880 echo "#! /bin/sh" >conf$$.sh
6881 echo "exit 0" >>conf$$.sh
6882 chmod +x conf$$.sh
6883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6884 PATH_SEPARATOR=';'
6885 else
6886 PATH_SEPARATOR=:
6888 rm -f conf$$.sh
6891 # Find out how to test for executable files. Don't use a zero-byte file,
6892 # as systems may use methods other than mode bits to determine executability.
6893 cat >conf$$.file <<_ASEOF
6894 #! /bin/sh
6895 exit 0
6896 _ASEOF
6897 chmod +x conf$$.file
6898 if test -x conf$$.file >/dev/null 2>&1; then
6899 ac_executable_p="test -x"
6900 else
6901 ac_executable_p="test -f"
6903 rm -f conf$$.file
6905 # Extract the first word of "valgrind", so it can be a program name with args.
6906 set dummy valgrind; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 case "$valgrind_path" in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6917 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6918 for ac_dir in $PATH; do
6919 IFS="$ac_save_IFS"
6920 test -z "$ac_dir" && ac_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6923 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6924 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6925 break 2
6928 done
6929 done
6930 IFS="$ac_save_IFS"
6932 esac
6934 valgrind_path="$ac_cv_path_valgrind_path"
6935 if test -n "$valgrind_path"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6937 $as_echo "$valgrind_path" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6943 if test "x$valgrind_path" = "x" \
6944 || (test $have_valgrind_h = no \
6945 && test $gcc_cv_header_memcheck_h = no \
6946 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6947 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6949 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6950 valgrind_command="$valgrind_path -q"
6952 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6958 # Enable code coverage collection
6959 # Check whether --enable-coverage was given.
6960 if test "${enable_coverage+set}" = set; then :
6961 enableval=$enable_coverage; case "${enableval}" in
6962 yes|noopt)
6963 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6965 opt)
6966 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6969 # a.k.a. --disable-coverage
6970 coverage_flags=""
6973 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6975 esac
6976 else
6977 coverage_flags=""
6982 # Check whether --enable-gather-detailed-mem-stats was given.
6983 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6984 enableval=$enable_gather_detailed_mem_stats;
6985 else
6986 enable_gather_detailed_mem_stats=no
6989 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6991 cat >>confdefs.h <<_ACEOF
6992 #define GATHER_STATISTICS $gather_stats
6993 _ACEOF
6996 # Check whether --enable-valgrind-annotations was given.
6997 if test "${enable_valgrind_annotations+set}" = set; then :
6998 enableval=$enable_valgrind_annotations;
6999 else
7000 enable_valgrind_annotations=no
7003 if test x$enable_valgrind_annotations != xno \
7004 || test x$ac_valgrind_checking != x; then
7005 if (test $have_valgrind_h = no \
7006 && test $gcc_cv_header_memcheck_h = no \
7007 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7008 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7011 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7019 # With stabs
7021 # Check whether --with-stabs was given.
7022 if test "${with_stabs+set}" = set; then :
7023 withval=$with_stabs; stabs="$with_stabs"
7024 else
7025 stabs=no
7029 # Determine whether or not multilibs are enabled.
7030 # Check whether --enable-multilib was given.
7031 if test "${enable_multilib+set}" = set; then :
7032 enableval=$enable_multilib;
7033 else
7034 enable_multilib=yes
7039 # Determine whether or not multiarch is enabled.
7040 # Check whether --enable-multiarch was given.
7041 if test "${enable_multiarch+set}" = set; then :
7042 enableval=$enable_multiarch; case "${enableval}" in
7043 yes|no|auto) enable_multiarch=$enableval;;
7044 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7045 esac
7046 else
7047 enable_multiarch=auto
7050 if test x${enable_multiarch} = xauto; then
7051 if test x${with_native_system_header_dir} != x; then
7052 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7053 enable_multiarch=no
7055 if test x$host != x$target && test "x$with_sysroot" = x; then
7056 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7057 enable_multiarch=no
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7061 $as_echo_n "checking for multiarch configuration... " >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7064 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7066 # needed for setting the multiarch name for soft-float/hard-float ABIs
7070 # Enable __cxa_atexit for C++.
7071 # Check whether --enable-__cxa_atexit was given.
7072 if test "${enable___cxa_atexit+set}" = set; then :
7073 enableval=$enable___cxa_atexit;
7077 # Enable C extension for decimal float if target supports it.
7079 # Check whether --enable-decimal-float was given.
7080 if test "${enable_decimal_float+set}" = set; then :
7081 enableval=$enable_decimal_float;
7082 case $enable_decimal_float in
7083 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7084 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7085 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7086 esac
7088 else
7090 case $target in
7091 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7092 i?86*-*-gnu* | \
7093 i?86*-*-mingw* | x86_64*-*-mingw* | \
7094 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7095 enable_decimal_float=yes
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7099 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7100 enable_decimal_float=no
7102 esac
7107 # x86's use BID format instead of DPD
7108 case x$enable_decimal_float in
7109 xyes)
7110 case $target in
7111 i?86*-*-* | x86_64*-*-*)
7112 enable_decimal_float=bid
7115 enable_decimal_float=dpd
7117 esac
7118 default_decimal_float=$enable_decimal_float
7120 xno)
7121 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7122 # dependency on libdecnumber.
7123 default_decimal_float=dpd
7125 esac
7130 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7132 cat >>confdefs.h <<_ACEOF
7133 #define ENABLE_DECIMAL_FLOAT $dfp
7134 _ACEOF
7137 # Use default_decimal_float for dependency.
7138 enable_decimal_float=$default_decimal_float
7140 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7142 cat >>confdefs.h <<_ACEOF
7143 #define ENABLE_DECIMAL_BID_FORMAT $bid
7144 _ACEOF
7147 # Enable C extension for fixed-point arithmetic.
7148 # Check whether --enable-fixed-point was given.
7149 if test "${enable_fixed_point+set}" = set; then :
7150 enableval=$enable_fixed_point;
7151 else
7153 case $target in
7154 arm*)
7155 enable_fixed_point=yes
7158 mips*-*-*)
7159 enable_fixed_point=yes
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7163 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7164 enable_fixed_point=no
7166 esac
7172 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7174 cat >>confdefs.h <<_ACEOF
7175 #define ENABLE_FIXED_POINT $fixedpoint
7176 _ACEOF
7179 # Enable threads
7180 # Pass with no value to take the default
7181 # Pass with a value to specify a thread package
7182 # Check whether --enable-threads was given.
7183 if test "${enable_threads+set}" = set; then :
7184 enableval=$enable_threads;
7185 else
7186 enable_threads=''
7190 # Check whether --enable-tls was given.
7191 if test "${enable_tls+set}" = set; then :
7192 enableval=$enable_tls;
7193 case $enable_tls in
7194 yes | no) ;;
7195 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7196 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7197 esac
7199 else
7200 enable_tls=''
7204 # Check whether --enable-objc-gc was given.
7205 if test "${enable_objc_gc+set}" = set; then :
7206 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7207 objc_boehm_gc=''
7208 else
7209 objc_boehm_gc=1
7211 else
7212 objc_boehm_gc=''
7217 # Check whether --with-dwarf2 was given.
7218 if test "${with_dwarf2+set}" = set; then :
7219 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7220 else
7221 dwarf2=no
7225 # Check whether --enable-shared was given.
7226 if test "${enable_shared+set}" = set; then :
7227 enableval=$enable_shared;
7228 case $enable_shared in
7229 yes | no) ;;
7231 enable_shared=no
7232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7233 for pkg in $enableval; do
7234 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7235 enable_shared=yes
7237 done
7238 IFS="$ac_save_ifs"
7240 esac
7242 else
7243 enable_shared=yes
7249 # Check whether --with-native-system-header-dir was given.
7250 if test "${with_native_system_header_dir+set}" = set; then :
7251 withval=$with_native_system_header_dir;
7252 case ${with_native_system_header_dir} in
7253 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7254 /* | [A-Za-z]:[\\/]*) ;;
7255 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7256 esac
7257 configured_native_system_header_dir="${withval}"
7259 else
7260 configured_native_system_header_dir=
7265 # Check whether --with-build-sysroot was given.
7266 if test "${with_build_sysroot+set}" = set; then :
7267 withval=$with_build_sysroot; if test x"$withval" != x ; then
7268 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7270 else
7271 SYSROOT_CFLAGS_FOR_TARGET=
7276 if test "x$prefix" = xNONE; then
7277 test_prefix=/usr/local
7278 else
7279 test_prefix=$prefix
7281 if test "x$exec_prefix" = xNONE; then
7282 test_exec_prefix=$test_prefix
7283 else
7284 test_exec_prefix=$exec_prefix
7288 # Check whether --with-sysroot was given.
7289 if test "${with_sysroot+set}" = set; then :
7290 withval=$with_sysroot;
7291 case ${with_sysroot} in
7292 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7293 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7294 esac
7296 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7297 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7299 case ${TARGET_SYSTEM_ROOT} in
7300 "${test_prefix}"|"${test_prefix}/"*|\
7301 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7302 '${prefix}'|'${prefix}/'*|\
7303 '${exec_prefix}'|'${exec_prefix}/'*)
7304 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7305 TARGET_SYSTEM_ROOT_DEFINE="$t"
7307 esac
7309 else
7311 TARGET_SYSTEM_ROOT=
7312 TARGET_SYSTEM_ROOT_DEFINE=
7313 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7322 # Check whether --with-specs was given.
7323 if test "${with_specs+set}" = set; then :
7324 withval=$with_specs; CONFIGURE_SPECS=$withval
7325 else
7326 CONFIGURE_SPECS=
7334 # Check whether --with-pkgversion was given.
7335 if test "${with_pkgversion+set}" = set; then :
7336 withval=$with_pkgversion; case "$withval" in
7337 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7338 no) PKGVERSION= ;;
7339 *) PKGVERSION="($withval) " ;;
7340 esac
7341 else
7342 PKGVERSION="(GCC) "
7350 # Check whether --with-bugurl was given.
7351 if test "${with_bugurl+set}" = set; then :
7352 withval=$with_bugurl; case "$withval" in
7353 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7354 no) BUGURL=
7356 *) BUGURL="$withval"
7358 esac
7359 else
7360 BUGURL="http://gcc.gnu.org/bugs.html"
7364 case ${BUGURL} in
7366 REPORT_BUGS_TO=
7367 REPORT_BUGS_TEXI=
7370 REPORT_BUGS_TO="<$BUGURL>"
7371 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7373 esac;
7378 # Sanity check enable_languages in case someone does not run the toplevel
7379 # configure # script.
7380 # Check whether --enable-languages was given.
7381 if test "${enable_languages+set}" = set; then :
7382 enableval=$enable_languages; case ,${enable_languages}, in
7383 ,,|,yes,)
7384 # go safe -- we cannot be much sure without the toplevel
7385 # configure's
7386 # analysis of which target libs are present and usable
7387 enable_languages=c
7389 *,all,*)
7390 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7392 *,c,*)
7395 enable_languages=c,${enable_languages}
7397 esac
7398 else
7399 enable_languages=c
7404 # Check whether --with-multilib-list was given.
7405 if test "${with_multilib_list+set}" = set; then :
7406 withval=$with_multilib_list; :
7407 else
7408 with_multilib_list=default
7412 # -------------------------
7413 # Checks for other programs
7414 # -------------------------
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7417 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7418 set x ${MAKE-make}
7419 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7420 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 cat >conftest.make <<\_ACEOF
7424 SHELL = /bin/sh
7425 all:
7426 @echo '@@@%%%=$(MAKE)=@@@%%%'
7427 _ACEOF
7428 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7430 *@@@%%%=?*=@@@%%%*)
7431 eval ac_cv_prog_make_${ac_make}_set=yes;;
7433 eval ac_cv_prog_make_${ac_make}_set=no;;
7434 esac
7435 rm -f conftest.make
7437 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7439 $as_echo "yes" >&6; }
7440 SET_MAKE=
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 SET_MAKE="MAKE=${MAKE-make}"
7448 # Find some useful tools
7449 for ac_prog in gawk mawk nawk awk
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if test "${ac_cv_prog_AWK+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 if test -n "$AWK"; then
7459 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_AWK="$ac_prog"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7472 done
7473 done
7474 IFS=$as_save_IFS
7478 AWK=$ac_cv_prog_AWK
7479 if test -n "$AWK"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7481 $as_echo "$AWK" >&6; }
7482 else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7488 test -n "$AWK" && break
7489 done
7491 # We need awk to create options.c and options.h.
7492 # Bail out if it's missing.
7493 case ${AWK} in
7494 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7495 esac
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7498 $as_echo_n "checking whether ln -s works... " >&6; }
7499 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 rm -f conftestdata_t
7503 echo >conftestdata_f
7504 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7505 then
7506 gcc_cv_prog_LN_S="ln -s"
7507 else
7508 if ln conftestdata_f conftestdata_t 2>/dev/null
7509 then
7510 gcc_cv_prog_LN_S=ln
7511 else
7512 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7513 then
7514 gcc_cv_prog_LN_S="cp -p"
7515 else
7516 gcc_cv_prog_LN_S=cp
7520 rm -f conftestdata_f conftestdata_t
7523 LN_S="$gcc_cv_prog_LN_S"
7524 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7526 $as_echo "yes" >&6; }
7527 else
7528 if test "$gcc_cv_prog_LN_S" = "ln"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7530 $as_echo "no, using ln" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7533 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7538 $as_echo_n "checking whether ln works... " >&6; }
7539 if test "${acx_cv_prog_LN+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 rm -f conftestdata_t
7543 echo >conftestdata_f
7544 if ln conftestdata_f conftestdata_t 2>/dev/null
7545 then
7546 acx_cv_prog_LN=ln
7547 else
7548 acx_cv_prog_LN=no
7550 rm -f conftestdata_f conftestdata_t
7553 if test $acx_cv_prog_LN = no; then
7554 LN="$LN_S"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7556 $as_echo "no, using $LN" >&6; }
7557 else
7558 LN="$acx_cv_prog_LN"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7560 $as_echo "yes" >&6; }
7563 if test -n "$ac_tool_prefix"; then
7564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 if test -n "$RANLIB"; then
7572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7585 done
7586 done
7587 IFS=$as_save_IFS
7591 RANLIB=$ac_cv_prog_RANLIB
7592 if test -n "$RANLIB"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7594 $as_echo "$RANLIB" >&6; }
7595 else
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7602 if test -z "$ac_cv_prog_RANLIB"; then
7603 ac_ct_RANLIB=$RANLIB
7604 # Extract the first word of "ranlib", so it can be a program name with args.
7605 set dummy ranlib; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$ac_ct_RANLIB"; then
7612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_ac_ct_RANLIB="ranlib"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7625 done
7626 done
7627 IFS=$as_save_IFS
7631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7632 if test -n "$ac_ct_RANLIB"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7634 $as_echo "$ac_ct_RANLIB" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7640 if test "x$ac_ct_RANLIB" = x; then
7641 RANLIB=":"
7642 else
7643 case $cross_compiling:$ac_tool_warned in
7644 yes:)
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647 ac_tool_warned=yes ;;
7648 esac
7649 RANLIB=$ac_ct_RANLIB
7651 else
7652 RANLIB="$ac_cv_prog_RANLIB"
7655 ranlib_flags=""
7658 # Find a good install program. We prefer a C program (faster),
7659 # so one script is as good as another. But avoid the broken or
7660 # incompatible versions:
7661 # SysV /etc/install, /usr/sbin/install
7662 # SunOS /usr/etc/install
7663 # IRIX /sbin/install
7664 # AIX /bin/install
7665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7667 # ./install, which can be erroneously created by make from ./install.sh.
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7669 $as_echo_n "checking for a BSD compatible install... " >&6; }
7670 if test -z "$INSTALL"; then
7671 if test "${ac_cv_path_install+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7675 for ac_dir in $PATH; do
7676 # Account for people who put trailing slashes in PATH elements.
7677 case "$ac_dir/" in
7678 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7680 # OSF1 and SCO ODT 3.0 have their own names for install.
7681 for ac_prog in ginstall scoinst install; do
7682 if test -f $ac_dir/$ac_prog; then
7683 if test $ac_prog = install &&
7684 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7685 # AIX install. It has an incompatible calling convention.
7686 # OSF/1 installbsd also uses dspmsg, but is usable.
7688 else
7689 ac_cv_path_install="$ac_dir/$ac_prog -c"
7690 break 2
7693 done
7695 esac
7696 done
7697 IFS="$ac_save_IFS"
7700 if test "${ac_cv_path_install+set}" = set; then
7701 INSTALL="$ac_cv_path_install"
7702 else
7703 # As a last resort, use the slow shell script. We don't cache a
7704 # path for INSTALL within a source directory, because that will
7705 # break other packages using the cache if that directory is
7706 # removed, or if the path is relative.
7707 INSTALL="$ac_install_sh"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7711 $as_echo "$INSTALL" >&6; }
7713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7714 # It thinks the first close brace ends the variable substitution.
7715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7720 # See if cmp has --ignore-initial.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7722 $as_echo_n "checking for cmp's capabilities... " >&6; }
7723 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 echo abfoo >t1
7727 echo cdfoo >t2
7728 gcc_cv_prog_cmp_skip=slowcompare
7729 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7730 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7732 else
7733 gcc_cv_prog_cmp_skip=gnucompare
7736 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7737 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7738 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7740 else
7741 gcc_cv_prog_cmp_skip=fastcompare
7745 rm t1 t2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7749 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7750 make_compare_target=$gcc_cv_prog_cmp_skip
7754 # See if we have the mktemp command.
7755 # Extract the first word of "mktemp", so it can be a program name with args.
7756 set dummy mktemp; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$have_mktemp_command"; then
7763 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_have_mktemp_command="yes"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7776 done
7777 done
7778 IFS=$as_save_IFS
7780 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7783 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7784 if test -n "$have_mktemp_command"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7786 $as_echo "$have_mktemp_command" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7794 # See if makeinfo has been installed and is modern enough
7795 # that we can use it.
7797 # Extract the first word of "makeinfo", so it can be a program name with args.
7798 set dummy makeinfo; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$MAKEINFO"; then
7805 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_MAKEINFO="makeinfo"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7818 done
7819 done
7820 IFS=$as_save_IFS
7824 MAKEINFO=$ac_cv_prog_MAKEINFO
7825 if test -n "$MAKEINFO"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7827 $as_echo "$MAKEINFO" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7834 if test -n "$MAKEINFO"; then
7835 # Found it, now check the version.
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7837 $as_echo_n "checking for modern makeinfo... " >&6; }
7838 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7842 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7844 case $ac_prog_version in
7845 '') gcc_cv_prog_makeinfo_modern=no;;
7846 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7847 *) gcc_cv_prog_makeinfo_modern=no;;
7848 esac
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7852 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7853 else
7854 gcc_cv_prog_makeinfo_modern=no
7856 if test $gcc_cv_prog_makeinfo_modern = no; then
7857 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7860 if test $gcc_cv_prog_makeinfo_modern = no; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7862 *** Makeinfo is missing or too old.
7863 *** Info documentation will not be built." >&5
7864 $as_echo "$as_me: WARNING:
7865 *** Makeinfo is missing or too old.
7866 *** Info documentation will not be built." >&2;}
7867 BUILD_INFO=
7868 else
7869 BUILD_INFO=info
7873 # Is pod2man recent enough to regenerate manpages?
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7875 $as_echo_n "checking for recent Pod::Man... " >&6; }
7876 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7878 $as_echo "yes" >&6; }
7879 GENERATED_MANPAGES=generated-manpages
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 GENERATED_MANPAGES=
7887 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7889 # How about lex?
7890 for ac_prog in flex
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy $ac_prog; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_FLEX+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 if test -n "$FLEX"; then
7900 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_FLEX="$ac_prog"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7913 done
7914 done
7915 IFS=$as_save_IFS
7919 FLEX=$ac_cv_prog_FLEX
7920 if test -n "$FLEX"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7922 $as_echo "$FLEX" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7929 test -n "$FLEX" && break
7930 done
7931 test -n "$FLEX" || FLEX="$MISSING flex"
7934 # Bison?
7935 for ac_prog in bison
7937 # Extract the first word of "$ac_prog", so it can be a program name with args.
7938 set dummy $ac_prog; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_BISON+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$BISON"; then
7945 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_BISON="$ac_prog"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7958 done
7959 done
7960 IFS=$as_save_IFS
7964 BISON=$ac_cv_prog_BISON
7965 if test -n "$BISON"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7967 $as_echo "$BISON" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7974 test -n "$BISON" && break
7975 done
7976 test -n "$BISON" || BISON="$MISSING bison"
7979 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7980 # check for build == host before using them.
7982 # NM
7983 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7984 && test -d ../binutils ; then
7985 NM='${objdir}/../binutils/nm-new'
7986 else
7987 # Extract the first word of "nm", so it can be a program name with args.
7988 set dummy nm; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_NM+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 if test -n "$NM"; then
7995 ac_cv_prog_NM="$NM" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_NM="nm"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8008 done
8009 done
8010 IFS=$as_save_IFS
8012 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8015 NM=$ac_cv_prog_NM
8016 if test -n "$NM"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8018 $as_echo "$NM" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8027 # AR
8028 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8029 && test -d ../binutils ; then
8030 AR='${objdir}/../binutils/ar'
8031 else
8032 # Extract the first word of "ar", so it can be a program name with args.
8033 set dummy ar; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_AR+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$AR"; then
8040 ac_cv_prog_AR="$AR" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_AR="ar"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8053 done
8054 done
8055 IFS=$as_save_IFS
8057 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8060 AR=$ac_cv_prog_AR
8061 if test -n "$AR"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8063 $as_echo "$AR" >&6; }
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8073 # --------------------
8074 # Checks for C headers
8075 # --------------------
8077 # Need to reject headers which give warnings, so that the -Werror bootstrap
8078 # works later. *sigh* This needs to come before all header checks.
8080 ac_c_preproc_warn_flag=yes
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8083 $as_echo_n "checking for ANSI C header files... " >&6; }
8084 if test "${ac_cv_header_stdc+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 #include <stdlib.h>
8090 #include <stdarg.h>
8091 #include <string.h>
8092 #include <float.h>
8095 main ()
8099 return 0;
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"; then :
8103 ac_cv_header_stdc=yes
8104 else
8105 ac_cv_header_stdc=no
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 if test $ac_cv_header_stdc = yes; then
8110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <string.h>
8115 _ACEOF
8116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 $EGREP "memchr" >/dev/null 2>&1; then :
8119 else
8120 ac_cv_header_stdc=no
8122 rm -f conftest*
8126 if test $ac_cv_header_stdc = yes; then
8127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130 #include <stdlib.h>
8132 _ACEOF
8133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 $EGREP "free" >/dev/null 2>&1; then :
8136 else
8137 ac_cv_header_stdc=no
8139 rm -f conftest*
8143 if test $ac_cv_header_stdc = yes; then
8144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8145 if test "$cross_compiling" = yes; then :
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #include <ctype.h>
8151 #include <stdlib.h>
8152 #if ((' ' & 0x0FF) == 0x020)
8153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8155 #else
8156 # define ISLOWER(c) \
8157 (('a' <= (c) && (c) <= 'i') \
8158 || ('j' <= (c) && (c) <= 'r') \
8159 || ('s' <= (c) && (c) <= 'z'))
8160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8161 #endif
8163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8165 main ()
8167 int i;
8168 for (i = 0; i < 256; i++)
8169 if (XOR (islower (i), ISLOWER (i))
8170 || toupper (i) != TOUPPER (i))
8171 return 2;
8172 return 0;
8174 _ACEOF
8175 if ac_fn_c_try_run "$LINENO"; then :
8177 else
8178 ac_cv_header_stdc=no
8180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8181 conftest.$ac_objext conftest.beam conftest.$ac_ext
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8187 $as_echo "$ac_cv_header_stdc" >&6; }
8188 if test $ac_cv_header_stdc = yes; then
8190 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8195 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8196 if test "${ac_cv_header_time+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #include <sys/types.h>
8202 #include <sys/time.h>
8203 #include <time.h>
8206 main ()
8208 if ((struct tm *) 0)
8209 return 0;
8211 return 0;
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 ac_cv_header_time=yes
8216 else
8217 ac_cv_header_time=no
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8222 $as_echo "$ac_cv_header_time" >&6; }
8223 if test $ac_cv_header_time = yes; then
8225 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8230 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8231 if test "${gcc_cv_header_string+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <string.h>
8237 #include <strings.h>
8239 main ()
8243 return 0;
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247 gcc_cv_header_string=yes
8248 else
8249 gcc_cv_header_string=no
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8254 $as_echo "$gcc_cv_header_string" >&6; }
8255 if test $gcc_cv_header_string = yes; then
8257 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8262 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8263 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <sys/types.h>
8269 #include <sys/wait.h>
8270 #ifndef WEXITSTATUS
8271 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8272 #endif
8273 #ifndef WIFEXITED
8274 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8275 #endif
8278 main ()
8280 int s;
8281 wait (&s);
8282 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8284 return 0;
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 ac_cv_header_sys_wait_h=yes
8289 else
8290 ac_cv_header_sys_wait_h=no
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8295 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8296 if test $ac_cv_header_sys_wait_h = yes; then
8298 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8303 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8304 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 #include <sys/types.h>
8310 #include <termios.h>
8311 #ifdef TIOCGWINSZ
8313 #endif
8315 _ACEOF
8316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8317 $EGREP "yes" >/dev/null 2>&1; then :
8318 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8319 else
8320 ac_cv_sys_tiocgwinsz_in_termios_h=no
8322 rm -f conftest*
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8326 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8328 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8330 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8331 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <sys/types.h>
8337 #include <sys/ioctl.h>
8338 #ifdef TIOCGWINSZ
8340 #endif
8342 _ACEOF
8343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344 $EGREP "yes" >/dev/null 2>&1; then :
8345 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8346 else
8347 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8349 rm -f conftest*
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8353 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8355 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8357 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8362 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8363 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8364 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8365 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8366 do :
8367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8369 eval as_val=\$$as_ac_Header
8370 if test "x$as_val" = x""yes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8373 _ACEOF
8376 done
8379 # Check for thread headers.
8380 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8381 if test "x$ac_cv_header_thread_h" = x""yes; then :
8382 have_thread_h=yes
8383 else
8384 have_thread_h=
8387 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8388 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8389 have_pthread_h=yes
8390 else
8391 have_pthread_h=
8395 # These tests can't be done till we know if we have limits.h.
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8397 $as_echo_n "checking for CHAR_BIT... " >&6; }
8398 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #ifdef HAVE_LIMITS_H
8404 #include <limits.h>
8405 #endif
8406 #ifdef CHAR_BIT
8407 found
8408 #endif
8409 _ACEOF
8410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8411 $EGREP "found" >/dev/null 2>&1; then :
8412 gcc_cv_decl_char_bit=yes
8413 else
8414 gcc_cv_decl_char_bit=no
8416 rm -f conftest*
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8421 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8422 if test $gcc_cv_decl_char_bit = no; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8424 $as_echo_n "checking number of bits in a byte... " >&6; }
8425 if test "${gcc_cv_c_nbby+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8429 gcc_cv_c_nbby=
8430 while test $i -lt 65; do
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8435 main ()
8437 switch(0) {
8438 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8439 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8442 return 0;
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 gcc_cv_c_nbby=$i; break
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 i=`expr $i + 1`
8450 done
8451 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8455 $as_echo "$gcc_cv_c_nbby" >&6; }
8456 if test $gcc_cv_c_nbby = failed; then
8457 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8458 else
8460 cat >>confdefs.h <<_ACEOF
8461 #define CHAR_BIT $gcc_cv_c_nbby
8462 _ACEOF
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8467 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8468 if test "${ac_cv_c_bigendian+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 ac_cv_c_bigendian=unknown
8472 # See if we're dealing with a universal compiler.
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #ifndef __APPLE_CC__
8476 not a universal capable compiler
8477 #endif
8478 typedef int dummy;
8480 _ACEOF
8481 if ac_fn_c_try_compile "$LINENO"; then :
8483 # Check for potential -arch flags. It is not universal unless
8484 # there are at least two -arch flags with different values.
8485 ac_arch=
8486 ac_prev=
8487 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8488 if test -n "$ac_prev"; then
8489 case $ac_word in
8490 i?86 | x86_64 | ppc | ppc64)
8491 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8492 ac_arch=$ac_word
8493 else
8494 ac_cv_c_bigendian=universal
8495 break
8498 esac
8499 ac_prev=
8500 elif test "x$ac_word" = "x-arch"; then
8501 ac_prev=arch
8503 done
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 if test $ac_cv_c_bigendian = unknown; then
8507 # See if sys/param.h defines the BYTE_ORDER macro.
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 #include <sys/types.h>
8511 #include <sys/param.h>
8514 main ()
8516 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8517 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8518 && LITTLE_ENDIAN)
8519 bogus endian macros
8520 #endif
8523 return 0;
8525 _ACEOF
8526 if ac_fn_c_try_compile "$LINENO"; then :
8527 # It does; now see whether it defined to BIG_ENDIAN or not.
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 #include <sys/types.h>
8531 #include <sys/param.h>
8534 main ()
8536 #if BYTE_ORDER != BIG_ENDIAN
8537 not big endian
8538 #endif
8541 return 0;
8543 _ACEOF
8544 if ac_fn_c_try_compile "$LINENO"; then :
8545 ac_cv_c_bigendian=yes
8546 else
8547 ac_cv_c_bigendian=no
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 if test $ac_cv_c_bigendian = unknown; then
8554 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <limits.h>
8560 main ()
8562 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8563 bogus endian macros
8564 #endif
8567 return 0;
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571 # It does; now see whether it defined to _BIG_ENDIAN or not.
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8574 #include <limits.h>
8577 main ()
8579 #ifndef _BIG_ENDIAN
8580 not big endian
8581 #endif
8584 return 0;
8586 _ACEOF
8587 if ac_fn_c_try_compile "$LINENO"; then :
8588 ac_cv_c_bigendian=yes
8589 else
8590 ac_cv_c_bigendian=no
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 if test $ac_cv_c_bigendian = unknown; then
8597 # Compile a test program.
8598 if test "$cross_compiling" = yes; then :
8599 # Try to guess by grepping values from an object file.
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 short int ascii_mm[] =
8603 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8604 short int ascii_ii[] =
8605 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8606 int use_ascii (int i) {
8607 return ascii_mm[i] + ascii_ii[i];
8609 short int ebcdic_ii[] =
8610 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8611 short int ebcdic_mm[] =
8612 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8613 int use_ebcdic (int i) {
8614 return ebcdic_mm[i] + ebcdic_ii[i];
8616 extern int foo;
8619 main ()
8621 return use_ascii (foo) == use_ebcdic (foo);
8623 return 0;
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"; then :
8627 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8628 ac_cv_c_bigendian=yes
8630 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8631 if test "$ac_cv_c_bigendian" = unknown; then
8632 ac_cv_c_bigendian=no
8633 else
8634 # finding both strings is unlikely to happen, but who knows?
8635 ac_cv_c_bigendian=unknown
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 else
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 $ac_includes_default
8645 main ()
8648 /* Are we little or big endian? From Harbison&Steele. */
8649 union
8651 long int l;
8652 char c[sizeof (long int)];
8653 } u;
8654 u.l = 1;
8655 return u.c[sizeof (long int) - 1] == 1;
8658 return 0;
8660 _ACEOF
8661 if ac_fn_c_try_run "$LINENO"; then :
8662 ac_cv_c_bigendian=no
8663 else
8664 ac_cv_c_bigendian=yes
8666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8667 conftest.$ac_objext conftest.beam conftest.$ac_ext
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8673 $as_echo "$ac_cv_c_bigendian" >&6; }
8674 case $ac_cv_c_bigendian in #(
8675 yes)
8676 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8677 ;; #(
8679 ;; #(
8680 universal)
8682 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8684 ;; #(
8686 as_fn_error "unknown endianness
8687 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8688 esac
8691 # ----------------------
8692 # Checks for C++ headers
8693 # ----------------------
8695 ac_ext=cpp
8696 ac_cpp='$CXXCPP $CPPFLAGS'
8697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8701 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8702 if test -z "$CXXCPP"; then
8703 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 # Double quotes because CXXCPP needs to be expanded
8707 for CXXCPP in "$CXX -E" "/lib/cpp"
8709 ac_preproc_ok=false
8710 for ac_cxx_preproc_warn_flag in '' yes
8712 # Use a header file that comes with gcc, so configuring glibc
8713 # with a fresh cross-compiler works.
8714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8715 # <limits.h> exists even on freestanding compilers.
8716 # On the NeXT, cc -E runs the code through the compiler's parser,
8717 # not just through cpp. "Syntax error" is here to catch this case.
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #ifdef __STDC__
8721 # include <limits.h>
8722 #else
8723 # include <assert.h>
8724 #endif
8725 Syntax error
8726 _ACEOF
8727 if ac_fn_cxx_try_cpp "$LINENO"; then :
8729 else
8730 # Broken: fails on valid input.
8731 continue
8733 rm -f conftest.err conftest.$ac_ext
8735 # OK, works on sane cases. Now check whether nonexistent headers
8736 # can be detected and how.
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <ac_nonexistent.h>
8740 _ACEOF
8741 if ac_fn_cxx_try_cpp "$LINENO"; then :
8742 # Broken: success on invalid input.
8743 continue
8744 else
8745 # Passes both tests.
8746 ac_preproc_ok=:
8747 break
8749 rm -f conftest.err conftest.$ac_ext
8751 done
8752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8753 rm -f conftest.err conftest.$ac_ext
8754 if $ac_preproc_ok; then :
8755 break
8758 done
8759 ac_cv_prog_CXXCPP=$CXXCPP
8762 CXXCPP=$ac_cv_prog_CXXCPP
8763 else
8764 ac_cv_prog_CXXCPP=$CXXCPP
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8767 $as_echo "$CXXCPP" >&6; }
8768 ac_preproc_ok=false
8769 for ac_cxx_preproc_warn_flag in '' yes
8771 # Use a header file that comes with gcc, so configuring glibc
8772 # with a fresh cross-compiler works.
8773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 # <limits.h> exists even on freestanding compilers.
8775 # On the NeXT, cc -E runs the code through the compiler's parser,
8776 # not just through cpp. "Syntax error" is here to catch this case.
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 #ifdef __STDC__
8780 # include <limits.h>
8781 #else
8782 # include <assert.h>
8783 #endif
8784 Syntax error
8785 _ACEOF
8786 if ac_fn_cxx_try_cpp "$LINENO"; then :
8788 else
8789 # Broken: fails on valid input.
8790 continue
8792 rm -f conftest.err conftest.$ac_ext
8794 # OK, works on sane cases. Now check whether nonexistent headers
8795 # can be detected and how.
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 #include <ac_nonexistent.h>
8799 _ACEOF
8800 if ac_fn_cxx_try_cpp "$LINENO"; then :
8801 # Broken: success on invalid input.
8802 continue
8803 else
8804 # Passes both tests.
8805 ac_preproc_ok=:
8806 break
8808 rm -f conftest.err conftest.$ac_ext
8810 done
8811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812 rm -f conftest.err conftest.$ac_ext
8813 if $ac_preproc_ok; then :
8815 else
8816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8819 See \`config.log' for more details." >&5
8820 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8821 See \`config.log' for more details." >&2;}; }
8824 ac_ext=c
8825 ac_cpp='$CPP $CPPFLAGS'
8826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831 ac_ext=cpp
8832 ac_cpp='$CXXCPP $CPPFLAGS'
8833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8839 for ac_header in unordered_map
8840 do :
8841 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8842 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8843 cat >>confdefs.h <<_ACEOF
8844 #define HAVE_UNORDERED_MAP 1
8845 _ACEOF
8848 done
8850 for ac_header in tr1/unordered_map
8851 do :
8852 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8853 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8854 cat >>confdefs.h <<_ACEOF
8855 #define HAVE_TR1_UNORDERED_MAP 1
8856 _ACEOF
8859 done
8861 for ac_header in ext/hash_map
8862 do :
8863 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8864 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8865 cat >>confdefs.h <<_ACEOF
8866 #define HAVE_EXT_HASH_MAP 1
8867 _ACEOF
8870 done
8873 ac_ext=c
8874 ac_cpp='$CPP $CPPFLAGS'
8875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8880 # --------
8881 # Dependency checking.
8882 # --------
8884 ac_ext=cpp
8885 ac_cpp='$CXXCPP $CPPFLAGS'
8886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8890 rm -rf .tst 2>/dev/null
8891 mkdir .tst 2>/dev/null
8892 if test -d .tst; then
8893 am__leading_dot=.
8894 else
8895 am__leading_dot=_
8897 rmdir .tst 2>/dev/null
8899 DEPDIR="${am__leading_dot}deps"
8901 ac_config_commands="$ac_config_commands depdir"
8904 ac_config_commands="$ac_config_commands gccdepdir"
8907 depcc="$CXX" am_compiler_list=
8909 am_depcomp=$ac_aux_dir/depcomp
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8911 $as_echo_n "checking dependency style of $depcc... " >&6; }
8912 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 if test -f "$am_depcomp"; then
8916 # We make a subdir and do the tests there. Otherwise we can end up
8917 # making bogus files that we don't know about and never remove. For
8918 # instance it was reported that on HP-UX the gcc test will end up
8919 # making a dummy file named `D' -- because `-MD' means `put the output
8920 # in D'.
8921 mkdir conftest.dir
8922 # Copy depcomp to subdir because otherwise we won't find it if we're
8923 # using a relative directory.
8924 cp "$am_depcomp" conftest.dir
8925 cd conftest.dir
8926 # We will build objects and dependencies in a subdirectory because
8927 # it helps to detect inapplicable dependency modes. For instance
8928 # both Tru64's cc and ICC support -MD to output dependencies as a
8929 # side effect of compilation, but ICC will put the dependencies in
8930 # the current directory while Tru64 will put them in the object
8931 # directory.
8932 mkdir sub
8934 am_cv_CXX_dependencies_compiler_type=none
8935 if test "$am_compiler_list" = ""; then
8936 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8938 for depmode in $am_compiler_list; do
8939 if test $depmode = none; then break; fi
8941 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8942 # Setup a source with many dependencies, because some compilers
8943 # like to wrap large dependency lists on column 80 (with \), and
8944 # we should not choose a depcomp mode which is confused by this.
8946 # We need to recreate these files for each test, as the compiler may
8947 # overwrite some of them when testing with obscure command lines.
8948 # This happens at least with the AIX C compiler.
8949 : > sub/conftest.c
8950 for i in 1 2 3 4 5 6; do
8951 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8952 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8953 # Solaris 8's {/usr,}/bin/sh.
8954 touch sub/conftst$i.h
8955 done
8956 echo "include sub/conftest.Po" > confmf
8958 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8959 # mode. It turns out that the SunPro C++ compiler does not properly
8960 # handle `-M -o', and we need to detect this.
8961 depcmd="depmode=$depmode \
8962 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8964 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8965 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8966 if env $depcmd > conftest.err 2>&1 &&
8967 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8968 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8969 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8970 # icc doesn't choke on unknown options, it will just issue warnings
8971 # or remarks (even with -Werror). So we grep stderr for any message
8972 # that says an option was ignored or not supported.
8973 # When given -MP, icc 7.0 and 7.1 complain thusly:
8974 # icc: Command line warning: ignoring option '-M'; no argument required
8975 # The diagnosis changed in icc 8.0:
8976 # icc: Command line remark: option '-MP' not supported
8977 if (grep 'ignoring option' conftest.err ||
8978 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8979 am_cv_CXX_dependencies_compiler_type=$depmode
8980 $as_echo "$as_me:$LINENO: success" >&5
8981 break
8984 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8985 sed -e 's/^/| /' < conftest.err >&5
8986 done
8988 cd ..
8989 rm -rf conftest.dir
8990 else
8991 am_cv_CXX_dependencies_compiler_type=none
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8996 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8997 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8998 then as_fn_error "no usable dependency style found" "$LINENO" 5
8999 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9003 ac_ext=c
9004 ac_cpp='$CPP $CPPFLAGS'
9005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9010 # --------
9011 # UNSORTED
9012 # --------
9015 # These libraries may be used by collect2.
9016 # We may need a special search path to get them linked.
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9018 $as_echo_n "checking for collect2 libraries... " >&6; }
9019 if test "${gcc_cv_collect2_libs+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 save_LIBS="$LIBS"
9023 for libs in '' -lld -lmld \
9024 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9025 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9027 LIBS="$libs"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char ldopen ();
9039 main ()
9041 return ldopen ();
9043 return 0;
9045 _ACEOF
9046 if ac_fn_c_try_link "$LINENO"; then :
9047 gcc_cv_collect2_libs="$libs"; break
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 done
9052 LIBS="$save_LIBS"
9053 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9056 $as_echo "$gcc_cv_collect2_libs" >&6; }
9057 case $gcc_cv_collect2_libs in
9058 "none required") ;;
9059 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9060 esac
9063 # When building Ada code on Alpha, we need exc_resume which is usually in
9064 # -lexc. So test for it.
9065 save_LIBS="$LIBS"
9066 LIBS=
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9068 $as_echo_n "checking for library containing exc_resume... " >&6; }
9069 if test "${ac_cv_search_exc_resume+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 ac_func_search_save_LIBS=$LIBS
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9076 /* Override any GCC internal prototype to avoid an error.
9077 Use char because int might match the return type of a GCC
9078 builtin and then its argument prototype would still apply. */
9079 #ifdef __cplusplus
9080 extern "C"
9081 #endif
9082 char exc_resume ();
9084 main ()
9086 return exc_resume ();
9088 return 0;
9090 _ACEOF
9091 for ac_lib in '' exc; do
9092 if test -z "$ac_lib"; then
9093 ac_res="none required"
9094 else
9095 ac_res=-l$ac_lib
9096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 ac_cv_search_exc_resume=$ac_res
9101 rm -f core conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext
9103 if test "${ac_cv_search_exc_resume+set}" = set; then :
9104 break
9106 done
9107 if test "${ac_cv_search_exc_resume+set}" = set; then :
9109 else
9110 ac_cv_search_exc_resume=no
9112 rm conftest.$ac_ext
9113 LIBS=$ac_func_search_save_LIBS
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9116 $as_echo "$ac_cv_search_exc_resume" >&6; }
9117 ac_res=$ac_cv_search_exc_resume
9118 if test "$ac_res" != no; then :
9119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9123 GNAT_LIBEXC="$LIBS"
9124 LIBS="$save_LIBS"
9127 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9128 save_LIBS="$LIBS"
9129 LIBS=
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9131 $as_echo_n "checking for library containing kstat_open... " >&6; }
9132 if test "${ac_cv_search_kstat_open+set}" = set; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 ac_func_search_save_LIBS=$LIBS
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 char kstat_open ();
9147 main ()
9149 return kstat_open ();
9151 return 0;
9153 _ACEOF
9154 for ac_lib in '' kstat; do
9155 if test -z "$ac_lib"; then
9156 ac_res="none required"
9157 else
9158 ac_res=-l$ac_lib
9159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 ac_cv_search_kstat_open=$ac_res
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext
9166 if test "${ac_cv_search_kstat_open+set}" = set; then :
9167 break
9169 done
9170 if test "${ac_cv_search_kstat_open+set}" = set; then :
9172 else
9173 ac_cv_search_kstat_open=no
9175 rm conftest.$ac_ext
9176 LIBS=$ac_func_search_save_LIBS
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9179 $as_echo "$ac_cv_search_kstat_open" >&6; }
9180 ac_res=$ac_cv_search_kstat_open
9181 if test "$ac_res" != no; then :
9182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9186 EXTRA_GCC_LIBS="$LIBS"
9187 LIBS="$save_LIBS"
9190 # Some systems put ldexp and frexp in libm instead of libc; assume
9191 # they're both in the same place. jcf-dump needs them.
9192 save_LIBS="$LIBS"
9193 LIBS=
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9195 $as_echo_n "checking for library containing ldexp... " >&6; }
9196 if test "${ac_cv_search_ldexp+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 ac_func_search_save_LIBS=$LIBS
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char ldexp ();
9211 main ()
9213 return ldexp ();
9215 return 0;
9217 _ACEOF
9218 for ac_lib in '' m; do
9219 if test -z "$ac_lib"; then
9220 ac_res="none required"
9221 else
9222 ac_res=-l$ac_lib
9223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9225 if ac_fn_c_try_link "$LINENO"; then :
9226 ac_cv_search_ldexp=$ac_res
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext
9230 if test "${ac_cv_search_ldexp+set}" = set; then :
9231 break
9233 done
9234 if test "${ac_cv_search_ldexp+set}" = set; then :
9236 else
9237 ac_cv_search_ldexp=no
9239 rm conftest.$ac_ext
9240 LIBS=$ac_func_search_save_LIBS
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9243 $as_echo "$ac_cv_search_ldexp" >&6; }
9244 ac_res=$ac_cv_search_ldexp
9245 if test "$ac_res" != no; then :
9246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9250 LDEXP_LIB="$LIBS"
9251 LIBS="$save_LIBS"
9254 # Use <inttypes.h> only if it exists,
9255 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9256 # PRId64
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9258 $as_echo_n "checking for inttypes.h... " >&6; }
9259 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 #define __STDC_FORMAT_MACROS
9265 #include <sys/types.h>
9266 #include <inttypes.h>
9268 main ()
9270 intmax_t i = -1;
9271 #ifndef PRId64
9272 choke me
9273 #endif
9275 return 0;
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 gcc_cv_header_inttypes_h=yes
9280 else
9281 gcc_cv_header_inttypes_h=no
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9287 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9288 if test $gcc_cv_header_inttypes_h = yes; then
9290 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9296 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9297 popen sysconf strsignal getrusage nl_langinfo \
9298 gettimeofday mbstowcs wcswidth mmap setlocale \
9299 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
9300 do :
9301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9303 eval as_val=\$$as_ac_var
9304 if test "x$as_val" = x""yes; then :
9305 cat >>confdefs.h <<_ACEOF
9306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9307 _ACEOF
9310 done
9313 if test x$ac_cv_func_mbstowcs = xyes; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9315 $as_echo_n "checking whether mbstowcs works... " >&6; }
9316 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 if test "$cross_compiling" = yes; then :
9320 gcc_cv_func_mbstowcs_works=yes
9321 else
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324 #include <stdlib.h>
9325 int main()
9327 mbstowcs(0, "", 0);
9328 return 0;
9330 _ACEOF
9331 if ac_fn_c_try_run "$LINENO"; then :
9332 gcc_cv_func_mbstowcs_works=yes
9333 else
9334 gcc_cv_func_mbstowcs_works=no
9336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9337 conftest.$ac_objext conftest.beam conftest.$ac_ext
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9342 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9343 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9345 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9350 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9351 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9353 else
9355 cat >>confdefs.h <<_ACEOF
9356 #define ssize_t int
9357 _ACEOF
9361 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9362 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9364 else
9366 cat >>confdefs.h <<_ACEOF
9367 #define caddr_t char *
9368 _ACEOF
9374 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9375 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9376 gcc_header_sys_mman_h=yes
9377 else
9378 gcc_header_sys_mman_h=no
9381 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9382 if test "x$ac_cv_func_mmap" = x""yes; then :
9383 gcc_func_mmap=yes
9384 else
9385 gcc_func_mmap=no
9388 if test "$gcc_header_sys_mman_h" != yes \
9389 || test "$gcc_func_mmap" != yes; then
9390 gcc_cv_func_mmap_file=no
9391 gcc_cv_func_mmap_dev_zero=no
9392 gcc_cv_func_mmap_anon=no
9393 else
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9395 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9396 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 # Add a system to this blacklist if
9400 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9401 # memory area containing the same data that you'd get if you applied
9402 # read() to the same fd. The only system known to have a problem here
9403 # is VMS, where text files have record structure.
9404 case "$host_os" in
9405 *vms* | ultrix*)
9406 gcc_cv_func_mmap_file=no ;;
9408 gcc_cv_func_mmap_file=yes;;
9409 esac
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9412 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9414 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9415 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 # Add a system to this blacklist if it has mmap() but /dev/zero
9419 # does not exist, or if mmapping /dev/zero does not give anonymous
9420 # zeroed pages with both the following properties:
9421 # 1. If you map N consecutive pages in with one call, and then
9422 # unmap any subset of those pages, the pages that were not
9423 # explicitly unmapped remain accessible.
9424 # 2. If you map two adjacent blocks of memory and then unmap them
9425 # both at once, they must both go away.
9426 # Systems known to be in this category are Windows (all variants),
9427 # VMS, and Darwin.
9428 case "$host_os" in
9429 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9430 gcc_cv_func_mmap_dev_zero=no ;;
9432 gcc_cv_func_mmap_dev_zero=yes;;
9433 esac
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9436 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9438 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9440 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9441 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446 #include <sys/types.h>
9447 #include <sys/mman.h>
9448 #include <unistd.h>
9450 #ifndef MAP_ANONYMOUS
9451 #define MAP_ANONYMOUS MAP_ANON
9452 #endif
9455 main ()
9457 int n = MAP_ANONYMOUS;
9459 return 0;
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"; then :
9463 gcc_cv_decl_map_anon=yes
9464 else
9465 gcc_cv_decl_map_anon=no
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9470 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9472 if test $gcc_cv_decl_map_anon = no; then
9473 gcc_cv_func_mmap_anon=no
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9476 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9477 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9481 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9482 # doesn't give anonymous zeroed pages with the same properties listed
9483 # above for use of /dev/zero.
9484 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9485 case "$host_os" in
9486 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9487 gcc_cv_func_mmap_anon=no ;;
9489 gcc_cv_func_mmap_anon=yes;;
9490 esac
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9493 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9497 if test $gcc_cv_func_mmap_file = yes; then
9499 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9502 if test $gcc_cv_func_mmap_dev_zero = yes; then
9504 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9507 if test $gcc_cv_func_mmap_anon = yes; then
9509 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9514 case "${host}" in
9515 *-*-*vms*)
9516 # Under VMS, vfork works very differently than on Unix. The standard test
9517 # won't work, and it isn't easily adaptable. It makes more sense to
9518 # just force it.
9519 ac_cv_func_vfork_works=yes
9521 esac
9522 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9523 if test "x$ac_cv_type_pid_t" = x""yes; then :
9525 else
9527 cat >>confdefs.h <<_ACEOF
9528 #define pid_t int
9529 _ACEOF
9533 for ac_header in vfork.h
9534 do :
9535 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9536 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_VFORK_H 1
9539 _ACEOF
9542 done
9544 for ac_func in fork vfork
9545 do :
9546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9547 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9548 eval as_val=\$$as_ac_var
9549 if test "x$as_val" = x""yes; then :
9550 cat >>confdefs.h <<_ACEOF
9551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9552 _ACEOF
9555 done
9557 if test "x$ac_cv_func_fork" = xyes; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9559 $as_echo_n "checking for working fork... " >&6; }
9560 if test "${ac_cv_func_fork_works+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 if test "$cross_compiling" = yes; then :
9564 ac_cv_func_fork_works=cross
9565 else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 $ac_includes_default
9570 main ()
9573 /* By Ruediger Kuhlmann. */
9574 return fork () < 0;
9577 return 0;
9579 _ACEOF
9580 if ac_fn_c_try_run "$LINENO"; then :
9581 ac_cv_func_fork_works=yes
9582 else
9583 ac_cv_func_fork_works=no
9585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9586 conftest.$ac_objext conftest.beam conftest.$ac_ext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9591 $as_echo "$ac_cv_func_fork_works" >&6; }
9593 else
9594 ac_cv_func_fork_works=$ac_cv_func_fork
9596 if test "x$ac_cv_func_fork_works" = xcross; then
9597 case $host in
9598 *-*-amigaos* | *-*-msdosdjgpp*)
9599 # Override, as these systems have only a dummy fork() stub
9600 ac_cv_func_fork_works=no
9603 ac_cv_func_fork_works=yes
9605 esac
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9607 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9609 ac_cv_func_vfork_works=$ac_cv_func_vfork
9610 if test "x$ac_cv_func_vfork" = xyes; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9612 $as_echo_n "checking for working vfork... " >&6; }
9613 if test "${ac_cv_func_vfork_works+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 if test "$cross_compiling" = yes; then :
9617 ac_cv_func_vfork_works=cross
9618 else
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621 /* Thanks to Paul Eggert for this test. */
9622 $ac_includes_default
9623 #include <sys/wait.h>
9624 #ifdef HAVE_VFORK_H
9625 # include <vfork.h>
9626 #endif
9627 /* On some sparc systems, changes by the child to local and incoming
9628 argument registers are propagated back to the parent. The compiler
9629 is told about this with #include <vfork.h>, but some compilers
9630 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9631 static variable whose address is put into a register that is
9632 clobbered by the vfork. */
9633 static void
9634 #ifdef __cplusplus
9635 sparc_address_test (int arg)
9636 # else
9637 sparc_address_test (arg) int arg;
9638 #endif
9640 static pid_t child;
9641 if (!child) {
9642 child = vfork ();
9643 if (child < 0) {
9644 perror ("vfork");
9645 _exit(2);
9647 if (!child) {
9648 arg = getpid();
9649 write(-1, "", 0);
9650 _exit (arg);
9656 main ()
9658 pid_t parent = getpid ();
9659 pid_t child;
9661 sparc_address_test (0);
9663 child = vfork ();
9665 if (child == 0) {
9666 /* Here is another test for sparc vfork register problems. This
9667 test uses lots of local variables, at least as many local
9668 variables as main has allocated so far including compiler
9669 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9670 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9671 reuse the register of parent for one of the local variables,
9672 since it will think that parent can't possibly be used any more
9673 in this routine. Assigning to the local variable will thus
9674 munge parent in the parent process. */
9675 pid_t
9676 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9677 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9678 /* Convince the compiler that p..p7 are live; otherwise, it might
9679 use the same hardware register for all 8 local variables. */
9680 if (p != p1 || p != p2 || p != p3 || p != p4
9681 || p != p5 || p != p6 || p != p7)
9682 _exit(1);
9684 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9685 from child file descriptors. If the child closes a descriptor
9686 before it execs or exits, this munges the parent's descriptor
9687 as well. Test for this by closing stdout in the child. */
9688 _exit(close(fileno(stdout)) != 0);
9689 } else {
9690 int status;
9691 struct stat st;
9693 while (wait(&status) != child)
9695 return (
9696 /* Was there some problem with vforking? */
9697 child < 0
9699 /* Did the child fail? (This shouldn't happen.) */
9700 || status
9702 /* Did the vfork/compiler bug occur? */
9703 || parent != getpid()
9705 /* Did the file descriptor bug occur? */
9706 || fstat(fileno(stdout), &st) != 0
9710 _ACEOF
9711 if ac_fn_c_try_run "$LINENO"; then :
9712 ac_cv_func_vfork_works=yes
9713 else
9714 ac_cv_func_vfork_works=no
9716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9717 conftest.$ac_objext conftest.beam conftest.$ac_ext
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9722 $as_echo "$ac_cv_func_vfork_works" >&6; }
9725 if test "x$ac_cv_func_fork_works" = xcross; then
9726 ac_cv_func_vfork_works=$ac_cv_func_vfork
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9728 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9731 if test "x$ac_cv_func_vfork_works" = xyes; then
9733 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9735 else
9737 $as_echo "#define vfork fork" >>confdefs.h
9740 if test "x$ac_cv_func_fork_works" = xyes; then
9742 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9747 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9748 # iconv() prototype.
9749 ac_ext=cpp
9750 ac_cpp='$CXXCPP $CPPFLAGS'
9751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9756 if test "X$prefix" = "XNONE"; then
9757 acl_final_prefix="$ac_default_prefix"
9758 else
9759 acl_final_prefix="$prefix"
9761 if test "X$exec_prefix" = "XNONE"; then
9762 acl_final_exec_prefix='${prefix}'
9763 else
9764 acl_final_exec_prefix="$exec_prefix"
9766 acl_save_prefix="$prefix"
9767 prefix="$acl_final_prefix"
9768 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9769 prefix="$acl_save_prefix"
9772 # Check whether --with-gnu-ld was given.
9773 if test "${with_gnu_ld+set}" = set; then :
9774 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9775 else
9776 with_gnu_ld=no
9779 # Prepare PATH_SEPARATOR.
9780 # The user is always right.
9781 if test "${PATH_SEPARATOR+set}" != set; then
9782 echo "#! /bin/sh" >conf$$.sh
9783 echo "exit 0" >>conf$$.sh
9784 chmod +x conf$$.sh
9785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9786 PATH_SEPARATOR=';'
9787 else
9788 PATH_SEPARATOR=:
9790 rm -f conf$$.sh
9792 ac_prog=ld
9793 if test "$GCC" = yes; then
9794 # Check if gcc -print-prog-name=ld gives a path.
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9796 $as_echo_n "checking for ld used by GCC... " >&6; }
9797 case $host in
9798 *-*-mingw*)
9799 # gcc leaves a trailing carriage return which upsets mingw
9800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9803 esac
9804 case $ac_prog in
9805 # Accept absolute paths.
9806 [\\/]* | [A-Za-z]:[\\/]*)
9807 re_direlt='/[^/][^/]*/\.\./'
9808 # Canonicalize the path of ld
9809 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9810 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9811 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9812 done
9813 test -z "$LD" && LD="$ac_prog"
9816 # If it fails, then pretend we aren't using GCC.
9817 ac_prog=ld
9820 # If it is relative, then search for the first ld in PATH.
9821 with_gnu_ld=unknown
9823 esac
9824 elif test "$with_gnu_ld" = yes; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9826 $as_echo_n "checking for GNU ld... " >&6; }
9827 else
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9829 $as_echo_n "checking for non-GNU ld... " >&6; }
9831 if test "${acl_cv_path_LD+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 if test -z "$LD"; then
9835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9836 for ac_dir in $PATH; do
9837 test -z "$ac_dir" && ac_dir=.
9838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9839 acl_cv_path_LD="$ac_dir/$ac_prog"
9840 # Check to see if the program is GNU ld. I'd rather use --version,
9841 # but apparently some GNU ld's only accept -v.
9842 # Break only if it was the GNU/non-GNU ld that we prefer.
9843 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9844 test "$with_gnu_ld" != no && break
9845 else
9846 test "$with_gnu_ld" != yes && break
9849 done
9850 IFS="$ac_save_ifs"
9851 else
9852 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9856 LD="$acl_cv_path_LD"
9857 if test -n "$LD"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9859 $as_echo "$LD" >&6; }
9860 else
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9864 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9866 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9867 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9871 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9872 acl_cv_prog_gnu_ld=yes
9873 else
9874 acl_cv_prog_gnu_ld=no
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9878 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9879 with_gnu_ld=$acl_cv_prog_gnu_ld
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9884 $as_echo_n "checking for shared library run path origin... " >&6; }
9885 if test "${acl_cv_rpath+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9889 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9890 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9891 . ./conftest.sh
9892 rm -f ./conftest.sh
9893 acl_cv_rpath=done
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9897 $as_echo "$acl_cv_rpath" >&6; }
9898 wl="$acl_cv_wl"
9899 libext="$acl_cv_libext"
9900 shlibext="$acl_cv_shlibext"
9901 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9902 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9903 hardcode_direct="$acl_cv_hardcode_direct"
9904 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9905 # Check whether --enable-rpath was given.
9906 if test "${enable_rpath+set}" = set; then :
9907 enableval=$enable_rpath; :
9908 else
9909 enable_rpath=yes
9919 use_additional=yes
9921 acl_save_prefix="$prefix"
9922 prefix="$acl_final_prefix"
9923 acl_save_exec_prefix="$exec_prefix"
9924 exec_prefix="$acl_final_exec_prefix"
9926 eval additional_includedir=\"$includedir\"
9927 eval additional_libdir=\"$libdir\"
9929 exec_prefix="$acl_save_exec_prefix"
9930 prefix="$acl_save_prefix"
9933 # Check whether --with-libiconv-prefix was given.
9934 if test "${with_libiconv_prefix+set}" = set; then :
9935 withval=$with_libiconv_prefix;
9936 if test "X$withval" = "Xno"; then
9937 use_additional=no
9938 else
9939 if test "X$withval" = "X"; then
9941 acl_save_prefix="$prefix"
9942 prefix="$acl_final_prefix"
9943 acl_save_exec_prefix="$exec_prefix"
9944 exec_prefix="$acl_final_exec_prefix"
9946 eval additional_includedir=\"$includedir\"
9947 eval additional_libdir=\"$libdir\"
9949 exec_prefix="$acl_save_exec_prefix"
9950 prefix="$acl_save_prefix"
9952 else
9953 additional_includedir="$withval/include"
9954 additional_libdir="$withval/lib"
9960 LIBICONV=
9961 LTLIBICONV=
9962 INCICONV=
9963 rpathdirs=
9964 ltrpathdirs=
9965 names_already_handled=
9966 names_next_round='iconv '
9967 while test -n "$names_next_round"; do
9968 names_this_round="$names_next_round"
9969 names_next_round=
9970 for name in $names_this_round; do
9971 already_handled=
9972 for n in $names_already_handled; do
9973 if test "$n" = "$name"; then
9974 already_handled=yes
9975 break
9977 done
9978 if test -z "$already_handled"; then
9979 names_already_handled="$names_already_handled $name"
9980 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9981 eval value=\"\$HAVE_LIB$uppername\"
9982 if test -n "$value"; then
9983 if test "$value" = yes; then
9984 eval value=\"\$LIB$uppername\"
9985 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9986 eval value=\"\$LTLIB$uppername\"
9987 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9988 else
9991 else
9992 found_dir=
9993 found_la=
9994 found_so=
9995 found_a=
9996 if test $use_additional = yes; then
9997 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9998 found_dir="$additional_libdir"
9999 found_so="$additional_libdir/lib$name.$shlibext"
10000 if test -f "$additional_libdir/lib$name.la"; then
10001 found_la="$additional_libdir/lib$name.la"
10003 else
10004 if test -f "$additional_libdir/lib$name.$libext"; then
10005 found_dir="$additional_libdir"
10006 found_a="$additional_libdir/lib$name.$libext"
10007 if test -f "$additional_libdir/lib$name.la"; then
10008 found_la="$additional_libdir/lib$name.la"
10013 if test "X$found_dir" = "X"; then
10014 for x in $LDFLAGS $LTLIBICONV; do
10016 acl_save_prefix="$prefix"
10017 prefix="$acl_final_prefix"
10018 acl_save_exec_prefix="$exec_prefix"
10019 exec_prefix="$acl_final_exec_prefix"
10020 eval x=\"$x\"
10021 exec_prefix="$acl_save_exec_prefix"
10022 prefix="$acl_save_prefix"
10024 case "$x" in
10025 -L*)
10026 dir=`echo "X$x" | sed -e 's/^X-L//'`
10027 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10028 found_dir="$dir"
10029 found_so="$dir/lib$name.$shlibext"
10030 if test -f "$dir/lib$name.la"; then
10031 found_la="$dir/lib$name.la"
10033 else
10034 if test -f "$dir/lib$name.$libext"; then
10035 found_dir="$dir"
10036 found_a="$dir/lib$name.$libext"
10037 if test -f "$dir/lib$name.la"; then
10038 found_la="$dir/lib$name.la"
10043 esac
10044 if test "X$found_dir" != "X"; then
10045 break
10047 done
10049 if test "X$found_dir" != "X"; then
10050 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10051 if test "X$found_so" != "X"; then
10052 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10053 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10054 else
10055 haveit=
10056 for x in $ltrpathdirs; do
10057 if test "X$x" = "X$found_dir"; then
10058 haveit=yes
10059 break
10061 done
10062 if test -z "$haveit"; then
10063 ltrpathdirs="$ltrpathdirs $found_dir"
10065 if test "$hardcode_direct" = yes; then
10066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10067 else
10068 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10070 haveit=
10071 for x in $rpathdirs; do
10072 if test "X$x" = "X$found_dir"; then
10073 haveit=yes
10074 break
10076 done
10077 if test -z "$haveit"; then
10078 rpathdirs="$rpathdirs $found_dir"
10080 else
10081 haveit=
10082 for x in $LDFLAGS $LIBICONV; do
10084 acl_save_prefix="$prefix"
10085 prefix="$acl_final_prefix"
10086 acl_save_exec_prefix="$exec_prefix"
10087 exec_prefix="$acl_final_exec_prefix"
10088 eval x=\"$x\"
10089 exec_prefix="$acl_save_exec_prefix"
10090 prefix="$acl_save_prefix"
10092 if test "X$x" = "X-L$found_dir"; then
10093 haveit=yes
10094 break
10096 done
10097 if test -z "$haveit"; then
10098 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10100 if test "$hardcode_minus_L" != no; then
10101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10102 else
10103 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10108 else
10109 if test "X$found_a" != "X"; then
10110 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10111 else
10112 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10115 additional_includedir=
10116 case "$found_dir" in
10117 */lib | */lib/)
10118 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10119 additional_includedir="$basedir/include"
10121 esac
10122 if test "X$additional_includedir" != "X"; then
10123 if test "X$additional_includedir" != "X/usr/include"; then
10124 haveit=
10125 if test "X$additional_includedir" = "X/usr/local/include"; then
10126 if test -n "$GCC"; then
10127 case $host_os in
10128 linux*) haveit=yes;;
10129 esac
10132 if test -z "$haveit"; then
10133 for x in $CPPFLAGS $INCICONV; do
10135 acl_save_prefix="$prefix"
10136 prefix="$acl_final_prefix"
10137 acl_save_exec_prefix="$exec_prefix"
10138 exec_prefix="$acl_final_exec_prefix"
10139 eval x=\"$x\"
10140 exec_prefix="$acl_save_exec_prefix"
10141 prefix="$acl_save_prefix"
10143 if test "X$x" = "X-I$additional_includedir"; then
10144 haveit=yes
10145 break
10147 done
10148 if test -z "$haveit"; then
10149 if test -d "$additional_includedir"; then
10150 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10156 if test -n "$found_la"; then
10157 save_libdir="$libdir"
10158 case "$found_la" in
10159 */* | *\\*) . "$found_la" ;;
10160 *) . "./$found_la" ;;
10161 esac
10162 libdir="$save_libdir"
10163 for dep in $dependency_libs; do
10164 case "$dep" in
10165 -L*)
10166 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10167 if test "X$additional_libdir" != "X/usr/lib"; then
10168 haveit=
10169 if test "X$additional_libdir" = "X/usr/local/lib"; then
10170 if test -n "$GCC"; then
10171 case $host_os in
10172 linux*) haveit=yes;;
10173 esac
10176 if test -z "$haveit"; then
10177 haveit=
10178 for x in $LDFLAGS $LIBICONV; do
10180 acl_save_prefix="$prefix"
10181 prefix="$acl_final_prefix"
10182 acl_save_exec_prefix="$exec_prefix"
10183 exec_prefix="$acl_final_exec_prefix"
10184 eval x=\"$x\"
10185 exec_prefix="$acl_save_exec_prefix"
10186 prefix="$acl_save_prefix"
10188 if test "X$x" = "X-L$additional_libdir"; then
10189 haveit=yes
10190 break
10192 done
10193 if test -z "$haveit"; then
10194 if test -d "$additional_libdir"; then
10195 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10198 haveit=
10199 for x in $LDFLAGS $LTLIBICONV; do
10201 acl_save_prefix="$prefix"
10202 prefix="$acl_final_prefix"
10203 acl_save_exec_prefix="$exec_prefix"
10204 exec_prefix="$acl_final_exec_prefix"
10205 eval x=\"$x\"
10206 exec_prefix="$acl_save_exec_prefix"
10207 prefix="$acl_save_prefix"
10209 if test "X$x" = "X-L$additional_libdir"; then
10210 haveit=yes
10211 break
10213 done
10214 if test -z "$haveit"; then
10215 if test -d "$additional_libdir"; then
10216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10222 -R*)
10223 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10224 if test "$enable_rpath" != no; then
10225 haveit=
10226 for x in $rpathdirs; do
10227 if test "X$x" = "X$dir"; then
10228 haveit=yes
10229 break
10231 done
10232 if test -z "$haveit"; then
10233 rpathdirs="$rpathdirs $dir"
10235 haveit=
10236 for x in $ltrpathdirs; do
10237 if test "X$x" = "X$dir"; then
10238 haveit=yes
10239 break
10241 done
10242 if test -z "$haveit"; then
10243 ltrpathdirs="$ltrpathdirs $dir"
10247 -l*)
10248 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10250 *.la)
10251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10254 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10255 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10257 esac
10258 done
10260 else
10261 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10262 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10266 done
10267 done
10268 if test "X$rpathdirs" != "X"; then
10269 if test -n "$hardcode_libdir_separator"; then
10270 alldirs=
10271 for found_dir in $rpathdirs; do
10272 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10273 done
10274 acl_save_libdir="$libdir"
10275 libdir="$alldirs"
10276 eval flag=\"$hardcode_libdir_flag_spec\"
10277 libdir="$acl_save_libdir"
10278 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10279 else
10280 for found_dir in $rpathdirs; do
10281 acl_save_libdir="$libdir"
10282 libdir="$found_dir"
10283 eval flag=\"$hardcode_libdir_flag_spec\"
10284 libdir="$acl_save_libdir"
10285 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10286 done
10289 if test "X$ltrpathdirs" != "X"; then
10290 for found_dir in $ltrpathdirs; do
10291 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10292 done
10301 am_save_CPPFLAGS="$CPPFLAGS"
10303 for element in $INCICONV; do
10304 haveit=
10305 for x in $CPPFLAGS; do
10307 acl_save_prefix="$prefix"
10308 prefix="$acl_final_prefix"
10309 acl_save_exec_prefix="$exec_prefix"
10310 exec_prefix="$acl_final_exec_prefix"
10311 eval x=\"$x\"
10312 exec_prefix="$acl_save_exec_prefix"
10313 prefix="$acl_save_prefix"
10315 if test "X$x" = "X$element"; then
10316 haveit=yes
10317 break
10319 done
10320 if test -z "$haveit"; then
10321 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10323 done
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10327 $as_echo_n "checking for iconv... " >&6; }
10328 if test "${am_cv_func_iconv+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10332 am_cv_func_iconv="no, consider installing GNU libiconv"
10333 am_cv_lib_iconv=no
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336 #include <stdlib.h>
10337 #include <iconv.h>
10339 main ()
10341 iconv_t cd = iconv_open("","");
10342 iconv(cd,NULL,NULL,NULL,NULL);
10343 iconv_close(cd);
10345 return 0;
10347 _ACEOF
10348 if ac_fn_cxx_try_link "$LINENO"; then :
10349 am_cv_func_iconv=yes
10351 rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353 if test "$am_cv_func_iconv" != yes; then
10354 am_save_LIBS="$LIBS"
10355 LIBS="$LIBS $LIBICONV"
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 #include <stdlib.h>
10359 #include <iconv.h>
10361 main ()
10363 iconv_t cd = iconv_open("","");
10364 iconv(cd,NULL,NULL,NULL,NULL);
10365 iconv_close(cd);
10367 return 0;
10369 _ACEOF
10370 if ac_fn_cxx_try_link "$LINENO"; then :
10371 am_cv_lib_iconv=yes
10372 am_cv_func_iconv=yes
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS="$am_save_LIBS"
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10381 $as_echo "$am_cv_func_iconv" >&6; }
10382 if test "$am_cv_func_iconv" = yes; then
10384 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10387 if test "$am_cv_lib_iconv" = yes; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10389 $as_echo_n "checking how to link with libiconv... " >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10391 $as_echo "$LIBICONV" >&6; }
10392 else
10393 CPPFLAGS="$am_save_CPPFLAGS"
10394 LIBICONV=
10395 LTLIBICONV=
10400 if test "$am_cv_func_iconv" = yes; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10402 $as_echo_n "checking for iconv declaration... " >&6; }
10403 if test "${am_cv_proto_iconv+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10410 #include <stdlib.h>
10411 #include <iconv.h>
10412 extern
10413 #ifdef __cplusplus
10415 #endif
10416 #if defined(__STDC__) || defined(__cplusplus)
10417 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10418 #else
10419 size_t iconv();
10420 #endif
10423 main ()
10427 return 0;
10429 _ACEOF
10430 if ac_fn_cxx_try_compile "$LINENO"; then :
10431 am_cv_proto_iconv_arg1=""
10432 else
10433 am_cv_proto_iconv_arg1="const"
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436 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);"
10439 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10441 }$am_cv_proto_iconv" >&5
10442 $as_echo "${ac_t:-
10443 }$am_cv_proto_iconv" >&6; }
10445 cat >>confdefs.h <<_ACEOF
10446 #define ICONV_CONST $am_cv_proto_iconv_arg1
10447 _ACEOF
10451 ac_ext=c
10452 ac_cpp='$CPP $CPPFLAGS'
10453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10458 # Until we have in-tree GNU iconv:
10459 LIBICONV_DEP=
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10464 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10465 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10470 #include <locale.h>
10472 main ()
10474 return LC_MESSAGES
10476 return 0;
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 am_cv_val_LC_MESSAGES=yes
10481 else
10482 am_cv_val_LC_MESSAGES=no
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10488 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10489 if test $am_cv_val_LC_MESSAGES = yes; then
10491 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10498 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10499 if test "${am_cv_langinfo_codeset+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 #include <langinfo.h>
10506 main ()
10508 char* cs = nl_langinfo(CODESET);
10510 return 0;
10512 _ACEOF
10513 if ac_fn_c_try_link "$LINENO"; then :
10514 am_cv_langinfo_codeset=yes
10515 else
10516 am_cv_langinfo_codeset=no
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10523 $as_echo "$am_cv_langinfo_codeset" >&6; }
10524 if test $am_cv_langinfo_codeset = yes; then
10526 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10531 # We will need to find libiberty.h and ansidecl.h
10532 saved_CFLAGS="$CFLAGS"
10533 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10534 saved_CXXFLAGS="$CXXFLAGS"
10535 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10536 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10537 stpcpy strnlen strsignal strstr strverscmp \
10538 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10539 free basename 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
10541 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10543 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10544 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 #undef $ac_tr_decl
10550 #define $ac_tr_decl 1
10552 #include "ansidecl.h"
10553 #include "system.h"
10556 main ()
10558 #ifndef $ac_func
10559 char *(*pfn) = (char *(*)) $ac_func ;
10560 #endif
10562 return 0;
10564 _ACEOF
10565 if ac_fn_c_try_compile "$LINENO"; then :
10566 eval "gcc_cv_have_decl_$ac_func=yes"
10567 else
10568 eval "gcc_cv_have_decl_$ac_func=no"
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10575 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10576 #define $ac_tr_decl 1
10577 _ACEOF
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10582 #define $ac_tr_decl 0
10583 _ACEOF
10587 done
10590 for ac_func in getrlimit setrlimit getrusage
10592 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10594 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10595 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10600 #undef $ac_tr_decl
10601 #define $ac_tr_decl 1
10603 #include "ansidecl.h"
10604 #include "system.h"
10605 #ifdef HAVE_SYS_RESOURCE_H
10606 #include <sys/resource.h>
10607 #endif
10611 main ()
10613 #ifndef $ac_func
10614 char *(*pfn) = (char *(*)) $ac_func ;
10615 #endif
10617 return 0;
10619 _ACEOF
10620 if ac_fn_c_try_compile "$LINENO"; then :
10621 eval "gcc_cv_have_decl_$ac_func=yes"
10622 else
10623 eval "gcc_cv_have_decl_$ac_func=no"
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10631 #define $ac_tr_decl 1
10632 _ACEOF
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10637 #define $ac_tr_decl 0
10638 _ACEOF
10642 done
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 #include "ansidecl.h"
10649 #include "system.h"
10650 #ifdef HAVE_SYS_RESOURCE_H
10651 #include <sys/resource.h>
10652 #endif
10655 main ()
10657 rlim_t l = 0;
10659 return 0;
10661 _ACEOF
10662 if ac_fn_c_try_compile "$LINENO"; then :
10664 else
10666 $as_echo "#define rlim_t long" >>confdefs.h
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10672 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10673 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10674 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10675 for ac_func in ldgetname
10677 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10679 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10680 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10685 #undef $ac_tr_decl
10686 #define $ac_tr_decl 1
10688 #include "ansidecl.h"
10689 #include "system.h"
10690 #ifdef HAVE_LDFCN_H
10691 #undef FREAD
10692 #undef FWRITE
10693 #include <ldfcn.h>
10694 #endif
10698 main ()
10700 #ifndef $ac_func
10701 char *(*pfn) = (char *(*)) $ac_func ;
10702 #endif
10704 return 0;
10706 _ACEOF
10707 if ac_fn_c_try_compile "$LINENO"; then :
10708 eval "gcc_cv_have_decl_$ac_func=yes"
10709 else
10710 eval "gcc_cv_have_decl_$ac_func=no"
10712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10717 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10718 #define $ac_tr_decl 1
10719 _ACEOF
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10724 #define $ac_tr_decl 0
10725 _ACEOF
10729 done
10732 for ac_func in times
10734 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10736 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10737 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #undef $ac_tr_decl
10743 #define $ac_tr_decl 1
10745 #include "ansidecl.h"
10746 #include "system.h"
10747 #ifdef HAVE_SYS_TIMES_H
10748 #include <sys/times.h>
10749 #endif
10753 main ()
10755 #ifndef $ac_func
10756 char *(*pfn) = (char *(*)) $ac_func ;
10757 #endif
10759 return 0;
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763 eval "gcc_cv_have_decl_$ac_func=yes"
10764 else
10765 eval "gcc_cv_have_decl_$ac_func=no"
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10773 #define $ac_tr_decl 1
10774 _ACEOF
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10779 #define $ac_tr_decl 0
10780 _ACEOF
10784 done
10787 for ac_func in sigaltstack
10789 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10791 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10792 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797 #undef $ac_tr_decl
10798 #define $ac_tr_decl 1
10800 #include "ansidecl.h"
10801 #include "system.h"
10802 #include <signal.h>
10806 main ()
10808 #ifndef $ac_func
10809 char *(*pfn) = (char *(*)) $ac_func ;
10810 #endif
10812 return 0;
10814 _ACEOF
10815 if ac_fn_c_try_compile "$LINENO"; then :
10816 eval "gcc_cv_have_decl_$ac_func=yes"
10817 else
10818 eval "gcc_cv_have_decl_$ac_func=no"
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10826 #define $ac_tr_decl 1
10827 _ACEOF
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10832 #define $ac_tr_decl 0
10833 _ACEOF
10837 done
10840 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10841 # prototype.
10842 ac_ext=cpp
10843 ac_cpp='$CXXCPP $CPPFLAGS'
10844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10848 for ac_func in madvise
10850 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10852 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10853 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 #undef $ac_tr_decl
10859 #define $ac_tr_decl 1
10861 #include "ansidecl.h"
10862 #include "system.h"
10866 main ()
10868 #ifndef $ac_func
10869 char *(*pfn) = (char *(*)) $ac_func ;
10870 #endif
10872 return 0;
10874 _ACEOF
10875 if ac_fn_cxx_try_compile "$LINENO"; then :
10876 eval "gcc_cv_have_decl_$ac_func=yes"
10877 else
10878 eval "gcc_cv_have_decl_$ac_func=no"
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10885 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10886 #define $ac_tr_decl 1
10887 _ACEOF
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10892 #define $ac_tr_decl 0
10893 _ACEOF
10897 done
10899 ac_ext=c
10900 ac_cpp='$CPP $CPPFLAGS'
10901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10906 # More time-related stuff.
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10908 $as_echo_n "checking for struct tms... " >&6; }
10909 if test "${ac_cv_struct_tms+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10916 #include "ansidecl.h"
10917 #include "system.h"
10918 #ifdef HAVE_SYS_TIMES_H
10919 #include <sys/times.h>
10920 #endif
10923 main ()
10925 struct tms tms;
10927 return 0;
10929 _ACEOF
10930 if ac_fn_c_try_compile "$LINENO"; then :
10931 ac_cv_struct_tms=yes
10932 else
10933 ac_cv_struct_tms=no
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10938 $as_echo "$ac_cv_struct_tms" >&6; }
10939 if test $ac_cv_struct_tms = yes; then
10941 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10945 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10946 # revisit after autoconf 2.50.
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10948 $as_echo_n "checking for clock_t... " >&6; }
10949 if test "${gcc_cv_type_clock_t+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10956 #include "ansidecl.h"
10957 #include "system.h"
10960 main ()
10962 clock_t x;
10964 return 0;
10966 _ACEOF
10967 if ac_fn_c_try_compile "$LINENO"; then :
10968 gcc_cv_type_clock_t=yes
10969 else
10970 gcc_cv_type_clock_t=no
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10975 $as_echo "$gcc_cv_type_clock_t" >&6; }
10976 if test $gcc_cv_type_clock_t = yes; then
10978 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10982 # Check if F_SETLKW is supported by fcntl.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10984 $as_echo_n "checking for F_SETLKW... " >&6; }
10985 if test "${ac_cv_f_setlkw+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 #include <fcntl.h>
10994 main ()
10997 struct flock fl;
10998 fl.l_whence = 0;
10999 fl.l_start = 0;
11000 fl.l_len = 0;
11001 fl.l_pid = 0;
11002 return fcntl (1, F_SETLKW, &fl);
11004 return 0;
11006 _ACEOF
11007 if ac_fn_c_try_compile "$LINENO"; then :
11008 ac_cv_f_setlkw=yes
11009 else
11010 ac_cv_f_setlkw=no
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11015 $as_echo "$ac_cv_f_setlkw" >&6; }
11016 if test $ac_cv_f_setlkw = yes; then
11018 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11022 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11023 CFLAGS="$saved_CFLAGS"
11024 CXXFLAGS="$saved_CXXFLAGS"
11026 # mkdir takes a single argument on some systems.
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11028 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11029 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 #include <sys/types.h>
11036 #ifdef HAVE_SYS_STAT_H
11037 # include <sys/stat.h>
11038 #endif
11039 #ifdef HAVE_UNISTD_H
11040 # include <unistd.h>
11041 #endif
11042 #ifdef HAVE_DIRECT_H
11043 # include <direct.h>
11044 #endif
11046 main ()
11048 mkdir ("foo", 0);
11050 return 0;
11052 _ACEOF
11053 if ac_fn_c_try_compile "$LINENO"; then :
11054 gcc_cv_mkdir_takes_one_arg=no
11055 else
11056 gcc_cv_mkdir_takes_one_arg=yes
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11061 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11062 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11064 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11069 # File extensions
11070 manext='.1'
11071 objext='.o'
11075 # With Setjmp/Longjmp based exception handling.
11076 # Check whether --enable-sjlj-exceptions was given.
11077 if test "${enable_sjlj_exceptions+set}" = set; then :
11078 enableval=$enable_sjlj_exceptions; case $target in
11079 *-*-hpux10*)
11080 if test $enableval != yes; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11082 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11083 enableval=yes
11086 esac
11087 force_sjlj_exceptions=yes
11088 else
11089 case $target in
11090 *-*-hpux10*)
11091 force_sjlj_exceptions=yes
11092 enableval=yes
11094 lm32*-*-*)
11095 force_sjlj_exceptions=yes
11096 enableval=yes
11099 force_sjlj_exceptions=no
11101 esac
11104 if test $force_sjlj_exceptions = yes; then
11105 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11107 cat >>confdefs.h <<_ACEOF
11108 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11109 _ACEOF
11113 # --------------------------------------------------------
11114 # Build, host, and target specific configuration fragments
11115 # --------------------------------------------------------
11117 # Collect build-machine-specific information.
11118 . ${srcdir}/config.build
11120 # Collect host-machine-specific information.
11121 . ${srcdir}/config.host
11123 target_gtfiles=
11125 # Collect target-machine-specific information.
11126 . ${srcdir}/config.gcc
11128 extra_objs="${host_extra_objs} ${extra_objs}"
11129 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11131 # Default the target-machine variables that were not explicitly set.
11132 if test x"$tm_file" = x
11133 then tm_file=$cpu_type/$cpu_type.h; fi
11135 if test x"$extra_headers" = x
11136 then extra_headers=; fi
11138 if test x$md_file = x
11139 then md_file=$cpu_type/$cpu_type.md; fi
11141 if test x$out_file = x
11142 then out_file=$cpu_type/$cpu_type.c; fi
11144 if test x"$tmake_file" = x
11145 then tmake_file=$cpu_type/t-$cpu_type
11148 # Support --enable-initfini-array.
11149 if test x$enable_initfini_array != xno; then
11150 tm_file="${tm_file} initfini-array.h"
11153 if test x"$dwarf2" = xyes
11154 then tm_file="$tm_file tm-dwarf2.h"
11157 # Say what files are being used for the output code and MD file.
11158 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11159 echo "Using \`$srcdir/config/$md_file' as machine description file."
11161 # If any of the xm_file variables contain nonexistent files, warn
11162 # about them and drop them.
11165 for x in $build_xm_file; do
11166 if test -f $srcdir/config/$x
11167 then bx="$bx $x"
11168 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11169 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11171 done
11172 build_xm_file="$bx"
11175 for x in $host_xm_file; do
11176 if test -f $srcdir/config/$x
11177 then hx="$hx $x"
11178 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11179 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11181 done
11182 host_xm_file="$hx"
11185 for x in $xm_file; do
11186 if test -f $srcdir/config/$x
11187 then tx="$tx $x"
11188 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11189 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11191 done
11192 xm_file="$tx"
11194 count=a
11195 for f in $tm_file; do
11196 count=${count}x
11197 done
11198 if test $count = ax; then
11199 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11200 else
11201 echo "Using the following target machine macro files:"
11202 for f in $tm_file; do
11203 echo " $srcdir/config/$f"
11204 done
11207 if test x$use_long_long_for_widest_fast_int = xyes; then
11209 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11213 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11215 cat >>confdefs.h <<_ACEOF
11216 #define HAVE_GNU_LD $gnu_ld_bool
11217 _ACEOF
11220 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11222 cat >>confdefs.h <<_ACEOF
11223 #define HAVE_GNU_AS $gnu_as_bool
11224 _ACEOF
11227 count=a
11228 for f in $host_xm_file; do
11229 count=${count}x
11230 done
11231 if test $count = a; then
11233 elif test $count = ax; then
11234 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11235 else
11236 echo "Using the following host machine macro files:"
11237 for f in $host_xm_file; do
11238 echo " $srcdir/config/$f"
11239 done
11241 echo "Using ${out_host_hook_obj} for host machine hooks."
11243 if test "$host_xm_file" != "$build_xm_file"; then
11244 count=a
11245 for f in $build_xm_file; do
11246 count=${count}x
11247 done
11248 if test $count = a; then
11250 elif test $count = ax; then
11251 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11252 else
11253 echo "Using the following build machine macro files:"
11254 for f in $build_xm_file; do
11255 echo " $srcdir/config/$f"
11256 done
11260 if test -n "$configured_native_system_header_dir"; then
11261 native_system_header_dir=$configured_native_system_header_dir
11263 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11266 case ${host} in
11267 powerpc*-*-darwin*)
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11269 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11270 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11276 #include <sys/cdefs.h>
11277 #include <sys/signal.h>
11278 #include <ucontext.h>
11279 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11281 _ACEOF
11282 if ac_fn_c_try_compile "$LINENO"; then :
11283 gcc_cv_mcontext_underscores=no
11284 else
11285 gcc_cv_mcontext_underscores=yes
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11290 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11291 if test $gcc_cv_mcontext_underscores = yes; then
11293 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11297 esac
11299 # ---------
11300 # Threading
11301 # ---------
11303 # Check if a valid thread package
11304 case ${enable_threads} in
11305 "" | no)
11306 # No threads
11307 target_thread_file='single'
11309 yes)
11310 # default
11311 target_thread_file='single'
11313 aix | dce | lynx | mipssde | posix | rtems | \
11314 single | tpf | vxworks | win32)
11315 target_thread_file=${enable_threads}
11318 echo "${enable_threads} is an unknown thread package" 1>&2
11319 exit 1
11321 esac
11323 if test x${thread_file} = x; then
11324 # No thread file set by target-specific clauses in config.gcc,
11325 # so use file chosen by default logic above
11326 thread_file=${target_thread_file}
11329 # --------
11330 # UNSORTED
11331 # --------
11333 use_cxa_atexit=no
11334 if test x$enable___cxa_atexit = xyes || \
11335 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11336 if test x$host = x$target; then
11337 case $host in
11338 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11339 # keyed to flag_use_cxa_atexit
11340 *-*-mingw32*)
11341 use_cxa_atexit=yes
11343 powerpc-ibm-aix*)
11344 use_cxa_atexit=yes
11347 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11348 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11349 use_cxa_atexit=yes
11350 else
11351 echo "__cxa_atexit can't be enabled on this target"
11355 esac
11356 else
11357 # We can't check for __cxa_atexit when building a cross, so assume
11358 # it is available
11359 use_cxa_atexit=yes
11361 if test x$use_cxa_atexit = xyes; then
11363 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11368 # Look for a file containing extra machine modes.
11369 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11370 extra_modes_file='$(srcdir)'/config/${extra_modes}
11373 cat >>confdefs.h <<_ACEOF
11374 #define EXTRA_MODES_FILE "config/$extra_modes"
11375 _ACEOF
11379 # Convert extra_options into a form suitable for Makefile use.
11380 extra_opt_files=
11381 all_opt_files=
11382 for f in $extra_options; do
11383 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11384 all_opt_files="$all_opt_files $srcdir/config/$f"
11385 done
11388 # auto-host.h is the file containing items generated by autoconf and is
11389 # the first file included by config.h.
11390 # If host=build, it is correct to have bconfig include auto-host.h
11391 # as well. If host!=build, we are in error and need to do more
11392 # work to find out the build config parameters.
11393 if test x$host = x$build
11394 then
11395 build_auto=auto-host.h
11396 else
11397 # We create a subdir, then run autoconf in the subdir.
11398 # To prevent recursion we set host and build for the new
11399 # invocation of configure to the build for this invocation
11400 # of configure.
11401 tempdir=build.$$
11402 rm -rf $tempdir
11403 mkdir $tempdir
11404 cd $tempdir
11405 case ${srcdir} in
11406 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11407 *) realsrcdir=../${srcdir};;
11408 esac
11409 # Clearing GMPINC is necessary to prevent host headers being
11410 # used by the build compiler. Defining GENERATOR_FILE stops
11411 # system.h from including gmp.h.
11412 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11413 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11414 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11415 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11416 ${realsrcdir}/configure \
11417 --enable-languages=${enable_languages-all} \
11418 --target=$target_alias --host=$build_alias --build=$build_alias
11420 # We just finished tests for the build machine, so rename
11421 # the file auto-build.h in the gcc directory.
11422 mv auto-host.h ../auto-build.h
11423 cd ..
11424 rm -rf $tempdir
11425 build_auto=auto-build.h
11429 tm_file="${tm_file} defaults.h"
11430 tm_p_file="${tm_p_file} tm-preds.h"
11431 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11432 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11433 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11434 # put this back in temporarily.
11435 xm_file="auto-host.h ansidecl.h ${xm_file}"
11437 # --------
11438 # UNSORTED
11439 # --------
11441 # Compile in configure arguments.
11442 if test -f configargs.h ; then
11443 # Being re-configured.
11444 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11445 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11446 else
11447 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11450 # Double all backslashes and backslash all quotes to turn
11451 # gcc_config_arguments into a C string.
11452 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11453 $gcc_config_arguments
11455 gcc_config_arguments_str=`cat conftest.out`
11456 rm -f conftest.out
11458 cat > configargs.h <<EOF
11459 /* Generated automatically. */
11460 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11461 static const char thread_model[] = "$thread_file";
11463 static const struct {
11464 const char *name, *value;
11465 } configure_default_options[] = $configure_default_options;
11468 gcc_BASEVER=`cat $srcdir/BASE-VER`
11469 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11470 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11471 if test -f $srcdir/REVISION ; then
11472 gcc_REVISION=`cat $srcdir/REVISION`
11473 else
11474 gcc_REVISION=""
11476 cat > plugin-version.h <<EOF
11477 #include "configargs.h"
11479 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11480 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11481 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11482 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11484 static char basever[] = "$gcc_BASEVER";
11485 static char datestamp[] = "$gcc_DATESTAMP";
11486 static char devphase[] = "$gcc_DEVPHASE";
11487 static char revision[] = "$gcc_REVISION";
11489 /* FIXME plugins: We should make the version information more precise.
11490 One way to do is to add a checksum. */
11492 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11493 devphase, revision,
11494 configuration_arguments};
11497 # Internationalization
11498 # If we haven't got the data from the intl directory,
11499 # assume NLS is disabled.
11500 USE_NLS=no
11501 LIBINTL=
11502 LIBINTL_DEP=
11503 INCINTL=
11504 XGETTEXT=
11505 GMSGFMT=
11506 POSUB=
11508 if test -f ../intl/config.intl; then
11509 . ../intl/config.intl
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11512 $as_echo_n "checking whether NLS is requested... " >&6; }
11513 if test x"$USE_NLS" != xyes; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11520 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11524 $as_echo_n "checking for catalogs to be installed... " >&6; }
11525 # Look for .po and .gmo files in the source directory.
11526 CATALOGS=
11527 XLINGUAS=
11528 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11529 # If there aren't any .gmo files the shell will give us the
11530 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11531 # weeded out.
11532 case "$cat" in *\**)
11533 continue;;
11534 esac
11535 # The quadruple backslash is collapsed to a double backslash
11536 # by the backticks, then collapsed again by the double quotes,
11537 # leaving us with one backslash in the sed expression (right
11538 # before the dot that mustn't act as a wildcard).
11539 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11540 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11541 # The user is allowed to set LINGUAS to a list of languages to
11542 # install catalogs for. If it's empty that means "all of them."
11543 if test "x$LINGUAS" = x; then
11544 CATALOGS="$CATALOGS $cat"
11545 XLINGUAS="$XLINGUAS $lang"
11546 else
11547 case "$LINGUAS" in *$lang*)
11548 CATALOGS="$CATALOGS $cat"
11549 XLINGUAS="$XLINGUAS $lang"
11551 esac
11553 done
11554 LINGUAS="$XLINGUAS"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11556 $as_echo "$LINGUAS" >&6; }
11559 DATADIRNAME=share
11561 INSTOBJEXT=.mo
11563 GENCAT=gencat
11565 CATOBJEXT=.gmo
11569 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11570 # -liconv on the link line twice.
11571 case "$LIBINTL" in *$LIBICONV*)
11572 LIBICONV= ;;
11573 esac
11575 # Check whether --enable-secureplt was given.
11576 if test "${enable_secureplt+set}" = set; then :
11577 enableval=$enable_secureplt;
11581 # Check whether --enable-leading-mingw64-underscores was given.
11582 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11583 enableval=$enable_leading_mingw64_underscores;
11586 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11588 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11592 # Check whether --enable-cld was given.
11593 if test "${enable_cld+set}" = set; then :
11594 enableval=$enable_cld;
11595 else
11596 enable_cld=no
11600 # Check whether --enable-frame-pointer was given.
11601 if test "${enable_frame_pointer+set}" = set; then :
11602 enableval=$enable_frame_pointer;
11603 else
11605 case $target_os in
11606 linux* | darwin[8912]*)
11607 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11608 # DWARF2.
11609 enable_frame_pointer=no
11612 enable_frame_pointer=yes
11614 esac
11619 # Windows32 Registry support for specifying GCC installation paths.
11620 # Check whether --enable-win32-registry was given.
11621 if test "${enable_win32_registry+set}" = set; then :
11622 enableval=$enable_win32_registry;
11626 case $host_os in
11627 win32 | pe | cygwin* | mingw32* | uwin*)
11628 if test "x$enable_win32_registry" != xno; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11630 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11631 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 ac_func_search_save_LIBS=$LIBS
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char RegOpenKeyExA ();
11646 main ()
11648 return RegOpenKeyExA ();
11650 return 0;
11652 _ACEOF
11653 for ac_lib in '' advapi32; do
11654 if test -z "$ac_lib"; then
11655 ac_res="none required"
11656 else
11657 ac_res=-l$ac_lib
11658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_search_RegOpenKeyExA=$ac_res
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext
11665 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11666 break
11668 done
11669 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11671 else
11672 ac_cv_search_RegOpenKeyExA=no
11674 rm conftest.$ac_ext
11675 LIBS=$ac_func_search_save_LIBS
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11678 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11679 ac_res=$ac_cv_search_RegOpenKeyExA
11680 if test "$ac_res" != no; then :
11681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11683 else
11684 enable_win32_registry=no
11689 if test "x$enable_win32_registry" != xno; then
11691 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11694 if test "x$enable_win32_registry" != xyes \
11695 && test "x$enable_win32_registry" != x; then
11697 cat >>confdefs.h <<_ACEOF
11698 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11699 _ACEOF
11704 esac
11706 # Get an absolute path to the GCC top-level source directory
11707 holddir=`${PWDCMD-pwd}`
11708 cd $srcdir
11709 topdir=`${PWDCMD-pwd}`
11710 cd $holddir
11712 # Conditionalize the makefile for this host machine.
11713 xmake_file=
11714 for f in ${host_xmake_file}
11716 if test -f ${srcdir}/config/$f
11717 then
11718 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11720 done
11722 # Conditionalize the makefile for this target machine.
11723 tmake_file_=
11724 for f in ${tmake_file}
11726 if test -f ${srcdir}/config/$f
11727 then
11728 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11730 done
11731 tmake_file="${tmake_file_}"
11733 out_object_file=`basename $out_file .c`.o
11734 common_out_object_file=`basename $common_out_file .c`.o
11736 tm_file_list="options.h"
11737 tm_include_list="options.h insn-constants.h"
11738 for f in $tm_file; do
11739 case $f in
11740 ./* )
11741 f=`echo $f | sed 's/^..//'`
11742 tm_file_list="${tm_file_list} $f"
11743 tm_include_list="${tm_include_list} $f"
11745 defaults.h )
11746 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11747 tm_include_list="${tm_include_list} $f"
11750 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11751 tm_include_list="${tm_include_list} config/$f"
11753 esac
11754 done
11756 tm_p_file_list=
11757 tm_p_include_list=
11758 for f in $tm_p_file; do
11759 case $f in
11760 tm-preds.h )
11761 tm_p_file_list="${tm_p_file_list} $f"
11762 tm_p_include_list="${tm_p_include_list} $f"
11765 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11766 tm_p_include_list="${tm_p_include_list} config/$f"
11767 esac
11768 done
11770 xm_file_list=
11771 xm_include_list=
11772 for f in $xm_file; do
11773 case $f in
11774 ansidecl.h )
11775 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11776 xm_include_list="${xm_include_list} $f"
11778 auto-host.h )
11779 xm_file_list="${xm_file_list} $f"
11780 xm_include_list="${xm_include_list} $f"
11783 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11784 xm_include_list="${xm_include_list} config/$f"
11786 esac
11787 done
11789 host_xm_file_list=
11790 host_xm_include_list=
11791 for f in $host_xm_file; do
11792 case $f in
11793 ansidecl.h )
11794 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11795 host_xm_include_list="${host_xm_include_list} $f"
11797 auto-host.h )
11798 host_xm_file_list="${host_xm_file_list} $f"
11799 host_xm_include_list="${host_xm_include_list} $f"
11802 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11803 host_xm_include_list="${host_xm_include_list} config/$f"
11805 esac
11806 done
11808 build_xm_file_list=
11809 for f in $build_xm_file; do
11810 case $f in
11811 ansidecl.h )
11812 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11813 build_xm_include_list="${build_xm_include_list} $f"
11815 auto-build.h | auto-host.h )
11816 build_xm_file_list="${build_xm_file_list} $f"
11817 build_xm_include_list="${build_xm_include_list} $f"
11820 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11821 build_xm_include_list="${build_xm_include_list} config/$f"
11823 esac
11824 done
11826 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11827 # cross-compiler which does not use the native headers and libraries.
11828 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11829 CROSS=
11830 ALL=all.internal
11831 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11833 if test "x$with_build_sysroot" != x; then
11834 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11835 else
11836 # This value is used, even on a native system, because
11837 # CROSS_SYSTEM_HEADER_DIR is just
11838 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11839 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11842 if test x$host != x$target
11843 then
11844 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11845 ALL=all.cross
11846 SYSTEM_HEADER_DIR=$build_system_header_dir
11847 case "$host","$target" in
11848 # Darwin crosses can use the host system's libraries and headers,
11849 # because of the fat library support. Of course, it must be the
11850 # same version of Darwin on both sides. Allow the user to
11851 # just say --target=foo-darwin without a version number to mean
11852 # "the version on this system".
11853 *-*-darwin*,*-*-darwin*)
11854 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11855 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11856 if test $hostos = $targetos -o $targetos = darwin ; then
11857 CROSS=
11858 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11859 with_headers=yes
11863 i?86-*-*,x86_64-*-* \
11864 | powerpc*-*-*,powerpc64*-*-*)
11865 CROSS="$CROSS -DNATIVE_CROSS" ;;
11866 esac
11868 case $target in
11869 *-*-mingw*)
11870 if test "x$with_headers" = x; then
11871 with_headers=yes
11876 esac
11877 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11878 SYSTEM_HEADER_DIR=$build_system_header_dir
11881 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11882 if test "x$with_headers" != x; then
11883 target_header_dir=$with_headers
11884 elif test "x$with_sysroot" = x; then
11885 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11886 elif test "x$with_build_sysroot" != "x"; then
11887 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11888 elif test "x$with_sysroot" = xyes; then
11889 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11890 else
11891 target_header_dir="${with_sysroot}${native_system_header_dir}"
11893 else
11894 target_header_dir=${native_system_header_dir}
11897 # If this is a cross-compiler that does not
11898 # have its own set of headers then define
11899 # inhibit_libc
11901 # If this is using newlib, without having the headers available now,
11902 # then define inhibit_libc in LIBGCC2_CFLAGS.
11903 # This prevents libgcc2 from containing any code which requires libc
11904 # support.
11905 : ${inhibit_libc=false}
11906 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11907 test x$with_newlib = xyes ; } &&
11908 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
11909 inhibit_libc=true
11913 # When building gcc with a cross-compiler, we need to adjust things so
11914 # that the generator programs are still built with the native compiler.
11915 # Also, we cannot run fixincludes.
11917 # These are the normal (build=host) settings:
11918 CC_FOR_BUILD='$(CC)'
11919 CXX_FOR_BUILD='$(CXX)'
11920 BUILD_CFLAGS='$(ALL_CFLAGS)'
11921 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11922 BUILD_LDFLAGS='$(LDFLAGS)'
11923 STMP_FIXINC=stmp-fixinc
11925 # And these apply if build != host, or we are generating coverage data
11926 if test x$build != x$host || test "x$coverage_flags" != x
11927 then
11928 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11929 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11930 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11933 # Expand extra_headers to include complete path.
11934 # This substitutes for lots of t-* files.
11935 extra_headers_list=
11936 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11937 for file in ${extra_headers} ; do
11938 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11939 done
11941 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11942 if test x"$use_gcc_tgmath" = xyes
11943 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11946 # Define collect2 in Makefile.
11947 case $host_can_use_collect2 in
11948 no) collect2= ;;
11949 *) collect2='collect2$(exeext)' ;;
11950 esac
11953 # Add a definition of USE_COLLECT2 if system wants one.
11954 case $use_collect2 in
11955 no) use_collect2= ;;
11956 "") ;;
11958 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11959 xm_defines="${xm_defines} USE_COLLECT2"
11960 case $host_can_use_collect2 in
11962 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11964 esac
11966 esac
11969 cat >>confdefs.h <<_ACEOF
11970 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11971 _ACEOF
11974 # ---------------------------
11975 # Assembler & linker features
11976 # ---------------------------
11978 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11979 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11980 # However when ld-new is first executed from the build tree, libtool will
11981 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11982 # to the build tree. While doing this we need to use the previous-stage
11983 # linker, or we have an infinite loop. The presence of a shell script as
11984 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11985 # the gcc/collect-ld script. So we need to know how libtool works, or
11986 # exec-tool will fail.
11989 case `pwd` in
11990 *\ * | *\ *)
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11992 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11993 esac
11997 macro_version='2.2.7a'
11998 macro_revision='1.3134'
12012 ltmain="$ac_aux_dir/ltmain.sh"
12014 # Backslashify metacharacters that are still active within
12015 # double-quoted strings.
12016 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12018 # Same as above, but do not quote variable references.
12019 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12021 # Sed substitution to delay expansion of an escaped shell variable in a
12022 # double_quote_subst'ed string.
12023 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12025 # Sed substitution to delay expansion of an escaped single quote.
12026 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12028 # Sed substitution to avoid accidental globbing in evaled expressions
12029 no_glob_subst='s/\*/\\\*/g'
12031 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12036 $as_echo_n "checking how to print strings... " >&6; }
12037 # Test print first, because it will be a builtin if present.
12038 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12039 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12040 ECHO='print -r --'
12041 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12042 ECHO='printf %s\n'
12043 else
12044 # Use this function as a fallback that always works.
12045 func_fallback_echo ()
12047 eval 'cat <<_LTECHO_EOF
12049 _LTECHO_EOF'
12051 ECHO='func_fallback_echo'
12054 # func_echo_all arg...
12055 # Invoke $ECHO with all args, space-separated.
12056 func_echo_all ()
12058 $ECHO ""
12061 case "$ECHO" in
12062 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12063 $as_echo "printf" >&6; } ;;
12064 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12065 $as_echo "print -r" >&6; } ;;
12066 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12067 $as_echo "cat" >&6; } ;;
12068 esac
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12084 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12085 if test "${ac_cv_path_SED+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12089 for ac_i in 1 2 3 4 5 6 7; do
12090 ac_script="$ac_script$as_nl$ac_script"
12091 done
12092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12093 { ac_script=; unset ac_script;}
12094 if test -z "$SED"; then
12095 ac_path_SED_found=false
12096 # Loop through the user's path and test for each of PROGNAME-LIST
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_prog in sed gsed; do
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12105 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12106 # Check for GNU ac_path_SED and select it if it is found.
12107 # Check for GNU $ac_path_SED
12108 case `"$ac_path_SED" --version 2>&1` in
12109 *GNU*)
12110 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12112 ac_count=0
12113 $as_echo_n 0123456789 >"conftest.in"
12114 while :
12116 cat "conftest.in" "conftest.in" >"conftest.tmp"
12117 mv "conftest.tmp" "conftest.in"
12118 cp "conftest.in" "conftest.nl"
12119 $as_echo '' >> "conftest.nl"
12120 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12122 as_fn_arith $ac_count + 1 && ac_count=$as_val
12123 if test $ac_count -gt ${ac_path_SED_max-0}; then
12124 # Best one so far, save it but keep looking for a better one
12125 ac_cv_path_SED="$ac_path_SED"
12126 ac_path_SED_max=$ac_count
12128 # 10*(2^10) chars as input seems more than enough
12129 test $ac_count -gt 10 && break
12130 done
12131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12132 esac
12134 $ac_path_SED_found && break 3
12135 done
12136 done
12137 done
12138 IFS=$as_save_IFS
12139 if test -z "$ac_cv_path_SED"; then
12140 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12142 else
12143 ac_cv_path_SED=$SED
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12148 $as_echo "$ac_cv_path_SED" >&6; }
12149 SED="$ac_cv_path_SED"
12150 rm -f conftest.sed
12152 test -z "$SED" && SED=sed
12153 Xsed="$SED -e 1s/^X//"
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12166 $as_echo_n "checking for fgrep... " >&6; }
12167 if test "${ac_cv_path_FGREP+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12171 then ac_cv_path_FGREP="$GREP -F"
12172 else
12173 if test -z "$FGREP"; then
12174 ac_path_FGREP_found=false
12175 # Loop through the user's path and test for each of PROGNAME-LIST
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_prog in fgrep; do
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12185 # Check for GNU ac_path_FGREP and select it if it is found.
12186 # Check for GNU $ac_path_FGREP
12187 case `"$ac_path_FGREP" --version 2>&1` in
12188 *GNU*)
12189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12191 ac_count=0
12192 $as_echo_n 0123456789 >"conftest.in"
12193 while :
12195 cat "conftest.in" "conftest.in" >"conftest.tmp"
12196 mv "conftest.tmp" "conftest.in"
12197 cp "conftest.in" "conftest.nl"
12198 $as_echo 'FGREP' >> "conftest.nl"
12199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12201 as_fn_arith $ac_count + 1 && ac_count=$as_val
12202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12203 # Best one so far, save it but keep looking for a better one
12204 ac_cv_path_FGREP="$ac_path_FGREP"
12205 ac_path_FGREP_max=$ac_count
12207 # 10*(2^10) chars as input seems more than enough
12208 test $ac_count -gt 10 && break
12209 done
12210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12211 esac
12213 $ac_path_FGREP_found && break 3
12214 done
12215 done
12216 done
12217 IFS=$as_save_IFS
12218 if test -z "$ac_cv_path_FGREP"; then
12219 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12221 else
12222 ac_cv_path_FGREP=$FGREP
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12228 $as_echo "$ac_cv_path_FGREP" >&6; }
12229 FGREP="$ac_cv_path_FGREP"
12232 test -z "$GREP" && GREP=grep
12252 # Check whether --with-gnu-ld was given.
12253 if test "${with_gnu_ld+set}" = set; then :
12254 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12255 else
12256 with_gnu_ld=no
12259 ac_prog=ld
12260 if test "$GCC" = yes; then
12261 # Check if gcc -print-prog-name=ld gives a path.
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12263 $as_echo_n "checking for ld used by $CC... " >&6; }
12264 case $host in
12265 *-*-mingw*)
12266 # gcc leaves a trailing carriage return which upsets mingw
12267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12270 esac
12271 case $ac_prog in
12272 # Accept absolute paths.
12273 [\\/]* | ?:[\\/]*)
12274 re_direlt='/[^/][^/]*/\.\./'
12275 # Canonicalize the pathname of ld
12276 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12277 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12278 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12279 done
12280 test -z "$LD" && LD="$ac_prog"
12283 # If it fails, then pretend we aren't using GCC.
12284 ac_prog=ld
12287 # If it is relative, then search for the first ld in PATH.
12288 with_gnu_ld=unknown
12290 esac
12291 elif test "$with_gnu_ld" = yes; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12293 $as_echo_n "checking for GNU ld... " >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12296 $as_echo_n "checking for non-GNU ld... " >&6; }
12298 if test "${lt_cv_path_LD+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 if test -z "$LD"; then
12302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12303 for ac_dir in $PATH; do
12304 IFS="$lt_save_ifs"
12305 test -z "$ac_dir" && ac_dir=.
12306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12307 lt_cv_path_LD="$ac_dir/$ac_prog"
12308 # Check to see if the program is GNU ld. I'd rather use --version,
12309 # but apparently some variants of GNU ld only accept -v.
12310 # Break only if it was the GNU/non-GNU ld that we prefer.
12311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12312 *GNU* | *'with BFD'*)
12313 test "$with_gnu_ld" != no && break
12316 test "$with_gnu_ld" != yes && break
12318 esac
12320 done
12321 IFS="$lt_save_ifs"
12322 else
12323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12327 LD="$lt_cv_path_LD"
12328 if test -n "$LD"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12330 $as_echo "$LD" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12335 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12337 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12338 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12342 case `$LD -v 2>&1 </dev/null` in
12343 *GNU* | *'with BFD'*)
12344 lt_cv_prog_gnu_ld=yes
12347 lt_cv_prog_gnu_ld=no
12349 esac
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12352 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12353 with_gnu_ld=$lt_cv_prog_gnu_ld
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12364 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12365 if test "${lt_cv_path_NM+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 if test -n "$NM"; then
12369 # Let the user override the test.
12370 lt_cv_path_NM="$NM"
12371 else
12372 lt_nm_to_check="${ac_tool_prefix}nm"
12373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12374 lt_nm_to_check="$lt_nm_to_check nm"
12376 for lt_tmp_nm in $lt_nm_to_check; do
12377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12379 IFS="$lt_save_ifs"
12380 test -z "$ac_dir" && ac_dir=.
12381 tmp_nm="$ac_dir/$lt_tmp_nm"
12382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12383 # Check to see if the nm accepts a BSD-compat flag.
12384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12385 # nm: unknown option "B" ignored
12386 # Tru64's nm complains that /dev/null is an invalid object file
12387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12388 */dev/null* | *'Invalid file or object type'*)
12389 lt_cv_path_NM="$tmp_nm -B"
12390 break
12393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12394 */dev/null*)
12395 lt_cv_path_NM="$tmp_nm -p"
12396 break
12399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12400 continue # so that we can try to find one that supports BSD flags
12402 esac
12404 esac
12406 done
12407 IFS="$lt_save_ifs"
12408 done
12409 : ${lt_cv_path_NM=no}
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12413 $as_echo "$lt_cv_path_NM" >&6; }
12414 if test "$lt_cv_path_NM" != "no"; then
12415 NM="$lt_cv_path_NM"
12416 else
12417 # Didn't find any BSD compatible name lister, look for dumpbin.
12418 if test -n "$DUMPBIN"; then :
12419 # Let the user override the test.
12420 else
12421 if test -n "$ac_tool_prefix"; then
12422 for ac_prog in dumpbin "link -dump"
12424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test -n "$DUMPBIN"; then
12432 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12445 done
12446 done
12447 IFS=$as_save_IFS
12451 DUMPBIN=$ac_cv_prog_DUMPBIN
12452 if test -n "$DUMPBIN"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12454 $as_echo "$DUMPBIN" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12461 test -n "$DUMPBIN" && break
12462 done
12464 if test -z "$DUMPBIN"; then
12465 ac_ct_DUMPBIN=$DUMPBIN
12466 for ac_prog in dumpbin "link -dump"
12468 # Extract the first word of "$ac_prog", so it can be a program name with args.
12469 set dummy $ac_prog; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 if test -n "$ac_ct_DUMPBIN"; then
12476 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12477 else
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12485 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12489 done
12490 done
12491 IFS=$as_save_IFS
12495 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12496 if test -n "$ac_ct_DUMPBIN"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12498 $as_echo "$ac_ct_DUMPBIN" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12505 test -n "$ac_ct_DUMPBIN" && break
12506 done
12508 if test "x$ac_ct_DUMPBIN" = x; then
12509 DUMPBIN=":"
12510 else
12511 case $cross_compiling:$ac_tool_warned in
12512 yes:)
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515 ac_tool_warned=yes ;;
12516 esac
12517 DUMPBIN=$ac_ct_DUMPBIN
12521 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12522 *COFF*)
12523 DUMPBIN="$DUMPBIN -symbols"
12526 DUMPBIN=:
12528 esac
12531 if test "$DUMPBIN" != ":"; then
12532 NM="$DUMPBIN"
12535 test -z "$NM" && NM=nm
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12544 if test "${lt_cv_nm_interface+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 lt_cv_nm_interface="BSD nm"
12548 echo "int some_variable = 0;" > conftest.$ac_ext
12549 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12550 (eval "$ac_compile" 2>conftest.err)
12551 cat conftest.err >&5
12552 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12554 cat conftest.err >&5
12555 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12556 cat conftest.out >&5
12557 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12558 lt_cv_nm_interface="MS dumpbin"
12560 rm -f conftest*
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12563 $as_echo "$lt_cv_nm_interface" >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12566 $as_echo_n "checking whether ln -s works... " >&6; }
12567 LN_S=$as_ln_s
12568 if test "$LN_S" = "ln -s"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12570 $as_echo "yes" >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12573 $as_echo "no, using $LN_S" >&6; }
12576 # find the maximum length of command line arguments
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12579 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12583 teststring="ABCD"
12585 case $build_os in
12586 msdosdjgpp*)
12587 # On DJGPP, this test can blow up pretty badly due to problems in libc
12588 # (any single argument exceeding 2000 bytes causes a buffer overrun
12589 # during glob expansion). Even if it were fixed, the result of this
12590 # check would be larger than it should be.
12591 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12594 gnu*)
12595 # Under GNU Hurd, this test is not required because there is
12596 # no limit to the length of command line arguments.
12597 # Libtool will interpret -1 as no limit whatsoever
12598 lt_cv_sys_max_cmd_len=-1;
12601 cygwin* | mingw* | cegcc*)
12602 # On Win9x/ME, this test blows up -- it succeeds, but takes
12603 # about 5 minutes as the teststring grows exponentially.
12604 # Worse, since 9x/ME are not pre-emptively multitasking,
12605 # you end up with a "frozen" computer, even though with patience
12606 # the test eventually succeeds (with a max line length of 256k).
12607 # Instead, let's just punt: use the minimum linelength reported by
12608 # all of the supported platforms: 8192 (on NT/2K/XP).
12609 lt_cv_sys_max_cmd_len=8192;
12612 mint*)
12613 # On MiNT this can take a long time and run out of memory.
12614 lt_cv_sys_max_cmd_len=8192;
12617 amigaos*)
12618 # On AmigaOS with pdksh, this test takes hours, literally.
12619 # So we just punt and use a minimum line length of 8192.
12620 lt_cv_sys_max_cmd_len=8192;
12623 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12624 # This has been around since 386BSD, at least. Likely further.
12625 if test -x /sbin/sysctl; then
12626 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12627 elif test -x /usr/sbin/sysctl; then
12628 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12629 else
12630 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12632 # And add a safety zone
12633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12637 interix*)
12638 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12639 lt_cv_sys_max_cmd_len=196608
12642 osf*)
12643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12645 # nice to cause kernel panics so lets avoid the loop below.
12646 # First set a reasonable default.
12647 lt_cv_sys_max_cmd_len=16384
12649 if test -x /sbin/sysconfig; then
12650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12651 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12652 esac
12655 sco3.2v5*)
12656 lt_cv_sys_max_cmd_len=102400
12658 sysv5* | sco5v6* | sysv4.2uw2*)
12659 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12660 if test -n "$kargmax"; then
12661 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12662 else
12663 lt_cv_sys_max_cmd_len=32768
12667 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12668 if test -n "$lt_cv_sys_max_cmd_len"; then
12669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12671 else
12672 # Make teststring a little bigger before we do anything with it.
12673 # a 1K string should be a reasonable start.
12674 for i in 1 2 3 4 5 6 7 8 ; do
12675 teststring=$teststring$teststring
12676 done
12677 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12678 # If test is not a shell built-in, we'll probably end up computing a
12679 # maximum length that is only half of the actual maximum length, but
12680 # we can't tell.
12681 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12682 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12683 test $i != 17 # 1/2 MB should be enough
12685 i=`expr $i + 1`
12686 teststring=$teststring$teststring
12687 done
12688 # Only check the string length outside the loop.
12689 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12690 teststring=
12691 # Add a significant safety factor because C++ compilers can tack on
12692 # massive amounts of additional arguments before passing them to the
12693 # linker. It appears as though 1/2 is a usable value.
12694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12697 esac
12701 if test -n $lt_cv_sys_max_cmd_len ; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12703 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12706 $as_echo "none" >&6; }
12708 max_cmd_len=$lt_cv_sys_max_cmd_len
12715 : ${CP="cp -f"}
12716 : ${MV="mv -f"}
12717 : ${RM="rm -f"}
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12720 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12721 # Try some XSI features
12722 xsi_shell=no
12723 ( _lt_dummy="a/b/c"
12724 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12725 = c,a/b,, \
12726 && eval 'test $(( 1 + 1 )) -eq 2 \
12727 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12728 && xsi_shell=yes
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12730 $as_echo "$xsi_shell" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12734 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12735 lt_shell_append=no
12736 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12737 >/dev/null 2>&1 \
12738 && lt_shell_append=yes
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12740 $as_echo "$lt_shell_append" >&6; }
12743 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12744 lt_unset=unset
12745 else
12746 lt_unset=false
12753 # test EBCDIC or ASCII
12754 case `echo X|tr X '\101'` in
12755 A) # ASCII based system
12756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12757 lt_SP2NL='tr \040 \012'
12758 lt_NL2SP='tr \015\012 \040\040'
12760 *) # EBCDIC based system
12761 lt_SP2NL='tr \100 \n'
12762 lt_NL2SP='tr \r\n \100\100'
12764 esac
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12775 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12776 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 lt_cv_ld_reload_flag='-r'
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12783 reload_flag=$lt_cv_ld_reload_flag
12784 case $reload_flag in
12785 "" | " "*) ;;
12786 *) reload_flag=" $reload_flag" ;;
12787 esac
12788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12789 case $host_os in
12790 darwin*)
12791 if test "$GCC" = yes; then
12792 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12793 else
12794 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12797 esac
12807 if test -n "$ac_tool_prefix"; then
12808 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12809 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811 $as_echo_n "checking for $ac_word... " >&6; }
12812 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 if test -n "$OBJDUMP"; then
12816 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12817 else
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12825 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 break 2
12829 done
12830 done
12831 IFS=$as_save_IFS
12835 OBJDUMP=$ac_cv_prog_OBJDUMP
12836 if test -n "$OBJDUMP"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12838 $as_echo "$OBJDUMP" >&6; }
12839 else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12846 if test -z "$ac_cv_prog_OBJDUMP"; then
12847 ac_ct_OBJDUMP=$OBJDUMP
12848 # Extract the first word of "objdump", so it can be a program name with args.
12849 set dummy objdump; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851 $as_echo_n "checking for $ac_word... " >&6; }
12852 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 if test -n "$ac_ct_OBJDUMP"; then
12856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12857 else
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12865 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867 break 2
12869 done
12870 done
12871 IFS=$as_save_IFS
12875 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12876 if test -n "$ac_ct_OBJDUMP"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12878 $as_echo "$ac_ct_OBJDUMP" >&6; }
12879 else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 $as_echo "no" >&6; }
12884 if test "x$ac_ct_OBJDUMP" = x; then
12885 OBJDUMP="false"
12886 else
12887 case $cross_compiling:$ac_tool_warned in
12888 yes:)
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12891 ac_tool_warned=yes ;;
12892 esac
12893 OBJDUMP=$ac_ct_OBJDUMP
12895 else
12896 OBJDUMP="$ac_cv_prog_OBJDUMP"
12899 test -z "$OBJDUMP" && OBJDUMP=objdump
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12910 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12911 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 lt_cv_file_magic_cmd='$MAGIC_CMD'
12915 lt_cv_file_magic_test_file=
12916 lt_cv_deplibs_check_method='unknown'
12917 # Need to set the preceding variable on all platforms that support
12918 # interlibrary dependencies.
12919 # 'none' -- dependencies not supported.
12920 # `unknown' -- same as none, but documents that we really don't know.
12921 # 'pass_all' -- all dependencies passed with no checks.
12922 # 'test_compile' -- check by making test program.
12923 # 'file_magic [[regex]]' -- check by looking for files in library path
12924 # which responds to the $file_magic_cmd with a given extended regex.
12925 # If you have `file' or equivalent on your system and you're not sure
12926 # whether `pass_all' will *always* work, you probably want this one.
12928 case $host_os in
12929 aix[4-9]*)
12930 lt_cv_deplibs_check_method=pass_all
12933 beos*)
12934 lt_cv_deplibs_check_method=pass_all
12937 bsdi[45]*)
12938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12939 lt_cv_file_magic_cmd='/usr/bin/file -L'
12940 lt_cv_file_magic_test_file=/shlib/libc.so
12943 cygwin*)
12944 # func_win32_libid is a shell function defined in ltmain.sh
12945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12946 lt_cv_file_magic_cmd='func_win32_libid'
12949 mingw* | pw32*)
12950 # Base MSYS/MinGW do not provide the 'file' command needed by
12951 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12952 # unless we find 'file', for example because we are cross-compiling.
12953 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12954 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12956 lt_cv_file_magic_cmd='func_win32_libid'
12957 else
12958 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12959 lt_cv_file_magic_cmd='$OBJDUMP -f'
12963 cegcc*)
12964 # use the weaker test based on 'objdump'. See mingw*.
12965 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12966 lt_cv_file_magic_cmd='$OBJDUMP -f'
12969 darwin* | rhapsody*)
12970 lt_cv_deplibs_check_method=pass_all
12973 freebsd* | dragonfly*)
12974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12975 case $host_cpu in
12976 i*86 )
12977 # Not sure whether the presence of OpenBSD here was a mistake.
12978 # Let's accept both of them until this is cleared up.
12979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12980 lt_cv_file_magic_cmd=/usr/bin/file
12981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12983 esac
12984 else
12985 lt_cv_deplibs_check_method=pass_all
12989 gnu*)
12990 lt_cv_deplibs_check_method=pass_all
12993 haiku*)
12994 lt_cv_deplibs_check_method=pass_all
12997 hpux10.20* | hpux11*)
12998 lt_cv_file_magic_cmd=/usr/bin/file
12999 case $host_cpu in
13000 ia64*)
13001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13002 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13004 hppa*64*)
13005 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]'
13006 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13010 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13012 esac
13015 interix[3-9]*)
13016 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13020 irix5* | irix6* | nonstopux*)
13021 case $LD in
13022 *-32|*"-32 ") libmagic=32-bit;;
13023 *-n32|*"-n32 ") libmagic=N32;;
13024 *-64|*"-64 ") libmagic=64-bit;;
13025 *) libmagic=never-match;;
13026 esac
13027 lt_cv_deplibs_check_method=pass_all
13030 # This must be Linux ELF.
13031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13032 lt_cv_deplibs_check_method=pass_all
13035 netbsd*)
13036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13038 else
13039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13043 newos6*)
13044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13045 lt_cv_file_magic_cmd=/usr/bin/file
13046 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13049 *nto* | *qnx*)
13050 lt_cv_deplibs_check_method=pass_all
13053 openbsd*)
13054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13056 else
13057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13061 osf3* | osf4* | osf5*)
13062 lt_cv_deplibs_check_method=pass_all
13065 rdos*)
13066 lt_cv_deplibs_check_method=pass_all
13069 solaris*)
13070 lt_cv_deplibs_check_method=pass_all
13073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13074 lt_cv_deplibs_check_method=pass_all
13077 sysv4 | sysv4.3*)
13078 case $host_vendor in
13079 motorola)
13080 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]'
13081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13083 ncr)
13084 lt_cv_deplibs_check_method=pass_all
13086 sequent)
13087 lt_cv_file_magic_cmd='/bin/file'
13088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13090 sni)
13091 lt_cv_file_magic_cmd='/bin/file'
13092 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13093 lt_cv_file_magic_test_file=/lib/libc.so
13095 siemens)
13096 lt_cv_deplibs_check_method=pass_all
13099 lt_cv_deplibs_check_method=pass_all
13101 esac
13104 tpf*)
13105 lt_cv_deplibs_check_method=pass_all
13107 esac
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13111 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13112 file_magic_cmd=$lt_cv_file_magic_cmd
13113 deplibs_check_method=$lt_cv_deplibs_check_method
13114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13149 done
13150 done
13151 IFS=$as_save_IFS
13155 AR=$ac_cv_prog_AR
13156 if test -n "$AR"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13158 $as_echo "$AR" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13166 if test -z "$ac_cv_prog_AR"; then
13167 ac_ct_AR=$AR
13168 # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_ac_ct_AR="ar"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13189 done
13190 done
13191 IFS=$as_save_IFS
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13198 $as_echo "$ac_ct_AR" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13204 if test "x$ac_ct_AR" = x; then
13205 AR="false"
13206 else
13207 case $cross_compiling:$ac_tool_warned in
13208 yes:)
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13211 ac_tool_warned=yes ;;
13212 esac
13213 AR=$ac_ct_AR
13215 else
13216 AR="$ac_cv_prog_AR"
13219 test -z "$AR" && AR=ar
13220 test -z "$AR_FLAGS" && AR_FLAGS=cru
13232 if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}strip; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_prog_STRIP+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 if test -n "$STRIP"; then
13241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13254 done
13255 done
13256 IFS=$as_save_IFS
13260 STRIP=$ac_cv_prog_STRIP
13261 if test -n "$STRIP"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13263 $as_echo "$STRIP" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13271 if test -z "$ac_cv_prog_STRIP"; then
13272 ac_ct_STRIP=$STRIP
13273 # Extract the first word of "strip", so it can be a program name with args.
13274 set dummy strip; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if test -n "$ac_ct_STRIP"; then
13281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_ac_ct_STRIP="strip"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13294 done
13295 done
13296 IFS=$as_save_IFS
13300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13301 if test -n "$ac_ct_STRIP"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13303 $as_echo "$ac_ct_STRIP" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13309 if test "x$ac_ct_STRIP" = x; then
13310 STRIP=":"
13311 else
13312 case $cross_compiling:$ac_tool_warned in
13313 yes:)
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13316 ac_tool_warned=yes ;;
13317 esac
13318 STRIP=$ac_ct_STRIP
13320 else
13321 STRIP="$ac_cv_prog_STRIP"
13324 test -z "$STRIP" && STRIP=:
13331 if test -n "$ac_tool_prefix"; then
13332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 if test -n "$RANLIB"; then
13340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13341 else
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351 break 2
13353 done
13354 done
13355 IFS=$as_save_IFS
13359 RANLIB=$ac_cv_prog_RANLIB
13360 if test -n "$RANLIB"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13362 $as_echo "$RANLIB" >&6; }
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13370 if test -z "$ac_cv_prog_RANLIB"; then
13371 ac_ct_RANLIB=$RANLIB
13372 # Extract the first word of "ranlib", so it can be a program name with args.
13373 set dummy ranlib; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if test -n "$ac_ct_RANLIB"; then
13380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_ac_ct_RANLIB="ranlib"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13393 done
13394 done
13395 IFS=$as_save_IFS
13399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13400 if test -n "$ac_ct_RANLIB"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13402 $as_echo "$ac_ct_RANLIB" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13408 if test "x$ac_ct_RANLIB" = x; then
13409 RANLIB=":"
13410 else
13411 case $cross_compiling:$ac_tool_warned in
13412 yes:)
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13415 ac_tool_warned=yes ;;
13416 esac
13417 RANLIB=$ac_ct_RANLIB
13419 else
13420 RANLIB="$ac_cv_prog_RANLIB"
13423 test -z "$RANLIB" && RANLIB=:
13430 # Determine commands to create old-style static archives.
13431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13432 old_postinstall_cmds='chmod 644 $oldlib'
13433 old_postuninstall_cmds=
13435 if test -n "$RANLIB"; then
13436 case $host_os in
13437 openbsd*)
13438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13443 esac
13444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13447 case $host_os in
13448 darwin*)
13449 lock_old_archive_extraction=yes ;;
13451 lock_old_archive_extraction=no ;;
13452 esac
13492 # If no C compiler was specified, use CC.
13493 LTCC=${LTCC-"$CC"}
13495 # If no C compiler flags were specified, use CFLAGS.
13496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13498 # Allow CC to be a program name with arguments.
13499 compiler=$CC
13502 # Check for command to grab the raw symbol name followed by C symbol from nm.
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13504 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13509 # These are sane defaults that work on at least a few old systems.
13510 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13512 # Character class describing NM global symbol codes.
13513 symcode='[BCDEGRST]'
13515 # Regexp to match symbols that can be accessed directly from C.
13516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13518 # Define system-specific variables.
13519 case $host_os in
13520 aix*)
13521 symcode='[BCDT]'
13523 cygwin* | mingw* | pw32* | cegcc*)
13524 symcode='[ABCDGISTW]'
13526 hpux*)
13527 if test "$host_cpu" = ia64; then
13528 symcode='[ABCDEGRST]'
13531 irix* | nonstopux*)
13532 symcode='[BCDEGRST]'
13534 osf*)
13535 symcode='[BCDEGQRST]'
13537 solaris*)
13538 symcode='[BDRT]'
13540 sco3.2v5*)
13541 symcode='[DT]'
13543 sysv4.2uw2*)
13544 symcode='[DT]'
13546 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13547 symcode='[ABDT]'
13549 sysv4)
13550 symcode='[DFNSTU]'
13552 esac
13554 # If we're using GNU nm, then use its standard symbol codes.
13555 case `$NM -V 2>&1` in
13556 *GNU* | *'with BFD'*)
13557 symcode='[ABCDGIRSTW]' ;;
13558 esac
13560 # Transform an extracted symbol line into a proper C declaration.
13561 # Some systems (esp. on ia64) link data and code symbols differently,
13562 # so use this general approach.
13563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13565 # Transform an extracted symbol line into symbol name and symbol address
13566 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13567 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'"
13569 # Handle CRLF in mingw tool chain
13570 opt_cr=
13571 case $build_os in
13572 mingw*)
13573 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13575 esac
13577 # Try without a prefix underscore, then with it.
13578 for ac_symprfx in "" "_"; do
13580 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13581 symxfrm="\\1 $ac_symprfx\\2 \\2"
13583 # Write the raw and C identifiers.
13584 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13585 # Fake it for dumpbin and say T for any non-static function
13586 # and D for any global variable.
13587 # Also find C++ and __fastcall symbols from MSVC++,
13588 # which start with @ or ?.
13589 lt_cv_sys_global_symbol_pipe="$AWK '"\
13590 " {last_section=section; section=\$ 3};"\
13591 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13592 " \$ 0!~/External *\|/{next};"\
13593 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13594 " {if(hide[section]) next};"\
13595 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13596 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13597 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13598 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13599 " ' prfx=^$ac_symprfx"
13600 else
13601 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13604 # Check to see that the pipe works correctly.
13605 pipe_works=no
13607 rm -f conftest*
13608 cat > conftest.$ac_ext <<_LT_EOF
13609 #ifdef __cplusplus
13610 extern "C" {
13611 #endif
13612 char nm_test_var;
13613 void nm_test_func(void);
13614 void nm_test_func(void){}
13615 #ifdef __cplusplus
13617 #endif
13618 int main(){nm_test_var='a';nm_test_func();return(0);}
13619 _LT_EOF
13621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13622 (eval $ac_compile) 2>&5
13623 ac_status=$?
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; }; then
13626 # Now try to grab the symbols.
13627 nlist=conftest.nm
13628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13629 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13630 ac_status=$?
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632 test $ac_status = 0; } && test -s "$nlist"; then
13633 # Try sorting and uniquifying the output.
13634 if sort "$nlist" | uniq > "$nlist"T; then
13635 mv -f "$nlist"T "$nlist"
13636 else
13637 rm -f "$nlist"T
13640 # Make sure that we snagged all the symbols we need.
13641 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13642 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13643 cat <<_LT_EOF > conftest.$ac_ext
13644 #ifdef __cplusplus
13645 extern "C" {
13646 #endif
13648 _LT_EOF
13649 # Now generate the symbol file.
13650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13652 cat <<_LT_EOF >> conftest.$ac_ext
13654 /* The mapping between symbol names and symbols. */
13655 const struct {
13656 const char *name;
13657 void *address;
13659 lt__PROGRAM__LTX_preloaded_symbols[] =
13661 { "@PROGRAM@", (void *) 0 },
13662 _LT_EOF
13663 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13664 cat <<\_LT_EOF >> conftest.$ac_ext
13665 {0, (void *) 0}
13668 /* This works around a problem in FreeBSD linker */
13669 #ifdef FREEBSD_WORKAROUND
13670 static const void *lt_preloaded_setup() {
13671 return lt__PROGRAM__LTX_preloaded_symbols;
13673 #endif
13675 #ifdef __cplusplus
13677 #endif
13678 _LT_EOF
13679 # Now try linking the two files.
13680 mv conftest.$ac_objext conftstm.$ac_objext
13681 lt_save_LIBS="$LIBS"
13682 lt_save_CFLAGS="$CFLAGS"
13683 LIBS="conftstm.$ac_objext"
13684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13686 (eval $ac_link) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13690 pipe_works=yes
13692 LIBS="$lt_save_LIBS"
13693 CFLAGS="$lt_save_CFLAGS"
13694 else
13695 echo "cannot find nm_test_func in $nlist" >&5
13697 else
13698 echo "cannot find nm_test_var in $nlist" >&5
13700 else
13701 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13703 else
13704 echo "$progname: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13707 rm -rf conftest* conftst*
13709 # Do not use the global_symbol_pipe unless it works.
13710 if test "$pipe_works" = yes; then
13711 break
13712 else
13713 lt_cv_sys_global_symbol_pipe=
13715 done
13719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13720 lt_cv_sys_global_symbol_to_cdecl=
13722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13724 $as_echo "failed" >&6; }
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13727 $as_echo "ok" >&6; }
13751 # Check whether --enable-libtool-lock was given.
13752 if test "${enable_libtool_lock+set}" = set; then :
13753 enableval=$enable_libtool_lock;
13756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13758 # Some flags need to be propagated to the compiler or linker for good
13759 # libtool support.
13760 case $host in
13761 ia64-*-hpux*)
13762 # Find out which ABI we are using.
13763 echo 'int i;' > conftest.$ac_ext
13764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13765 (eval $ac_compile) 2>&5
13766 ac_status=$?
13767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 case `/usr/bin/file conftest.$ac_objext` in
13770 *ELF-32*)
13771 HPUX_IA64_MODE="32"
13773 *ELF-64*)
13774 HPUX_IA64_MODE="64"
13776 esac
13778 rm -rf conftest*
13780 *-*-irix6*)
13781 # Find out which ABI we are using.
13782 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13784 (eval $ac_compile) 2>&5
13785 ac_status=$?
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787 test $ac_status = 0; }; then
13788 if test "$lt_cv_prog_gnu_ld" = yes; then
13789 case `/usr/bin/file conftest.$ac_objext` in
13790 *32-bit*)
13791 LD="${LD-ld} -melf32bsmip"
13793 *N32*)
13794 LD="${LD-ld} -melf32bmipn32"
13796 *64-bit*)
13797 LD="${LD-ld} -melf64bmip"
13799 esac
13800 else
13801 case `/usr/bin/file conftest.$ac_objext` in
13802 *32-bit*)
13803 LD="${LD-ld} -32"
13805 *N32*)
13806 LD="${LD-ld} -n32"
13808 *64-bit*)
13809 LD="${LD-ld} -64"
13811 esac
13814 rm -rf conftest*
13817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13818 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13819 # Find out which ABI we are using.
13820 echo 'int i;' > conftest.$ac_ext
13821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13823 ac_status=$?
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13825 test $ac_status = 0; }; then
13826 case `/usr/bin/file conftest.o` in
13827 *32-bit*)
13828 case $host in
13829 x86_64-*kfreebsd*-gnu)
13830 LD="${LD-ld} -m elf_i386_fbsd"
13832 x86_64-*linux*)
13833 case `/usr/bin/file conftest.o` in
13834 *x86-64*)
13835 LD="${LD-ld} -m elf32_x86_64"
13838 LD="${LD-ld} -m elf_i386"
13840 esac
13842 powerpc64le-*linux*)
13843 LD="${LD-ld} -m elf32lppclinux"
13845 powerpc64-*linux*)
13846 LD="${LD-ld} -m elf32ppclinux"
13848 s390x-*linux*)
13849 LD="${LD-ld} -m elf_s390"
13851 sparc64-*linux*)
13852 LD="${LD-ld} -m elf32_sparc"
13854 esac
13856 *64-bit*)
13857 case $host in
13858 x86_64-*kfreebsd*-gnu)
13859 LD="${LD-ld} -m elf_x86_64_fbsd"
13861 x86_64-*linux*)
13862 LD="${LD-ld} -m elf_x86_64"
13864 powerpcle-*linux*)
13865 LD="${LD-ld} -m elf64lppc"
13867 powerpc-*linux*)
13868 LD="${LD-ld} -m elf64ppc"
13870 s390*-*linux*|s390*-*tpf*)
13871 LD="${LD-ld} -m elf64_s390"
13873 sparc*-*linux*)
13874 LD="${LD-ld} -m elf64_sparc"
13876 esac
13878 esac
13880 rm -rf conftest*
13883 *-*-sco3.2v5*)
13884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13885 SAVE_CFLAGS="$CFLAGS"
13886 CFLAGS="$CFLAGS -belf"
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13888 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13889 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 ac_ext=c
13893 ac_cpp='$CPP $CPPFLAGS'
13894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13902 main ()
13906 return 0;
13908 _ACEOF
13909 if ac_fn_c_try_link "$LINENO"; then :
13910 lt_cv_cc_needs_belf=yes
13911 else
13912 lt_cv_cc_needs_belf=no
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13916 ac_ext=c
13917 ac_cpp='$CPP $CPPFLAGS'
13918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13924 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13925 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13926 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13927 CFLAGS="$SAVE_CFLAGS"
13930 sparc*-*solaris*)
13931 # Find out which ABI we are using.
13932 echo 'int i;' > conftest.$ac_ext
13933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13934 (eval $ac_compile) 2>&5
13935 ac_status=$?
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937 test $ac_status = 0; }; then
13938 case `/usr/bin/file conftest.o` in
13939 *64-bit*)
13940 case $lt_cv_prog_gnu_ld in
13941 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13943 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13944 LD="${LD-ld} -64"
13947 esac
13949 esac
13951 rm -rf conftest*
13953 esac
13955 need_locks="$enable_libtool_lock"
13958 case $host_os in
13959 rhapsody* | darwin*)
13960 if test -n "$ac_tool_prefix"; then
13961 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13962 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13964 $as_echo_n "checking for $ac_word... " >&6; }
13965 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 if test -n "$DSYMUTIL"; then
13969 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13970 else
13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13974 IFS=$as_save_IFS
13975 test -z "$as_dir" && as_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13978 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 break 2
13982 done
13983 done
13984 IFS=$as_save_IFS
13988 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13989 if test -n "$DSYMUTIL"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13991 $as_echo "$DSYMUTIL" >&6; }
13992 else
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 $as_echo "no" >&6; }
13999 if test -z "$ac_cv_prog_DSYMUTIL"; then
14000 ac_ct_DSYMUTIL=$DSYMUTIL
14001 # Extract the first word of "dsymutil", so it can be a program name with args.
14002 set dummy dsymutil; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14004 $as_echo_n "checking for $ac_word... " >&6; }
14005 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 if test -n "$ac_ct_DSYMUTIL"; then
14009 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14010 else
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14022 done
14023 done
14024 IFS=$as_save_IFS
14028 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14029 if test -n "$ac_ct_DSYMUTIL"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14031 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14037 if test "x$ac_ct_DSYMUTIL" = x; then
14038 DSYMUTIL=":"
14039 else
14040 case $cross_compiling:$ac_tool_warned in
14041 yes:)
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14044 ac_tool_warned=yes ;;
14045 esac
14046 DSYMUTIL=$ac_ct_DSYMUTIL
14048 else
14049 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14052 if test -n "$ac_tool_prefix"; then
14053 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14054 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14056 $as_echo_n "checking for $ac_word... " >&6; }
14057 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 if test -n "$NMEDIT"; then
14061 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14062 else
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14066 IFS=$as_save_IFS
14067 test -z "$as_dir" && as_dir=.
14068 for ac_exec_ext in '' $ac_executable_extensions; do
14069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14070 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14072 break 2
14074 done
14075 done
14076 IFS=$as_save_IFS
14080 NMEDIT=$ac_cv_prog_NMEDIT
14081 if test -n "$NMEDIT"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14083 $as_echo "$NMEDIT" >&6; }
14084 else
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14086 $as_echo "no" >&6; }
14091 if test -z "$ac_cv_prog_NMEDIT"; then
14092 ac_ct_NMEDIT=$NMEDIT
14093 # Extract the first word of "nmedit", so it can be a program name with args.
14094 set dummy nmedit; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14096 $as_echo_n "checking for $ac_word... " >&6; }
14097 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 if test -n "$ac_ct_NMEDIT"; then
14101 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14102 else
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 break 2
14114 done
14115 done
14116 IFS=$as_save_IFS
14120 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14121 if test -n "$ac_ct_NMEDIT"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14123 $as_echo "$ac_ct_NMEDIT" >&6; }
14124 else
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14129 if test "x$ac_ct_NMEDIT" = x; then
14130 NMEDIT=":"
14131 else
14132 case $cross_compiling:$ac_tool_warned in
14133 yes:)
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14136 ac_tool_warned=yes ;;
14137 esac
14138 NMEDIT=$ac_ct_NMEDIT
14140 else
14141 NMEDIT="$ac_cv_prog_NMEDIT"
14144 if test -n "$ac_tool_prefix"; then
14145 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14146 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14148 $as_echo_n "checking for $ac_word... " >&6; }
14149 if test "${ac_cv_prog_LIPO+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 if test -n "$LIPO"; then
14153 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14154 else
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14158 IFS=$as_save_IFS
14159 test -z "$as_dir" && as_dir=.
14160 for ac_exec_ext in '' $ac_executable_extensions; do
14161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14162 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14164 break 2
14166 done
14167 done
14168 IFS=$as_save_IFS
14172 LIPO=$ac_cv_prog_LIPO
14173 if test -n "$LIPO"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14175 $as_echo "$LIPO" >&6; }
14176 else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14183 if test -z "$ac_cv_prog_LIPO"; then
14184 ac_ct_LIPO=$LIPO
14185 # Extract the first word of "lipo", so it can be a program name with args.
14186 set dummy lipo; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188 $as_echo_n "checking for $ac_word... " >&6; }
14189 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 if test -n "$ac_ct_LIPO"; then
14193 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14194 else
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14198 IFS=$as_save_IFS
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14202 ac_cv_prog_ac_ct_LIPO="lipo"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14204 break 2
14206 done
14207 done
14208 IFS=$as_save_IFS
14212 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14213 if test -n "$ac_ct_LIPO"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14215 $as_echo "$ac_ct_LIPO" >&6; }
14216 else
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218 $as_echo "no" >&6; }
14221 if test "x$ac_ct_LIPO" = x; then
14222 LIPO=":"
14223 else
14224 case $cross_compiling:$ac_tool_warned in
14225 yes:)
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14228 ac_tool_warned=yes ;;
14229 esac
14230 LIPO=$ac_ct_LIPO
14232 else
14233 LIPO="$ac_cv_prog_LIPO"
14236 if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14238 set dummy ${ac_tool_prefix}otool; ac_word=$2
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 $as_echo_n "checking for $ac_word... " >&6; }
14241 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14242 $as_echo_n "(cached) " >&6
14243 else
14244 if test -n "$OTOOL"; then
14245 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14246 else
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14256 break 2
14258 done
14259 done
14260 IFS=$as_save_IFS
14264 OTOOL=$ac_cv_prog_OTOOL
14265 if test -n "$OTOOL"; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14267 $as_echo "$OTOOL" >&6; }
14268 else
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14275 if test -z "$ac_cv_prog_OTOOL"; then
14276 ac_ct_OTOOL=$OTOOL
14277 # Extract the first word of "otool", so it can be a program name with args.
14278 set dummy otool; ac_word=$2
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14280 $as_echo_n "checking for $ac_word... " >&6; }
14281 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 if test -n "$ac_ct_OTOOL"; then
14285 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14286 else
14287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288 for as_dir in $PATH
14290 IFS=$as_save_IFS
14291 test -z "$as_dir" && as_dir=.
14292 for ac_exec_ext in '' $ac_executable_extensions; do
14293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14294 ac_cv_prog_ac_ct_OTOOL="otool"
14295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14296 break 2
14298 done
14299 done
14300 IFS=$as_save_IFS
14304 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14305 if test -n "$ac_ct_OTOOL"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14307 $as_echo "$ac_ct_OTOOL" >&6; }
14308 else
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14313 if test "x$ac_ct_OTOOL" = x; then
14314 OTOOL=":"
14315 else
14316 case $cross_compiling:$ac_tool_warned in
14317 yes:)
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14320 ac_tool_warned=yes ;;
14321 esac
14322 OTOOL=$ac_ct_OTOOL
14324 else
14325 OTOOL="$ac_cv_prog_OTOOL"
14328 if test -n "$ac_tool_prefix"; then
14329 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14330 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14332 $as_echo_n "checking for $ac_word... " >&6; }
14333 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14334 $as_echo_n "(cached) " >&6
14335 else
14336 if test -n "$OTOOL64"; then
14337 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14338 else
14339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $PATH
14342 IFS=$as_save_IFS
14343 test -z "$as_dir" && as_dir=.
14344 for ac_exec_ext in '' $ac_executable_extensions; do
14345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14346 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14348 break 2
14350 done
14351 done
14352 IFS=$as_save_IFS
14356 OTOOL64=$ac_cv_prog_OTOOL64
14357 if test -n "$OTOOL64"; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14359 $as_echo "$OTOOL64" >&6; }
14360 else
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362 $as_echo "no" >&6; }
14367 if test -z "$ac_cv_prog_OTOOL64"; then
14368 ac_ct_OTOOL64=$OTOOL64
14369 # Extract the first word of "otool64", so it can be a program name with args.
14370 set dummy otool64; ac_word=$2
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14372 $as_echo_n "checking for $ac_word... " >&6; }
14373 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 if test -n "$ac_ct_OTOOL64"; then
14377 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14378 else
14379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14380 for as_dir in $PATH
14382 IFS=$as_save_IFS
14383 test -z "$as_dir" && as_dir=.
14384 for ac_exec_ext in '' $ac_executable_extensions; do
14385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14386 ac_cv_prog_ac_ct_OTOOL64="otool64"
14387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14388 break 2
14390 done
14391 done
14392 IFS=$as_save_IFS
14396 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14397 if test -n "$ac_ct_OTOOL64"; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14399 $as_echo "$ac_ct_OTOOL64" >&6; }
14400 else
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402 $as_echo "no" >&6; }
14405 if test "x$ac_ct_OTOOL64" = x; then
14406 OTOOL64=":"
14407 else
14408 case $cross_compiling:$ac_tool_warned in
14409 yes:)
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14412 ac_tool_warned=yes ;;
14413 esac
14414 OTOOL64=$ac_ct_OTOOL64
14416 else
14417 OTOOL64="$ac_cv_prog_OTOOL64"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14447 $as_echo_n "checking for -single_module linker flag... " >&6; }
14448 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 lt_cv_apple_cc_single_mod=no
14452 if test -z "${LT_MULTI_MODULE}"; then
14453 # By default we will add the -single_module flag. You can override
14454 # by either setting the environment variable LT_MULTI_MODULE
14455 # non-empty at configure time, or by adding -multi_module to the
14456 # link flags.
14457 rm -rf libconftest.dylib*
14458 echo "int foo(void){return 1;}" > conftest.c
14459 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14460 -dynamiclib -Wl,-single_module conftest.c" >&5
14461 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14462 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14463 _lt_result=$?
14464 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14465 lt_cv_apple_cc_single_mod=yes
14466 else
14467 cat conftest.err >&5
14469 rm -rf libconftest.dylib*
14470 rm -f conftest.*
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14474 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14476 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14477 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 lt_cv_ld_exported_symbols_list=no
14481 save_LDFLAGS=$LDFLAGS
14482 echo "_main" > conftest.sym
14483 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14488 main ()
14492 return 0;
14494 _ACEOF
14495 if ac_fn_c_try_link "$LINENO"; then :
14496 lt_cv_ld_exported_symbols_list=yes
14497 else
14498 lt_cv_ld_exported_symbols_list=no
14500 rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LDFLAGS="$save_LDFLAGS"
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14506 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14508 $as_echo_n "checking for -force_load linker flag... " >&6; }
14509 if test "${lt_cv_ld_force_load+set}" = set; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 lt_cv_ld_force_load=no
14513 cat > conftest.c << _LT_EOF
14514 int forced_loaded() { return 2;}
14515 _LT_EOF
14516 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14517 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14518 echo "$AR cru libconftest.a conftest.o" >&5
14519 $AR cru libconftest.a conftest.o 2>&5
14520 cat > conftest.c << _LT_EOF
14521 int main() { return 0;}
14522 _LT_EOF
14523 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14524 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14525 _lt_result=$?
14526 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14527 lt_cv_ld_force_load=yes
14528 else
14529 cat conftest.err >&5
14531 rm -f conftest.err libconftest.a conftest conftest.c
14532 rm -rf conftest.dSYM
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14536 $as_echo "$lt_cv_ld_force_load" >&6; }
14537 case $host_os in
14538 rhapsody* | darwin1.[012])
14539 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14540 darwin1.*)
14541 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14542 darwin*) # darwin 5.x on
14543 # if running on 10.5 or later, the deployment target defaults
14544 # to the OS version, if on x86, and 10.4, the deployment
14545 # target defaults to 10.4. Don't you love it?
14546 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14547 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14548 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14549 10.[012]*)
14550 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14551 10.*)
14552 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14553 esac
14555 esac
14556 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14557 _lt_dar_single_mod='$single_module'
14559 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14560 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14561 else
14562 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14564 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14565 _lt_dsymutil='~$DSYMUTIL $lib || :'
14566 else
14567 _lt_dsymutil=
14570 esac
14572 for ac_header in dlfcn.h
14573 do :
14574 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14575 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_DLFCN_H 1
14578 _ACEOF
14581 done
14587 # Set options
14591 enable_dlopen=no
14594 enable_win32_dll=no
14597 # Check whether --enable-shared was given.
14598 if test "${enable_shared+set}" = set; then :
14599 enableval=$enable_shared; p=${PACKAGE-default}
14600 case $enableval in
14601 yes) enable_shared=yes ;;
14602 no) enable_shared=no ;;
14604 enable_shared=no
14605 # Look at the argument we got. We use all the common list separators.
14606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14607 for pkg in $enableval; do
14608 IFS="$lt_save_ifs"
14609 if test "X$pkg" = "X$p"; then
14610 enable_shared=yes
14612 done
14613 IFS="$lt_save_ifs"
14615 esac
14616 else
14617 enable_shared=yes
14628 # Check whether --enable-static was given.
14629 if test "${enable_static+set}" = set; then :
14630 enableval=$enable_static; p=${PACKAGE-default}
14631 case $enableval in
14632 yes) enable_static=yes ;;
14633 no) enable_static=no ;;
14635 enable_static=no
14636 # Look at the argument we got. We use all the common list separators.
14637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14638 for pkg in $enableval; do
14639 IFS="$lt_save_ifs"
14640 if test "X$pkg" = "X$p"; then
14641 enable_static=yes
14643 done
14644 IFS="$lt_save_ifs"
14646 esac
14647 else
14648 enable_static=yes
14660 # Check whether --with-pic was given.
14661 if test "${with_pic+set}" = set; then :
14662 withval=$with_pic; pic_mode="$withval"
14663 else
14664 pic_mode=default
14668 test -z "$pic_mode" && pic_mode=default
14676 # Check whether --enable-fast-install was given.
14677 if test "${enable_fast_install+set}" = set; then :
14678 enableval=$enable_fast_install; p=${PACKAGE-default}
14679 case $enableval in
14680 yes) enable_fast_install=yes ;;
14681 no) enable_fast_install=no ;;
14683 enable_fast_install=no
14684 # Look at the argument we got. We use all the common list separators.
14685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14686 for pkg in $enableval; do
14687 IFS="$lt_save_ifs"
14688 if test "X$pkg" = "X$p"; then
14689 enable_fast_install=yes
14691 done
14692 IFS="$lt_save_ifs"
14694 esac
14695 else
14696 enable_fast_install=yes
14709 # This can be used to rebuild libtool when needed
14710 LIBTOOL_DEPS="$ltmain"
14712 # Always use our own libtool.
14713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14740 test -z "$LN_S" && LN_S="ln -s"
14755 if test -n "${ZSH_VERSION+set}" ; then
14756 setopt NO_GLOB_SUBST
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14760 $as_echo_n "checking for objdir... " >&6; }
14761 if test "${lt_cv_objdir+set}" = set; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 rm -f .libs 2>/dev/null
14765 mkdir .libs 2>/dev/null
14766 if test -d .libs; then
14767 lt_cv_objdir=.libs
14768 else
14769 # MS-DOS does not allow filenames that begin with a dot.
14770 lt_cv_objdir=_libs
14772 rmdir .libs 2>/dev/null
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14775 $as_echo "$lt_cv_objdir" >&6; }
14776 objdir=$lt_cv_objdir
14782 cat >>confdefs.h <<_ACEOF
14783 #define LT_OBJDIR "$lt_cv_objdir/"
14784 _ACEOF
14789 case $host_os in
14790 aix3*)
14791 # AIX sometimes has problems with the GCC collect2 program. For some
14792 # reason, if we set the COLLECT_NAMES environment variable, the problems
14793 # vanish in a puff of smoke.
14794 if test "X${COLLECT_NAMES+set}" != Xset; then
14795 COLLECT_NAMES=
14796 export COLLECT_NAMES
14799 esac
14801 # Global variables:
14802 ofile=libtool
14803 can_build_shared=yes
14805 # All known linkers require a `.a' archive for static linking (except MSVC,
14806 # which needs '.lib').
14807 libext=a
14809 with_gnu_ld="$lt_cv_prog_gnu_ld"
14811 old_CC="$CC"
14812 old_CFLAGS="$CFLAGS"
14814 # Set sane defaults for various variables
14815 test -z "$CC" && CC=cc
14816 test -z "$LTCC" && LTCC=$CC
14817 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14818 test -z "$LD" && LD=ld
14819 test -z "$ac_objext" && ac_objext=o
14821 for cc_temp in $compiler""; do
14822 case $cc_temp in
14823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14825 \-*) ;;
14826 *) break;;
14827 esac
14828 done
14829 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14832 # Only perform the check for file, if the check method requires it
14833 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14834 case $deplibs_check_method in
14835 file_magic*)
14836 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14838 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 case $MAGIC_CMD in
14843 [\\/*] | ?:[\\/]*)
14844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14847 lt_save_MAGIC_CMD="$MAGIC_CMD"
14848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14850 for ac_dir in $ac_dummy; do
14851 IFS="$lt_save_ifs"
14852 test -z "$ac_dir" && ac_dir=.
14853 if test -f $ac_dir/${ac_tool_prefix}file; then
14854 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14855 if test -n "$file_magic_test_file"; then
14856 case $deplibs_check_method in
14857 "file_magic "*)
14858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14861 $EGREP "$file_magic_regex" > /dev/null; then
14863 else
14864 cat <<_LT_EOF 1>&2
14866 *** Warning: the command libtool uses to detect shared libraries,
14867 *** $file_magic_cmd, produces output that libtool cannot recognize.
14868 *** The result is that libtool may fail to recognize shared libraries
14869 *** as such. This will affect the creation of libtool libraries that
14870 *** depend on shared libraries, but programs linked with such libtool
14871 *** libraries will work regardless of this problem. Nevertheless, you
14872 *** may want to report the problem to your system manager and/or to
14873 *** bug-libtool@gnu.org
14875 _LT_EOF
14876 fi ;;
14877 esac
14879 break
14881 done
14882 IFS="$lt_save_ifs"
14883 MAGIC_CMD="$lt_save_MAGIC_CMD"
14885 esac
14888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14889 if test -n "$MAGIC_CMD"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14891 $as_echo "$MAGIC_CMD" >&6; }
14892 else
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 $as_echo "no" >&6; }
14901 if test -z "$lt_cv_path_MAGIC_CMD"; then
14902 if test -n "$ac_tool_prefix"; then
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14904 $as_echo_n "checking for file... " >&6; }
14905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14908 case $MAGIC_CMD in
14909 [\\/*] | ?:[\\/]*)
14910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14913 lt_save_MAGIC_CMD="$MAGIC_CMD"
14914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14916 for ac_dir in $ac_dummy; do
14917 IFS="$lt_save_ifs"
14918 test -z "$ac_dir" && ac_dir=.
14919 if test -f $ac_dir/file; then
14920 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14921 if test -n "$file_magic_test_file"; then
14922 case $deplibs_check_method in
14923 "file_magic "*)
14924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14927 $EGREP "$file_magic_regex" > /dev/null; then
14929 else
14930 cat <<_LT_EOF 1>&2
14932 *** Warning: the command libtool uses to detect shared libraries,
14933 *** $file_magic_cmd, produces output that libtool cannot recognize.
14934 *** The result is that libtool may fail to recognize shared libraries
14935 *** as such. This will affect the creation of libtool libraries that
14936 *** depend on shared libraries, but programs linked with such libtool
14937 *** libraries will work regardless of this problem. Nevertheless, you
14938 *** may want to report the problem to your system manager and/or to
14939 *** bug-libtool@gnu.org
14941 _LT_EOF
14942 fi ;;
14943 esac
14945 break
14947 done
14948 IFS="$lt_save_ifs"
14949 MAGIC_CMD="$lt_save_MAGIC_CMD"
14951 esac
14954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14955 if test -n "$MAGIC_CMD"; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14957 $as_echo "$MAGIC_CMD" >&6; }
14958 else
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960 $as_echo "no" >&6; }
14964 else
14965 MAGIC_CMD=:
14971 esac
14973 # Use C for the default configuration in the libtool script
14975 lt_save_CC="$CC"
14976 ac_ext=c
14977 ac_cpp='$CPP $CPPFLAGS'
14978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14983 # Source file extension for C test sources.
14984 ac_ext=c
14986 # Object file extension for compiled C test sources.
14987 objext=o
14988 objext=$objext
14990 # Code to be used in simple compile tests
14991 lt_simple_compile_test_code="int some_variable = 0;"
14993 # Code to be used in simple link tests
14994 lt_simple_link_test_code='int main(){return(0);}'
15002 # If no C compiler was specified, use CC.
15003 LTCC=${LTCC-"$CC"}
15005 # If no C compiler flags were specified, use CFLAGS.
15006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15008 # Allow CC to be a program name with arguments.
15009 compiler=$CC
15011 # Save the default compiler, since it gets overwritten when the other
15012 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15013 compiler_DEFAULT=$CC
15015 # save warnings/boilerplate of simple test code
15016 ac_outfile=conftest.$ac_objext
15017 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15018 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15019 _lt_compiler_boilerplate=`cat conftest.err`
15020 $RM conftest*
15022 ac_outfile=conftest.$ac_objext
15023 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15024 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15025 _lt_linker_boilerplate=`cat conftest.err`
15026 $RM -r conftest*
15029 ## CAVEAT EMPTOR:
15030 ## There is no encapsulation within the following macros, do not change
15031 ## the running order or otherwise move them around unless you know exactly
15032 ## what you are doing...
15033 if test -n "$compiler"; then
15035 lt_prog_compiler_no_builtin_flag=
15037 if test "$GCC" = yes; then
15038 case $cc_basename in
15039 nvcc*)
15040 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15042 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15043 esac
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15046 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15047 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15048 $as_echo_n "(cached) " >&6
15049 else
15050 lt_cv_prog_compiler_rtti_exceptions=no
15051 ac_outfile=conftest.$ac_objext
15052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053 lt_compiler_flag="-fno-rtti -fno-exceptions"
15054 # Insert the option either (1) after the last *FLAGS variable, or
15055 # (2) before a word containing "conftest.", or (3) at the end.
15056 # Note that $ac_compile itself does not contain backslashes and begins
15057 # with a dollar sign (not a hyphen), so the echo should work correctly.
15058 # The option is referenced via a variable to avoid confusing sed.
15059 lt_compile=`echo "$ac_compile" | $SED \
15060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15062 -e 's:$: $lt_compiler_flag:'`
15063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15064 (eval "$lt_compile" 2>conftest.err)
15065 ac_status=$?
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 if (exit $ac_status) && test -s "$ac_outfile"; then
15069 # The compiler can only warn and ignore the option if not recognized
15070 # So say no if there are warnings other than the usual output.
15071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15074 lt_cv_prog_compiler_rtti_exceptions=yes
15077 $RM conftest*
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15081 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15083 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15084 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15085 else
15096 lt_prog_compiler_wl=
15097 lt_prog_compiler_pic=
15098 lt_prog_compiler_static=
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15101 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15103 if test "$GCC" = yes; then
15104 lt_prog_compiler_wl='-Wl,'
15105 lt_prog_compiler_static='-static'
15107 case $host_os in
15108 aix*)
15109 # All AIX code is PIC.
15110 if test "$host_cpu" = ia64; then
15111 # AIX 5 now supports IA64 processor
15112 lt_prog_compiler_static='-Bstatic'
15114 lt_prog_compiler_pic='-fPIC'
15117 amigaos*)
15118 case $host_cpu in
15119 powerpc)
15120 # see comment about AmigaOS4 .so support
15121 lt_prog_compiler_pic='-fPIC'
15123 m68k)
15124 # FIXME: we need at least 68020 code to build shared libraries, but
15125 # adding the `-m68020' flag to GCC prevents building anything better,
15126 # like `-m68040'.
15127 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15129 esac
15132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15133 # PIC is the default for these OSes.
15136 mingw* | cygwin* | pw32* | os2* | cegcc*)
15137 # This hack is so that the source file can tell whether it is being
15138 # built for inclusion in a dll (and should export symbols for example).
15139 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15140 # (--disable-auto-import) libraries
15141 lt_prog_compiler_pic='-DDLL_EXPORT'
15144 darwin* | rhapsody*)
15145 # PIC is the default on this platform
15146 # Common symbols not allowed in MH_DYLIB files
15147 lt_prog_compiler_pic='-fno-common'
15150 haiku*)
15151 # PIC is the default for Haiku.
15152 # The "-static" flag exists, but is broken.
15153 lt_prog_compiler_static=
15156 hpux*)
15157 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15158 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15159 # sets the default TLS model and affects inlining.
15160 case $host_cpu in
15161 hppa*64*)
15162 # +Z the default
15165 lt_prog_compiler_pic='-fPIC'
15167 esac
15170 interix[3-9]*)
15171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15172 # Instead, we relocate shared libraries at runtime.
15175 msdosdjgpp*)
15176 # Just because we use GCC doesn't mean we suddenly get shared libraries
15177 # on systems that don't support them.
15178 lt_prog_compiler_can_build_shared=no
15179 enable_shared=no
15182 *nto* | *qnx*)
15183 # QNX uses GNU C++, but need to define -shared option too, otherwise
15184 # it will coredump.
15185 lt_prog_compiler_pic='-fPIC -shared'
15188 sysv4*MP*)
15189 if test -d /usr/nec; then
15190 lt_prog_compiler_pic=-Kconform_pic
15195 lt_prog_compiler_pic='-fPIC'
15197 esac
15199 case $cc_basename in
15200 nvcc*) # Cuda Compiler Driver 2.2
15201 lt_prog_compiler_wl='-Xlinker '
15202 lt_prog_compiler_pic='-Xcompiler -fPIC'
15204 esac
15205 else
15206 # PORTME Check for flag to pass linker flags through the system compiler.
15207 case $host_os in
15208 aix*)
15209 lt_prog_compiler_wl='-Wl,'
15210 if test "$host_cpu" = ia64; then
15211 # AIX 5 now supports IA64 processor
15212 lt_prog_compiler_static='-Bstatic'
15213 else
15214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15218 mingw* | cygwin* | pw32* | os2* | cegcc*)
15219 # This hack is so that the source file can tell whether it is being
15220 # built for inclusion in a dll (and should export symbols for example).
15221 lt_prog_compiler_pic='-DDLL_EXPORT'
15224 hpux9* | hpux10* | hpux11*)
15225 lt_prog_compiler_wl='-Wl,'
15226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15227 # not for PA HP-UX.
15228 case $host_cpu in
15229 hppa*64*|ia64*)
15230 # +Z the default
15233 lt_prog_compiler_pic='+Z'
15235 esac
15236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15237 lt_prog_compiler_static='${wl}-a ${wl}archive'
15240 irix5* | irix6* | nonstopux*)
15241 lt_prog_compiler_wl='-Wl,'
15242 # PIC (with -KPIC) is the default.
15243 lt_prog_compiler_static='-non_shared'
15246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15247 case $cc_basename in
15248 # old Intel for x86_64 which still supported -KPIC.
15249 ecc*)
15250 lt_prog_compiler_wl='-Wl,'
15251 lt_prog_compiler_pic='-KPIC'
15252 lt_prog_compiler_static='-static'
15254 # icc used to be incompatible with GCC.
15255 # ICC 10 doesn't accept -KPIC any more.
15256 icc* | ifort*)
15257 lt_prog_compiler_wl='-Wl,'
15258 lt_prog_compiler_pic='-fPIC'
15259 lt_prog_compiler_static='-static'
15261 # Lahey Fortran 8.1.
15262 lf95*)
15263 lt_prog_compiler_wl='-Wl,'
15264 lt_prog_compiler_pic='--shared'
15265 lt_prog_compiler_static='--static'
15267 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15268 # Portland Group compilers (*not* the Pentium gcc compiler,
15269 # which looks to be a dead project)
15270 lt_prog_compiler_wl='-Wl,'
15271 lt_prog_compiler_pic='-fpic'
15272 lt_prog_compiler_static='-Bstatic'
15274 ccc*)
15275 lt_prog_compiler_wl='-Wl,'
15276 # All Alpha code is PIC.
15277 lt_prog_compiler_static='-non_shared'
15279 xl* | bgxl* | bgf* | mpixl*)
15280 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15281 lt_prog_compiler_wl='-Wl,'
15282 lt_prog_compiler_pic='-qpic'
15283 lt_prog_compiler_static='-qstaticlink'
15286 case `$CC -V 2>&1 | sed 5q` in
15287 *Sun\ F* | *Sun*Fortran*)
15288 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15289 lt_prog_compiler_pic='-KPIC'
15290 lt_prog_compiler_static='-Bstatic'
15291 lt_prog_compiler_wl=''
15293 *Sun\ C*)
15294 # Sun C 5.9
15295 lt_prog_compiler_pic='-KPIC'
15296 lt_prog_compiler_static='-Bstatic'
15297 lt_prog_compiler_wl='-Wl,'
15299 esac
15301 esac
15304 newsos6)
15305 lt_prog_compiler_pic='-KPIC'
15306 lt_prog_compiler_static='-Bstatic'
15309 *nto* | *qnx*)
15310 # QNX uses GNU C++, but need to define -shared option too, otherwise
15311 # it will coredump.
15312 lt_prog_compiler_pic='-fPIC -shared'
15315 osf3* | osf4* | osf5*)
15316 lt_prog_compiler_wl='-Wl,'
15317 # All OSF/1 code is PIC.
15318 lt_prog_compiler_static='-non_shared'
15321 rdos*)
15322 lt_prog_compiler_static='-non_shared'
15325 solaris*)
15326 lt_prog_compiler_pic='-KPIC'
15327 lt_prog_compiler_static='-Bstatic'
15328 case $cc_basename in
15329 f77* | f90* | f95*)
15330 lt_prog_compiler_wl='-Qoption ld ';;
15332 lt_prog_compiler_wl='-Wl,';;
15333 esac
15336 sunos4*)
15337 lt_prog_compiler_wl='-Qoption ld '
15338 lt_prog_compiler_pic='-PIC'
15339 lt_prog_compiler_static='-Bstatic'
15342 sysv4 | sysv4.2uw2* | sysv4.3*)
15343 lt_prog_compiler_wl='-Wl,'
15344 lt_prog_compiler_pic='-KPIC'
15345 lt_prog_compiler_static='-Bstatic'
15348 sysv4*MP*)
15349 if test -d /usr/nec ;then
15350 lt_prog_compiler_pic='-Kconform_pic'
15351 lt_prog_compiler_static='-Bstatic'
15355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15356 lt_prog_compiler_wl='-Wl,'
15357 lt_prog_compiler_pic='-KPIC'
15358 lt_prog_compiler_static='-Bstatic'
15361 unicos*)
15362 lt_prog_compiler_wl='-Wl,'
15363 lt_prog_compiler_can_build_shared=no
15366 uts4*)
15367 lt_prog_compiler_pic='-pic'
15368 lt_prog_compiler_static='-Bstatic'
15372 lt_prog_compiler_can_build_shared=no
15374 esac
15377 case $host_os in
15378 # For platforms which do not support PIC, -DPIC is meaningless:
15379 *djgpp*)
15380 lt_prog_compiler_pic=
15383 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15385 esac
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15387 $as_echo "$lt_prog_compiler_pic" >&6; }
15395 # Check to make sure the PIC flag actually works.
15397 if test -n "$lt_prog_compiler_pic"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15399 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15400 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15401 $as_echo_n "(cached) " >&6
15402 else
15403 lt_cv_prog_compiler_pic_works=no
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15406 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15407 # Insert the option either (1) after the last *FLAGS variable, or
15408 # (2) before a word containing "conftest.", or (3) at the end.
15409 # Note that $ac_compile itself does not contain backslashes and begins
15410 # with a dollar sign (not a hyphen), so the echo should work correctly.
15411 # The option is referenced via a variable to avoid confusing sed.
15412 lt_compile=`echo "$ac_compile" | $SED \
15413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15415 -e 's:$: $lt_compiler_flag:'`
15416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15417 (eval "$lt_compile" 2>conftest.err)
15418 ac_status=$?
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 if (exit $ac_status) && test -s "$ac_outfile"; then
15422 # The compiler can only warn and ignore the option if not recognized
15423 # So say no if there are warnings other than the usual output.
15424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_pic_works=yes
15430 $RM conftest*
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15434 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15436 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15437 case $lt_prog_compiler_pic in
15438 "" | " "*) ;;
15439 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15440 esac
15441 else
15442 lt_prog_compiler_pic=
15443 lt_prog_compiler_can_build_shared=no
15454 # Check to make sure the static flag actually works.
15456 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15458 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15459 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462 lt_cv_prog_compiler_static_works=no
15463 save_LDFLAGS="$LDFLAGS"
15464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15467 # The linker can only warn and ignore the option if not recognized
15468 # So say no if there are warnings
15469 if test -s conftest.err; then
15470 # Append any errors to the config.log.
15471 cat conftest.err 1>&5
15472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15474 if diff conftest.exp conftest.er2 >/dev/null; then
15475 lt_cv_prog_compiler_static_works=yes
15477 else
15478 lt_cv_prog_compiler_static_works=yes
15481 $RM -r conftest*
15482 LDFLAGS="$save_LDFLAGS"
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15486 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15488 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15490 else
15491 lt_prog_compiler_static=
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15502 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 lt_cv_prog_compiler_c_o=no
15506 $RM -r conftest 2>/dev/null
15507 mkdir conftest
15508 cd conftest
15509 mkdir out
15510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15512 lt_compiler_flag="-o out/conftest2.$ac_objext"
15513 # Insert the option either (1) after the last *FLAGS variable, or
15514 # (2) before a word containing "conftest.", or (3) at the end.
15515 # Note that $ac_compile itself does not contain backslashes and begins
15516 # with a dollar sign (not a hyphen), so the echo should work correctly.
15517 lt_compile=`echo "$ac_compile" | $SED \
15518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15520 -e 's:$: $lt_compiler_flag:'`
15521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15522 (eval "$lt_compile" 2>out/conftest.err)
15523 ac_status=$?
15524 cat out/conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15527 then
15528 # The compiler can only warn and ignore the option if not recognized
15529 # So say no if there are warnings
15530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15533 lt_cv_prog_compiler_c_o=yes
15536 chmod u+w . 2>&5
15537 $RM conftest*
15538 # SGI C++ compiler will create directory out/ii_files/ for
15539 # template instantiation
15540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15541 $RM out/* && rmdir out
15542 cd ..
15543 $RM -r conftest
15544 $RM conftest*
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15548 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15556 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15557 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15560 lt_cv_prog_compiler_c_o=no
15561 $RM -r conftest 2>/dev/null
15562 mkdir conftest
15563 cd conftest
15564 mkdir out
15565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15567 lt_compiler_flag="-o out/conftest2.$ac_objext"
15568 # Insert the option either (1) after the last *FLAGS variable, or
15569 # (2) before a word containing "conftest.", or (3) at the end.
15570 # Note that $ac_compile itself does not contain backslashes and begins
15571 # with a dollar sign (not a hyphen), so the echo should work correctly.
15572 lt_compile=`echo "$ac_compile" | $SED \
15573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15575 -e 's:$: $lt_compiler_flag:'`
15576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15577 (eval "$lt_compile" 2>out/conftest.err)
15578 ac_status=$?
15579 cat out/conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15582 then
15583 # The compiler can only warn and ignore the option if not recognized
15584 # So say no if there are warnings
15585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15588 lt_cv_prog_compiler_c_o=yes
15591 chmod u+w . 2>&5
15592 $RM conftest*
15593 # SGI C++ compiler will create directory out/ii_files/ for
15594 # template instantiation
15595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15596 $RM out/* && rmdir out
15597 cd ..
15598 $RM -r conftest
15599 $RM conftest*
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15603 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15608 hard_links="nottested"
15609 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15610 # do not overwrite the value of need_locks provided by the user
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15612 $as_echo_n "checking if we can lock with hard links... " >&6; }
15613 hard_links=yes
15614 $RM conftest*
15615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15616 touch conftest.a
15617 ln conftest.a conftest.b 2>&5 || hard_links=no
15618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15620 $as_echo "$hard_links" >&6; }
15621 if test "$hard_links" = no; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15623 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15624 need_locks=warn
15626 else
15627 need_locks=no
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15636 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15638 runpath_var=
15639 allow_undefined_flag=
15640 always_export_symbols=no
15641 archive_cmds=
15642 archive_expsym_cmds=
15643 compiler_needs_object=no
15644 enable_shared_with_static_runtimes=no
15645 export_dynamic_flag_spec=
15646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15647 hardcode_automatic=no
15648 hardcode_direct=no
15649 hardcode_direct_absolute=no
15650 hardcode_libdir_flag_spec=
15651 hardcode_libdir_flag_spec_ld=
15652 hardcode_libdir_separator=
15653 hardcode_minus_L=no
15654 hardcode_shlibpath_var=unsupported
15655 inherit_rpath=no
15656 link_all_deplibs=unknown
15657 module_cmds=
15658 module_expsym_cmds=
15659 old_archive_from_new_cmds=
15660 old_archive_from_expsyms_cmds=
15661 thread_safe_flag_spec=
15662 whole_archive_flag_spec=
15663 # include_expsyms should be a list of space-separated symbols to be *always*
15664 # included in the symbol list
15665 include_expsyms=
15666 # exclude_expsyms can be an extended regexp of symbols to exclude
15667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15669 # as well as any symbol that contains `d'.
15670 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15672 # platforms (ab)use it in PIC code, but their linkers get confused if
15673 # the symbol is explicitly referenced. Since portable code cannot
15674 # rely on this symbol name, it's probably fine to never include it in
15675 # preloaded symbol tables.
15676 # Exclude shared library initialization/finalization symbols.
15677 extract_expsyms_cmds=
15679 case $host_os in
15680 cygwin* | mingw* | pw32* | cegcc*)
15681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15682 # When not using gcc, we currently assume that we are using
15683 # Microsoft Visual C++.
15684 if test "$GCC" != yes; then
15685 with_gnu_ld=no
15688 interix*)
15689 # we just hope/assume this is gcc and not c89 (= MSVC++)
15690 with_gnu_ld=yes
15692 openbsd*)
15693 with_gnu_ld=no
15695 esac
15697 ld_shlibs=yes
15699 # On some targets, GNU ld is compatible enough with the native linker
15700 # that we're better off using the native interface for both.
15701 lt_use_gnu_ld_interface=no
15702 if test "$with_gnu_ld" = yes; then
15703 case $host_os in
15704 aix*)
15705 # The AIX port of GNU ld has always aspired to compatibility
15706 # with the native linker. However, as the warning in the GNU ld
15707 # block says, versions before 2.19.5* couldn't really create working
15708 # shared libraries, regardless of the interface used.
15709 case `$LD -v 2>&1` in
15710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15712 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15714 lt_use_gnu_ld_interface=yes
15716 esac
15719 lt_use_gnu_ld_interface=yes
15721 esac
15724 if test "$lt_use_gnu_ld_interface" = yes; then
15725 # If archive_cmds runs LD, not CC, wlarc should be empty
15726 wlarc='${wl}'
15728 # Set some defaults for GNU ld with shared library support. These
15729 # are reset later if shared libraries are not supported. Putting them
15730 # here allows them to be overridden if necessary.
15731 runpath_var=LD_RUN_PATH
15732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15733 export_dynamic_flag_spec='${wl}--export-dynamic'
15734 # ancient GNU ld didn't support --whole-archive et. al.
15735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15737 else
15738 whole_archive_flag_spec=
15740 supports_anon_versioning=no
15741 case `$LD -v 2>&1` in
15742 *GNU\ gold*) supports_anon_versioning=yes ;;
15743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15746 *\ 2.11.*) ;; # other 2.11 versions
15747 *) supports_anon_versioning=yes ;;
15748 esac
15750 # See if GNU ld supports shared libraries.
15751 case $host_os in
15752 aix[3-9]*)
15753 # On AIX/PPC, the GNU linker is very broken
15754 if test "$host_cpu" != ia64; then
15755 ld_shlibs=no
15756 cat <<_LT_EOF 1>&2
15758 *** Warning: the GNU linker, at least up to release 2.19, is reported
15759 *** to be unable to reliably create shared libraries on AIX.
15760 *** Therefore, libtool is disabling shared libraries support. If you
15761 *** really care for shared libraries, you may want to install binutils
15762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15763 *** You will then need to restart the configuration process.
15765 _LT_EOF
15769 amigaos*)
15770 case $host_cpu in
15771 powerpc)
15772 # see comment about AmigaOS4 .so support
15773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15774 archive_expsym_cmds=''
15776 m68k)
15777 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)'
15778 hardcode_libdir_flag_spec='-L$libdir'
15779 hardcode_minus_L=yes
15781 esac
15784 beos*)
15785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15786 allow_undefined_flag=unsupported
15787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15788 # support --undefined. This deserves some investigation. FIXME
15789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15790 else
15791 ld_shlibs=no
15795 cygwin* | mingw* | pw32* | cegcc*)
15796 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15797 # as there is no search path for DLLs.
15798 hardcode_libdir_flag_spec='-L$libdir'
15799 export_dynamic_flag_spec='${wl}--export-all-symbols'
15800 allow_undefined_flag=unsupported
15801 always_export_symbols=no
15802 enable_shared_with_static_runtimes=yes
15803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15807 # If the export-symbols file already is a .def file (1st line
15808 # is EXPORTS), use it as is; otherwise, prepend...
15809 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15810 cp $export_symbols $output_objdir/$soname.def;
15811 else
15812 echo EXPORTS > $output_objdir/$soname.def;
15813 cat $export_symbols >> $output_objdir/$soname.def;
15815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15816 else
15817 ld_shlibs=no
15821 haiku*)
15822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15823 link_all_deplibs=yes
15826 interix[3-9]*)
15827 hardcode_direct=no
15828 hardcode_shlibpath_var=no
15829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15830 export_dynamic_flag_spec='${wl}-E'
15831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15832 # Instead, shared libraries are loaded at an image base (0x10000000 by
15833 # default) and relocated if they conflict, which is a slow very memory
15834 # consuming and fragmenting process. To avoid this, we pick a random,
15835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15838 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'
15841 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15842 tmp_diet=no
15843 if test "$host_os" = linux-dietlibc; then
15844 case $cc_basename in
15845 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15846 esac
15848 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15849 && test "$tmp_diet" = no
15850 then
15851 tmp_addflag=
15852 tmp_sharedflag='-shared'
15853 case $cc_basename,$host_cpu in
15854 pgcc*) # Portland Group C compiler
15855 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'
15856 tmp_addflag=' $pic_flag'
15858 pgf77* | pgf90* | pgf95* | pgfortran*)
15859 # Portland Group f77 and f90 compilers
15860 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'
15861 tmp_addflag=' $pic_flag -Mnomain' ;;
15862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15863 tmp_addflag=' -i_dynamic' ;;
15864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15865 tmp_addflag=' -i_dynamic -nofor_main' ;;
15866 ifc* | ifort*) # Intel Fortran compiler
15867 tmp_addflag=' -nofor_main' ;;
15868 lf95*) # Lahey Fortran 8.1
15869 whole_archive_flag_spec=
15870 tmp_sharedflag='--shared' ;;
15871 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15872 tmp_sharedflag='-qmkshrobj'
15873 tmp_addflag= ;;
15874 nvcc*) # Cuda Compiler Driver 2.2
15875 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'
15876 compiler_needs_object=yes
15878 esac
15879 case `$CC -V 2>&1 | sed 5q` in
15880 *Sun\ C*) # Sun C 5.9
15881 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'
15882 compiler_needs_object=yes
15883 tmp_sharedflag='-G' ;;
15884 *Sun\ F*) # Sun Fortran 8.3
15885 tmp_sharedflag='-G' ;;
15886 esac
15887 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15889 if test "x$supports_anon_versioning" = xyes; then
15890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15892 echo "local: *; };" >> $output_objdir/$libname.ver~
15893 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15896 case $cc_basename in
15897 xlf* | bgf* | bgxlf* | mpixlf*)
15898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15899 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15900 hardcode_libdir_flag_spec=
15901 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15902 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15903 if test "x$supports_anon_versioning" = xyes; then
15904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15906 echo "local: *; };" >> $output_objdir/$libname.ver~
15907 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15910 esac
15911 else
15912 ld_shlibs=no
15916 netbsd*)
15917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15918 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15919 wlarc=
15920 else
15921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15926 solaris*)
15927 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15928 ld_shlibs=no
15929 cat <<_LT_EOF 1>&2
15931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15932 *** create shared libraries on Solaris systems. Therefore, libtool
15933 *** is disabling shared libraries support. We urge you to upgrade GNU
15934 *** binutils to release 2.9.1 or newer. Another option is to modify
15935 *** your PATH or compiler configuration so that the native linker is
15936 *** used, and then restart.
15938 _LT_EOF
15939 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15942 else
15943 ld_shlibs=no
15947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15948 case `$LD -v 2>&1` in
15949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15950 ld_shlibs=no
15951 cat <<_LT_EOF 1>&2
15953 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15954 *** reliably create shared libraries on SCO systems. Therefore, libtool
15955 *** is disabling shared libraries support. We urge you to upgrade GNU
15956 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15957 *** your PATH or compiler configuration so that the native linker is
15958 *** used, and then restart.
15960 _LT_EOF
15963 # For security reasons, it is highly recommended that you always
15964 # use absolute paths for naming shared libraries, and exclude the
15965 # DT_RUNPATH tag from executables and libraries. But doing so
15966 # requires that you compile everything twice, which is a pain.
15967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15971 else
15972 ld_shlibs=no
15975 esac
15978 sunos4*)
15979 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15980 wlarc=
15981 hardcode_direct=yes
15982 hardcode_shlibpath_var=no
15986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15989 else
15990 ld_shlibs=no
15993 esac
15995 if test "$ld_shlibs" = no; then
15996 runpath_var=
15997 hardcode_libdir_flag_spec=
15998 export_dynamic_flag_spec=
15999 whole_archive_flag_spec=
16001 else
16002 # PORTME fill in a description of your system's linker (not GNU ld)
16003 case $host_os in
16004 aix3*)
16005 allow_undefined_flag=unsupported
16006 always_export_symbols=yes
16007 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'
16008 # Note: this linker hardcodes the directories in LIBPATH if there
16009 # are no directories specified by -L.
16010 hardcode_minus_L=yes
16011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16012 # Neither direct hardcoding nor static linking is supported with a
16013 # broken collect2.
16014 hardcode_direct=unsupported
16018 aix[4-9]*)
16019 if test "$host_cpu" = ia64; then
16020 # On IA64, the linker does run time linking by default, so we don't
16021 # have to do anything special.
16022 aix_use_runtimelinking=no
16023 exp_sym_flag='-Bexport'
16024 no_entry_flag=""
16025 else
16026 # If we're using GNU nm, then we don't want the "-C" option.
16027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16028 # Also, AIX nm treats weak defined symbols like other global
16029 # defined symbols, whereas GNU nm marks them as "W".
16030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16031 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'
16032 else
16033 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16035 aix_use_runtimelinking=no
16037 # Test if we are trying to use run time linking or normal
16038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16039 # need to do runtime linking.
16040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16041 for ld_flag in $LDFLAGS; do
16042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16043 aix_use_runtimelinking=yes
16044 break
16046 done
16048 esac
16050 exp_sym_flag='-bexport'
16051 no_entry_flag='-bnoentry'
16054 # When large executables or shared objects are built, AIX ld can
16055 # have problems creating the table of contents. If linking a library
16056 # or program results in "error TOC overflow" add -mminimal-toc to
16057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16060 archive_cmds=''
16061 hardcode_direct=yes
16062 hardcode_direct_absolute=yes
16063 hardcode_libdir_separator=':'
16064 link_all_deplibs=yes
16065 file_list_spec='${wl}-f,'
16067 if test "$GCC" = yes; then
16068 case $host_os in aix4.[012]|aix4.[012].*)
16069 # We only want to do this on AIX 4.2 and lower, the check
16070 # below for broken collect2 doesn't work under 4.3+
16071 collect2name=`${CC} -print-prog-name=collect2`
16072 if test -f "$collect2name" &&
16073 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16074 then
16075 # We have reworked collect2
16077 else
16078 # We have old collect2
16079 hardcode_direct=unsupported
16080 # It fails to find uninstalled libraries when the uninstalled
16081 # path is not listed in the libpath. Setting hardcode_minus_L
16082 # to unsupported forces relinking
16083 hardcode_minus_L=yes
16084 hardcode_libdir_flag_spec='-L$libdir'
16085 hardcode_libdir_separator=
16088 esac
16089 shared_flag='-shared'
16090 if test "$aix_use_runtimelinking" = yes; then
16091 shared_flag="$shared_flag "'${wl}-G'
16093 else
16094 # not using gcc
16095 if test "$host_cpu" = ia64; then
16096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16097 # chokes on -Wl,-G. The following line is correct:
16098 shared_flag='-G'
16099 else
16100 if test "$aix_use_runtimelinking" = yes; then
16101 shared_flag='${wl}-G'
16102 else
16103 shared_flag='${wl}-bM:SRE'
16108 export_dynamic_flag_spec='${wl}-bexpall'
16109 # It seems that -bexpall does not export symbols beginning with
16110 # underscore (_), so it is better to generate a list of symbols to export.
16111 always_export_symbols=yes
16112 if test "$aix_use_runtimelinking" = yes; then
16113 # Warning - without using the other runtime loading flags (-brtl),
16114 # -berok will link without error, but may produce a broken library.
16115 allow_undefined_flag='-berok'
16116 # Determine the default libpath from the value encoded in an
16117 # empty executable.
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16122 main ()
16126 return 0;
16128 _ACEOF
16129 if ac_fn_c_try_link "$LINENO"; then :
16131 lt_aix_libpath_sed='
16132 /Import File Strings/,/^$/ {
16133 /^0/ {
16134 s/^0 *\(.*\)$/\1/
16138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16139 # Check for a 64-bit object if we didn't find anything.
16140 if test -z "$aix_libpath"; then
16141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16144 rm -f core conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16148 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16149 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"
16150 else
16151 if test "$host_cpu" = ia64; then
16152 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16153 allow_undefined_flag="-z nodefs"
16154 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"
16155 else
16156 # Determine the default libpath from the value encoded in an
16157 # empty executable.
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16162 main ()
16166 return 0;
16168 _ACEOF
16169 if ac_fn_c_try_link "$LINENO"; then :
16171 lt_aix_libpath_sed='
16172 /Import File Strings/,/^$/ {
16173 /^0/ {
16174 s/^0 *\(.*\)$/\1/
16178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16179 # Check for a 64-bit object if we didn't find anything.
16180 if test -z "$aix_libpath"; then
16181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16184 rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16188 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16189 # Warning - without using the other run time loading flags,
16190 # -berok will link without error, but may produce a broken library.
16191 no_undefined_flag=' ${wl}-bernotok'
16192 allow_undefined_flag=' ${wl}-berok'
16193 if test "$with_gnu_ld" = yes; then
16194 # We only use this code for GNU lds that support --whole-archive.
16195 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16196 else
16197 # Exported symbols can be pulled into shared objects from archives
16198 whole_archive_flag_spec='$convenience'
16200 archive_cmds_need_lc=yes
16201 # This is similar to how AIX traditionally builds its shared libraries.
16202 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'
16207 amigaos*)
16208 case $host_cpu in
16209 powerpc)
16210 # see comment about AmigaOS4 .so support
16211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16212 archive_expsym_cmds=''
16214 m68k)
16215 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)'
16216 hardcode_libdir_flag_spec='-L$libdir'
16217 hardcode_minus_L=yes
16219 esac
16222 bsdi[45]*)
16223 export_dynamic_flag_spec=-rdynamic
16226 cygwin* | mingw* | pw32* | cegcc*)
16227 # When not using gcc, we currently assume that we are using
16228 # Microsoft Visual C++.
16229 # hardcode_libdir_flag_spec is actually meaningless, as there is
16230 # no search path for DLLs.
16231 hardcode_libdir_flag_spec=' '
16232 allow_undefined_flag=unsupported
16233 # Tell ltmain to make .lib files, not .a files.
16234 libext=lib
16235 # Tell ltmain to make .dll files, not .so files.
16236 shrext_cmds=".dll"
16237 # FIXME: Setting linknames here is a bad hack.
16238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16239 # The linker will automatically build a .lib file if we build a DLL.
16240 old_archive_from_new_cmds='true'
16241 # FIXME: Should let the user specify the lib program.
16242 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16243 fix_srcfile_path='`cygpath -w "$srcfile"`'
16244 enable_shared_with_static_runtimes=yes
16247 darwin* | rhapsody*)
16250 archive_cmds_need_lc=no
16251 hardcode_direct=no
16252 hardcode_automatic=yes
16253 hardcode_shlibpath_var=unsupported
16254 if test "$lt_cv_ld_force_load" = "yes"; then
16255 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\"`'
16256 else
16257 whole_archive_flag_spec=''
16259 link_all_deplibs=yes
16260 allow_undefined_flag="$_lt_dar_allow_undefined"
16261 case $cc_basename in
16262 ifort*) _lt_dar_can_shared=yes ;;
16263 *) _lt_dar_can_shared=$GCC ;;
16264 esac
16265 if test "$_lt_dar_can_shared" = "yes"; then
16266 output_verbose_link_cmd=func_echo_all
16267 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16268 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16269 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}"
16270 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}"
16272 else
16273 ld_shlibs=no
16278 dgux*)
16279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16280 hardcode_libdir_flag_spec='-L$libdir'
16281 hardcode_shlibpath_var=no
16284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16285 # support. Future versions do this automatically, but an explicit c++rt0.o
16286 # does not break anything, and helps significantly (at the cost of a little
16287 # extra space).
16288 freebsd2.2*)
16289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16290 hardcode_libdir_flag_spec='-R$libdir'
16291 hardcode_direct=yes
16292 hardcode_shlibpath_var=no
16295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16296 freebsd2.*)
16297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_direct=yes
16299 hardcode_minus_L=yes
16300 hardcode_shlibpath_var=no
16303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16304 freebsd* | dragonfly*)
16305 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16306 hardcode_libdir_flag_spec='-R$libdir'
16307 hardcode_direct=yes
16308 hardcode_shlibpath_var=no
16311 hpux9*)
16312 if test "$GCC" = yes; then
16313 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'
16314 else
16315 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'
16317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16318 hardcode_libdir_separator=:
16319 hardcode_direct=yes
16321 # hardcode_minus_L: Not really in the search PATH,
16322 # but as the default location of the library.
16323 hardcode_minus_L=yes
16324 export_dynamic_flag_spec='${wl}-E'
16327 hpux10*)
16328 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16329 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16330 else
16331 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16333 if test "$with_gnu_ld" = no; then
16334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16335 hardcode_libdir_flag_spec_ld='+b $libdir'
16336 hardcode_libdir_separator=:
16337 hardcode_direct=yes
16338 hardcode_direct_absolute=yes
16339 export_dynamic_flag_spec='${wl}-E'
16340 # hardcode_minus_L: Not really in the search PATH,
16341 # but as the default location of the library.
16342 hardcode_minus_L=yes
16346 hpux11*)
16347 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16348 case $host_cpu in
16349 hppa*64*)
16350 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16352 ia64*)
16353 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16358 esac
16359 else
16360 case $host_cpu in
16361 hppa*64*)
16362 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16364 ia64*)
16365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16369 # Older versions of the 11.00 compiler do not understand -b yet
16370 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16372 $as_echo_n "checking if $CC understands -b... " >&6; }
16373 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16374 $as_echo_n "(cached) " >&6
16375 else
16376 lt_cv_prog_compiler__b=no
16377 save_LDFLAGS="$LDFLAGS"
16378 LDFLAGS="$LDFLAGS -b"
16379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16381 # The linker can only warn and ignore the option if not recognized
16382 # So say no if there are warnings
16383 if test -s conftest.err; then
16384 # Append any errors to the config.log.
16385 cat conftest.err 1>&5
16386 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16388 if diff conftest.exp conftest.er2 >/dev/null; then
16389 lt_cv_prog_compiler__b=yes
16391 else
16392 lt_cv_prog_compiler__b=yes
16395 $RM -r conftest*
16396 LDFLAGS="$save_LDFLAGS"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16400 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16402 if test x"$lt_cv_prog_compiler__b" = xyes; then
16403 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16404 else
16405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16409 esac
16411 if test "$with_gnu_ld" = no; then
16412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16413 hardcode_libdir_separator=:
16415 case $host_cpu in
16416 hppa*64*|ia64*)
16417 hardcode_direct=no
16418 hardcode_shlibpath_var=no
16421 hardcode_direct=yes
16422 hardcode_direct_absolute=yes
16423 export_dynamic_flag_spec='${wl}-E'
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L=yes
16429 esac
16433 irix5* | irix6* | nonstopux*)
16434 if test "$GCC" = yes; then
16435 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'
16436 # Try to use the -exported_symbol ld option, if it does not
16437 # work, assume that -exports_file does not work either and
16438 # implicitly export all symbols.
16439 save_LDFLAGS="$LDFLAGS"
16440 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 int foo(void) {}
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16446 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'
16449 rm -f core conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
16451 LDFLAGS="$save_LDFLAGS"
16452 else
16453 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'
16454 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'
16456 archive_cmds_need_lc='no'
16457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16458 hardcode_libdir_separator=:
16459 inherit_rpath=yes
16460 link_all_deplibs=yes
16463 netbsd*)
16464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16466 else
16467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16469 hardcode_libdir_flag_spec='-R$libdir'
16470 hardcode_direct=yes
16471 hardcode_shlibpath_var=no
16474 newsos6)
16475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_direct=yes
16477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16478 hardcode_libdir_separator=:
16479 hardcode_shlibpath_var=no
16482 *nto* | *qnx*)
16485 openbsd*)
16486 if test -f /usr/libexec/ld.so; then
16487 hardcode_direct=yes
16488 hardcode_shlibpath_var=no
16489 hardcode_direct_absolute=yes
16490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16494 export_dynamic_flag_spec='${wl}-E'
16495 else
16496 case $host_os in
16497 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16499 hardcode_libdir_flag_spec='-R$libdir'
16502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16505 esac
16507 else
16508 ld_shlibs=no
16512 os2*)
16513 hardcode_libdir_flag_spec='-L$libdir'
16514 hardcode_minus_L=yes
16515 allow_undefined_flag=unsupported
16516 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'
16517 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16520 osf3*)
16521 if test "$GCC" = yes; then
16522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16523 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'
16524 else
16525 allow_undefined_flag=' -expect_unresolved \*'
16526 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'
16528 archive_cmds_need_lc='no'
16529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16530 hardcode_libdir_separator=:
16533 osf4* | osf5*) # as osf3* with the addition of -msym flag
16534 if test "$GCC" = yes; then
16535 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16536 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'
16537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16538 else
16539 allow_undefined_flag=' -expect_unresolved \*'
16540 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'
16541 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~
16542 $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'
16544 # Both c and cxx compiler support -rpath directly
16545 hardcode_libdir_flag_spec='-rpath $libdir'
16547 archive_cmds_need_lc='no'
16548 hardcode_libdir_separator=:
16551 solaris*)
16552 no_undefined_flag=' -z defs'
16553 if test "$GCC" = yes; then
16554 wlarc='${wl}'
16555 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16557 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16558 else
16559 case `$CC -V 2>&1` in
16560 *"Compilers 5.0"*)
16561 wlarc=''
16562 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16564 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16567 wlarc='${wl}'
16568 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16570 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16572 esac
16574 hardcode_libdir_flag_spec='-R$libdir'
16575 hardcode_shlibpath_var=no
16576 case $host_os in
16577 solaris2.[0-5] | solaris2.[0-5].*) ;;
16579 # The compiler driver will combine and reorder linker options,
16580 # but understands `-z linker_flag'. GCC discards it without `$wl',
16581 # but is careful enough not to reorder.
16582 # Supported since Solaris 2.6 (maybe 2.5.1?)
16583 if test "$GCC" = yes; then
16584 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16585 else
16586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16589 esac
16590 link_all_deplibs=yes
16593 sunos4*)
16594 if test "x$host_vendor" = xsequent; then
16595 # Use $CC to link under sequent, because it throws in some extra .o
16596 # files that make .init and .fini sections work.
16597 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16598 else
16599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16601 hardcode_libdir_flag_spec='-L$libdir'
16602 hardcode_direct=yes
16603 hardcode_minus_L=yes
16604 hardcode_shlibpath_var=no
16607 sysv4)
16608 case $host_vendor in
16609 sni)
16610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611 hardcode_direct=yes # is this really true???
16613 siemens)
16614 ## LD is ld it makes a PLAMLIB
16615 ## CC just makes a GrossModule.
16616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16617 reload_cmds='$CC -r -o $output$reload_objs'
16618 hardcode_direct=no
16620 motorola)
16621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16624 esac
16625 runpath_var='LD_RUN_PATH'
16626 hardcode_shlibpath_var=no
16629 sysv4.3*)
16630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_shlibpath_var=no
16632 export_dynamic_flag_spec='-Bexport'
16635 sysv4*MP*)
16636 if test -d /usr/nec; then
16637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638 hardcode_shlibpath_var=no
16639 runpath_var=LD_RUN_PATH
16640 hardcode_runpath_var=yes
16641 ld_shlibs=yes
16645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16646 no_undefined_flag='${wl}-z,text'
16647 archive_cmds_need_lc=no
16648 hardcode_shlibpath_var=no
16649 runpath_var='LD_RUN_PATH'
16651 if test "$GCC" = yes; then
16652 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16653 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 else
16655 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16656 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16660 sysv5* | sco3.2v5* | sco5v6*)
16661 # Note: We can NOT use -z defs as we might desire, because we do not
16662 # link with -lc, and that would cause any symbols used from libc to
16663 # always be unresolved, which means just about no library would
16664 # ever link correctly. If we're not using GNU ld we use -z text
16665 # though, which does catch some bad symbols but isn't as heavy-handed
16666 # as -z defs.
16667 no_undefined_flag='${wl}-z,text'
16668 allow_undefined_flag='${wl}-z,nodefs'
16669 archive_cmds_need_lc=no
16670 hardcode_shlibpath_var=no
16671 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16672 hardcode_libdir_separator=':'
16673 link_all_deplibs=yes
16674 export_dynamic_flag_spec='${wl}-Bexport'
16675 runpath_var='LD_RUN_PATH'
16677 if test "$GCC" = yes; then
16678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 else
16681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16686 uts4*)
16687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688 hardcode_libdir_flag_spec='-L$libdir'
16689 hardcode_shlibpath_var=no
16693 ld_shlibs=no
16695 esac
16697 if test x$host_vendor = xsni; then
16698 case $host in
16699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16700 export_dynamic_flag_spec='${wl}-Blargedynsym'
16702 esac
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16707 $as_echo "$ld_shlibs" >&6; }
16708 test "$ld_shlibs" = no && can_build_shared=no
16710 with_gnu_ld=$with_gnu_ld
16727 # Do we need to explicitly link libc?
16729 case "x$archive_cmds_need_lc" in
16730 x|xyes)
16731 # Assume -lc should be added
16732 archive_cmds_need_lc=yes
16734 if test "$enable_shared" = yes && test "$GCC" = yes; then
16735 case $archive_cmds in
16736 *'~'*)
16737 # FIXME: we may have to deal with multi-command sequences.
16739 '$CC '*)
16740 # Test whether the compiler implicitly links with -lc since on some
16741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16742 # to ld, don't add -lc before -lgcc.
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16745 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16746 $as_echo_n "(cached) " >&6
16747 else
16748 $RM conftest*
16749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16752 (eval $ac_compile) 2>&5
16753 ac_status=$?
16754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755 test $ac_status = 0; } 2>conftest.err; then
16756 soname=conftest
16757 lib=conftest
16758 libobjs=conftest.$ac_objext
16759 deplibs=
16760 wl=$lt_prog_compiler_wl
16761 pic_flag=$lt_prog_compiler_pic
16762 compiler_flags=-v
16763 linker_flags=-v
16764 verstring=
16765 output_objdir=.
16766 libname=conftest
16767 lt_save_allow_undefined_flag=$allow_undefined_flag
16768 allow_undefined_flag=
16769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16770 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16771 ac_status=$?
16772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16773 test $ac_status = 0; }
16774 then
16775 lt_cv_archive_cmds_need_lc=no
16776 else
16777 lt_cv_archive_cmds_need_lc=yes
16779 allow_undefined_flag=$lt_save_allow_undefined_flag
16780 else
16781 cat conftest.err 1>&5
16783 $RM conftest*
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16787 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16788 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16790 esac
16793 esac
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16952 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16954 if test "$GCC" = yes; then
16955 case $host_os in
16956 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16957 *) lt_awk_arg="/^libraries:/" ;;
16958 esac
16959 case $host_os in
16960 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16961 *) lt_sed_strip_eq="s,=/,/,g" ;;
16962 esac
16963 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16964 case $lt_search_path_spec in
16965 *\;*)
16966 # if the path contains ";" then we assume it to be the separator
16967 # otherwise default to the standard path separator (i.e. ":") - it is
16968 # assumed that no part of a normal pathname contains ";" but that should
16969 # okay in the real world where ";" in dirpaths is itself problematic.
16970 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16975 esac
16976 # Ok, now we have the path, separated by spaces, we can step through it
16977 # and add multilib dir if necessary.
16978 lt_tmp_lt_search_path_spec=
16979 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16980 for lt_sys_path in $lt_search_path_spec; do
16981 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16982 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16983 else
16984 test -d "$lt_sys_path" && \
16985 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16987 done
16988 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16989 BEGIN {RS=" "; FS="/|\n";} {
16990 lt_foo="";
16991 lt_count=0;
16992 for (lt_i = NF; lt_i > 0; lt_i--) {
16993 if ($lt_i != "" && $lt_i != ".") {
16994 if ($lt_i == "..") {
16995 lt_count++;
16996 } else {
16997 if (lt_count == 0) {
16998 lt_foo="/" $lt_i lt_foo;
16999 } else {
17000 lt_count--;
17005 if (lt_foo != "") { lt_freq[lt_foo]++; }
17006 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17008 # AWK program above erroneously prepends '/' to C:/dos/paths
17009 # for these hosts.
17010 case $host_os in
17011 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17012 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17013 esac
17014 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17015 else
17016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17018 library_names_spec=
17019 libname_spec='lib$name'
17020 soname_spec=
17021 shrext_cmds=".so"
17022 postinstall_cmds=
17023 postuninstall_cmds=
17024 finish_cmds=
17025 finish_eval=
17026 shlibpath_var=
17027 shlibpath_overrides_runpath=unknown
17028 version_type=none
17029 dynamic_linker="$host_os ld.so"
17030 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17031 need_lib_prefix=unknown
17032 hardcode_into_libs=no
17034 # when you set need_version to no, make sure it does not cause -set_version
17035 # flags to be left without arguments
17036 need_version=unknown
17038 case $host_os in
17039 aix3*)
17040 version_type=linux
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17042 shlibpath_var=LIBPATH
17044 # AIX 3 has no versioning support, so we append a major version to the name.
17045 soname_spec='${libname}${release}${shared_ext}$major'
17048 aix[4-9]*)
17049 version_type=linux
17050 need_lib_prefix=no
17051 need_version=no
17052 hardcode_into_libs=yes
17053 if test "$host_cpu" = ia64; then
17054 # AIX 5 supports IA64
17055 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17056 shlibpath_var=LD_LIBRARY_PATH
17057 else
17058 # With GCC up to 2.95.x, collect2 would create an import file
17059 # for dependence libraries. The import file would start with
17060 # the line `#! .'. This would cause the generated library to
17061 # depend on `.', always an invalid library. This was fixed in
17062 # development snapshots of GCC prior to 3.0.
17063 case $host_os in
17064 aix4 | aix4.[01] | aix4.[01].*)
17065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17066 echo ' yes '
17067 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17069 else
17070 can_build_shared=no
17073 esac
17074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17075 # soname into executable. Probably we can add versioning support to
17076 # collect2, so additional links can be useful in future.
17077 if test "$aix_use_runtimelinking" = yes; then
17078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17079 # instead of lib<name>.a to let people know that these are not
17080 # typical AIX shared libraries.
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17082 else
17083 # We preserve .a as extension for shared libraries through AIX4.2
17084 # and later when we are not doing run time linking.
17085 library_names_spec='${libname}${release}.a $libname.a'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17088 shlibpath_var=LIBPATH
17092 amigaos*)
17093 case $host_cpu in
17094 powerpc)
17095 # Since July 2007 AmigaOS4 officially supports .so libraries.
17096 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 m68k)
17100 library_names_spec='$libname.ixlibrary $libname.a'
17101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17102 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'
17104 esac
17107 beos*)
17108 library_names_spec='${libname}${shared_ext}'
17109 dynamic_linker="$host_os ld.so"
17110 shlibpath_var=LIBRARY_PATH
17113 bsdi[45]*)
17114 version_type=linux
17115 need_version=no
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 soname_spec='${libname}${release}${shared_ext}$major'
17118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17122 # the default ld.so.conf also contains /usr/contrib/lib and
17123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17124 # libtool to hard-code these into programs
17127 cygwin* | mingw* | pw32* | cegcc*)
17128 version_type=windows
17129 shrext_cmds=".dll"
17130 need_version=no
17131 need_lib_prefix=no
17133 case $GCC,$host_os in
17134 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17135 library_names_spec='$libname.dll.a'
17136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17137 postinstall_cmds='base_file=`basename \${file}`~
17138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17139 dldir=$destdir/`dirname \$dlpath`~
17140 test -d \$dldir || mkdir -p \$dldir~
17141 $install_prog $dir/$dlname \$dldir/$dlname~
17142 chmod a+x \$dldir/$dlname~
17143 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17144 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17147 dlpath=$dir/\$dldll~
17148 $RM \$dlpath'
17149 shlibpath_overrides_runpath=yes
17151 case $host_os in
17152 cygwin*)
17153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17158 mingw* | cegcc*)
17159 # MinGW DLLs use traditional 'lib' prefix
17160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17162 pw32*)
17163 # pw32 DLLs use 'pw' prefix rather than 'lib'
17164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17166 esac
17170 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17172 esac
17173 dynamic_linker='Win32 ld.exe'
17174 # FIXME: first we should search . and the directory the executable is in
17175 shlibpath_var=PATH
17178 darwin* | rhapsody*)
17179 dynamic_linker="$host_os dyld"
17180 version_type=darwin
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17184 soname_spec='${libname}${release}${major}$shared_ext'
17185 shlibpath_overrides_runpath=yes
17186 shlibpath_var=DYLD_LIBRARY_PATH
17187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17193 dgux*)
17194 version_type=linux
17195 need_lib_prefix=no
17196 need_version=no
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 shlibpath_var=LD_LIBRARY_PATH
17202 freebsd* | dragonfly*)
17203 # DragonFly does not have aout. When/if they implement a new
17204 # versioning mechanism, adjust this.
17205 if test -x /usr/bin/objformat; then
17206 objformat=`/usr/bin/objformat`
17207 else
17208 case $host_os in
17209 freebsd[23].*) objformat=aout ;;
17210 *) objformat=elf ;;
17211 esac
17213 version_type=freebsd-$objformat
17214 case $version_type in
17215 freebsd-elf*)
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17217 need_version=no
17218 need_lib_prefix=no
17220 freebsd-*)
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17222 need_version=yes
17224 esac
17225 shlibpath_var=LD_LIBRARY_PATH
17226 case $host_os in
17227 freebsd2.*)
17228 shlibpath_overrides_runpath=yes
17230 freebsd3.[01]* | freebsdelf3.[01]*)
17231 shlibpath_overrides_runpath=yes
17232 hardcode_into_libs=yes
17234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17236 shlibpath_overrides_runpath=no
17237 hardcode_into_libs=yes
17239 *) # from 4.6 on, and DragonFly
17240 shlibpath_overrides_runpath=yes
17241 hardcode_into_libs=yes
17243 esac
17246 gnu*)
17247 version_type=linux
17248 need_lib_prefix=no
17249 need_version=no
17250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17251 soname_spec='${libname}${release}${shared_ext}$major'
17252 shlibpath_var=LD_LIBRARY_PATH
17253 hardcode_into_libs=yes
17256 haiku*)
17257 version_type=linux
17258 need_lib_prefix=no
17259 need_version=no
17260 dynamic_linker="$host_os runtime_loader"
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 shlibpath_var=LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17266 hardcode_into_libs=yes
17269 hpux9* | hpux10* | hpux11*)
17270 # Give a soname corresponding to the major version so that dld.sl refuses to
17271 # link against other versions.
17272 version_type=sunos
17273 need_lib_prefix=no
17274 need_version=no
17275 case $host_cpu in
17276 ia64*)
17277 shrext_cmds='.so'
17278 hardcode_into_libs=yes
17279 dynamic_linker="$host_os dld.so"
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17284 if test "X$HPUX_IA64_MODE" = X32; then
17285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17286 else
17287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17291 hppa*64*)
17292 shrext_cmds='.sl'
17293 hardcode_into_libs=yes
17294 dynamic_linker="$host_os dld.sl"
17295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17303 shrext_cmds='.sl'
17304 dynamic_linker="$host_os dld.sl"
17305 shlibpath_var=SHLIB_PATH
17306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17310 esac
17311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17312 postinstall_cmds='chmod 555 $lib'
17313 # or fails outright, so override atomically:
17314 install_override_mode=555
17317 interix[3-9]*)
17318 version_type=linux
17319 need_lib_prefix=no
17320 need_version=no
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17322 soname_spec='${libname}${release}${shared_ext}$major'
17323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 shlibpath_overrides_runpath=no
17326 hardcode_into_libs=yes
17329 irix5* | irix6* | nonstopux*)
17330 case $host_os in
17331 nonstopux*) version_type=nonstopux ;;
17333 if test "$lt_cv_prog_gnu_ld" = yes; then
17334 version_type=linux
17335 else
17336 version_type=irix
17337 fi ;;
17338 esac
17339 need_lib_prefix=no
17340 need_version=no
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17343 case $host_os in
17344 irix5* | nonstopux*)
17345 libsuff= shlibsuff=
17348 case $LD in # libtool.m4 will add one of these switches to LD
17349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17350 libsuff= shlibsuff= libmagic=32-bit;;
17351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17352 libsuff=32 shlibsuff=N32 libmagic=N32;;
17353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17355 *) libsuff= shlibsuff= libmagic=never-match;;
17356 esac
17358 esac
17359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17360 shlibpath_overrides_runpath=no
17361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17363 hardcode_into_libs=yes
17366 # No shared lib support for Linux oldld, aout, or coff.
17367 linux*oldld* | linux*aout* | linux*coff*)
17368 dynamic_linker=no
17371 # This must be Linux ELF.
17372 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17373 version_type=linux
17374 need_lib_prefix=no
17375 need_version=no
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=no
17382 # Some binutils ld are patched to set DT_RUNPATH
17383 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17384 $as_echo_n "(cached) " >&6
17385 else
17386 lt_cv_shlibpath_overrides_runpath=no
17387 save_LDFLAGS=$LDFLAGS
17388 save_libdir=$libdir
17389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17395 main ()
17399 return 0;
17401 _ACEOF
17402 if ac_fn_c_try_link "$LINENO"; then :
17403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17404 lt_cv_shlibpath_overrides_runpath=yes
17407 rm -f core conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext conftest.$ac_ext
17409 LDFLAGS=$save_LDFLAGS
17410 libdir=$save_libdir
17414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17416 # This implies no fast_install, which is unacceptable.
17417 # Some rework will be needed to allow for fast_install
17418 # before this can be enabled.
17419 hardcode_into_libs=yes
17421 # Append ld.so.conf contents to the search path
17422 if test -f /etc/ld.so.conf; then
17423 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' ' '`
17424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17427 # We used to test for /lib/ld.so.1 and disable shared libraries on
17428 # powerpc, because MkLinux only supported shared libraries with the
17429 # GNU dynamic linker. Since this was broken with cross compilers,
17430 # most powerpc-linux boxes support dynamic linking these days and
17431 # people can always --disable-shared, the test was removed, and we
17432 # assume the GNU/Linux dynamic linker is in use.
17433 dynamic_linker='GNU/Linux ld.so'
17436 netbsd*)
17437 version_type=sunos
17438 need_lib_prefix=no
17439 need_version=no
17440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17443 dynamic_linker='NetBSD (a.out) ld.so'
17444 else
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17446 soname_spec='${libname}${release}${shared_ext}$major'
17447 dynamic_linker='NetBSD ld.elf_so'
17449 shlibpath_var=LD_LIBRARY_PATH
17450 shlibpath_overrides_runpath=yes
17451 hardcode_into_libs=yes
17454 newsos6)
17455 version_type=linux
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457 shlibpath_var=LD_LIBRARY_PATH
17458 shlibpath_overrides_runpath=yes
17461 *nto* | *qnx*)
17462 version_type=qnx
17463 need_lib_prefix=no
17464 need_version=no
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 soname_spec='${libname}${release}${shared_ext}$major'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath=no
17469 hardcode_into_libs=yes
17470 dynamic_linker='ldqnx.so'
17473 openbsd*)
17474 version_type=sunos
17475 sys_lib_dlsearch_path_spec="/usr/lib"
17476 need_lib_prefix=no
17477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17478 case $host_os in
17479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17480 *) need_version=no ;;
17481 esac
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17486 case $host_os in
17487 openbsd2.[89] | openbsd2.[89].*)
17488 shlibpath_overrides_runpath=no
17491 shlibpath_overrides_runpath=yes
17493 esac
17494 else
17495 shlibpath_overrides_runpath=yes
17499 os2*)
17500 libname_spec='$name'
17501 shrext_cmds=".dll"
17502 need_lib_prefix=no
17503 library_names_spec='$libname${shared_ext} $libname.a'
17504 dynamic_linker='OS/2 ld.exe'
17505 shlibpath_var=LIBPATH
17508 osf3* | osf4* | osf5*)
17509 version_type=osf
17510 need_lib_prefix=no
17511 need_version=no
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17519 rdos*)
17520 dynamic_linker=no
17523 solaris*)
17524 version_type=linux
17525 need_lib_prefix=no
17526 need_version=no
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528 soname_spec='${libname}${release}${shared_ext}$major'
17529 shlibpath_var=LD_LIBRARY_PATH
17530 shlibpath_overrides_runpath=yes
17531 hardcode_into_libs=yes
17532 # ldd complains unless libraries are executable
17533 postinstall_cmds='chmod +x $lib'
17536 sunos4*)
17537 version_type=sunos
17538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 shlibpath_overrides_runpath=yes
17542 if test "$with_gnu_ld" = yes; then
17543 need_lib_prefix=no
17545 need_version=yes
17548 sysv4 | sysv4.3*)
17549 version_type=linux
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 soname_spec='${libname}${release}${shared_ext}$major'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 case $host_vendor in
17554 sni)
17555 shlibpath_overrides_runpath=no
17556 need_lib_prefix=no
17557 runpath_var=LD_RUN_PATH
17559 siemens)
17560 need_lib_prefix=no
17562 motorola)
17563 need_lib_prefix=no
17564 need_version=no
17565 shlibpath_overrides_runpath=no
17566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17568 esac
17571 sysv4*MP*)
17572 if test -d /usr/nec ;then
17573 version_type=linux
17574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17575 soname_spec='$libname${shared_ext}.$major'
17576 shlibpath_var=LD_LIBRARY_PATH
17580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17581 version_type=freebsd-elf
17582 need_lib_prefix=no
17583 need_version=no
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17585 soname_spec='${libname}${release}${shared_ext}$major'
17586 shlibpath_var=LD_LIBRARY_PATH
17587 shlibpath_overrides_runpath=yes
17588 hardcode_into_libs=yes
17589 if test "$with_gnu_ld" = yes; then
17590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17591 else
17592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17593 case $host_os in
17594 sco3.2v5*)
17595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17597 esac
17599 sys_lib_dlsearch_path_spec='/usr/lib'
17602 tpf*)
17603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17604 version_type=linux
17605 need_lib_prefix=no
17606 need_version=no
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=no
17610 hardcode_into_libs=yes
17613 uts4*)
17614 version_type=linux
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 shlibpath_var=LD_LIBRARY_PATH
17621 dynamic_linker=no
17623 esac
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17625 $as_echo "$dynamic_linker" >&6; }
17626 test "$dynamic_linker" = no && can_build_shared=no
17628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17629 if test "$GCC" = yes; then
17630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17732 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17733 hardcode_action=
17734 if test -n "$hardcode_libdir_flag_spec" ||
17735 test -n "$runpath_var" ||
17736 test "X$hardcode_automatic" = "Xyes" ; then
17738 # We can hardcode non-existent directories.
17739 if test "$hardcode_direct" != no &&
17740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17741 # have to relink, otherwise we might link with an installed library
17742 # when we should be linking with a yet-to-be-installed one
17743 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17744 test "$hardcode_minus_L" != no; then
17745 # Linking always hardcodes the temporary library directory.
17746 hardcode_action=relink
17747 else
17748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17749 hardcode_action=immediate
17751 else
17752 # We cannot hardcode anything, or else we can only hardcode existing
17753 # directories.
17754 hardcode_action=unsupported
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17757 $as_echo "$hardcode_action" >&6; }
17759 if test "$hardcode_action" = relink ||
17760 test "$inherit_rpath" = yes; then
17761 # Fast installation is not supported
17762 enable_fast_install=no
17763 elif test "$shlibpath_overrides_runpath" = yes ||
17764 test "$enable_shared" = no; then
17765 # Fast installation is not necessary
17766 enable_fast_install=needless
17774 if test "x$enable_dlopen" != xyes; then
17775 enable_dlopen=unknown
17776 enable_dlopen_self=unknown
17777 enable_dlopen_self_static=unknown
17778 else
17779 lt_cv_dlopen=no
17780 lt_cv_dlopen_libs=
17782 case $host_os in
17783 beos*)
17784 lt_cv_dlopen="load_add_on"
17785 lt_cv_dlopen_libs=
17786 lt_cv_dlopen_self=yes
17789 mingw* | pw32* | cegcc*)
17790 lt_cv_dlopen="LoadLibrary"
17791 lt_cv_dlopen_libs=
17794 cygwin*)
17795 lt_cv_dlopen="dlopen"
17796 lt_cv_dlopen_libs=
17799 darwin*)
17800 # if libdl is installed we need to link against it
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 ac_check_lib_save_LIBS=$LIBS
17807 LIBS="-ldl $LIBS"
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17814 #ifdef __cplusplus
17815 extern "C"
17816 #endif
17817 char dlopen ();
17819 main ()
17821 return dlopen ();
17823 return 0;
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 ac_cv_lib_dl_dlopen=yes
17828 else
17829 ac_cv_lib_dl_dlopen=no
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17833 LIBS=$ac_check_lib_save_LIBS
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17836 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17837 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17839 else
17841 lt_cv_dlopen="dyld"
17842 lt_cv_dlopen_libs=
17843 lt_cv_dlopen_self=yes
17850 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17851 if test "x$ac_cv_func_shl_load" = x""yes; then :
17852 lt_cv_dlopen="shl_load"
17853 else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17855 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17856 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17857 $as_echo_n "(cached) " >&6
17858 else
17859 ac_check_lib_save_LIBS=$LIBS
17860 LIBS="-ldld $LIBS"
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17864 /* Override any GCC internal prototype to avoid an error.
17865 Use char because int might match the return type of a GCC
17866 builtin and then its argument prototype would still apply. */
17867 #ifdef __cplusplus
17868 extern "C"
17869 #endif
17870 char shl_load ();
17872 main ()
17874 return shl_load ();
17876 return 0;
17878 _ACEOF
17879 if ac_fn_c_try_link "$LINENO"; then :
17880 ac_cv_lib_dld_shl_load=yes
17881 else
17882 ac_cv_lib_dld_shl_load=no
17884 rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
17886 LIBS=$ac_check_lib_save_LIBS
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17889 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17890 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17891 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17892 else
17893 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17894 if test "x$ac_cv_func_dlopen" = x""yes; then :
17895 lt_cv_dlopen="dlopen"
17896 else
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17898 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17900 $as_echo_n "(cached) " >&6
17901 else
17902 ac_check_lib_save_LIBS=$LIBS
17903 LIBS="-ldl $LIBS"
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17907 /* Override any GCC internal prototype to avoid an error.
17908 Use char because int might match the return type of a GCC
17909 builtin and then its argument prototype would still apply. */
17910 #ifdef __cplusplus
17911 extern "C"
17912 #endif
17913 char dlopen ();
17915 main ()
17917 return dlopen ();
17919 return 0;
17921 _ACEOF
17922 if ac_fn_c_try_link "$LINENO"; then :
17923 ac_cv_lib_dl_dlopen=yes
17924 else
17925 ac_cv_lib_dl_dlopen=no
17927 rm -f core conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
17929 LIBS=$ac_check_lib_save_LIBS
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17932 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17933 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17935 else
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17937 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17938 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 ac_check_lib_save_LIBS=$LIBS
17942 LIBS="-lsvld $LIBS"
17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17949 #ifdef __cplusplus
17950 extern "C"
17951 #endif
17952 char dlopen ();
17954 main ()
17956 return dlopen ();
17958 return 0;
17960 _ACEOF
17961 if ac_fn_c_try_link "$LINENO"; then :
17962 ac_cv_lib_svld_dlopen=yes
17963 else
17964 ac_cv_lib_svld_dlopen=no
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968 LIBS=$ac_check_lib_save_LIBS
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17971 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17972 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17974 else
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17976 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17978 $as_echo_n "(cached) " >&6
17979 else
17980 ac_check_lib_save_LIBS=$LIBS
17981 LIBS="-ldld $LIBS"
17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17985 /* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17988 #ifdef __cplusplus
17989 extern "C"
17990 #endif
17991 char dld_link ();
17993 main ()
17995 return dld_link ();
17997 return 0;
17999 _ACEOF
18000 if ac_fn_c_try_link "$LINENO"; then :
18001 ac_cv_lib_dld_dld_link=yes
18002 else
18003 ac_cv_lib_dld_dld_link=no
18005 rm -f core conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18007 LIBS=$ac_check_lib_save_LIBS
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18010 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18011 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18012 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18031 esac
18033 if test "x$lt_cv_dlopen" != xno; then
18034 enable_dlopen=yes
18035 else
18036 enable_dlopen=no
18039 case $lt_cv_dlopen in
18040 dlopen)
18041 save_CPPFLAGS="$CPPFLAGS"
18042 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18044 save_LDFLAGS="$LDFLAGS"
18045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18047 save_LIBS="$LIBS"
18048 LIBS="$lt_cv_dlopen_libs $LIBS"
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18051 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18052 if test "${lt_cv_dlopen_self+set}" = set; then :
18053 $as_echo_n "(cached) " >&6
18054 else
18055 if test "$cross_compiling" = yes; then :
18056 lt_cv_dlopen_self=cross
18057 else
18058 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18059 lt_status=$lt_dlunknown
18060 cat > conftest.$ac_ext <<_LT_EOF
18061 #line 18061 "configure"
18062 #include "confdefs.h"
18064 #if HAVE_DLFCN_H
18065 #include <dlfcn.h>
18066 #endif
18068 #include <stdio.h>
18070 #ifdef RTLD_GLOBAL
18071 # define LT_DLGLOBAL RTLD_GLOBAL
18072 #else
18073 # ifdef DL_GLOBAL
18074 # define LT_DLGLOBAL DL_GLOBAL
18075 # else
18076 # define LT_DLGLOBAL 0
18077 # endif
18078 #endif
18080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18081 find out it does not work in some platform. */
18082 #ifndef LT_DLLAZY_OR_NOW
18083 # ifdef RTLD_LAZY
18084 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18085 # else
18086 # ifdef DL_LAZY
18087 # define LT_DLLAZY_OR_NOW DL_LAZY
18088 # else
18089 # ifdef RTLD_NOW
18090 # define LT_DLLAZY_OR_NOW RTLD_NOW
18091 # else
18092 # ifdef DL_NOW
18093 # define LT_DLLAZY_OR_NOW DL_NOW
18094 # else
18095 # define LT_DLLAZY_OR_NOW 0
18096 # endif
18097 # endif
18098 # endif
18099 # endif
18100 #endif
18102 /* When -fvisbility=hidden is used, assume the code has been annotated
18103 correspondingly for the symbols needed. */
18104 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18105 void fnord () __attribute__((visibility("default")));
18106 #endif
18108 void fnord () { int i=42; }
18109 int main ()
18111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18112 int status = $lt_dlunknown;
18114 if (self)
18116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18117 else
18119 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18120 else puts (dlerror ());
18122 /* dlclose (self); */
18124 else
18125 puts (dlerror ());
18127 return status;
18129 _LT_EOF
18130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18131 (eval $ac_link) 2>&5
18132 ac_status=$?
18133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18134 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18135 (./conftest; exit; ) >&5 2>/dev/null
18136 lt_status=$?
18137 case x$lt_status in
18138 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18139 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18140 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18141 esac
18142 else :
18143 # compilation failed
18144 lt_cv_dlopen_self=no
18147 rm -fr conftest*
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18152 $as_echo "$lt_cv_dlopen_self" >&6; }
18154 if test "x$lt_cv_dlopen_self" = xyes; then
18155 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18157 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18158 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18159 $as_echo_n "(cached) " >&6
18160 else
18161 if test "$cross_compiling" = yes; then :
18162 lt_cv_dlopen_self_static=cross
18163 else
18164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18165 lt_status=$lt_dlunknown
18166 cat > conftest.$ac_ext <<_LT_EOF
18167 #line 18167 "configure"
18168 #include "confdefs.h"
18170 #if HAVE_DLFCN_H
18171 #include <dlfcn.h>
18172 #endif
18174 #include <stdio.h>
18176 #ifdef RTLD_GLOBAL
18177 # define LT_DLGLOBAL RTLD_GLOBAL
18178 #else
18179 # ifdef DL_GLOBAL
18180 # define LT_DLGLOBAL DL_GLOBAL
18181 # else
18182 # define LT_DLGLOBAL 0
18183 # endif
18184 #endif
18186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18187 find out it does not work in some platform. */
18188 #ifndef LT_DLLAZY_OR_NOW
18189 # ifdef RTLD_LAZY
18190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18191 # else
18192 # ifdef DL_LAZY
18193 # define LT_DLLAZY_OR_NOW DL_LAZY
18194 # else
18195 # ifdef RTLD_NOW
18196 # define LT_DLLAZY_OR_NOW RTLD_NOW
18197 # else
18198 # ifdef DL_NOW
18199 # define LT_DLLAZY_OR_NOW DL_NOW
18200 # else
18201 # define LT_DLLAZY_OR_NOW 0
18202 # endif
18203 # endif
18204 # endif
18205 # endif
18206 #endif
18208 /* When -fvisbility=hidden is used, assume the code has been annotated
18209 correspondingly for the symbols needed. */
18210 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18211 void fnord () __attribute__((visibility("default")));
18212 #endif
18214 void fnord () { int i=42; }
18215 int main ()
18217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18218 int status = $lt_dlunknown;
18220 if (self)
18222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18223 else
18225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18226 else puts (dlerror ());
18228 /* dlclose (self); */
18230 else
18231 puts (dlerror ());
18233 return status;
18235 _LT_EOF
18236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18237 (eval $ac_link) 2>&5
18238 ac_status=$?
18239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18240 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18241 (./conftest; exit; ) >&5 2>/dev/null
18242 lt_status=$?
18243 case x$lt_status in
18244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18246 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18247 esac
18248 else :
18249 # compilation failed
18250 lt_cv_dlopen_self_static=no
18253 rm -fr conftest*
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18258 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18261 CPPFLAGS="$save_CPPFLAGS"
18262 LDFLAGS="$save_LDFLAGS"
18263 LIBS="$save_LIBS"
18265 esac
18267 case $lt_cv_dlopen_self in
18268 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18269 *) enable_dlopen_self=unknown ;;
18270 esac
18272 case $lt_cv_dlopen_self_static in
18273 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18274 *) enable_dlopen_self_static=unknown ;;
18275 esac
18294 striplib=
18295 old_striplib=
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18297 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18298 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18299 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18300 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18302 $as_echo "yes" >&6; }
18303 else
18304 # FIXME - insert some real tests, host_os isn't really good enough
18305 case $host_os in
18306 darwin*)
18307 if test -n "$STRIP" ; then
18308 striplib="$STRIP -x"
18309 old_striplib="$STRIP -S"
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18311 $as_echo "yes" >&6; }
18312 else
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18319 $as_echo "no" >&6; }
18321 esac
18335 # Report which library types will actually be built
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18337 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18339 $as_echo "$can_build_shared" >&6; }
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18342 $as_echo_n "checking whether to build shared libraries... " >&6; }
18343 test "$can_build_shared" = "no" && enable_shared=no
18345 # On AIX, shared libraries and static libraries use the same namespace, and
18346 # are all built from PIC.
18347 case $host_os in
18348 aix3*)
18349 test "$enable_shared" = yes && enable_static=no
18350 if test -n "$RANLIB"; then
18351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18352 postinstall_cmds='$RANLIB $lib'
18356 aix[4-9]*)
18357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18358 test "$enable_shared" = yes && enable_static=no
18361 esac
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18363 $as_echo "$enable_shared" >&6; }
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18366 $as_echo_n "checking whether to build static libraries... " >&6; }
18367 # Make sure either enable_shared or enable_static is yes.
18368 test "$enable_shared" = yes || enable_static=yes
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18370 $as_echo "$enable_static" >&6; }
18376 ac_ext=c
18377 ac_cpp='$CPP $CPPFLAGS'
18378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18382 CC="$lt_save_CC"
18384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18386 (test "X$CXX" != "Xg++"))) ; then
18387 ac_ext=cpp
18388 ac_cpp='$CXXCPP $CPPFLAGS'
18389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18393 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18394 if test -z "$CXXCPP"; then
18395 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18396 $as_echo_n "(cached) " >&6
18397 else
18398 # Double quotes because CXXCPP needs to be expanded
18399 for CXXCPP in "$CXX -E" "/lib/cpp"
18401 ac_preproc_ok=false
18402 for ac_cxx_preproc_warn_flag in '' yes
18404 # Use a header file that comes with gcc, so configuring glibc
18405 # with a fresh cross-compiler works.
18406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 # <limits.h> exists even on freestanding compilers.
18408 # On the NeXT, cc -E runs the code through the compiler's parser,
18409 # not just through cpp. "Syntax error" is here to catch this case.
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412 #ifdef __STDC__
18413 # include <limits.h>
18414 #else
18415 # include <assert.h>
18416 #endif
18417 Syntax error
18418 _ACEOF
18419 if ac_fn_cxx_try_cpp "$LINENO"; then :
18421 else
18422 # Broken: fails on valid input.
18423 continue
18425 rm -f conftest.err conftest.$ac_ext
18427 # OK, works on sane cases. Now check whether nonexistent headers
18428 # can be detected and how.
18429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h. */
18431 #include <ac_nonexistent.h>
18432 _ACEOF
18433 if ac_fn_cxx_try_cpp "$LINENO"; then :
18434 # Broken: success on invalid input.
18435 continue
18436 else
18437 # Passes both tests.
18438 ac_preproc_ok=:
18439 break
18441 rm -f conftest.err conftest.$ac_ext
18443 done
18444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18445 rm -f conftest.err conftest.$ac_ext
18446 if $ac_preproc_ok; then :
18447 break
18450 done
18451 ac_cv_prog_CXXCPP=$CXXCPP
18454 CXXCPP=$ac_cv_prog_CXXCPP
18455 else
18456 ac_cv_prog_CXXCPP=$CXXCPP
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18459 $as_echo "$CXXCPP" >&6; }
18460 ac_preproc_ok=false
18461 for ac_cxx_preproc_warn_flag in '' yes
18463 # Use a header file that comes with gcc, so configuring glibc
18464 # with a fresh cross-compiler works.
18465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18466 # <limits.h> exists even on freestanding compilers.
18467 # On the NeXT, cc -E runs the code through the compiler's parser,
18468 # not just through cpp. "Syntax error" is here to catch this case.
18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470 /* end confdefs.h. */
18471 #ifdef __STDC__
18472 # include <limits.h>
18473 #else
18474 # include <assert.h>
18475 #endif
18476 Syntax error
18477 _ACEOF
18478 if ac_fn_cxx_try_cpp "$LINENO"; then :
18480 else
18481 # Broken: fails on valid input.
18482 continue
18484 rm -f conftest.err conftest.$ac_ext
18486 # OK, works on sane cases. Now check whether nonexistent headers
18487 # can be detected and how.
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18490 #include <ac_nonexistent.h>
18491 _ACEOF
18492 if ac_fn_cxx_try_cpp "$LINENO"; then :
18493 # Broken: success on invalid input.
18494 continue
18495 else
18496 # Passes both tests.
18497 ac_preproc_ok=:
18498 break
18500 rm -f conftest.err conftest.$ac_ext
18502 done
18503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18504 rm -f conftest.err conftest.$ac_ext
18505 if $ac_preproc_ok; then :
18507 else
18508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18510 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18511 See \`config.log' for more details." "$LINENO" 5; }
18514 ac_ext=c
18515 ac_cpp='$CPP $CPPFLAGS'
18516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18520 else
18521 _lt_caught_CXX_error=yes
18524 ac_ext=cpp
18525 ac_cpp='$CXXCPP $CPPFLAGS'
18526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18530 archive_cmds_need_lc_CXX=no
18531 allow_undefined_flag_CXX=
18532 always_export_symbols_CXX=no
18533 archive_expsym_cmds_CXX=
18534 compiler_needs_object_CXX=no
18535 export_dynamic_flag_spec_CXX=
18536 hardcode_direct_CXX=no
18537 hardcode_direct_absolute_CXX=no
18538 hardcode_libdir_flag_spec_CXX=
18539 hardcode_libdir_flag_spec_ld_CXX=
18540 hardcode_libdir_separator_CXX=
18541 hardcode_minus_L_CXX=no
18542 hardcode_shlibpath_var_CXX=unsupported
18543 hardcode_automatic_CXX=no
18544 inherit_rpath_CXX=no
18545 module_cmds_CXX=
18546 module_expsym_cmds_CXX=
18547 link_all_deplibs_CXX=unknown
18548 old_archive_cmds_CXX=$old_archive_cmds
18549 reload_flag_CXX=$reload_flag
18550 reload_cmds_CXX=$reload_cmds
18551 no_undefined_flag_CXX=
18552 whole_archive_flag_spec_CXX=
18553 enable_shared_with_static_runtimes_CXX=no
18555 # Source file extension for C++ test sources.
18556 ac_ext=cpp
18558 # Object file extension for compiled C++ test sources.
18559 objext=o
18560 objext_CXX=$objext
18562 # No sense in running all these tests if we already determined that
18563 # the CXX compiler isn't working. Some variables (like enable_shared)
18564 # are currently assumed to apply to all compilers on this platform,
18565 # and will be corrupted by setting them based on a non-working compiler.
18566 if test "$_lt_caught_CXX_error" != yes; then
18567 # Code to be used in simple compile tests
18568 lt_simple_compile_test_code="int some_variable = 0;"
18570 # Code to be used in simple link tests
18571 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18580 # If no C compiler was specified, use CC.
18581 LTCC=${LTCC-"$CC"}
18583 # If no C compiler flags were specified, use CFLAGS.
18584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18586 # Allow CC to be a program name with arguments.
18587 compiler=$CC
18590 # save warnings/boilerplate of simple test code
18591 ac_outfile=conftest.$ac_objext
18592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18594 _lt_compiler_boilerplate=`cat conftest.err`
18595 $RM conftest*
18597 ac_outfile=conftest.$ac_objext
18598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18600 _lt_linker_boilerplate=`cat conftest.err`
18601 $RM -r conftest*
18604 # Allow CC to be a program name with arguments.
18605 lt_save_CC=$CC
18606 lt_save_LD=$LD
18607 lt_save_GCC=$GCC
18608 GCC=$GXX
18609 lt_save_with_gnu_ld=$with_gnu_ld
18610 lt_save_path_LD=$lt_cv_path_LD
18611 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18612 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18613 else
18614 $as_unset lt_cv_prog_gnu_ld
18616 if test -n "${lt_cv_path_LDCXX+set}"; then
18617 lt_cv_path_LD=$lt_cv_path_LDCXX
18618 else
18619 $as_unset lt_cv_path_LD
18621 test -z "${LDCXX+set}" || LD=$LDCXX
18622 CC=${CXX-"c++"}
18623 compiler=$CC
18624 compiler_CXX=$CC
18625 for cc_temp in $compiler""; do
18626 case $cc_temp in
18627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18629 \-*) ;;
18630 *) break;;
18631 esac
18632 done
18633 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18636 if test -n "$compiler"; then
18637 # We don't want -fno-exception when compiling C++ code, so set the
18638 # no_builtin_flag separately
18639 if test "$GXX" = yes; then
18640 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18641 else
18642 lt_prog_compiler_no_builtin_flag_CXX=
18645 if test "$GXX" = yes; then
18646 # Set up default GNU C++ configuration
18650 # Check whether --with-gnu-ld was given.
18651 if test "${with_gnu_ld+set}" = set; then :
18652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18653 else
18654 with_gnu_ld=no
18657 ac_prog=ld
18658 if test "$GCC" = yes; then
18659 # Check if gcc -print-prog-name=ld gives a path.
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18661 $as_echo_n "checking for ld used by $CC... " >&6; }
18662 case $host in
18663 *-*-mingw*)
18664 # gcc leaves a trailing carriage return which upsets mingw
18665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18668 esac
18669 case $ac_prog in
18670 # Accept absolute paths.
18671 [\\/]* | ?:[\\/]*)
18672 re_direlt='/[^/][^/]*/\.\./'
18673 # Canonicalize the pathname of ld
18674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18677 done
18678 test -z "$LD" && LD="$ac_prog"
18681 # If it fails, then pretend we aren't using GCC.
18682 ac_prog=ld
18685 # If it is relative, then search for the first ld in PATH.
18686 with_gnu_ld=unknown
18688 esac
18689 elif test "$with_gnu_ld" = yes; then
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18691 $as_echo_n "checking for GNU ld... " >&6; }
18692 else
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18694 $as_echo_n "checking for non-GNU ld... " >&6; }
18696 if test "${lt_cv_path_LD+set}" = set; then :
18697 $as_echo_n "(cached) " >&6
18698 else
18699 if test -z "$LD"; then
18700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18701 for ac_dir in $PATH; do
18702 IFS="$lt_save_ifs"
18703 test -z "$ac_dir" && ac_dir=.
18704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18705 lt_cv_path_LD="$ac_dir/$ac_prog"
18706 # Check to see if the program is GNU ld. I'd rather use --version,
18707 # but apparently some variants of GNU ld only accept -v.
18708 # Break only if it was the GNU/non-GNU ld that we prefer.
18709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18710 *GNU* | *'with BFD'*)
18711 test "$with_gnu_ld" != no && break
18714 test "$with_gnu_ld" != yes && break
18716 esac
18718 done
18719 IFS="$lt_save_ifs"
18720 else
18721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18725 LD="$lt_cv_path_LD"
18726 if test -n "$LD"; then
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18728 $as_echo "$LD" >&6; }
18729 else
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731 $as_echo "no" >&6; }
18733 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18736 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18737 $as_echo_n "(cached) " >&6
18738 else
18739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18740 case `$LD -v 2>&1 </dev/null` in
18741 *GNU* | *'with BFD'*)
18742 lt_cv_prog_gnu_ld=yes
18745 lt_cv_prog_gnu_ld=no
18747 esac
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18751 with_gnu_ld=$lt_cv_prog_gnu_ld
18759 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18760 # archiving commands below assume that GNU ld is being used.
18761 if test "$with_gnu_ld" = yes; then
18762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18763 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18768 # If archive_cmds runs LD, not CC, wlarc should be empty
18769 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18770 # investigate it a little bit more. (MM)
18771 wlarc='${wl}'
18773 # ancient GNU ld didn't support --whole-archive et. al.
18774 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18775 $GREP 'no-whole-archive' > /dev/null; then
18776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18777 else
18778 whole_archive_flag_spec_CXX=
18780 else
18781 with_gnu_ld=no
18782 wlarc=
18784 # A generic and very simple default shared library creation
18785 # command for GNU C++ for the case where it uses the native
18786 # linker, instead of GNU ld. If possible, this setting should
18787 # overridden to take advantage of the native linker features on
18788 # the platform it is being used on.
18789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18792 # Commands to make compiler produce verbose output that lists
18793 # what "hidden" libraries, object files and flags are used when
18794 # linking a shared library.
18795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18797 else
18798 GXX=no
18799 with_gnu_ld=no
18800 wlarc=
18803 # PORTME: fill in a description of your system's C++ link characteristics
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18806 ld_shlibs_CXX=yes
18807 case $host_os in
18808 aix3*)
18809 # FIXME: insert proper C++ library support
18810 ld_shlibs_CXX=no
18812 aix[4-9]*)
18813 if test "$host_cpu" = ia64; then
18814 # On IA64, the linker does run time linking by default, so we don't
18815 # have to do anything special.
18816 aix_use_runtimelinking=no
18817 exp_sym_flag='-Bexport'
18818 no_entry_flag=""
18819 else
18820 aix_use_runtimelinking=no
18822 # Test if we are trying to use run time linking or normal
18823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18824 # need to do runtime linking.
18825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18826 for ld_flag in $LDFLAGS; do
18827 case $ld_flag in
18828 *-brtl*)
18829 aix_use_runtimelinking=yes
18830 break
18832 esac
18833 done
18835 esac
18837 exp_sym_flag='-bexport'
18838 no_entry_flag='-bnoentry'
18841 # When large executables or shared objects are built, AIX ld can
18842 # have problems creating the table of contents. If linking a library
18843 # or program results in "error TOC overflow" add -mminimal-toc to
18844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18847 archive_cmds_CXX=''
18848 hardcode_direct_CXX=yes
18849 hardcode_direct_absolute_CXX=yes
18850 hardcode_libdir_separator_CXX=':'
18851 link_all_deplibs_CXX=yes
18852 file_list_spec_CXX='${wl}-f,'
18854 if test "$GXX" = yes; then
18855 case $host_os in aix4.[012]|aix4.[012].*)
18856 # We only want to do this on AIX 4.2 and lower, the check
18857 # below for broken collect2 doesn't work under 4.3+
18858 collect2name=`${CC} -print-prog-name=collect2`
18859 if test -f "$collect2name" &&
18860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18861 then
18862 # We have reworked collect2
18864 else
18865 # We have old collect2
18866 hardcode_direct_CXX=unsupported
18867 # It fails to find uninstalled libraries when the uninstalled
18868 # path is not listed in the libpath. Setting hardcode_minus_L
18869 # to unsupported forces relinking
18870 hardcode_minus_L_CXX=yes
18871 hardcode_libdir_flag_spec_CXX='-L$libdir'
18872 hardcode_libdir_separator_CXX=
18874 esac
18875 shared_flag='-shared'
18876 if test "$aix_use_runtimelinking" = yes; then
18877 shared_flag="$shared_flag "'${wl}-G'
18879 else
18880 # not using gcc
18881 if test "$host_cpu" = ia64; then
18882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18883 # chokes on -Wl,-G. The following line is correct:
18884 shared_flag='-G'
18885 else
18886 if test "$aix_use_runtimelinking" = yes; then
18887 shared_flag='${wl}-G'
18888 else
18889 shared_flag='${wl}-bM:SRE'
18894 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18895 # It seems that -bexpall does not export symbols beginning with
18896 # underscore (_), so it is better to generate a list of symbols to
18897 # export.
18898 always_export_symbols_CXX=yes
18899 if test "$aix_use_runtimelinking" = yes; then
18900 # Warning - without using the other runtime loading flags (-brtl),
18901 # -berok will link without error, but may produce a broken library.
18902 allow_undefined_flag_CXX='-berok'
18903 # Determine the default libpath from the value encoded in an empty
18904 # executable.
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18909 main ()
18913 return 0;
18915 _ACEOF
18916 if ac_fn_cxx_try_link "$LINENO"; then :
18918 lt_aix_libpath_sed='
18919 /Import File Strings/,/^$/ {
18920 /^0/ {
18921 s/^0 *\(.*\)$/\1/
18925 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18926 # Check for a 64-bit object if we didn't find anything.
18927 if test -z "$aix_libpath"; then
18928 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18931 rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18937 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"
18938 else
18939 if test "$host_cpu" = ia64; then
18940 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18941 allow_undefined_flag_CXX="-z nodefs"
18942 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"
18943 else
18944 # Determine the default libpath from the value encoded in an
18945 # empty executable.
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18950 main ()
18954 return 0;
18956 _ACEOF
18957 if ac_fn_cxx_try_link "$LINENO"; then :
18959 lt_aix_libpath_sed='
18960 /Import File Strings/,/^$/ {
18961 /^0/ {
18962 s/^0 *\(.*\)$/\1/
18966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18967 # Check for a 64-bit object if we didn't find anything.
18968 if test -z "$aix_libpath"; then
18969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18972 rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18976 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18977 # Warning - without using the other run time loading flags,
18978 # -berok will link without error, but may produce a broken library.
18979 no_undefined_flag_CXX=' ${wl}-bernotok'
18980 allow_undefined_flag_CXX=' ${wl}-berok'
18981 if test "$with_gnu_ld" = yes; then
18982 # We only use this code for GNU lds that support --whole-archive.
18983 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18984 else
18985 # Exported symbols can be pulled into shared objects from archives
18986 whole_archive_flag_spec_CXX='$convenience'
18988 archive_cmds_need_lc_CXX=yes
18989 # This is similar to how AIX traditionally builds its shared
18990 # libraries.
18991 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'
18996 beos*)
18997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18998 allow_undefined_flag_CXX=unsupported
18999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19000 # support --undefined. This deserves some investigation. FIXME
19001 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19002 else
19003 ld_shlibs_CXX=no
19007 chorus*)
19008 case $cc_basename in
19010 # FIXME: insert proper C++ library support
19011 ld_shlibs_CXX=no
19013 esac
19016 cygwin* | mingw* | pw32* | cegcc*)
19017 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19018 # as there is no search path for DLLs.
19019 hardcode_libdir_flag_spec_CXX='-L$libdir'
19020 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19021 allow_undefined_flag_CXX=unsupported
19022 always_export_symbols_CXX=no
19023 enable_shared_with_static_runtimes_CXX=yes
19025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19026 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'
19027 # If the export-symbols file already is a .def file (1st line
19028 # is EXPORTS), use it as is; otherwise, prepend...
19029 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19030 cp $export_symbols $output_objdir/$soname.def;
19031 else
19032 echo EXPORTS > $output_objdir/$soname.def;
19033 cat $export_symbols >> $output_objdir/$soname.def;
19035 $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'
19036 else
19037 ld_shlibs_CXX=no
19040 darwin* | rhapsody*)
19043 archive_cmds_need_lc_CXX=no
19044 hardcode_direct_CXX=no
19045 hardcode_automatic_CXX=yes
19046 hardcode_shlibpath_var_CXX=unsupported
19047 if test "$lt_cv_ld_force_load" = "yes"; then
19048 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\"`'
19049 else
19050 whole_archive_flag_spec_CXX=''
19052 link_all_deplibs_CXX=yes
19053 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19054 case $cc_basename in
19055 ifort*) _lt_dar_can_shared=yes ;;
19056 *) _lt_dar_can_shared=$GCC ;;
19057 esac
19058 if test "$_lt_dar_can_shared" = "yes"; then
19059 output_verbose_link_cmd=func_echo_all
19060 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}"
19061 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19062 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}"
19063 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}"
19064 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19065 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}"
19066 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}"
19069 else
19070 ld_shlibs_CXX=no
19075 dgux*)
19076 case $cc_basename in
19077 ec++*)
19078 # FIXME: insert proper C++ library support
19079 ld_shlibs_CXX=no
19081 ghcx*)
19082 # Green Hills C++ Compiler
19083 # FIXME: insert proper C++ library support
19084 ld_shlibs_CXX=no
19087 # FIXME: insert proper C++ library support
19088 ld_shlibs_CXX=no
19090 esac
19093 freebsd2.*)
19094 # C++ shared libraries reported to be fairly broken before
19095 # switch to ELF
19096 ld_shlibs_CXX=no
19099 freebsd-elf*)
19100 archive_cmds_need_lc_CXX=no
19103 freebsd* | dragonfly*)
19104 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19105 # conventions
19106 ld_shlibs_CXX=yes
19109 gnu*)
19112 haiku*)
19113 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114 link_all_deplibs_CXX=yes
19117 hpux9*)
19118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19119 hardcode_libdir_separator_CXX=:
19120 export_dynamic_flag_spec_CXX='${wl}-E'
19121 hardcode_direct_CXX=yes
19122 hardcode_minus_L_CXX=yes # Not in the search PATH,
19123 # but as the default
19124 # location of the library.
19126 case $cc_basename in
19127 CC*)
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19131 aCC*)
19132 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'
19133 # Commands to make compiler produce verbose output that lists
19134 # what "hidden" libraries, object files and flags are used when
19135 # linking a shared library.
19137 # There doesn't appear to be a way to prevent this compiler from
19138 # explicitly linking system object files so we need to strip them
19139 # from the output so that they don't get included in the library
19140 # dependencies.
19141 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"'
19144 if test "$GXX" = yes; then
19145 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'
19146 else
19147 # FIXME: insert proper C++ library support
19148 ld_shlibs_CXX=no
19151 esac
19154 hpux10*|hpux11*)
19155 if test $with_gnu_ld = no; then
19156 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19157 hardcode_libdir_separator_CXX=:
19159 case $host_cpu in
19160 hppa*64*|ia64*)
19163 export_dynamic_flag_spec_CXX='${wl}-E'
19165 esac
19167 case $host_cpu in
19168 hppa*64*|ia64*)
19169 hardcode_direct_CXX=no
19170 hardcode_shlibpath_var_CXX=no
19173 hardcode_direct_CXX=yes
19174 hardcode_direct_absolute_CXX=yes
19175 hardcode_minus_L_CXX=yes # Not in the search PATH,
19176 # but as the default
19177 # location of the library.
19179 esac
19181 case $cc_basename in
19182 CC*)
19183 # FIXME: insert proper C++ library support
19184 ld_shlibs_CXX=no
19186 aCC*)
19187 case $host_cpu in
19188 hppa*64*)
19189 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19191 ia64*)
19192 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19195 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19197 esac
19198 # Commands to make compiler produce verbose output that lists
19199 # what "hidden" libraries, object files and flags are used when
19200 # linking a shared library.
19202 # There doesn't appear to be a way to prevent this compiler from
19203 # explicitly linking system object files so we need to strip them
19204 # from the output so that they don't get included in the library
19205 # dependencies.
19206 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"'
19209 if test "$GXX" = yes; then
19210 if test $with_gnu_ld = no; then
19211 case $host_cpu in
19212 hppa*64*)
19213 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215 ia64*)
19216 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19219 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'
19221 esac
19223 else
19224 # FIXME: insert proper C++ library support
19225 ld_shlibs_CXX=no
19228 esac
19231 interix[3-9]*)
19232 hardcode_direct_CXX=no
19233 hardcode_shlibpath_var_CXX=no
19234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19235 export_dynamic_flag_spec_CXX='${wl}-E'
19236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19237 # Instead, shared libraries are loaded at an image base (0x10000000 by
19238 # default) and relocated if they conflict, which is a slow very memory
19239 # consuming and fragmenting process. To avoid this, we pick a random,
19240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19241 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19242 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'
19243 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'
19245 irix5* | irix6*)
19246 case $cc_basename in
19247 CC*)
19248 # SGI C++
19249 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'
19251 # Archives containing C++ object files must be created using
19252 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19253 # necessary to make sure instantiated templates are included
19254 # in the archive.
19255 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19258 if test "$GXX" = yes; then
19259 if test "$with_gnu_ld" = no; then
19260 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'
19261 else
19262 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'
19265 link_all_deplibs_CXX=yes
19267 esac
19268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19269 hardcode_libdir_separator_CXX=:
19270 inherit_rpath_CXX=yes
19273 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19274 case $cc_basename in
19275 KCC*)
19276 # Kuck and Associates, Inc. (KAI) C++ Compiler
19278 # KCC will only create a shared library if the output file
19279 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19280 # to its proper name (with version) after linking.
19281 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'
19282 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'
19283 # Commands to make compiler produce verbose output that lists
19284 # what "hidden" libraries, object files and flags are used when
19285 # linking a shared library.
19287 # There doesn't appear to be a way to prevent this compiler from
19288 # explicitly linking system object files so we need to strip them
19289 # from the output so that they don't get included in the library
19290 # dependencies.
19291 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"'
19293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19296 # Archives containing C++ object files must be created using
19297 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19298 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19300 icpc* | ecpc* )
19301 # Intel C++
19302 with_gnu_ld=yes
19303 # version 8.0 and above of icpc choke on multiply defined symbols
19304 # if we add $predep_objects and $postdep_objects, however 7.1 and
19305 # earlier do not add the objects themselves.
19306 case `$CC -V 2>&1` in
19307 *"Version 7."*)
19308 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 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'
19311 *) # Version 8.0 or newer
19312 tmp_idyn=
19313 case $host_cpu in
19314 ia64*) tmp_idyn=' -i_dynamic';;
19315 esac
19316 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317 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'
19319 esac
19320 archive_cmds_need_lc_CXX=no
19321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19325 pgCC* | pgcpp*)
19326 # Portland Group C++ compiler
19327 case `$CC -V` in
19328 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19329 prelink_cmds_CXX='tpldir=Template.dir~
19330 rm -rf $tpldir~
19331 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19332 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19333 old_archive_cmds_CXX='tpldir=Template.dir~
19334 rm -rf $tpldir~
19335 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19336 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19337 $RANLIB $oldlib'
19338 archive_cmds_CXX='tpldir=Template.dir~
19339 rm -rf $tpldir~
19340 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19341 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19342 archive_expsym_cmds_CXX='tpldir=Template.dir~
19343 rm -rf $tpldir~
19344 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19345 $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'
19347 *) # Version 6 and above use weak symbols
19348 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19349 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'
19351 esac
19353 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19355 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'
19357 cxx*)
19358 # Compaq C++
19359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19360 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'
19362 runpath_var=LD_RUN_PATH
19363 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19364 hardcode_libdir_separator_CXX=:
19366 # Commands to make compiler produce verbose output that lists
19367 # what "hidden" libraries, object files and flags are used when
19368 # linking a shared library.
19370 # There doesn't appear to be a way to prevent this compiler from
19371 # explicitly linking system object files so we need to strip them
19372 # from the output so that they don't get included in the library
19373 # dependencies.
19374 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'
19376 xl* | mpixl* | bgxl*)
19377 # IBM XL 8.0 on PPC, with GNU ld
19378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19380 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381 if test "x$supports_anon_versioning" = xyes; then
19382 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19384 echo "local: *; };" >> $output_objdir/$libname.ver~
19385 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19389 case `$CC -V 2>&1 | sed 5q` in
19390 *Sun\ C*)
19391 # Sun C++ 5.9
19392 no_undefined_flag_CXX=' -zdefs'
19393 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19394 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'
19395 hardcode_libdir_flag_spec_CXX='-R$libdir'
19396 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'
19397 compiler_needs_object_CXX=yes
19399 # Not sure whether something based on
19400 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19401 # would be better.
19402 output_verbose_link_cmd='func_echo_all'
19404 # Archives containing C++ object files must be created using
19405 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19406 # necessary to make sure instantiated templates are included
19407 # in the archive.
19408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19410 esac
19412 esac
19415 lynxos*)
19416 # FIXME: insert proper C++ library support
19417 ld_shlibs_CXX=no
19420 m88k*)
19421 # FIXME: insert proper C++ library support
19422 ld_shlibs_CXX=no
19425 mvs*)
19426 case $cc_basename in
19427 cxx*)
19428 # FIXME: insert proper C++ library support
19429 ld_shlibs_CXX=no
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19435 esac
19438 netbsd*)
19439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19440 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19441 wlarc=
19442 hardcode_libdir_flag_spec_CXX='-R$libdir'
19443 hardcode_direct_CXX=yes
19444 hardcode_shlibpath_var_CXX=no
19446 # Workaround some broken pre-1.5 toolchains
19447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19450 *nto* | *qnx*)
19451 ld_shlibs_CXX=yes
19454 openbsd2*)
19455 # C++ shared libraries are fairly broken
19456 ld_shlibs_CXX=no
19459 openbsd*)
19460 if test -f /usr/libexec/ld.so; then
19461 hardcode_direct_CXX=yes
19462 hardcode_shlibpath_var_CXX=no
19463 hardcode_direct_absolute_CXX=yes
19464 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19467 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19468 export_dynamic_flag_spec_CXX='${wl}-E'
19469 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19471 output_verbose_link_cmd=func_echo_all
19472 else
19473 ld_shlibs_CXX=no
19477 osf3* | osf4* | osf5*)
19478 case $cc_basename in
19479 KCC*)
19480 # Kuck and Associates, Inc. (KAI) C++ Compiler
19482 # KCC will only create a shared library if the output file
19483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19484 # to its proper name (with version) after linking.
19485 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'
19487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19488 hardcode_libdir_separator_CXX=:
19490 # Archives containing C++ object files must be created using
19491 # the KAI C++ compiler.
19492 case $host in
19493 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19494 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19495 esac
19497 RCC*)
19498 # Rational C++ 2.4.1
19499 # FIXME: insert proper C++ library support
19500 ld_shlibs_CXX=no
19502 cxx*)
19503 case $host in
19504 osf3*)
19505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19506 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'
19507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19510 allow_undefined_flag_CXX=' -expect_unresolved \*'
19511 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'
19512 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19513 echo "-hidden">> $lib.exp~
19514 $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~
19515 $RM $lib.exp'
19516 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19518 esac
19520 hardcode_libdir_separator_CXX=:
19522 # Commands to make compiler produce verbose output that lists
19523 # what "hidden" libraries, object files and flags are used when
19524 # linking a shared library.
19526 # There doesn't appear to be a way to prevent this compiler from
19527 # explicitly linking system object files so we need to strip them
19528 # from the output so that they don't get included in the library
19529 # dependencies.
19530 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"'
19533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19535 case $host in
19536 osf3*)
19537 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'
19540 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'
19542 esac
19544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19545 hardcode_libdir_separator_CXX=:
19547 # Commands to make compiler produce verbose output that lists
19548 # what "hidden" libraries, object files and flags are used when
19549 # linking a shared library.
19550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19552 else
19553 # FIXME: insert proper C++ library support
19554 ld_shlibs_CXX=no
19557 esac
19560 psos*)
19561 # FIXME: insert proper C++ library support
19562 ld_shlibs_CXX=no
19565 sunos4*)
19566 case $cc_basename in
19567 CC*)
19568 # Sun C++ 4.x
19569 # FIXME: insert proper C++ library support
19570 ld_shlibs_CXX=no
19572 lcc*)
19573 # Lucid
19574 # FIXME: insert proper C++ library support
19575 ld_shlibs_CXX=no
19578 # FIXME: insert proper C++ library support
19579 ld_shlibs_CXX=no
19581 esac
19584 solaris*)
19585 case $cc_basename in
19586 CC*)
19587 # Sun C++ 4.2, 5.x and Centerline C++
19588 archive_cmds_need_lc_CXX=yes
19589 no_undefined_flag_CXX=' -zdefs'
19590 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19592 $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'
19594 hardcode_libdir_flag_spec_CXX='-R$libdir'
19595 hardcode_shlibpath_var_CXX=no
19596 case $host_os in
19597 solaris2.[0-5] | solaris2.[0-5].*) ;;
19599 # The compiler driver will combine and reorder linker options,
19600 # but understands `-z linker_flag'.
19601 # Supported since Solaris 2.6 (maybe 2.5.1?)
19602 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19604 esac
19605 link_all_deplibs_CXX=yes
19607 output_verbose_link_cmd='func_echo_all'
19609 # Archives containing C++ object files must be created using
19610 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19611 # necessary to make sure instantiated templates are included
19612 # in the archive.
19613 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19615 gcx*)
19616 # Green Hills C++ Compiler
19617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19619 # The C++ compiler must be used to create the archive.
19620 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19623 # GNU C++ compiler with Solaris linker
19624 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19625 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19626 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19627 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19628 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19629 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19631 # Commands to make compiler produce verbose output that lists
19632 # what "hidden" libraries, object files and flags are used when
19633 # linking a shared library.
19634 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19635 else
19636 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19637 # platform.
19638 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19639 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19640 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19642 # Commands to make compiler produce verbose output that lists
19643 # what "hidden" libraries, object files and flags are used when
19644 # linking a shared library.
19645 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19648 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19649 case $host_os in
19650 solaris2.[0-5] | solaris2.[0-5].*) ;;
19652 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19654 esac
19657 esac
19660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19661 no_undefined_flag_CXX='${wl}-z,text'
19662 archive_cmds_need_lc_CXX=no
19663 hardcode_shlibpath_var_CXX=no
19664 runpath_var='LD_RUN_PATH'
19666 case $cc_basename in
19667 CC*)
19668 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19669 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19672 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19673 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19675 esac
19678 sysv5* | sco3.2v5* | sco5v6*)
19679 # Note: We can NOT use -z defs as we might desire, because we do not
19680 # link with -lc, and that would cause any symbols used from libc to
19681 # always be unresolved, which means just about no library would
19682 # ever link correctly. If we're not using GNU ld we use -z text
19683 # though, which does catch some bad symbols but isn't as heavy-handed
19684 # as -z defs.
19685 no_undefined_flag_CXX='${wl}-z,text'
19686 allow_undefined_flag_CXX='${wl}-z,nodefs'
19687 archive_cmds_need_lc_CXX=no
19688 hardcode_shlibpath_var_CXX=no
19689 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19690 hardcode_libdir_separator_CXX=':'
19691 link_all_deplibs_CXX=yes
19692 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19693 runpath_var='LD_RUN_PATH'
19695 case $cc_basename in
19696 CC*)
19697 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19698 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19700 '"$old_archive_cmds_CXX"
19701 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19702 '"$reload_cmds_CXX"
19705 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19706 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19708 esac
19711 tandem*)
19712 case $cc_basename in
19713 NCC*)
19714 # NonStop-UX NCC 3.20
19715 # FIXME: insert proper C++ library support
19716 ld_shlibs_CXX=no
19719 # FIXME: insert proper C++ library support
19720 ld_shlibs_CXX=no
19722 esac
19725 vxworks*)
19726 # FIXME: insert proper C++ library support
19727 ld_shlibs_CXX=no
19731 # FIXME: insert proper C++ library support
19732 ld_shlibs_CXX=no
19734 esac
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19737 $as_echo "$ld_shlibs_CXX" >&6; }
19738 test "$ld_shlibs_CXX" = no && can_build_shared=no
19740 GCC_CXX="$GXX"
19741 LD_CXX="$LD"
19743 ## CAVEAT EMPTOR:
19744 ## There is no encapsulation within the following macros, do not change
19745 ## the running order or otherwise move them around unless you know exactly
19746 ## what you are doing...
19747 # Dependencies to place before and after the object being linked:
19748 predep_objects_CXX=
19749 postdep_objects_CXX=
19750 predeps_CXX=
19751 postdeps_CXX=
19752 compiler_lib_search_path_CXX=
19754 cat > conftest.$ac_ext <<_LT_EOF
19755 class Foo
19757 public:
19758 Foo (void) { a = 0; }
19759 private:
19760 int a;
19762 _LT_EOF
19764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19765 (eval $ac_compile) 2>&5
19766 ac_status=$?
19767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19768 test $ac_status = 0; }; then
19769 # Parse the compiler output and extract the necessary
19770 # objects, libraries and library flags.
19772 # Sentinel used to keep track of whether or not we are before
19773 # the conftest object file.
19774 pre_test_object_deps_done=no
19776 for p in `eval "$output_verbose_link_cmd"`; do
19777 case $p in
19779 -L* | -R* | -l*)
19780 # Some compilers place space between "-{L,R}" and the path.
19781 # Remove the space.
19782 if test $p = "-L" ||
19783 test $p = "-R"; then
19784 prev=$p
19785 continue
19786 else
19787 prev=
19790 if test "$pre_test_object_deps_done" = no; then
19791 case $p in
19792 -L* | -R*)
19793 # Internal compiler library paths should come after those
19794 # provided the user. The postdeps already come after the
19795 # user supplied libs so there is no need to process them.
19796 if test -z "$compiler_lib_search_path_CXX"; then
19797 compiler_lib_search_path_CXX="${prev}${p}"
19798 else
19799 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19802 # The "-l" case would never come before the object being
19803 # linked, so don't bother handling this case.
19804 esac
19805 else
19806 if test -z "$postdeps_CXX"; then
19807 postdeps_CXX="${prev}${p}"
19808 else
19809 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19814 *.$objext)
19815 # This assumes that the test object file only shows up
19816 # once in the compiler output.
19817 if test "$p" = "conftest.$objext"; then
19818 pre_test_object_deps_done=yes
19819 continue
19822 if test "$pre_test_object_deps_done" = no; then
19823 if test -z "$predep_objects_CXX"; then
19824 predep_objects_CXX="$p"
19825 else
19826 predep_objects_CXX="$predep_objects_CXX $p"
19828 else
19829 if test -z "$postdep_objects_CXX"; then
19830 postdep_objects_CXX="$p"
19831 else
19832 postdep_objects_CXX="$postdep_objects_CXX $p"
19837 *) ;; # Ignore the rest.
19839 esac
19840 done
19842 # Clean up.
19843 rm -f a.out a.exe
19844 else
19845 echo "libtool.m4: error: problem compiling CXX test program"
19848 $RM -f confest.$objext
19850 # PORTME: override above test on systems where it is broken
19851 case $host_os in
19852 interix[3-9]*)
19853 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19854 # hack all around it, let's just trust "g++" to DTRT.
19855 predep_objects_CXX=
19856 postdep_objects_CXX=
19857 postdeps_CXX=
19860 linux*)
19861 case `$CC -V 2>&1 | sed 5q` in
19862 *Sun\ C*)
19863 # Sun C++ 5.9
19865 # The more standards-conforming stlport4 library is
19866 # incompatible with the Cstd library. Avoid specifying
19867 # it if it's in CXXFLAGS. Ignore libCrun as
19868 # -library=stlport4 depends on it.
19869 case " $CXX $CXXFLAGS " in
19870 *" -library=stlport4 "*)
19871 solaris_use_stlport4=yes
19873 esac
19875 if test "$solaris_use_stlport4" != yes; then
19876 postdeps_CXX='-library=Cstd -library=Crun'
19879 esac
19882 solaris*)
19883 case $cc_basename in
19884 CC*)
19885 # The more standards-conforming stlport4 library is
19886 # incompatible with the Cstd library. Avoid specifying
19887 # it if it's in CXXFLAGS. Ignore libCrun as
19888 # -library=stlport4 depends on it.
19889 case " $CXX $CXXFLAGS " in
19890 *" -library=stlport4 "*)
19891 solaris_use_stlport4=yes
19893 esac
19895 # Adding this requires a known-good setup of shared libraries for
19896 # Sun compiler versions before 5.6, else PIC objects from an old
19897 # archive will be linked into the output, leading to subtle bugs.
19898 if test "$solaris_use_stlport4" != yes; then
19899 postdeps_CXX='-library=Cstd -library=Crun'
19902 esac
19904 esac
19907 case " $postdeps_CXX " in
19908 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19909 esac
19910 compiler_lib_search_dirs_CXX=
19911 if test -n "${compiler_lib_search_path_CXX}"; then
19912 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19945 lt_prog_compiler_wl_CXX=
19946 lt_prog_compiler_pic_CXX=
19947 lt_prog_compiler_static_CXX=
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19952 # C++ specific cases for pic, static, wl, etc.
19953 if test "$GXX" = yes; then
19954 lt_prog_compiler_wl_CXX='-Wl,'
19955 lt_prog_compiler_static_CXX='-static'
19957 case $host_os in
19958 aix*)
19959 # All AIX code is PIC.
19960 if test "$host_cpu" = ia64; then
19961 # AIX 5 now supports IA64 processor
19962 lt_prog_compiler_static_CXX='-Bstatic'
19964 lt_prog_compiler_pic_CXX='-fPIC'
19967 amigaos*)
19968 case $host_cpu in
19969 powerpc)
19970 # see comment about AmigaOS4 .so support
19971 lt_prog_compiler_pic_CXX='-fPIC'
19973 m68k)
19974 # FIXME: we need at least 68020 code to build shared libraries, but
19975 # adding the `-m68020' flag to GCC prevents building anything better,
19976 # like `-m68040'.
19977 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19979 esac
19982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19983 # PIC is the default for these OSes.
19985 mingw* | cygwin* | os2* | pw32* | cegcc*)
19986 # This hack is so that the source file can tell whether it is being
19987 # built for inclusion in a dll (and should export symbols for example).
19988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19989 # (--disable-auto-import) libraries
19990 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19992 darwin* | rhapsody*)
19993 # PIC is the default on this platform
19994 # Common symbols not allowed in MH_DYLIB files
19995 lt_prog_compiler_pic_CXX='-fno-common'
19997 *djgpp*)
19998 # DJGPP does not support shared libraries at all
19999 lt_prog_compiler_pic_CXX=
20001 haiku*)
20002 # PIC is the default for Haiku.
20003 # The "-static" flag exists, but is broken.
20004 lt_prog_compiler_static_CXX=
20006 interix[3-9]*)
20007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20008 # Instead, we relocate shared libraries at runtime.
20010 sysv4*MP*)
20011 if test -d /usr/nec; then
20012 lt_prog_compiler_pic_CXX=-Kconform_pic
20015 hpux*)
20016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20018 # sets the default TLS model and affects inlining.
20019 case $host_cpu in
20020 hppa*64*)
20023 lt_prog_compiler_pic_CXX='-fPIC'
20025 esac
20027 *qnx* | *nto*)
20028 # QNX uses GNU C++, but need to define -shared option too, otherwise
20029 # it will coredump.
20030 lt_prog_compiler_pic_CXX='-fPIC -shared'
20033 lt_prog_compiler_pic_CXX='-fPIC'
20035 esac
20036 else
20037 case $host_os in
20038 aix[4-9]*)
20039 # All AIX code is PIC.
20040 if test "$host_cpu" = ia64; then
20041 # AIX 5 now supports IA64 processor
20042 lt_prog_compiler_static_CXX='-Bstatic'
20043 else
20044 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20047 chorus*)
20048 case $cc_basename in
20049 cxch68*)
20050 # Green Hills C++ Compiler
20051 # _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"
20053 esac
20055 dgux*)
20056 case $cc_basename in
20057 ec++*)
20058 lt_prog_compiler_pic_CXX='-KPIC'
20060 ghcx*)
20061 # Green Hills C++ Compiler
20062 lt_prog_compiler_pic_CXX='-pic'
20066 esac
20068 freebsd* | dragonfly*)
20069 # FreeBSD uses GNU C++
20071 hpux9* | hpux10* | hpux11*)
20072 case $cc_basename in
20073 CC*)
20074 lt_prog_compiler_wl_CXX='-Wl,'
20075 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20076 if test "$host_cpu" != ia64; then
20077 lt_prog_compiler_pic_CXX='+Z'
20080 aCC*)
20081 lt_prog_compiler_wl_CXX='-Wl,'
20082 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20083 case $host_cpu in
20084 hppa*64*|ia64*)
20085 # +Z the default
20088 lt_prog_compiler_pic_CXX='+Z'
20090 esac
20094 esac
20096 interix*)
20097 # This is c89, which is MS Visual C++ (no shared libs)
20098 # Anyone wants to do a port?
20100 irix5* | irix6* | nonstopux*)
20101 case $cc_basename in
20102 CC*)
20103 lt_prog_compiler_wl_CXX='-Wl,'
20104 lt_prog_compiler_static_CXX='-non_shared'
20105 # CC pic flag -KPIC is the default.
20109 esac
20111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20112 case $cc_basename in
20113 KCC*)
20114 # KAI C++ Compiler
20115 lt_prog_compiler_wl_CXX='--backend -Wl,'
20116 lt_prog_compiler_pic_CXX='-fPIC'
20118 ecpc* )
20119 # old Intel C++ for x86_64 which still supported -KPIC.
20120 lt_prog_compiler_wl_CXX='-Wl,'
20121 lt_prog_compiler_pic_CXX='-KPIC'
20122 lt_prog_compiler_static_CXX='-static'
20124 icpc* )
20125 # Intel C++, used to be incompatible with GCC.
20126 # ICC 10 doesn't accept -KPIC any more.
20127 lt_prog_compiler_wl_CXX='-Wl,'
20128 lt_prog_compiler_pic_CXX='-fPIC'
20129 lt_prog_compiler_static_CXX='-static'
20131 pgCC* | pgcpp*)
20132 # Portland Group C++ compiler
20133 lt_prog_compiler_wl_CXX='-Wl,'
20134 lt_prog_compiler_pic_CXX='-fpic'
20135 lt_prog_compiler_static_CXX='-Bstatic'
20137 cxx*)
20138 # Compaq C++
20139 # Make sure the PIC flag is empty. It appears that all Alpha
20140 # Linux and Compaq Tru64 Unix objects are PIC.
20141 lt_prog_compiler_pic_CXX=
20142 lt_prog_compiler_static_CXX='-non_shared'
20144 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20145 # IBM XL 8.0, 9.0 on PPC and BlueGene
20146 lt_prog_compiler_wl_CXX='-Wl,'
20147 lt_prog_compiler_pic_CXX='-qpic'
20148 lt_prog_compiler_static_CXX='-qstaticlink'
20151 case `$CC -V 2>&1 | sed 5q` in
20152 *Sun\ C*)
20153 # Sun C++ 5.9
20154 lt_prog_compiler_pic_CXX='-KPIC'
20155 lt_prog_compiler_static_CXX='-Bstatic'
20156 lt_prog_compiler_wl_CXX='-Qoption ld '
20158 esac
20160 esac
20162 lynxos*)
20164 m88k*)
20166 mvs*)
20167 case $cc_basename in
20168 cxx*)
20169 lt_prog_compiler_pic_CXX='-W c,exportall'
20173 esac
20175 netbsd*)
20177 *qnx* | *nto*)
20178 # QNX uses GNU C++, but need to define -shared option too, otherwise
20179 # it will coredump.
20180 lt_prog_compiler_pic_CXX='-fPIC -shared'
20182 osf3* | osf4* | osf5*)
20183 case $cc_basename in
20184 KCC*)
20185 lt_prog_compiler_wl_CXX='--backend -Wl,'
20187 RCC*)
20188 # Rational C++ 2.4.1
20189 lt_prog_compiler_pic_CXX='-pic'
20191 cxx*)
20192 # Digital/Compaq C++
20193 lt_prog_compiler_wl_CXX='-Wl,'
20194 # Make sure the PIC flag is empty. It appears that all Alpha
20195 # Linux and Compaq Tru64 Unix objects are PIC.
20196 lt_prog_compiler_pic_CXX=
20197 lt_prog_compiler_static_CXX='-non_shared'
20201 esac
20203 psos*)
20205 solaris*)
20206 case $cc_basename in
20207 CC*)
20208 # Sun C++ 4.2, 5.x and Centerline C++
20209 lt_prog_compiler_pic_CXX='-KPIC'
20210 lt_prog_compiler_static_CXX='-Bstatic'
20211 lt_prog_compiler_wl_CXX='-Qoption ld '
20213 gcx*)
20214 # Green Hills C++ Compiler
20215 lt_prog_compiler_pic_CXX='-PIC'
20219 esac
20221 sunos4*)
20222 case $cc_basename in
20223 CC*)
20224 # Sun C++ 4.x
20225 lt_prog_compiler_pic_CXX='-pic'
20226 lt_prog_compiler_static_CXX='-Bstatic'
20228 lcc*)
20229 # Lucid
20230 lt_prog_compiler_pic_CXX='-pic'
20234 esac
20236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20237 case $cc_basename in
20238 CC*)
20239 lt_prog_compiler_wl_CXX='-Wl,'
20240 lt_prog_compiler_pic_CXX='-KPIC'
20241 lt_prog_compiler_static_CXX='-Bstatic'
20243 esac
20245 tandem*)
20246 case $cc_basename in
20247 NCC*)
20248 # NonStop-UX NCC 3.20
20249 lt_prog_compiler_pic_CXX='-KPIC'
20253 esac
20255 vxworks*)
20258 lt_prog_compiler_can_build_shared_CXX=no
20260 esac
20263 case $host_os in
20264 # For platforms which do not support PIC, -DPIC is meaningless:
20265 *djgpp*)
20266 lt_prog_compiler_pic_CXX=
20269 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20271 esac
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20273 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20278 # Check to make sure the PIC flag actually works.
20280 if test -n "$lt_prog_compiler_pic_CXX"; then
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20283 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20284 $as_echo_n "(cached) " >&6
20285 else
20286 lt_cv_prog_compiler_pic_works_CXX=no
20287 ac_outfile=conftest.$ac_objext
20288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20289 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20290 # Insert the option either (1) after the last *FLAGS variable, or
20291 # (2) before a word containing "conftest.", or (3) at the end.
20292 # Note that $ac_compile itself does not contain backslashes and begins
20293 # with a dollar sign (not a hyphen), so the echo should work correctly.
20294 # The option is referenced via a variable to avoid confusing sed.
20295 lt_compile=`echo "$ac_compile" | $SED \
20296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20298 -e 's:$: $lt_compiler_flag:'`
20299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20300 (eval "$lt_compile" 2>conftest.err)
20301 ac_status=$?
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 if (exit $ac_status) && test -s "$ac_outfile"; then
20305 # The compiler can only warn and ignore the option if not recognized
20306 # So say no if there are warnings other than the usual output.
20307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20310 lt_cv_prog_compiler_pic_works_CXX=yes
20313 $RM conftest*
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20317 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20319 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20320 case $lt_prog_compiler_pic_CXX in
20321 "" | " "*) ;;
20322 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20323 esac
20324 else
20325 lt_prog_compiler_pic_CXX=
20326 lt_prog_compiler_can_build_shared_CXX=no
20334 # Check to make sure the static flag actually works.
20336 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20339 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20341 else
20342 lt_cv_prog_compiler_static_works_CXX=no
20343 save_LDFLAGS="$LDFLAGS"
20344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20347 # The linker can only warn and ignore the option if not recognized
20348 # So say no if there are warnings
20349 if test -s conftest.err; then
20350 # Append any errors to the config.log.
20351 cat conftest.err 1>&5
20352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20354 if diff conftest.exp conftest.er2 >/dev/null; then
20355 lt_cv_prog_compiler_static_works_CXX=yes
20357 else
20358 lt_cv_prog_compiler_static_works_CXX=yes
20361 $RM -r conftest*
20362 LDFLAGS="$save_LDFLAGS"
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20366 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20368 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20370 else
20371 lt_prog_compiler_static_CXX=
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20380 $as_echo_n "(cached) " >&6
20381 else
20382 lt_cv_prog_compiler_c_o_CXX=no
20383 $RM -r conftest 2>/dev/null
20384 mkdir conftest
20385 cd conftest
20386 mkdir out
20387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20389 lt_compiler_flag="-o out/conftest2.$ac_objext"
20390 # Insert the option either (1) after the last *FLAGS variable, or
20391 # (2) before a word containing "conftest.", or (3) at the end.
20392 # Note that $ac_compile itself does not contain backslashes and begins
20393 # with a dollar sign (not a hyphen), so the echo should work correctly.
20394 lt_compile=`echo "$ac_compile" | $SED \
20395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20397 -e 's:$: $lt_compiler_flag:'`
20398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20399 (eval "$lt_compile" 2>out/conftest.err)
20400 ac_status=$?
20401 cat out/conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20404 then
20405 # The compiler can only warn and ignore the option if not recognized
20406 # So say no if there are warnings
20407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20410 lt_cv_prog_compiler_c_o_CXX=yes
20413 chmod u+w . 2>&5
20414 $RM conftest*
20415 # SGI C++ compiler will create directory out/ii_files/ for
20416 # template instantiation
20417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20418 $RM out/* && rmdir out
20419 cd ..
20420 $RM -r conftest
20421 $RM conftest*
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20431 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20432 $as_echo_n "(cached) " >&6
20433 else
20434 lt_cv_prog_compiler_c_o_CXX=no
20435 $RM -r conftest 2>/dev/null
20436 mkdir conftest
20437 cd conftest
20438 mkdir out
20439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20441 lt_compiler_flag="-o out/conftest2.$ac_objext"
20442 # Insert the option either (1) after the last *FLAGS variable, or
20443 # (2) before a word containing "conftest.", or (3) at the end.
20444 # Note that $ac_compile itself does not contain backslashes and begins
20445 # with a dollar sign (not a hyphen), so the echo should work correctly.
20446 lt_compile=`echo "$ac_compile" | $SED \
20447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20449 -e 's:$: $lt_compiler_flag:'`
20450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20451 (eval "$lt_compile" 2>out/conftest.err)
20452 ac_status=$?
20453 cat out/conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20456 then
20457 # The compiler can only warn and ignore the option if not recognized
20458 # So say no if there are warnings
20459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20462 lt_cv_prog_compiler_c_o_CXX=yes
20465 chmod u+w . 2>&5
20466 $RM conftest*
20467 # SGI C++ compiler will create directory out/ii_files/ for
20468 # template instantiation
20469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20470 $RM out/* && rmdir out
20471 cd ..
20472 $RM -r conftest
20473 $RM conftest*
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20482 hard_links="nottested"
20483 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20484 # do not overwrite the value of need_locks provided by the user
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20486 $as_echo_n "checking if we can lock with hard links... " >&6; }
20487 hard_links=yes
20488 $RM conftest*
20489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20490 touch conftest.a
20491 ln conftest.a conftest.b 2>&5 || hard_links=no
20492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20494 $as_echo "$hard_links" >&6; }
20495 if test "$hard_links" = no; then
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20497 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20498 need_locks=warn
20500 else
20501 need_locks=no
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20510 case $host_os in
20511 aix[4-9]*)
20512 # If we're using GNU nm, then we don't want the "-C" option.
20513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20514 # Also, AIX nm treats weak defined symbols like other global defined
20515 # symbols, whereas GNU nm marks them as "W".
20516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20517 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'
20518 else
20519 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20522 pw32*)
20523 export_symbols_cmds_CXX="$ltdll_cmds"
20525 cygwin* | mingw* | cegcc*)
20526 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'
20529 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20531 esac
20532 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20535 $as_echo "$ld_shlibs_CXX" >&6; }
20536 test "$ld_shlibs_CXX" = no && can_build_shared=no
20538 with_gnu_ld_CXX=$with_gnu_ld
20546 # Do we need to explicitly link libc?
20548 case "x$archive_cmds_need_lc_CXX" in
20549 x|xyes)
20550 # Assume -lc should be added
20551 archive_cmds_need_lc_CXX=yes
20553 if test "$enable_shared" = yes && test "$GCC" = yes; then
20554 case $archive_cmds_CXX in
20555 *'~'*)
20556 # FIXME: we may have to deal with multi-command sequences.
20558 '$CC '*)
20559 # Test whether the compiler implicitly links with -lc since on some
20560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20561 # to ld, don't add -lc before -lgcc.
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20563 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20564 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20565 $as_echo_n "(cached) " >&6
20566 else
20567 $RM conftest*
20568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20571 (eval $ac_compile) 2>&5
20572 ac_status=$?
20573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20574 test $ac_status = 0; } 2>conftest.err; then
20575 soname=conftest
20576 lib=conftest
20577 libobjs=conftest.$ac_objext
20578 deplibs=
20579 wl=$lt_prog_compiler_wl_CXX
20580 pic_flag=$lt_prog_compiler_pic_CXX
20581 compiler_flags=-v
20582 linker_flags=-v
20583 verstring=
20584 output_objdir=.
20585 libname=conftest
20586 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20587 allow_undefined_flag_CXX=
20588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20589 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20590 ac_status=$?
20591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20592 test $ac_status = 0; }
20593 then
20594 lt_cv_archive_cmds_need_lc_CXX=no
20595 else
20596 lt_cv_archive_cmds_need_lc_CXX=yes
20598 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20599 else
20600 cat conftest.err 1>&5
20602 $RM conftest*
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20606 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20607 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20609 esac
20612 esac
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20680 library_names_spec=
20681 libname_spec='lib$name'
20682 soname_spec=
20683 shrext_cmds=".so"
20684 postinstall_cmds=
20685 postuninstall_cmds=
20686 finish_cmds=
20687 finish_eval=
20688 shlibpath_var=
20689 shlibpath_overrides_runpath=unknown
20690 version_type=none
20691 dynamic_linker="$host_os ld.so"
20692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20693 need_lib_prefix=unknown
20694 hardcode_into_libs=no
20696 # when you set need_version to no, make sure it does not cause -set_version
20697 # flags to be left without arguments
20698 need_version=unknown
20700 case $host_os in
20701 aix3*)
20702 version_type=linux
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20704 shlibpath_var=LIBPATH
20706 # AIX 3 has no versioning support, so we append a major version to the name.
20707 soname_spec='${libname}${release}${shared_ext}$major'
20710 aix[4-9]*)
20711 version_type=linux
20712 need_lib_prefix=no
20713 need_version=no
20714 hardcode_into_libs=yes
20715 if test "$host_cpu" = ia64; then
20716 # AIX 5 supports IA64
20717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20718 shlibpath_var=LD_LIBRARY_PATH
20719 else
20720 # With GCC up to 2.95.x, collect2 would create an import file
20721 # for dependence libraries. The import file would start with
20722 # the line `#! .'. This would cause the generated library to
20723 # depend on `.', always an invalid library. This was fixed in
20724 # development snapshots of GCC prior to 3.0.
20725 case $host_os in
20726 aix4 | aix4.[01] | aix4.[01].*)
20727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20728 echo ' yes '
20729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20731 else
20732 can_build_shared=no
20735 esac
20736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20737 # soname into executable. Probably we can add versioning support to
20738 # collect2, so additional links can be useful in future.
20739 if test "$aix_use_runtimelinking" = yes; then
20740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20741 # instead of lib<name>.a to let people know that these are not
20742 # typical AIX shared libraries.
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 else
20745 # We preserve .a as extension for shared libraries through AIX4.2
20746 # and later when we are not doing run time linking.
20747 library_names_spec='${libname}${release}.a $libname.a'
20748 soname_spec='${libname}${release}${shared_ext}$major'
20750 shlibpath_var=LIBPATH
20754 amigaos*)
20755 case $host_cpu in
20756 powerpc)
20757 # Since July 2007 AmigaOS4 officially supports .so libraries.
20758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20761 m68k)
20762 library_names_spec='$libname.ixlibrary $libname.a'
20763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20764 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'
20766 esac
20769 beos*)
20770 library_names_spec='${libname}${shared_ext}'
20771 dynamic_linker="$host_os ld.so"
20772 shlibpath_var=LIBRARY_PATH
20775 bsdi[45]*)
20776 version_type=linux
20777 need_version=no
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec='${libname}${release}${shared_ext}$major'
20780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20781 shlibpath_var=LD_LIBRARY_PATH
20782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20784 # the default ld.so.conf also contains /usr/contrib/lib and
20785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20786 # libtool to hard-code these into programs
20789 cygwin* | mingw* | pw32* | cegcc*)
20790 version_type=windows
20791 shrext_cmds=".dll"
20792 need_version=no
20793 need_lib_prefix=no
20795 case $GCC,$host_os in
20796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20797 library_names_spec='$libname.dll.a'
20798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20799 postinstall_cmds='base_file=`basename \${file}`~
20800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20801 dldir=$destdir/`dirname \$dlpath`~
20802 test -d \$dldir || mkdir -p \$dldir~
20803 $install_prog $dir/$dlname \$dldir/$dlname~
20804 chmod a+x \$dldir/$dlname~
20805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20809 dlpath=$dir/\$dldll~
20810 $RM \$dlpath'
20811 shlibpath_overrides_runpath=yes
20813 case $host_os in
20814 cygwin*)
20815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20819 mingw* | cegcc*)
20820 # MinGW DLLs use traditional 'lib' prefix
20821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20823 pw32*)
20824 # pw32 DLLs use 'pw' prefix rather than 'lib'
20825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20827 esac
20831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20833 esac
20834 dynamic_linker='Win32 ld.exe'
20835 # FIXME: first we should search . and the directory the executable is in
20836 shlibpath_var=PATH
20839 darwin* | rhapsody*)
20840 dynamic_linker="$host_os dyld"
20841 version_type=darwin
20842 need_lib_prefix=no
20843 need_version=no
20844 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20845 soname_spec='${libname}${release}${major}$shared_ext'
20846 shlibpath_overrides_runpath=yes
20847 shlibpath_var=DYLD_LIBRARY_PATH
20848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20853 dgux*)
20854 version_type=linux
20855 need_lib_prefix=no
20856 need_version=no
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20858 soname_spec='${libname}${release}${shared_ext}$major'
20859 shlibpath_var=LD_LIBRARY_PATH
20862 freebsd* | dragonfly*)
20863 # DragonFly does not have aout. When/if they implement a new
20864 # versioning mechanism, adjust this.
20865 if test -x /usr/bin/objformat; then
20866 objformat=`/usr/bin/objformat`
20867 else
20868 case $host_os in
20869 freebsd[23].*) objformat=aout ;;
20870 *) objformat=elf ;;
20871 esac
20873 version_type=freebsd-$objformat
20874 case $version_type in
20875 freebsd-elf*)
20876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20877 need_version=no
20878 need_lib_prefix=no
20880 freebsd-*)
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20882 need_version=yes
20884 esac
20885 shlibpath_var=LD_LIBRARY_PATH
20886 case $host_os in
20887 freebsd2.*)
20888 shlibpath_overrides_runpath=yes
20890 freebsd3.[01]* | freebsdelf3.[01]*)
20891 shlibpath_overrides_runpath=yes
20892 hardcode_into_libs=yes
20894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20896 shlibpath_overrides_runpath=no
20897 hardcode_into_libs=yes
20899 *) # from 4.6 on, and DragonFly
20900 shlibpath_overrides_runpath=yes
20901 hardcode_into_libs=yes
20903 esac
20906 gnu*)
20907 version_type=linux
20908 need_lib_prefix=no
20909 need_version=no
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20911 soname_spec='${libname}${release}${shared_ext}$major'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 hardcode_into_libs=yes
20916 haiku*)
20917 version_type=linux
20918 need_lib_prefix=no
20919 need_version=no
20920 dynamic_linker="$host_os runtime_loader"
20921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20922 soname_spec='${libname}${release}${shared_ext}$major'
20923 shlibpath_var=LIBRARY_PATH
20924 shlibpath_overrides_runpath=yes
20925 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20926 hardcode_into_libs=yes
20929 hpux9* | hpux10* | hpux11*)
20930 # Give a soname corresponding to the major version so that dld.sl refuses to
20931 # link against other versions.
20932 version_type=sunos
20933 need_lib_prefix=no
20934 need_version=no
20935 case $host_cpu in
20936 ia64*)
20937 shrext_cmds='.so'
20938 hardcode_into_libs=yes
20939 dynamic_linker="$host_os dld.so"
20940 shlibpath_var=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 soname_spec='${libname}${release}${shared_ext}$major'
20944 if test "X$HPUX_IA64_MODE" = X32; then
20945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20946 else
20947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20951 hppa*64*)
20952 shrext_cmds='.sl'
20953 hardcode_into_libs=yes
20954 dynamic_linker="$host_os dld.sl"
20955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20963 shrext_cmds='.sl'
20964 dynamic_linker="$host_os dld.sl"
20965 shlibpath_var=SHLIB_PATH
20966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20970 esac
20971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20972 postinstall_cmds='chmod 555 $lib'
20973 # or fails outright, so override atomically:
20974 install_override_mode=555
20977 interix[3-9]*)
20978 version_type=linux
20979 need_lib_prefix=no
20980 need_version=no
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20982 soname_spec='${libname}${release}${shared_ext}$major'
20983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20984 shlibpath_var=LD_LIBRARY_PATH
20985 shlibpath_overrides_runpath=no
20986 hardcode_into_libs=yes
20989 irix5* | irix6* | nonstopux*)
20990 case $host_os in
20991 nonstopux*) version_type=nonstopux ;;
20993 if test "$lt_cv_prog_gnu_ld" = yes; then
20994 version_type=linux
20995 else
20996 version_type=irix
20997 fi ;;
20998 esac
20999 need_lib_prefix=no
21000 need_version=no
21001 soname_spec='${libname}${release}${shared_ext}$major'
21002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21003 case $host_os in
21004 irix5* | nonstopux*)
21005 libsuff= shlibsuff=
21008 case $LD in # libtool.m4 will add one of these switches to LD
21009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21010 libsuff= shlibsuff= libmagic=32-bit;;
21011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21012 libsuff=32 shlibsuff=N32 libmagic=N32;;
21013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21015 *) libsuff= shlibsuff= libmagic=never-match;;
21016 esac
21018 esac
21019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21020 shlibpath_overrides_runpath=no
21021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21023 hardcode_into_libs=yes
21026 # No shared lib support for Linux oldld, aout, or coff.
21027 linux*oldld* | linux*aout* | linux*coff*)
21028 dynamic_linker=no
21031 # This must be Linux ELF.
21032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21033 version_type=linux
21034 need_lib_prefix=no
21035 need_version=no
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath=no
21042 # Some binutils ld are patched to set DT_RUNPATH
21043 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21044 $as_echo_n "(cached) " >&6
21045 else
21046 lt_cv_shlibpath_overrides_runpath=no
21047 save_LDFLAGS=$LDFLAGS
21048 save_libdir=$libdir
21049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h. */
21055 main ()
21059 return 0;
21061 _ACEOF
21062 if ac_fn_cxx_try_link "$LINENO"; then :
21063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21064 lt_cv_shlibpath_overrides_runpath=yes
21067 rm -f core conftest.err conftest.$ac_objext \
21068 conftest$ac_exeext conftest.$ac_ext
21069 LDFLAGS=$save_LDFLAGS
21070 libdir=$save_libdir
21074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21076 # This implies no fast_install, which is unacceptable.
21077 # Some rework will be needed to allow for fast_install
21078 # before this can be enabled.
21079 hardcode_into_libs=yes
21081 # Append ld.so.conf contents to the search path
21082 if test -f /etc/ld.so.conf; then
21083 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' ' '`
21084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21087 # We used to test for /lib/ld.so.1 and disable shared libraries on
21088 # powerpc, because MkLinux only supported shared libraries with the
21089 # GNU dynamic linker. Since this was broken with cross compilers,
21090 # most powerpc-linux boxes support dynamic linking these days and
21091 # people can always --disable-shared, the test was removed, and we
21092 # assume the GNU/Linux dynamic linker is in use.
21093 dynamic_linker='GNU/Linux ld.so'
21096 netbsd*)
21097 version_type=sunos
21098 need_lib_prefix=no
21099 need_version=no
21100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21103 dynamic_linker='NetBSD (a.out) ld.so'
21104 else
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21106 soname_spec='${libname}${release}${shared_ext}$major'
21107 dynamic_linker='NetBSD ld.elf_so'
21109 shlibpath_var=LD_LIBRARY_PATH
21110 shlibpath_overrides_runpath=yes
21111 hardcode_into_libs=yes
21114 newsos6)
21115 version_type=linux
21116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21117 shlibpath_var=LD_LIBRARY_PATH
21118 shlibpath_overrides_runpath=yes
21121 *nto* | *qnx*)
21122 version_type=qnx
21123 need_lib_prefix=no
21124 need_version=no
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec='${libname}${release}${shared_ext}$major'
21127 shlibpath_var=LD_LIBRARY_PATH
21128 shlibpath_overrides_runpath=no
21129 hardcode_into_libs=yes
21130 dynamic_linker='ldqnx.so'
21133 openbsd*)
21134 version_type=sunos
21135 sys_lib_dlsearch_path_spec="/usr/lib"
21136 need_lib_prefix=no
21137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21138 case $host_os in
21139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21140 *) need_version=no ;;
21141 esac
21142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21144 shlibpath_var=LD_LIBRARY_PATH
21145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21146 case $host_os in
21147 openbsd2.[89] | openbsd2.[89].*)
21148 shlibpath_overrides_runpath=no
21151 shlibpath_overrides_runpath=yes
21153 esac
21154 else
21155 shlibpath_overrides_runpath=yes
21159 os2*)
21160 libname_spec='$name'
21161 shrext_cmds=".dll"
21162 need_lib_prefix=no
21163 library_names_spec='$libname${shared_ext} $libname.a'
21164 dynamic_linker='OS/2 ld.exe'
21165 shlibpath_var=LIBPATH
21168 osf3* | osf4* | osf5*)
21169 version_type=osf
21170 need_lib_prefix=no
21171 need_version=no
21172 soname_spec='${libname}${release}${shared_ext}$major'
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 shlibpath_var=LD_LIBRARY_PATH
21175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21179 rdos*)
21180 dynamic_linker=no
21183 solaris*)
21184 version_type=linux
21185 need_lib_prefix=no
21186 need_version=no
21187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188 soname_spec='${libname}${release}${shared_ext}$major'
21189 shlibpath_var=LD_LIBRARY_PATH
21190 shlibpath_overrides_runpath=yes
21191 hardcode_into_libs=yes
21192 # ldd complains unless libraries are executable
21193 postinstall_cmds='chmod +x $lib'
21196 sunos4*)
21197 version_type=sunos
21198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21200 shlibpath_var=LD_LIBRARY_PATH
21201 shlibpath_overrides_runpath=yes
21202 if test "$with_gnu_ld" = yes; then
21203 need_lib_prefix=no
21205 need_version=yes
21208 sysv4 | sysv4.3*)
21209 version_type=linux
21210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21211 soname_spec='${libname}${release}${shared_ext}$major'
21212 shlibpath_var=LD_LIBRARY_PATH
21213 case $host_vendor in
21214 sni)
21215 shlibpath_overrides_runpath=no
21216 need_lib_prefix=no
21217 runpath_var=LD_RUN_PATH
21219 siemens)
21220 need_lib_prefix=no
21222 motorola)
21223 need_lib_prefix=no
21224 need_version=no
21225 shlibpath_overrides_runpath=no
21226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21228 esac
21231 sysv4*MP*)
21232 if test -d /usr/nec ;then
21233 version_type=linux
21234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21235 soname_spec='$libname${shared_ext}.$major'
21236 shlibpath_var=LD_LIBRARY_PATH
21240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21241 version_type=freebsd-elf
21242 need_lib_prefix=no
21243 need_version=no
21244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21245 soname_spec='${libname}${release}${shared_ext}$major'
21246 shlibpath_var=LD_LIBRARY_PATH
21247 shlibpath_overrides_runpath=yes
21248 hardcode_into_libs=yes
21249 if test "$with_gnu_ld" = yes; then
21250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21251 else
21252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21253 case $host_os in
21254 sco3.2v5*)
21255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21257 esac
21259 sys_lib_dlsearch_path_spec='/usr/lib'
21262 tpf*)
21263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21264 version_type=linux
21265 need_lib_prefix=no
21266 need_version=no
21267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21268 shlibpath_var=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath=no
21270 hardcode_into_libs=yes
21273 uts4*)
21274 version_type=linux
21275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 shlibpath_var=LD_LIBRARY_PATH
21281 dynamic_linker=no
21283 esac
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21285 $as_echo "$dynamic_linker" >&6; }
21286 test "$dynamic_linker" = no && can_build_shared=no
21288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21289 if test "$GCC" = yes; then
21290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21294 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21297 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21339 hardcode_action_CXX=
21340 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21341 test -n "$runpath_var_CXX" ||
21342 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21344 # We can hardcode non-existent directories.
21345 if test "$hardcode_direct_CXX" != no &&
21346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21347 # have to relink, otherwise we might link with an installed library
21348 # when we should be linking with a yet-to-be-installed one
21349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21350 test "$hardcode_minus_L_CXX" != no; then
21351 # Linking always hardcodes the temporary library directory.
21352 hardcode_action_CXX=relink
21353 else
21354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21355 hardcode_action_CXX=immediate
21357 else
21358 # We cannot hardcode anything, or else we can only hardcode existing
21359 # directories.
21360 hardcode_action_CXX=unsupported
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21363 $as_echo "$hardcode_action_CXX" >&6; }
21365 if test "$hardcode_action_CXX" = relink ||
21366 test "$inherit_rpath_CXX" = yes; then
21367 # Fast installation is not supported
21368 enable_fast_install=no
21369 elif test "$shlibpath_overrides_runpath" = yes ||
21370 test "$enable_shared" = no; then
21371 # Fast installation is not necessary
21372 enable_fast_install=needless
21381 fi # test -n "$compiler"
21383 CC=$lt_save_CC
21384 LDCXX=$LD
21385 LD=$lt_save_LD
21386 GCC=$lt_save_GCC
21387 with_gnu_ld=$lt_save_with_gnu_ld
21388 lt_cv_path_LDCXX=$lt_cv_path_LD
21389 lt_cv_path_LD=$lt_save_path_LD
21390 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21391 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21392 fi # test "$_lt_caught_CXX_error" != yes
21394 ac_ext=c
21395 ac_cpp='$CPP $CPPFLAGS'
21396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21415 # Only expand once:
21421 # Identify the assembler which will work hand-in-glove with the newly
21422 # built GCC, so that we can examine its features. This is the assembler
21423 # which will be driven by the driver program.
21425 # If build != host, and we aren't building gas in-tree, we identify a
21426 # build->target assembler and hope that it will have the same features
21427 # as the host->target assembler we'll be using.
21428 gcc_cv_gas_major_version=
21429 gcc_cv_gas_minor_version=
21430 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21432 if test "${gcc_cv_as+set}" = set; then :
21434 else
21436 if test -x "$DEFAULT_ASSEMBLER"; then
21437 gcc_cv_as="$DEFAULT_ASSEMBLER"
21438 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21439 && test -f ../gas/Makefile \
21440 && test x$build = x$host; then
21441 gcc_cv_as=../gas/as-new$build_exeext
21442 elif test -x as$build_exeext; then
21443 # Build using assembler in the current directory.
21444 gcc_cv_as=./as$build_exeext
21445 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21446 gcc_cv_as="$AS_FOR_TARGET"
21447 else
21448 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21449 set dummy $AS_FOR_TARGET; ac_word=$2
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21451 $as_echo_n "checking for $ac_word... " >&6; }
21452 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21453 $as_echo_n "(cached) " >&6
21454 else
21455 case $gcc_cv_as in
21456 [\\/]* | ?:[\\/]*)
21457 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21461 for as_dir in $PATH
21463 IFS=$as_save_IFS
21464 test -z "$as_dir" && as_dir=.
21465 for ac_exec_ext in '' $ac_executable_extensions; do
21466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21467 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21469 break 2
21471 done
21472 done
21473 IFS=$as_save_IFS
21476 esac
21478 gcc_cv_as=$ac_cv_path_gcc_cv_as
21479 if test -n "$gcc_cv_as"; then
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21481 $as_echo "$gcc_cv_as" >&6; }
21482 else
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21484 $as_echo "no" >&6; }
21491 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21493 case "$ORIGINAL_AS_FOR_TARGET" in
21494 ./as | ./as$build_exeext) ;;
21495 *) ac_config_files="$ac_config_files as:exec-tool.in"
21497 esac
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21500 $as_echo_n "checking what assembler to use... " >&6; }
21501 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21502 # Single tree build which includes gas. We want to prefer it
21503 # over whatever linker top-level may have detected, since
21504 # we'll use what we're building after installation anyway.
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21506 $as_echo "newly built gas" >&6; }
21507 in_tree_gas=yes
21508 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21509 for f in $gcc_cv_as_bfd_srcdir/configure \
21510 $gcc_cv_as_gas_srcdir/configure \
21511 $gcc_cv_as_gas_srcdir/configure.in \
21512 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21513 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21514 if test x$gcc_cv_gas_version != x; then
21515 break
21517 done
21518 case $gcc_cv_gas_version in
21519 VERSION=[0-9]*) ;;
21520 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21521 esac
21522 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21523 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21524 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21525 case $gcc_cv_gas_patch_version in
21526 "") gcc_cv_gas_patch_version="0" ;;
21527 esac
21528 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21529 + $gcc_cv_gas_minor_version \) \* 1000 \
21530 + $gcc_cv_gas_patch_version`
21532 in_tree_gas_is_elf=no
21533 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21534 || (grep 'obj_format = multi' ../gas/Makefile \
21535 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21536 then
21537 in_tree_gas_is_elf=yes
21539 else
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21541 $as_echo "$gcc_cv_as" >&6; }
21542 in_tree_gas=no
21545 default_ld=
21546 # Check whether --enable-ld was given.
21547 if test "${enable_ld+set}" = set; then :
21548 enableval=$enable_ld; case "${enableval}" in
21550 default_ld=ld.gold
21552 esac
21556 install_gold_as_default=no
21557 # Check whether --enable-gold was given.
21558 if test "${enable_gold+set}" = set; then :
21559 enableval=$enable_gold; case "${enableval}" in
21560 default)
21561 install_gold_as_default=yes
21563 yes)
21564 if test x${default_ld} != x; then
21565 install_gold_as_default=yes
21571 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21573 esac
21577 # Identify the linker which will work hand-in-glove with the newly
21578 # built GCC, so that we can examine its features. This is the linker
21579 # which will be driven by the driver program.
21581 # If build != host, and we aren't building gas in-tree, we identify a
21582 # build->target linker and hope that it will have the same features
21583 # as the host->target linker we'll be using.
21584 gcc_cv_gld_major_version=
21585 gcc_cv_gld_minor_version=
21586 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21587 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21588 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21590 if test "${gcc_cv_ld+set}" = set; then :
21592 else
21594 if test -x "$DEFAULT_LINKER"; then
21595 gcc_cv_ld="$DEFAULT_LINKER"
21596 elif test $install_gold_as_default = yes \
21597 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21598 && test -f ../gold/Makefile \
21599 && test x$build = x$host; then
21600 gcc_cv_ld=../gold/ld-new$build_exeext
21601 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21602 && test -f ../ld/Makefile \
21603 && test x$build = x$host; then
21604 gcc_cv_ld=../ld/ld-new$build_exeext
21605 elif test -x collect-ld$build_exeext; then
21606 # Build using linker in the current directory.
21607 gcc_cv_ld=./collect-ld$build_exeext
21608 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21609 gcc_cv_ld="$LD_FOR_TARGET"
21610 else
21611 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21612 set dummy $LD_FOR_TARGET; ac_word=$2
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21614 $as_echo_n "checking for $ac_word... " >&6; }
21615 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21616 $as_echo_n "(cached) " >&6
21617 else
21618 case $gcc_cv_ld in
21619 [\\/]* | ?:[\\/]*)
21620 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21624 for as_dir in $PATH
21626 IFS=$as_save_IFS
21627 test -z "$as_dir" && as_dir=.
21628 for ac_exec_ext in '' $ac_executable_extensions; do
21629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21630 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21632 break 2
21634 done
21635 done
21636 IFS=$as_save_IFS
21639 esac
21641 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21642 if test -n "$gcc_cv_ld"; then
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21644 $as_echo "$gcc_cv_ld" >&6; }
21645 else
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21647 $as_echo "no" >&6; }
21654 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21655 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21656 # if the PLUGIN_LD is set ld-new, just have it as ld
21657 # as that is the installed named.
21658 if test x$PLUGIN_LD_SUFFIX = xld-new \
21659 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21660 PLUGIN_LD_SUFFIX=ld
21663 # Check whether --with-plugin-ld was given.
21664 if test "${with_plugin_ld+set}" = set; then :
21665 withval=$with_plugin_ld; if test x"$withval" != x; then
21666 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21667 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21673 cat >>confdefs.h <<_ACEOF
21674 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21675 _ACEOF
21678 # Check to see if we are using gold instead of ld
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21680 $as_echo_n "checking whether we are using gold... " >&6; }
21681 ld_is_gold=no
21682 if test x$gcc_cv_ld != x; then
21683 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21684 | grep "GNU gold" > /dev/null; then
21685 ld_is_gold=yes
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21689 $as_echo "$ld_is_gold" >&6; }
21691 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21693 case "$ORIGINAL_LD_FOR_TARGET" in
21694 ./collect-ld | ./collect-ld$build_exeext) ;;
21695 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21697 esac
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21700 $as_echo_n "checking what linker to use... " >&6; }
21701 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21702 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21703 # Single tree build which includes ld. We want to prefer it
21704 # over whatever linker top-level may have detected, since
21705 # we'll use what we're building after installation anyway.
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21707 $as_echo "newly built ld" >&6; }
21708 in_tree_ld=yes
21709 in_tree_ld_is_elf=no
21710 if (grep 'EMUL = .*elf' ../ld/Makefile \
21711 || grep 'EMUL = .*linux' ../ld/Makefile \
21712 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21713 in_tree_ld_is_elf=yes
21714 elif test "$ld_is_gold" = yes; then
21715 in_tree_ld_is_elf=yes
21717 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21719 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21720 if test x$gcc_cv_gld_version != x; then
21721 break
21723 done
21724 case $gcc_cv_gld_version in
21725 VERSION=[0-9]*) ;;
21726 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21727 esac
21728 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21729 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21730 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21731 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21732 else
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21734 $as_echo "$gcc_cv_ld" >&6; }
21735 in_tree_ld=no
21736 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21737 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21738 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21744 # Figure out what nm we will be using.
21745 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21746 if test "${gcc_cv_nm+set}" = set; then :
21748 else
21750 if test -f $gcc_cv_binutils_srcdir/configure.in \
21751 && test -f ../binutils/Makefile \
21752 && test x$build = x$host; then
21753 gcc_cv_nm=../binutils/nm-new$build_exeext
21754 elif test -x nm$build_exeext; then
21755 gcc_cv_nm=./nm$build_exeext
21756 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21757 gcc_cv_nm="$NM_FOR_TARGET"
21758 else
21759 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21760 set dummy $NM_FOR_TARGET; ac_word=$2
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21762 $as_echo_n "checking for $ac_word... " >&6; }
21763 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21765 else
21766 case $gcc_cv_nm in
21767 [\\/]* | ?:[\\/]*)
21768 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21772 for as_dir in $PATH
21774 IFS=$as_save_IFS
21775 test -z "$as_dir" && as_dir=.
21776 for ac_exec_ext in '' $ac_executable_extensions; do
21777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21778 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21780 break 2
21782 done
21783 done
21784 IFS=$as_save_IFS
21787 esac
21789 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21790 if test -n "$gcc_cv_nm"; then
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21792 $as_echo "$gcc_cv_nm" >&6; }
21793 else
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 $as_echo "no" >&6; }
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21803 $as_echo_n "checking what nm to use... " >&6; }
21804 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21805 # Single tree build which includes binutils.
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21807 $as_echo "newly built nm" >&6; }
21808 in_tree_nm=yes
21809 else
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21811 $as_echo "$gcc_cv_nm" >&6; }
21812 in_tree_nm=no
21815 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21817 case "$ORIGINAL_NM_FOR_TARGET" in
21818 ./nm | ./nm$build_exeext) ;;
21819 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21821 esac
21824 # Figure out what objdump we will be using.
21825 if test "${gcc_cv_objdump+set}" = set; then :
21827 else
21829 if test -f $gcc_cv_binutils_srcdir/configure.in \
21830 && test -f ../binutils/Makefile \
21831 && test x$build = x$host; then
21832 # Single tree build which includes binutils.
21833 gcc_cv_objdump=../binutils/objdump$build_exeext
21834 elif test -x objdump$build_exeext; then
21835 gcc_cv_objdump=./objdump$build_exeext
21836 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21837 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21838 else
21839 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21840 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21842 $as_echo_n "checking for $ac_word... " >&6; }
21843 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21844 $as_echo_n "(cached) " >&6
21845 else
21846 case $gcc_cv_objdump in
21847 [\\/]* | ?:[\\/]*)
21848 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21852 for as_dir in $PATH
21854 IFS=$as_save_IFS
21855 test -z "$as_dir" && as_dir=.
21856 for ac_exec_ext in '' $ac_executable_extensions; do
21857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21858 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21860 break 2
21862 done
21863 done
21864 IFS=$as_save_IFS
21867 esac
21869 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21870 if test -n "$gcc_cv_objdump"; then
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21872 $as_echo "$gcc_cv_objdump" >&6; }
21873 else
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875 $as_echo "no" >&6; }
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21883 $as_echo_n "checking what objdump to use... " >&6; }
21884 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21885 # Single tree build which includes binutils.
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21887 $as_echo "newly built objdump" >&6; }
21888 elif test x$gcc_cv_objdump = x; then
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21890 $as_echo "not found" >&6; }
21891 else
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21893 $as_echo "$gcc_cv_objdump" >&6; }
21896 # Figure out what readelf we will be using.
21897 if test "${gcc_cv_readelf+set}" = set; then :
21899 else
21901 if test -f $gcc_cv_binutils_srcdir/configure.in \
21902 && test -f ../binutils/Makefile \
21903 && test x$build = x$host; then
21904 # Single tree build which includes binutils.
21905 gcc_cv_readelf=../binutils/readelf$build_exeext
21906 elif test -x readelf$build_exeext; then
21907 gcc_cv_readelf=./readelf$build_exeext
21908 else
21909 # Extract the first word of "readelf", so it can be a program name with args.
21910 set dummy readelf; ac_word=$2
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21912 $as_echo_n "checking for $ac_word... " >&6; }
21913 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21915 else
21916 case $gcc_cv_readelf in
21917 [\\/]* | ?:[\\/]*)
21918 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21922 for as_dir in $PATH
21924 IFS=$as_save_IFS
21925 test -z "$as_dir" && as_dir=.
21926 for ac_exec_ext in '' $ac_executable_extensions; do
21927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21928 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21930 break 2
21932 done
21933 done
21934 IFS=$as_save_IFS
21937 esac
21939 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21940 if test -n "$gcc_cv_readelf"; then
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21942 $as_echo "$gcc_cv_readelf" >&6; }
21943 else
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21945 $as_echo "no" >&6; }
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21953 $as_echo_n "checking what readelf to use... " >&6; }
21954 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21955 # Single tree build which includes binutils.
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21957 $as_echo "newly built readelf" >&6; }
21958 elif test x$gcc_cv_readelf = x; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21960 $as_echo "not found" >&6; }
21961 else
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21963 $as_echo "$gcc_cv_readelf" >&6; }
21966 # Figure out what assembler alignment features are present.
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21968 $as_echo_n "checking assembler flags... " >&6; }
21969 if test "${gcc_cv_as_flags+set}" = set; then :
21970 $as_echo_n "(cached) " >&6
21971 else
21972 case "$target" in
21973 i[34567]86-*-linux*)
21974 gcc_cv_as_flags=--32
21976 x86_64-*-linux-gnux32)
21977 gcc_cv_as_flags=--x32
21979 x86_64-*-linux*)
21980 gcc_cv_as_flags=--64
21982 powerpc*-*-darwin*)
21983 gcc_cv_as_flags="-arch ppc"
21986 gcc_cv_as_flags=" "
21988 esac
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21991 $as_echo "$gcc_cv_as_flags" >&6; }
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21994 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21995 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21996 $as_echo_n "(cached) " >&6
21997 else
21998 gcc_cv_as_balign_and_p2align=no
21999 if test $in_tree_gas = yes; then
22000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22001 then gcc_cv_as_balign_and_p2align=yes
22003 elif test x$gcc_cv_as != x; then
22004 $as_echo '.balign 4
22005 .p2align 2' > conftest.s
22006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22011 test $ac_status = 0; }; }
22012 then
22013 gcc_cv_as_balign_and_p2align=yes
22014 else
22015 echo "configure: failed program was" >&5
22016 cat conftest.s >&5
22018 rm -f conftest.o conftest.s
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22022 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22023 if test $gcc_cv_as_balign_and_p2align = yes; then
22025 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22030 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22031 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22033 else
22034 gcc_cv_as_max_skip_p2align=no
22035 if test $in_tree_gas = yes; then
22036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22037 then gcc_cv_as_max_skip_p2align=yes
22039 elif test x$gcc_cv_as != x; then
22040 $as_echo '.p2align 4,,7' > conftest.s
22041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22046 test $ac_status = 0; }; }
22047 then
22048 gcc_cv_as_max_skip_p2align=yes
22049 else
22050 echo "configure: failed program was" >&5
22051 cat conftest.s >&5
22053 rm -f conftest.o conftest.s
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22057 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22058 if test $gcc_cv_as_max_skip_p2align = yes; then
22060 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22065 $as_echo_n "checking assembler for .literal16... " >&6; }
22066 if test "${gcc_cv_as_literal16+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 gcc_cv_as_literal16=no
22070 if test $in_tree_gas = yes; then
22071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22072 then gcc_cv_as_literal16=yes
22074 elif test x$gcc_cv_as != x; then
22075 $as_echo '.literal16' > conftest.s
22076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22081 test $ac_status = 0; }; }
22082 then
22083 gcc_cv_as_literal16=yes
22084 else
22085 echo "configure: failed program was" >&5
22086 cat conftest.s >&5
22088 rm -f conftest.o conftest.s
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22092 $as_echo "$gcc_cv_as_literal16" >&6; }
22093 if test $gcc_cv_as_literal16 = yes; then
22095 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22100 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22101 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22102 $as_echo_n "(cached) " >&6
22103 else
22104 gcc_cv_as_subsection_m1=no
22105 if test $in_tree_gas = yes; then
22106 if test $in_tree_gas_is_elf = yes \
22107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22108 then gcc_cv_as_subsection_m1=yes
22110 elif test x$gcc_cv_as != x; then
22111 $as_echo 'conftest_label1: .word 0
22112 .subsection -1
22113 conftest_label2: .word 0
22114 .previous' > conftest.s
22115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22120 test $ac_status = 0; }; }
22121 then
22122 if test x$gcc_cv_nm != x; then
22123 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22124 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22125 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22126 then :
22127 else gcc_cv_as_subsection_m1=yes
22129 rm -f conftest.nm1 conftest.nm2
22131 else
22132 echo "configure: failed program was" >&5
22133 cat conftest.s >&5
22135 rm -f conftest.o conftest.s
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22139 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22140 if test $gcc_cv_as_subsection_m1 = yes; then
22142 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22147 $as_echo_n "checking assembler for .weak... " >&6; }
22148 if test "${gcc_cv_as_weak+set}" = set; then :
22149 $as_echo_n "(cached) " >&6
22150 else
22151 gcc_cv_as_weak=no
22152 if test $in_tree_gas = yes; then
22153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22154 then gcc_cv_as_weak=yes
22156 elif test x$gcc_cv_as != x; then
22157 $as_echo ' .weak foobar' > conftest.s
22158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22163 test $ac_status = 0; }; }
22164 then
22165 gcc_cv_as_weak=yes
22166 else
22167 echo "configure: failed program was" >&5
22168 cat conftest.s >&5
22170 rm -f conftest.o conftest.s
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22174 $as_echo "$gcc_cv_as_weak" >&6; }
22175 if test $gcc_cv_as_weak = yes; then
22177 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22182 $as_echo_n "checking assembler for .weakref... " >&6; }
22183 if test "${gcc_cv_as_weakref+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22185 else
22186 gcc_cv_as_weakref=no
22187 if test $in_tree_gas = yes; then
22188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22189 then gcc_cv_as_weakref=yes
22191 elif test x$gcc_cv_as != x; then
22192 $as_echo ' .weakref foobar, barfnot' > conftest.s
22193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22195 (eval $ac_try) 2>&5
22196 ac_status=$?
22197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22198 test $ac_status = 0; }; }
22199 then
22200 gcc_cv_as_weakref=yes
22201 else
22202 echo "configure: failed program was" >&5
22203 cat conftest.s >&5
22205 rm -f conftest.o conftest.s
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22209 $as_echo "$gcc_cv_as_weakref" >&6; }
22210 if test $gcc_cv_as_weakref = yes; then
22212 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22217 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22218 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22219 $as_echo_n "(cached) " >&6
22220 else
22221 gcc_cv_as_nsubspa_comdat=no
22222 if test $in_tree_gas = yes; then
22223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22224 then gcc_cv_as_nsubspa_comdat=yes
22226 elif test x$gcc_cv_as != x; then
22227 $as_echo ' .SPACE $TEXT$
22228 .NSUBSPA $CODE$,COMDAT' > conftest.s
22229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234 test $ac_status = 0; }; }
22235 then
22236 gcc_cv_as_nsubspa_comdat=yes
22237 else
22238 echo "configure: failed program was" >&5
22239 cat conftest.s >&5
22241 rm -f conftest.o conftest.s
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22245 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22246 if test $gcc_cv_as_nsubspa_comdat = yes; then
22248 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22252 # .hidden needs to be supported in both the assembler and the linker,
22253 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22254 # This is irritatingly difficult to feature test for; we have to check the
22255 # date string after the version number. If we've got an in-tree
22256 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22257 # to be safe.
22258 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22260 $as_echo_n "checking assembler for .hidden... " >&6; }
22261 if test "${gcc_cv_as_hidden+set}" = set; then :
22262 $as_echo_n "(cached) " >&6
22263 else
22264 gcc_cv_as_hidden=no
22265 if test $in_tree_gas = yes; then
22266 if test $in_tree_gas_is_elf = yes \
22267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22268 then gcc_cv_as_hidden=yes
22270 elif test x$gcc_cv_as != x; then
22271 $as_echo ' .hidden foobar
22272 foobar:' > conftest.s
22273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22278 test $ac_status = 0; }; }
22279 then
22280 gcc_cv_as_hidden=yes
22281 else
22282 echo "configure: failed program was" >&5
22283 cat conftest.s >&5
22285 rm -f conftest.o conftest.s
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22289 $as_echo "$gcc_cv_as_hidden" >&6; }
22291 case "${target}" in
22292 *-*-darwin*)
22293 # Darwin as has some visibility support, though with a different syntax.
22294 gcc_cv_as_hidden=yes
22296 esac
22298 # gnu_indirect_function type is an extension proposed at
22299 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22300 # selection of function implementation
22301 # Check whether --enable-gnu-indirect-function was given.
22302 if test "${enable_gnu_indirect_function+set}" = set; then :
22303 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22304 yes | no) ;;
22305 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22306 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22307 esac
22308 else
22309 enable_gnu_indirect_function="$default_gnu_indirect_function"
22313 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22315 cat >>confdefs.h <<_ACEOF
22316 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22317 _ACEOF
22321 if test $in_tree_ld != yes ; then
22322 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22323 if echo "$ld_ver" | grep GNU > /dev/null; then
22324 if test x"$ld_is_gold" = xyes; then
22325 # GNU gold --version looks like this:
22327 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22329 # We extract the binutils version which is more familiar and specific
22330 # than the gold version.
22331 ld_vers=`echo $ld_ver | sed -n \
22332 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22333 else
22334 # GNU ld --version looks like this:
22336 # GNU ld (GNU Binutils) 2.21.51.20110225
22337 ld_vers=`echo $ld_ver | sed -n \
22338 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22340 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'`
22341 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22342 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22343 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22344 else
22345 case "${target}" in
22346 *-*-solaris2*)
22347 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22348 # format.
22350 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22351 # /usr/ccs/bin/ld has been configured.
22352 ld_ver=`$gcc_cv_ld -V 2>&1`
22353 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22354 ld_vers=`echo $ld_ver | sed -n \
22355 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22356 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22357 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22360 esac
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22365 $as_echo_n "checking linker for .hidden support... " >&6; }
22366 if test "${gcc_cv_ld_hidden+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22368 else
22369 if test $in_tree_ld = yes ; then
22370 gcc_cv_ld_hidden=no
22371 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 \
22372 && test $in_tree_ld_is_elf = yes; then
22373 gcc_cv_ld_hidden=yes
22375 else
22376 gcc_cv_ld_hidden=yes
22377 if test x"$ld_is_gold" = xyes; then
22379 elif echo "$ld_ver" | grep GNU > /dev/null; then
22380 case "${target}" in
22381 mmix-knuth-mmixware)
22382 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22383 gcc_cv_ld_hidden=no
22385 esac
22386 if test 0"$ld_date" -lt 20020404; then
22387 if test -n "$ld_date"; then
22388 # If there was date string, but was earlier than 2002-04-04, fail
22389 gcc_cv_ld_hidden=no
22390 elif test -z "$ld_vers"; then
22391 # If there was no date string nor ld version number, something is wrong
22392 gcc_cv_ld_hidden=no
22393 else
22394 test -z "$ld_vers_patch" && ld_vers_patch=0
22395 if test "$ld_vers_major" -lt 2; then
22396 gcc_cv_ld_hidden=no
22397 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22398 gcc_cv_ld_hidden="no"
22399 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22400 gcc_cv_ld_hidden=no
22404 else
22405 case "${target}" in
22406 *-*-darwin*)
22407 # Darwin ld has some visibility support.
22408 gcc_cv_ld_hidden=yes
22410 hppa64*-*-hpux* | ia64*-*-hpux*)
22411 gcc_cv_ld_hidden=yes
22413 *-*-solaris2.1[0-9]*)
22414 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22415 # .symbolic was only added in Solaris 9 12/02.
22416 gcc_cv_ld_hidden=yes
22419 gcc_cv_ld_hidden=no
22421 esac
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22426 $as_echo "$gcc_cv_ld_hidden" >&6; }
22427 libgcc_visibility=no
22430 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22431 libgcc_visibility=yes
22433 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22438 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22439 gcc_cv_ld_ro_rw_mix=unknown
22440 if test $in_tree_ld = yes ; then
22441 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 \
22442 && test $in_tree_ld_is_elf = yes; then
22443 gcc_cv_ld_ro_rw_mix=read-write
22445 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22446 echo '.section myfoosect, "a"' > conftest1.s
22447 echo '.section myfoosect, "aw"' > conftest2.s
22448 echo '.byte 1' >> conftest2.s
22449 echo '.section myfoosect, "a"' > conftest3.s
22450 echo '.byte 0' >> conftest3.s
22451 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22452 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22453 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22454 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22455 conftest2.o conftest3.o > /dev/null 2>&1; then
22456 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22457 | sed -e '/myfoosect/!d' -e N`
22458 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22459 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22460 gcc_cv_ld_ro_rw_mix=read-only
22461 else
22462 gcc_cv_ld_ro_rw_mix=read-write
22466 rm -f conftest.* conftest[123].*
22468 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22470 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22474 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22476 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22477 case "${target}" in
22478 *-*-solaris2*)
22480 # Solaris 2 ld -V output looks like this for a regular version:
22482 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22484 # but test versions add stuff at the end:
22486 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22488 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22489 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22490 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22491 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22492 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22493 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22496 esac
22499 # Check whether --enable-initfini-array was given.
22500 if test "${enable_initfini_array+set}" = set; then :
22501 enableval=$enable_initfini_array;
22502 else
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22505 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22506 if test "${gcc_cv_initfini_array+set}" = set; then :
22507 $as_echo_n "(cached) " >&6
22508 else
22509 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22510 case "${target}" in
22511 ia64-*)
22512 if test "$cross_compiling" = yes; then :
22513 gcc_cv_initfini_array=no
22514 else
22515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22516 /* end confdefs.h. */
22518 #ifndef __ELF__
22519 #error Not an ELF OS
22520 #endif
22521 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22522 if it can be used. */
22523 static int x = -1;
22524 int main (void) { return x; }
22525 int foo (void) { x = 0; }
22526 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22528 _ACEOF
22529 if ac_fn_c_try_run "$LINENO"; then :
22530 gcc_cv_initfini_array=yes
22531 else
22532 gcc_cv_initfini_array=no
22534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22535 conftest.$ac_objext conftest.beam conftest.$ac_ext
22539 gcc_cv_initfini_array=no
22540 if test $in_tree_ld = yes ; then
22541 if test "$gcc_cv_gld_major_version" -eq 2 \
22542 -a "$gcc_cv_gld_minor_version" -ge 22 \
22543 -o "$gcc_cv_gld_major_version" -gt 2 \
22544 && test $in_tree_ld_is_elf = yes; then
22545 gcc_cv_initfini_array=yes
22547 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22548 cat > conftest.s <<\EOF
22549 .section .dtors,"a",%progbits
22550 .balign 4
22551 .byte 'A', 'A', 'A', 'A'
22552 .section .ctors,"a",%progbits
22553 .balign 4
22554 .byte 'B', 'B', 'B', 'B'
22555 .section .fini_array.65530,"a",%progbits
22556 .balign 4
22557 .byte 'C', 'C', 'C', 'C'
22558 .section .init_array.65530,"a",%progbits
22559 .balign 4
22560 .byte 'D', 'D', 'D', 'D'
22561 .section .dtors.64528,"a",%progbits
22562 .balign 4
22563 .byte 'E', 'E', 'E', 'E'
22564 .section .ctors.64528,"a",%progbits
22565 .balign 4
22566 .byte 'F', 'F', 'F', 'F'
22567 .section .fini_array.01005,"a",%progbits
22568 .balign 4
22569 .byte 'G', 'G', 'G', 'G'
22570 .section .init_array.01005,"a",%progbits
22571 .balign 4
22572 .byte 'H', 'H', 'H', 'H'
22573 .text
22574 .globl _start
22575 _start:
22577 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22578 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22579 && $gcc_cv_objdump -s -j .init_array conftest \
22580 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22581 && $gcc_cv_objdump -s -j .fini_array conftest \
22582 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22583 gcc_cv_initfini_array=yes
22585 rm -f conftest conftest.*
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22590 #ifndef __ELF__
22591 # error Not an ELF OS
22592 #endif
22593 #include <stdlib.h>
22594 #if defined __GLIBC_PREREQ
22595 # if __GLIBC_PREREQ (2, 4)
22596 # else
22597 # error GLIBC 2.4 required
22598 # endif
22599 #else
22600 # if defined __sun__ && defined __svr4__
22601 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22602 # else
22603 # error The C library not known to support .init_array/.fini_array
22604 # endif
22605 #endif
22607 _ACEOF
22608 if ac_fn_c_try_cpp "$LINENO"; then :
22610 else
22611 gcc_cv_initfini_array=no
22613 rm -f conftest.err conftest.$ac_ext;;
22614 esac
22615 else
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22617 $as_echo_n "checking cross compile... guessing... " >&6; }
22618 gcc_cv_initfini_array=no
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22622 $as_echo "$gcc_cv_initfini_array" >&6; }
22623 enable_initfini_array=$gcc_cv_initfini_array
22627 if test $enable_initfini_array = yes; then
22629 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22633 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22635 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22636 if test "${gcc_cv_as_leb128+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22638 else
22639 gcc_cv_as_leb128=no
22640 if test $in_tree_gas = yes; then
22641 if test $in_tree_gas_is_elf = yes \
22642 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22643 then gcc_cv_as_leb128=yes
22645 elif test x$gcc_cv_as != x; then
22646 $as_echo ' .data
22647 .uleb128 L2 - L1
22649 .uleb128 1280
22650 .sleb128 -1010
22651 L2:' > conftest.s
22652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22654 (eval $ac_try) 2>&5
22655 ac_status=$?
22656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22657 test $ac_status = 0; }; }
22658 then
22659 # GAS versions before 2.11 do not support uleb128,
22660 # despite appearing to.
22661 # ??? There exists an elf-specific test that will crash
22662 # the assembler. Perhaps it's better to figure out whether
22663 # arbitrary sections are supported and try the test.
22664 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22665 if echo "$as_ver" | grep GNU > /dev/null; then
22666 as_vers=`echo $as_ver | sed -n \
22667 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22668 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22669 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22670 if test $as_major -eq 2 && test $as_minor -lt 11
22671 then :
22672 else gcc_cv_as_leb128=yes
22675 else
22676 echo "configure: failed program was" >&5
22677 cat conftest.s >&5
22679 rm -f conftest.o conftest.s
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22683 $as_echo "$gcc_cv_as_leb128" >&6; }
22684 if test $gcc_cv_as_leb128 = yes; then
22686 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22690 # Check if we have assembler support for unwind directives.
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22692 $as_echo_n "checking assembler for cfi directives... " >&6; }
22693 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22694 $as_echo_n "(cached) " >&6
22695 else
22696 gcc_cv_as_cfi_directive=no
22697 if test x$gcc_cv_as != x; then
22698 $as_echo ' .text
22699 .cfi_startproc
22700 .cfi_offset 0, 0
22701 .cfi_same_value 1
22702 .cfi_def_cfa 1, 2
22703 .cfi_escape 1, 2, 3, 4, 5
22704 .cfi_endproc' > conftest.s
22705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22707 (eval $ac_try) 2>&5
22708 ac_status=$?
22709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22710 test $ac_status = 0; }; }
22711 then
22712 case "$target" in
22713 *-*-solaris*)
22714 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22715 # read-only and read-write sections, we need to make sure that the
22716 # assembler used emits read-write .eh_frame sections.
22717 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22718 if test "x$gcc_cv_objdump" != x; then
22719 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22720 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22721 gcc_cv_as_cfi_directive=no
22722 else
22723 case "$target" in
22724 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22725 # On Solaris/x86, make sure that GCC and assembler agree on using
22726 # read-only .eh_frame sections for 64-bit.
22727 if test x$gas = xyes; then
22728 as_ix86_64_opt="--64"
22729 else
22730 as_ix86_64_opt="-xarch=amd64"
22732 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22733 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22734 sed -e /.eh_frame/!d -e N | \
22735 grep READONLY > /dev/null; then
22736 gcc_cv_as_cfi_directive=yes
22737 else
22738 gcc_cv_as_cfi_directive=no
22742 gcc_cv_as_cfi_directive=yes
22744 esac
22746 else
22747 # no objdump, err on the side of caution
22748 gcc_cv_as_cfi_directive=no
22750 else
22751 gcc_cv_as_cfi_directive=yes
22754 *-*-*)
22755 gcc_cv_as_cfi_directive=yes
22757 esac
22758 else
22759 echo "configure: failed program was" >&5
22760 cat conftest.s >&5
22762 rm -f conftest.o conftest.s
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22766 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22768 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22770 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22771 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22772 $as_echo_n "(cached) " >&6
22773 else
22774 gcc_cv_as_cfi_advance_working=no
22775 if test x$gcc_cv_as != x; then
22776 $as_echo ' .text
22777 .cfi_startproc
22778 .cfi_adjust_cfa_offset 64
22779 .skip 75040, 0
22780 .cfi_adjust_cfa_offset 128
22781 .cfi_endproc' > conftest.s
22782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22785 ac_status=$?
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }
22788 then
22790 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22791 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22792 gcc_cv_as_cfi_advance_working=yes
22795 else
22796 echo "configure: failed program was" >&5
22797 cat conftest.s >&5
22799 rm -f conftest.o conftest.s
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22803 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22805 else
22806 # no objdump, err on the side of caution
22807 gcc_cv_as_cfi_advance_working=no
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22813 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22814 _ACEOF
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22819 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22820 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22821 $as_echo_n "(cached) " >&6
22822 else
22823 gcc_cv_as_cfi_personality_directive=no
22824 if test x$gcc_cv_as != x; then
22825 $as_echo ' .text
22826 .cfi_startproc
22827 .cfi_personality 0, symbol
22828 .cfi_endproc' > conftest.s
22829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22831 (eval $ac_try) 2>&5
22832 ac_status=$?
22833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834 test $ac_status = 0; }; }
22835 then
22836 gcc_cv_as_cfi_personality_directive=yes
22837 else
22838 echo "configure: failed program was" >&5
22839 cat conftest.s >&5
22841 rm -f conftest.o conftest.s
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22845 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22848 cat >>confdefs.h <<_ACEOF
22849 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22850 then echo 1; else echo 0; fi`
22851 _ACEOF
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22855 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22856 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22858 else
22859 gcc_cv_as_cfi_sections_directive=no
22860 if test x$gcc_cv_as != x; then
22861 $as_echo ' .text
22862 .cfi_sections .debug_frame, .eh_frame
22863 .cfi_startproc
22864 .cfi_endproc' > conftest.s
22865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }
22871 then
22872 case $target_os in
22873 win32 | pe | cygwin* | mingw32* | uwin*)
22874 # Need to check that we generated the correct relocation for the
22875 # .debug_frame section. This was fixed for binutils 2.21.
22876 gcc_cv_as_cfi_sections_directive=no
22877 if test "x$gcc_cv_objdump" != x; then
22878 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22879 grep secrel > /dev/null; then
22880 gcc_cv_as_cfi_sections_directive=yes
22885 gcc_cv_as_cfi_sections_directive=yes
22887 esac
22888 else
22889 echo "configure: failed program was" >&5
22890 cat conftest.s >&5
22892 rm -f conftest.o conftest.s
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22896 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22900 cat >>confdefs.h <<_ACEOF
22901 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22902 then echo 1; else echo 0; fi`
22903 _ACEOF
22906 # GAS versions up to and including 2.11.0 may mis-optimize
22907 # .eh_frame data.
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22909 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22910 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22912 else
22913 gcc_cv_as_eh_frame=no
22914 if test $in_tree_gas = yes; then
22915 if test $in_tree_gas_is_elf = yes \
22916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22917 then gcc_cv_as_eh_frame=yes
22919 elif test x$gcc_cv_as != x; then
22920 $as_echo ' .text
22921 .LFB1:
22922 .4byte 0
22923 .L1:
22924 .4byte 0
22925 .LFE1:
22926 .section .eh_frame,"aw",@progbits
22927 __FRAME_BEGIN__:
22928 .4byte .LECIE1-.LSCIE1
22929 .LSCIE1:
22930 .4byte 0x0
22931 .byte 0x1
22932 .ascii "z\0"
22933 .byte 0x1
22934 .byte 0x78
22935 .byte 0x1a
22936 .byte 0x0
22937 .byte 0x4
22938 .4byte 1
22939 .p2align 1
22940 .LECIE1:
22941 .LSFDE1:
22942 .4byte .LEFDE1-.LASFDE1
22943 .LASFDE1:
22944 .4byte .LASFDE1-__FRAME_BEGIN__
22945 .4byte .LFB1
22946 .4byte .LFE1-.LFB1
22947 .byte 0x4
22948 .4byte .LFE1-.LFB1
22949 .byte 0x4
22950 .4byte .L1-.LFB1
22951 .LEFDE1:' > conftest.s
22952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954 (eval $ac_try) 2>&5
22955 ac_status=$?
22956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957 test $ac_status = 0; }; }
22958 then
22959 cat > conftest.lit <<EOF
22960 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22961 0010 01000000 12000000 18000000 00000000 ................
22962 0020 08000000 04080000 0044 .........D
22964 cat > conftest.big <<EOF
22965 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22966 0010 00000001 00000012 00000018 00000000 ................
22967 0020 00000008 04000000 0844 .........D
22969 # If the assembler didn't choke, and we can objdump,
22970 # and we got the correct data, then succeed.
22971 # The text in the here-document typically retains its unix-style line
22972 # endings, while the output of objdump will use host line endings.
22973 # Therefore, use diff -b for the comparisons.
22974 if test x$gcc_cv_objdump != x \
22975 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22976 | tail -3 > conftest.got \
22977 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22978 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22979 then
22980 gcc_cv_as_eh_frame=yes
22981 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983 (eval $ac_try) 2>&5
22984 ac_status=$?
22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986 test $ac_status = 0; }; }; then
22987 gcc_cv_as_eh_frame=buggy
22988 else
22989 # Uh oh, what do we do now?
22990 gcc_cv_as_eh_frame=no
22992 else
22993 echo "configure: failed program was" >&5
22994 cat conftest.s >&5
22996 rm -f conftest.o conftest.s
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23000 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23003 if test $gcc_cv_as_eh_frame = buggy; then
23005 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23010 $as_echo_n "checking assembler for section merging support... " >&6; }
23011 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23012 $as_echo_n "(cached) " >&6
23013 else
23014 gcc_cv_as_shf_merge=no
23015 if test $in_tree_gas = yes; then
23016 if test $in_tree_gas_is_elf = yes \
23017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23018 then gcc_cv_as_shf_merge=yes
23020 elif test x$gcc_cv_as != x; then
23021 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23028 then
23029 gcc_cv_as_shf_merge=yes
23030 else
23031 echo "configure: failed program was" >&5
23032 cat conftest.s >&5
23034 rm -f conftest.o conftest.s
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23038 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23040 if test $gcc_cv_as_shf_merge = no; then
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23042 $as_echo_n "checking assembler for section merging support... " >&6; }
23043 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23045 else
23046 gcc_cv_as_shf_merge=no
23047 if test $in_tree_gas = yes; then
23048 if test $in_tree_gas_is_elf = yes \
23049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23050 then gcc_cv_as_shf_merge=yes
23052 elif test x$gcc_cv_as != x; then
23053 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23059 test $ac_status = 0; }; }
23060 then
23061 gcc_cv_as_shf_merge=yes
23062 else
23063 echo "configure: failed program was" >&5
23064 cat conftest.s >&5
23066 rm -f conftest.o conftest.s
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23070 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23074 cat >>confdefs.h <<_ACEOF
23075 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23076 _ACEOF
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23080 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23081 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23083 else
23084 gcc_cv_as_comdat_group=no
23085 if test $in_tree_gas = yes; then
23086 if test $in_tree_gas_is_elf = yes \
23087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23088 then gcc_cv_as_comdat_group=yes
23090 elif test x$gcc_cv_as != x; then
23091 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23097 test $ac_status = 0; }; }
23098 then
23099 gcc_cv_as_comdat_group=yes
23100 else
23101 echo "configure: failed program was" >&5
23102 cat conftest.s >&5
23104 rm -f conftest.o conftest.s
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23108 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23110 if test $gcc_cv_as_comdat_group = yes; then
23111 gcc_cv_as_comdat_group_percent=no
23112 gcc_cv_as_comdat_group_group=no
23113 else
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23115 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23116 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23117 $as_echo_n "(cached) " >&6
23118 else
23119 gcc_cv_as_comdat_group_percent=no
23120 if test $in_tree_gas = yes; then
23121 if test $in_tree_gas_is_elf = yes \
23122 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23123 then gcc_cv_as_comdat_group_percent=yes
23125 elif test x$gcc_cv_as != x; then
23126 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132 test $ac_status = 0; }; }
23133 then
23134 gcc_cv_as_comdat_group_percent=yes
23135 else
23136 echo "configure: failed program was" >&5
23137 cat conftest.s >&5
23139 rm -f conftest.o conftest.s
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23143 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23145 if test $gcc_cv_as_comdat_group_percent = yes; then
23146 gcc_cv_as_comdat_group_group=no
23147 else
23148 case "${target}" in
23149 # Sun as uses a completely different syntax.
23150 *-*-solaris2*)
23151 case "${target}" in
23152 sparc*-*-solaris2*)
23153 conftest_s='
23154 .group foo,".text%foo",#comdat
23155 .section ".text%foo", #alloc,#execinstr,#progbits
23156 .globl foo
23157 foo:
23160 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23161 conftest_s='
23162 .group foo,.text%foo,#comdat
23163 .section .text%foo, "ax", @progbits
23164 .globl foo
23165 foo:
23168 esac
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23170 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23171 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23172 $as_echo_n "(cached) " >&6
23173 else
23174 gcc_cv_as_comdat_group_group=no
23175 if test x$gcc_cv_as != x; then
23176 $as_echo "$conftest_s" > conftest.s
23177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23179 (eval $ac_try) 2>&5
23180 ac_status=$?
23181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23182 test $ac_status = 0; }; }
23183 then
23184 gcc_cv_as_comdat_group_group=yes
23185 else
23186 echo "configure: failed program was" >&5
23187 cat conftest.s >&5
23189 rm -f conftest.o conftest.s
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23193 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23196 esac
23197 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23198 gcc_cv_as_comdat_group_group=no
23202 if test x"$ld_is_gold" = xyes; then
23203 comdat_group=yes
23204 elif test $in_tree_ld = yes ; then
23205 comdat_group=no
23206 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 \
23207 && test $in_tree_ld_is_elf = yes; then
23208 comdat_group=yes
23210 elif echo "$ld_ver" | grep GNU > /dev/null; then
23211 comdat_group=yes
23212 if test 0"$ld_date" -lt 20050308; then
23213 if test -n "$ld_date"; then
23214 # If there was date string, but was earlier than 2005-03-08, fail
23215 comdat_group=no
23216 elif test "$ld_vers_major" -lt 2; then
23217 comdat_group=no
23218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23219 comdat_group=no
23222 else
23223 case "${target}" in
23224 *-*-solaris2.1[1-9]*)
23225 comdat_group=no
23226 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23227 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23228 # version 1.688.
23230 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23231 # least ld version 1.2267.
23232 if test "$ld_vers_major" -gt 1; then
23233 comdat_group=yes
23234 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23235 comdat_group=yes
23236 elif test "$ld_vers_minor" -ge 2267; then
23237 comdat_group=yes
23241 # Assume linkers other than GNU ld don't support COMDAT group.
23242 comdat_group=no
23244 esac
23246 # Allow overriding the automatic COMDAT group tests above.
23247 # Check whether --enable-comdat was given.
23248 if test "${enable_comdat+set}" = set; then :
23249 enableval=$enable_comdat; comdat_group="$enable_comdat"
23252 if test $comdat_group = no; then
23253 gcc_cv_as_comdat_group=no
23254 gcc_cv_as_comdat_group_percent=no
23255 gcc_cv_as_comdat_group_group=no
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23260 || test $gcc_cv_as_comdat_group_percent = yes \
23261 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23262 _ACEOF
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23266 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23267 if test "${gcc_cv_as_discriminator+set}" = set; then :
23268 $as_echo_n "(cached) " >&6
23269 else
23270 gcc_cv_as_discriminator=no
23271 if test $in_tree_gas = yes; then
23272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23273 then gcc_cv_as_discriminator=yes
23275 elif test x$gcc_cv_as != x; then
23276 $as_echo ' .text
23277 .file 1 "conf.c"
23278 .loc 1 1 0 discriminator 1' > 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
23286 gcc_cv_as_discriminator=yes
23287 else
23288 echo "configure: failed program was" >&5
23289 cat conftest.s >&5
23291 rm -f conftest.o conftest.s
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23295 $as_echo "$gcc_cv_as_discriminator" >&6; }
23296 if test $gcc_cv_as_discriminator = yes; then
23298 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23302 # Thread-local storage - the check is heavily parameterized.
23303 conftest_s=
23304 tls_first_major=
23305 tls_first_minor=
23306 tls_as_opt=
23307 case "$target" in
23308 alpha*-*-*)
23309 conftest_s='
23310 .section ".tdata","awT",@progbits
23311 foo: .long 25
23312 .text
23313 ldq $27,__tls_get_addr($29) !literal!1
23314 lda $16,foo($29) !tlsgd!1
23315 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23316 ldq $27,__tls_get_addr($29) !literal!2
23317 lda $16,foo($29) !tlsldm!2
23318 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23319 ldq $1,foo($29) !gotdtprel
23320 ldah $2,foo($29) !dtprelhi
23321 lda $3,foo($2) !dtprello
23322 lda $4,foo($29) !dtprel
23323 ldq $1,foo($29) !gottprel
23324 ldah $2,foo($29) !tprelhi
23325 lda $3,foo($2) !tprello
23326 lda $4,foo($29) !tprel'
23327 tls_first_major=2
23328 tls_first_minor=13
23329 tls_as_opt=--fatal-warnings
23331 cris-*-*|crisv32-*-*)
23332 conftest_s='
23333 .section ".tdata","awT",@progbits
23334 x: .long 25
23335 .text
23336 move.d x:IE,$r10
23337 nop'
23338 tls_first_major=2
23339 tls_first_minor=20
23340 tls_as_opt=--fatal-warnings
23342 frv*-*-*)
23343 conftest_s='
23344 .section ".tdata","awT",@progbits
23345 x: .long 25
23346 .text
23347 call #gettlsoff(x)'
23348 tls_first_major=2
23349 tls_first_minor=14
23351 hppa*-*-linux*)
23352 conftest_s='
23353 t1: .reg %r20
23354 t2: .reg %r21
23355 gp: .reg %r19
23356 .section ".tdata","awT",@progbits
23357 foo: .long 25
23358 .text
23359 .align 4
23360 addil LT%foo-$tls_gdidx$,gp
23361 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23362 b __tls_get_addr
23364 addil LT%foo-$tls_ldidx$,gp
23365 b __tls_get_addr
23366 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23367 addil LR%foo-$tls_dtpoff$,%ret0
23368 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23369 mfctl %cr27,%t1
23370 addil LT%foo-$tls_ieoff$,gp
23371 ldw RT%foo-$tls_ieoff$(%r1),%t2
23372 add %t1,%t2,%t3
23373 mfctl %cr27,%t1
23374 addil LR%foo-$tls_leoff$,%t1
23375 ldo RR%foo-$tls_leoff$(%r1),%t2'
23376 tls_first_major=2
23377 tls_first_minor=15
23378 tls_as_opt=--fatal-warnings
23380 arm*-*-*)
23381 conftest_s='
23382 .section ".tdata","awT",%progbits
23383 foo: .long 25
23384 .text
23385 .word foo(gottpoff)
23386 .word foo(tpoff)
23387 .word foo(tlsgd)
23388 .word foo(tlsldm)
23389 .word foo(tlsldo)'
23390 tls_first_major=2
23391 tls_first_minor=17
23393 i[34567]86-*-* | x86_64-*-*)
23394 case "$target" in
23395 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23396 on_solaris=yes
23399 on_solaris=no
23401 esac
23402 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23403 conftest_s='
23404 .section .tdata,"awt",@progbits'
23405 tls_first_major=0
23406 tls_first_minor=0
23407 tls_section_flag=t
23409 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23411 else
23412 conftest_s='
23413 .section ".tdata","awT",@progbits'
23414 tls_first_major=2
23415 tls_first_minor=14
23416 tls_section_flag=T
23417 tls_as_opt="--fatal-warnings"
23419 case "$target" in
23420 i[34567]86-*-*)
23421 conftest_s="$conftest_s
23422 foo: .long 25
23423 .text
23424 movl %gs:0, %eax
23425 leal foo@tlsgd(,%ebx,1), %eax
23426 leal foo@tlsldm(%ebx), %eax
23427 leal foo@dtpoff(%eax), %edx
23428 movl foo@gottpoff(%ebx), %eax
23429 subl foo@gottpoff(%ebx), %eax
23430 addl foo@gotntpoff(%ebx), %eax
23431 movl foo@indntpoff, %eax
23432 movl \$foo@tpoff, %eax
23433 subl \$foo@tpoff, %eax
23434 leal foo@ntpoff(%ecx), %eax"
23436 x86_64-*-*)
23437 if test x$on_solaris = xyes; then
23438 case $gas_flag in
23439 yes) tls_as_opt="$tls_as_opt --64" ;;
23440 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23441 esac
23443 conftest_s="$conftest_s
23444 foo: .long 25
23445 .text
23446 movq %fs:0, %rax
23447 leaq foo@tlsgd(%rip), %rdi
23448 leaq foo@tlsld(%rip), %rdi
23449 leaq foo@dtpoff(%rax), %rdx
23450 movq foo@gottpoff(%rip), %rax
23451 movq \$foo@tpoff, %rax"
23453 esac
23455 ia64-*-*)
23456 conftest_s='
23457 .section ".tdata","awT",@progbits
23458 foo: data8 25
23459 .text
23460 addl r16 = @ltoff(@dtpmod(foo#)), gp
23461 addl r17 = @ltoff(@dtprel(foo#)), gp
23462 addl r18 = @ltoff(@tprel(foo#)), gp
23463 addl r19 = @dtprel(foo#), gp
23464 adds r21 = @dtprel(foo#), r13
23465 movl r23 = @dtprel(foo#)
23466 addl r20 = @tprel(foo#), gp
23467 adds r22 = @tprel(foo#), r13
23468 movl r24 = @tprel(foo#)'
23469 tls_first_major=2
23470 tls_first_minor=13
23471 tls_as_opt=--fatal-warnings
23473 microblaze*-*-*)
23474 conftest_s='
23475 .section .tdata,"awT",@progbits
23477 .word 2
23478 .text
23479 addik r5,r20,x@TLSGD
23480 addik r5,r20,x@TLSLDM'
23481 tls_first_major=2
23482 tls_first_minor=20
23483 tls_as_opt='--fatal-warnings'
23485 mips*-*-*)
23486 conftest_s='
23487 .section .tdata,"awT",@progbits
23489 .word 2
23490 .text
23491 addiu $4, $28, %tlsgd(x)
23492 addiu $4, $28, %tlsldm(x)
23493 lui $4, %dtprel_hi(x)
23494 addiu $4, $4, %dtprel_lo(x)
23495 lw $4, %gottprel(x)($28)
23496 lui $4, %tprel_hi(x)
23497 addiu $4, $4, %tprel_lo(x)'
23498 tls_first_major=2
23499 tls_first_minor=16
23500 tls_as_opt='-32 --fatal-warnings'
23502 m68k-*-*)
23503 conftest_s='
23504 .section .tdata,"awT",@progbits
23506 .word 2
23507 .text
23508 foo:
23509 move.l x@TLSGD(%a5),%a0
23510 move.l x@TLSLDM(%a5),%a0
23511 move.l x@TLSLDO(%a5),%a0
23512 move.l x@TLSIE(%a5),%a0
23513 move.l x@TLSLE(%a5),%a0'
23514 tls_first_major=2
23515 tls_first_minor=19
23516 tls_as_opt='--fatal-warnings'
23518 nios2-*-*)
23519 conftest_s='
23520 .section ".tdata","awT",@progbits'
23521 tls_first_major=2
23522 tls_first_minor=23
23523 tls_as_opt="--fatal-warnings"
23525 aarch64*-*-*)
23526 conftest_s='
23527 .section ".tdata","awT",%progbits
23528 foo: .long 25
23529 .text
23530 adrp x0, :tlsgd:x
23531 add x0, x0, #:tlsgd_lo12:x
23532 bl __tls_get_addr
23533 nop'
23534 tls_first_major=2
23535 tls_first_minor=20
23536 tls_as_opt='--fatal-warnings'
23538 powerpc-ibm-aix*)
23539 conftest_s='
23540 .extern __get_tpointer
23541 .toc
23542 LC..1:
23543 .tc a[TC],a[TL]@le
23544 .csect .text[PR]
23545 .tlstest:
23546 lwz 9,LC..1(2)
23547 bla __get_tpointer
23548 lwzx 3,9,3
23549 .globl a
23550 .csect a[TL],4
23552 .space 4'
23553 tls_first_major=0
23554 tls_first_minor=0
23556 powerpc64*-*-*)
23557 conftest_s='
23558 .section ".tdata","awT",@progbits
23559 .align 3
23560 ld0: .space 8
23561 ld1: .space 8
23562 x1: .space 8
23563 x2: .space 8
23564 x3: .space 8
23565 .text
23566 addi 3,2,ld0@got@tlsgd
23567 bl .__tls_get_addr
23569 addi 3,2,ld1@toc
23570 bl .__tls_get_addr
23572 addi 3,2,x1@got@tlsld
23573 bl .__tls_get_addr
23575 addi 9,3,x1@dtprel
23576 bl .__tls_get_addr
23578 addis 9,3,x2@dtprel@ha
23579 addi 9,9,x2@dtprel@l
23580 bl .__tls_get_addr
23582 ld 9,x3@got@dtprel(2)
23583 add 9,9,3
23584 bl .__tls_get_addr
23585 nop'
23586 tls_first_major=2
23587 tls_first_minor=14
23588 tls_as_opt="-a64 --fatal-warnings"
23590 powerpc*-*-*)
23591 conftest_s='
23592 .section ".tdata","awT",@progbits
23593 .align 2
23594 ld0: .space 4
23595 ld1: .space 4
23596 x1: .space 4
23597 x2: .space 4
23598 x3: .space 4
23599 .text
23600 addi 3,31,ld0@got@tlsgd
23601 bl __tls_get_addr
23602 addi 3,31,x1@got@tlsld
23603 bl __tls_get_addr
23604 addi 9,3,x1@dtprel
23605 addis 9,3,x2@dtprel@ha
23606 addi 9,9,x2@dtprel@l
23607 lwz 9,x3@got@tprel(31)
23608 add 9,9,x@tls
23609 addi 9,2,x1@tprel
23610 addis 9,2,x2@tprel@ha
23611 addi 9,9,x2@tprel@l'
23612 tls_first_major=2
23613 tls_first_minor=14
23614 tls_as_opt="-a32 --fatal-warnings"
23616 s390-*-*)
23617 conftest_s='
23618 .section ".tdata","awT",@progbits
23619 foo: .long 25
23620 .text
23621 .long foo@TLSGD
23622 .long foo@TLSLDM
23623 .long foo@DTPOFF
23624 .long foo@NTPOFF
23625 .long foo@GOTNTPOFF
23626 .long foo@INDNTPOFF
23627 l %r1,foo@GOTNTPOFF(%r12)
23628 l %r1,0(%r1):tls_load:foo
23629 bas %r14,0(%r1,%r13):tls_gdcall:foo
23630 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23631 tls_first_major=2
23632 tls_first_minor=14
23633 tls_as_opt="-m31 --fatal-warnings"
23635 s390x-*-*)
23636 conftest_s='
23637 .section ".tdata","awT",@progbits
23638 foo: .long 25
23639 .text
23640 .quad foo@TLSGD
23641 .quad foo@TLSLDM
23642 .quad foo@DTPOFF
23643 .quad foo@NTPOFF
23644 .quad foo@GOTNTPOFF
23645 lg %r1,foo@GOTNTPOFF(%r12)
23646 larl %r1,foo@INDNTPOFF
23647 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23648 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23649 tls_first_major=2
23650 tls_first_minor=14
23651 tls_as_opt="-m64 -Aesame --fatal-warnings"
23653 sh-*-* | sh[34]-*-*)
23654 conftest_s='
23655 .section ".tdata","awT",@progbits
23656 foo: .long 25
23657 .text
23658 .long foo@TLSGD
23659 .long foo@TLSLDM
23660 .long foo@DTPOFF
23661 .long foo@GOTTPOFF
23662 .long foo@TPOFF'
23663 tls_first_major=2
23664 tls_first_minor=13
23665 tls_as_opt=--fatal-warnings
23667 sparc*-*-*)
23668 case "$target" in
23669 sparc*-sun-solaris2.*)
23670 on_solaris=yes
23673 on_solaris=no
23675 esac
23676 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23677 conftest_s='
23678 .section ".tdata",#alloc,#write,#tls'
23679 tls_first_major=0
23680 tls_first_minor=0
23681 else
23682 conftest_s='
23683 .section ".tdata","awT",@progbits'
23684 tls_first_major=2
23685 tls_first_minor=14
23686 tls_as_opt="-32 --fatal-warnings"
23688 conftest_s="$conftest_s
23689 foo: .long 25
23690 .text
23691 sethi %tgd_hi22(foo), %o0
23692 add %o0, %tgd_lo10(foo), %o1
23693 add %l7, %o1, %o0, %tgd_add(foo)
23694 call __tls_get_addr, %tgd_call(foo)
23695 sethi %tldm_hi22(foo), %l1
23696 add %l1, %tldm_lo10(foo), %l2
23697 add %l7, %l2, %o0, %tldm_add(foo)
23698 call __tls_get_addr, %tldm_call(foo)
23699 sethi %tldo_hix22(foo), %l3
23700 xor %l3, %tldo_lox10(foo), %l4
23701 add %o0, %l4, %l5, %tldo_add(foo)
23702 sethi %tie_hi22(foo), %o3
23703 add %o3, %tie_lo10(foo), %o3
23704 ld [%l7 + %o3], %o2, %tie_ld(foo)
23705 add %g7, %o2, %o4, %tie_add(foo)
23706 sethi %tle_hix22(foo), %l1
23707 xor %l1, %tle_lox10(foo), %o5
23708 ld [%g7 + %o5], %o1"
23710 tilepro*-*-*)
23711 conftest_s='
23712 .section ".tdata","awT",@progbits
23713 foo: .long 25
23714 .text
23715 addli r0, zero, tls_gd(foo)
23716 auli r0, zero, tls_gd_ha16(foo)
23717 addli r0, r0, tls_gd_lo16(foo)
23718 jal __tls_get_addr
23719 addli r0, zero, tls_ie(foo)
23720 auli r0, r0, tls_ie_ha16(foo)
23721 addli r0, r0, tls_ie_lo16(foo)'
23722 tls_first_major=2
23723 tls_first_minor=22
23724 tls_as_opt="--fatal-warnings"
23726 tilegx*-*-*)
23727 conftest_s='
23728 .section ".tdata","awT",@progbits
23729 foo: .long 25
23730 .text
23731 shl16insli r0, zero, hw0_last_tls_gd(foo)
23732 shl16insli r0, zero, hw1_last_tls_gd(foo)
23733 shl16insli r0, r0, hw0_tls_gd(foo)
23734 jal __tls_get_addr
23735 shl16insli r0, zero, hw1_last_tls_ie(foo)
23736 shl16insli r0, r0, hw0_tls_ie(foo)'
23737 tls_first_major=2
23738 tls_first_minor=22
23739 tls_as_opt="--fatal-warnings"
23741 xtensa*-*-*)
23742 conftest_s='
23743 .section ".tdata","awT",@progbits
23744 foo: .long 25
23745 .text
23746 movi a8, foo@TLSFUNC
23747 movi a10, foo@TLSARG
23748 callx8.tls a8, foo@TLSCALL'
23749 tls_first_major=2
23750 tls_first_minor=19
23752 esac
23753 set_have_as_tls=no
23754 if test "x$enable_tls" = xno ; then
23755 : # TLS explicitly disabled.
23756 elif test "x$enable_tls" = xyes ; then
23757 set_have_as_tls=yes # TLS explicitly enabled.
23758 elif test -z "$tls_first_major"; then
23759 : # If we don't have a check, assume no support.
23760 else
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23762 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23763 if test "${gcc_cv_as_tls+set}" = set; then :
23764 $as_echo_n "(cached) " >&6
23765 else
23766 gcc_cv_as_tls=no
23767 if test $in_tree_gas = yes; then
23768 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23769 then gcc_cv_as_tls=yes
23771 elif test x$gcc_cv_as != x; then
23772 $as_echo "$conftest_s" > conftest.s
23773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23778 test $ac_status = 0; }; }
23779 then
23780 gcc_cv_as_tls=yes
23781 else
23782 echo "configure: failed program was" >&5
23783 cat conftest.s >&5
23785 rm -f conftest.o conftest.s
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23789 $as_echo "$gcc_cv_as_tls" >&6; }
23790 if test $gcc_cv_as_tls = yes; then
23791 set_have_as_tls=yes
23794 if test $set_have_as_tls = yes ; then
23796 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23800 # Target-specific assembler checks.
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23803 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23804 gcc_cv_ld_static_dynamic=no
23805 gcc_cv_ld_static_option='-Bstatic'
23806 gcc_cv_ld_dynamic_option='-Bdynamic'
23807 if test $in_tree_ld = yes ; then
23808 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
23809 gcc_cv_ld_static_dynamic=yes
23811 elif test x$gcc_cv_ld != x; then
23812 # Check if linker supports -Bstatic/-Bdynamic option
23813 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23814 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23815 gcc_cv_ld_static_dynamic=yes
23816 else
23817 case "$target" in
23818 # AIX ld uses -b flags
23819 *-*-aix4.[23]* | *-*-aix[5-9]*)
23820 gcc_cv_ld_static_dynamic=yes
23821 gcc_cv_ld_static_option="-bstatic"
23822 gcc_cv_ld_dynamic_option="-bdynamic"
23824 # HP-UX ld uses -a flags to select between shared and archive.
23825 *-*-hpux*)
23826 if test x"$gnu_ld" = xno; then
23827 gcc_cv_ld_static_dynamic=yes
23828 gcc_cv_ld_static_option="-aarchive_shared"
23829 gcc_cv_ld_dynamic_option="-adefault"
23832 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23833 *-*-solaris2*)
23834 gcc_cv_ld_static_dynamic=yes
23836 esac
23839 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23841 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23844 cat >>confdefs.h <<_ACEOF
23845 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23846 _ACEOF
23849 cat >>confdefs.h <<_ACEOF
23850 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23851 _ACEOF
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23855 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23857 if test x"$demangler_in_ld" = xyes; then
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23859 $as_echo_n "checking linker --demangle support... " >&6; }
23860 gcc_cv_ld_demangle=no
23861 if test $in_tree_ld = yes; then
23862 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 \
23863 gcc_cv_ld_demangle=yes
23865 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23866 # Check if the GNU linker supports --demangle option
23867 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23868 gcc_cv_ld_demangle=yes
23871 if test x"$gcc_cv_ld_demangle" = xyes; then
23873 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23877 $as_echo "$gcc_cv_ld_demangle" >&6; }
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23881 $as_echo_n "checking linker plugin support... " >&6; }
23882 gcc_cv_lto_plugin=0
23883 if test -f liblto_plugin.la; then
23884 save_ld_ver="$ld_ver"
23885 save_ld_vers_major="$ld_vers_major"
23886 save_ld_vers_minor="$ld_vers_minor"
23887 save_ld_is_gold="$ld_is_gold"
23889 ld_is_gold=no
23891 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23892 ld_ver="GNU ld"
23893 # FIXME: ld_is_gold?
23894 ld_vers_major="$gcc_cv_gld_major_version"
23895 ld_vers_minor="$gcc_cv_gld_minor_version"
23896 else
23897 # Determine plugin linker version.
23898 # FIXME: Partial duplicate from above, generalize.
23899 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23900 if echo "$ld_ver" | grep GNU > /dev/null; then
23901 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23902 ld_is_gold=yes
23903 ld_vers=`echo $ld_ver | sed -n \
23904 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23905 else
23906 ld_vers=`echo $ld_ver | sed -n \
23907 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23909 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23910 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23914 # Determine plugin support.
23915 if echo "$ld_ver" | grep GNU > /dev/null; then
23916 # Require GNU ld or gold 2.21+ for plugin support by default.
23917 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23918 gcc_cv_lto_plugin=2
23919 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23920 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23921 gcc_cv_lto_plugin=1
23925 ld_ver="$save_ld_ver"
23926 ld_vers_major="$save_ld_vers_major"
23927 ld_vers_minor="$save_ld_vers_minor"
23928 ld_is_gold="$save_ld_is_gold"
23931 cat >>confdefs.h <<_ACEOF
23932 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23933 _ACEOF
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23936 $as_echo "$gcc_cv_lto_plugin" >&6; }
23938 case "$target" in
23939 aarch64*-*-*)
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23941 $as_echo_n "checking assembler for -mabi option... " >&6; }
23942 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23943 $as_echo_n "(cached) " >&6
23944 else
23945 gcc_cv_as_aarch64_mabi=no
23946 if test x$gcc_cv_as != x; then
23947 $as_echo '.text' > conftest.s
23948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950 (eval $ac_try) 2>&5
23951 ac_status=$?
23952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953 test $ac_status = 0; }; }
23954 then
23955 gcc_cv_as_aarch64_mabi=yes
23956 else
23957 echo "configure: failed program was" >&5
23958 cat conftest.s >&5
23960 rm -f conftest.o conftest.s
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23964 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23966 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23968 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23970 else
23971 if test x$with_abi = xilp32; then
23972 as_fn_error "Assembler does not support -mabi=ilp32.\
23973 Upgrade the Assembler." "$LINENO" 5
23975 if test x"$with_multilib_list" = xdefault; then
23976 TM_MULTILIB_CONFIG=lp64
23977 else
23978 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23979 for aarch64_multilib in ${aarch64_multilibs}; do
23980 case ${aarch64_multilib} in
23981 ilp32)
23982 as_fn_error "Assembler does not support -mabi=ilp32.\
23983 Upgrade the Assembler." "$LINENO" 5
23987 esac
23988 done
23991 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
23992 # Check whether --enable-fix-cortex-a53-835769 was given.
23993 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
23994 enableval=$enable_fix_cortex_a53_835769;
23995 case $enableval in
23996 yes)
23997 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24002 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24003 Valid choices are 'yes' and 'no'." "$LINENO" 5
24006 esac
24012 # All TARGET_ABI_OSF targets.
24013 alpha*-*-linux* | alpha*-*-*bsd*)
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24015 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24016 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24018 else
24019 gcc_cv_as_alpha_explicit_relocs=no
24020 if test $in_tree_gas = yes; then
24021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24022 then gcc_cv_as_alpha_explicit_relocs=yes
24024 elif test x$gcc_cv_as != x; then
24025 $as_echo ' .set nomacro
24026 .text
24027 extbl $3, $2, $3 !lituse_bytoff!1
24028 ldq $2, a($29) !literal!1
24029 ldq $4, b($29) !literal!2
24030 ldq_u $3, 0($2) !lituse_base!1
24031 ldq $27, f($29) !literal!5
24032 jsr $26, ($27), f !lituse_jsr!5
24033 ldah $29, 0($26) !gpdisp!3
24034 lda $0, c($29) !gprel
24035 ldah $1, d($29) !gprelhigh
24036 lda $1, d($1) !gprellow
24037 lda $29, 0($29) !gpdisp!3' > conftest.s
24038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24040 (eval $ac_try) 2>&5
24041 ac_status=$?
24042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24043 test $ac_status = 0; }; }
24044 then
24045 gcc_cv_as_alpha_explicit_relocs=yes
24046 else
24047 echo "configure: failed program was" >&5
24048 cat conftest.s >&5
24050 rm -f conftest.o conftest.s
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24054 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24055 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24057 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24061 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24062 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24063 $as_echo_n "(cached) " >&6
24064 else
24065 gcc_cv_as_alpha_jsrdirect_relocs=no
24066 if test $in_tree_gas = yes; then
24067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24068 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24070 elif test x$gcc_cv_as != x; then
24071 $as_echo ' .set nomacro
24072 .text
24073 ldq $27, a($29) !literal!1
24074 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24077 (eval $ac_try) 2>&5
24078 ac_status=$?
24079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24080 test $ac_status = 0; }; }
24081 then
24082 gcc_cv_as_alpha_jsrdirect_relocs=yes
24083 else
24084 echo "configure: failed program was" >&5
24085 cat conftest.s >&5
24087 rm -f conftest.o conftest.s
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24091 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24092 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24094 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24099 cris-*-*)
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24101 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24102 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24103 $as_echo_n "(cached) " >&6
24104 else
24105 gcc_cv_as_cris_no_mul_bug=no
24106 if test $in_tree_gas = yes; then
24107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24108 then gcc_cv_as_cris_no_mul_bug=yes
24110 elif test x$gcc_cv_as != x; then
24111 $as_echo '.text' > conftest.s
24112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24114 (eval $ac_try) 2>&5
24115 ac_status=$?
24116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24117 test $ac_status = 0; }; }
24118 then
24119 gcc_cv_as_cris_no_mul_bug=yes
24120 else
24121 echo "configure: failed program was" >&5
24122 cat conftest.s >&5
24124 rm -f conftest.o conftest.s
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24128 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24129 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24131 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24136 sparc*-*-*)
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24138 $as_echo_n "checking assembler for .register... " >&6; }
24139 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24140 $as_echo_n "(cached) " >&6
24141 else
24142 gcc_cv_as_sparc_register_op=no
24143 if test x$gcc_cv_as != x; then
24144 $as_echo '.register %g2, #scratch' > conftest.s
24145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24150 test $ac_status = 0; }; }
24151 then
24152 gcc_cv_as_sparc_register_op=yes
24153 else
24154 echo "configure: failed program was" >&5
24155 cat conftest.s >&5
24157 rm -f conftest.o conftest.s
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24161 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24162 if test $gcc_cv_as_sparc_register_op = yes; then
24164 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24169 $as_echo_n "checking assembler for #nobits... " >&6; }
24170 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24171 $as_echo_n "(cached) " >&6
24172 else
24173 gcc_cv_as_sparc_nobits=no
24174 if test x$gcc_cv_as != x; then
24175 $as_echo '.section "nobits",#alloc,#write,#nobits
24176 .section "progbits",#alloc,#write,#progbits' > conftest.s
24177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179 (eval $ac_try) 2>&5
24180 ac_status=$?
24181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182 test $ac_status = 0; }; }
24183 then
24184 gcc_cv_as_sparc_nobits=yes
24185 else
24186 echo "configure: failed program was" >&5
24187 cat conftest.s >&5
24189 rm -f conftest.o conftest.s
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24193 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24196 cat >>confdefs.h <<_ACEOF
24197 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24198 _ACEOF
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24202 $as_echo_n "checking assembler for -relax option... " >&6; }
24203 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24204 $as_echo_n "(cached) " >&6
24205 else
24206 gcc_cv_as_sparc_relax=no
24207 if test x$gcc_cv_as != x; then
24208 $as_echo '.text' > conftest.s
24209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24212 ac_status=$?
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24215 then
24216 gcc_cv_as_sparc_relax=yes
24217 else
24218 echo "configure: failed program was" >&5
24219 cat conftest.s >&5
24221 rm -f conftest.o conftest.s
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24225 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24226 if test $gcc_cv_as_sparc_relax = yes; then
24228 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24233 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24234 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237 gcc_cv_as_sparc_gotdata_op=no
24238 if test x$gcc_cv_as != x; then
24239 $as_echo '.text
24240 .align 4
24241 foo:
24243 bar:
24244 sethi %gdop_hix22(foo), %g1
24245 xor %g1, %gdop_lox10(foo), %g1
24246 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24252 test $ac_status = 0; }; }
24253 then
24254 if test x$gcc_cv_ld != x \
24255 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24256 if test x$gcc_cv_objdump != x; then
24257 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24258 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24259 gcc_cv_as_sparc_gotdata_op=no
24260 else
24261 gcc_cv_as_sparc_gotdata_op=yes
24265 rm -f conftest
24266 else
24267 echo "configure: failed program was" >&5
24268 cat conftest.s >&5
24270 rm -f conftest.o conftest.s
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24274 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24275 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24277 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24282 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24283 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24285 else
24286 gcc_cv_as_sparc_ua_pcrel=no
24287 if test x$gcc_cv_as != x; then
24288 $as_echo '.text
24289 foo:
24291 .data
24292 .align 4
24293 .byte 0
24294 .uaword %r_disp32(foo)' > conftest.s
24295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24297 (eval $ac_try) 2>&5
24298 ac_status=$?
24299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24300 test $ac_status = 0; }; }
24301 then
24302 if test x$gcc_cv_ld != x \
24303 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24304 gcc_cv_as_sparc_ua_pcrel=yes
24306 rm -f conftest
24307 else
24308 echo "configure: failed program was" >&5
24309 cat conftest.s >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24315 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24316 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24318 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24322 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24323 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24324 $as_echo_n "(cached) " >&6
24325 else
24326 gcc_cv_as_sparc_ua_pcrel_hidden=no
24327 if test x$gcc_cv_as != x; then
24328 $as_echo '.data
24329 .align 4
24330 .byte 0x31
24331 .uaword %r_disp32(foo)
24332 .byte 0x32, 0x33, 0x34
24333 .global foo
24334 .hidden foo
24335 foo:
24336 .skip 4' > conftest.s
24337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24340 ac_status=$?
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24343 then
24344 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24345 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24346 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24347 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24348 if $gcc_cv_objdump -R conftest 2> /dev/null \
24349 | grep 'DISP32' > /dev/null 2>&1; then
24351 else
24352 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24355 rm -f conftest
24356 else
24357 echo "configure: failed program was" >&5
24358 cat conftest.s >&5
24360 rm -f conftest.o conftest.s
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24364 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24365 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24367 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24371 fi # unaligned pcrel relocs
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24374 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24375 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24376 $as_echo_n "(cached) " >&6
24377 else
24378 gcc_cv_as_sparc_offsetable_lo10=no
24379 if test x$gcc_cv_as != x; then
24380 $as_echo '.text
24381 or %g1, %lo(ab) + 12, %g1
24382 or %g1, %lo(ab + 12), %g1' > conftest.s
24383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24389 then
24390 if test x$gcc_cv_objdump != x \
24391 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24392 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24393 gcc_cv_as_sparc_offsetable_lo10=yes
24395 else
24396 echo "configure: failed program was" >&5
24397 cat conftest.s >&5
24399 rm -f conftest.o conftest.s
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24403 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24404 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24406 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24411 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24412 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24414 else
24415 gcc_cv_as_sparc_fmaf=no
24416 if test x$gcc_cv_as != x; then
24417 $as_echo '.text
24418 .register %g2, #scratch
24419 .register %g3, #scratch
24420 .align 4
24421 fmaddd %f0, %f2, %f4, %f6
24422 addxccc %g1, %g2, %g3
24423 fsrl32 %f2, %f4, %f8
24424 fnaddd %f10, %f12, %f14' > conftest.s
24425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24430 test $ac_status = 0; }; }
24431 then
24432 gcc_cv_as_sparc_fmaf=yes
24433 else
24434 echo "configure: failed program was" >&5
24435 cat conftest.s >&5
24437 rm -f conftest.o conftest.s
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24441 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24442 if test $gcc_cv_as_sparc_fmaf = yes; then
24444 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24449 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24450 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24452 else
24453 gcc_cv_as_sparc_sparc4=no
24454 if test x$gcc_cv_as != x; then
24455 $as_echo '.text
24456 .register %g2, #scratch
24457 .register %g3, #scratch
24458 .align 4
24459 cxbe %g2, %g3, 1f
24460 1: cwbneg %g2, %g3, 1f
24461 1: sha1
24463 aes_kexpand0 %f4, %f6, %f8
24464 des_round %f38, %f40, %f42, %f44
24465 camellia_f %f54, %f56, %f58, %f60
24466 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; }
24473 then
24474 gcc_cv_as_sparc_sparc4=yes
24475 else
24476 echo "configure: failed program was" >&5
24477 cat conftest.s >&5
24479 rm -f conftest.o conftest.s
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24483 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24484 if test $gcc_cv_as_sparc_sparc4 = yes; then
24486 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24491 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24492 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24494 else
24495 gcc_cv_as_sparc_leon=no
24496 if test x$gcc_cv_as != x; then
24497 $as_echo '.text
24498 .register %g2, #scratch
24499 .register %g3, #scratch
24500 .align 4
24501 smac %g2, %g3, %g1
24502 umac %g2, %g3, %g1
24503 casa [%g2] 0xb, %g3, %g1' > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24510 then
24511 gcc_cv_as_sparc_leon=yes
24512 else
24513 echo "configure: failed program was" >&5
24514 cat conftest.s >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24520 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24521 if test $gcc_cv_as_sparc_leon = yes; then
24523 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24528 i[34567]86-*-* | x86_64-*-*)
24529 case $target_os in
24530 cygwin*)
24531 # Full C++ conformance when using a shared libstdc++-v3 requires some
24532 # support from the Cygwin DLL, which in more recent versions exports
24533 # wrappers to aid in interposing and redirecting operators new, delete,
24534 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24535 # are configuring for a version of Cygwin that exports the wrappers.
24536 if test x$host = x$target && test x$host_cpu = xi686; then
24537 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24538 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24539 gcc_ac_cygwin_dll_wrappers=yes
24540 else
24541 gcc_ac_cygwin_dll_wrappers=no
24544 else
24545 # Can't check presence of libc functions during cross-compile, so
24546 # we just have to assume we're building for an up-to-date target.
24547 gcc_ac_cygwin_dll_wrappers=yes
24550 cat >>confdefs.h <<_ACEOF
24551 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24552 _ACEOF
24554 esac
24555 case $target_os in
24556 cygwin* | pe | mingw32* | interix*)
24557 # Recent binutils allows the three-operand form of ".comm" on PE. This
24558 # definition is used unconditionally to initialise the default state of
24559 # the target option variable that governs usage of the feature.
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24561 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24562 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24564 else
24565 gcc_cv_as_comm_has_align=no
24566 if test $in_tree_gas = yes; then
24567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24568 then gcc_cv_as_comm_has_align=yes
24570 elif test x$gcc_cv_as != x; then
24571 $as_echo '.comm foo,1,32' > conftest.s
24572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24574 (eval $ac_try) 2>&5
24575 ac_status=$?
24576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577 test $ac_status = 0; }; }
24578 then
24579 gcc_cv_as_comm_has_align=yes
24580 else
24581 echo "configure: failed program was" >&5
24582 cat conftest.s >&5
24584 rm -f conftest.o conftest.s
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24588 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24591 cat >>confdefs.h <<_ACEOF
24592 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24593 _ACEOF
24595 # Used for DWARF 2 in PE
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24597 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24598 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_ix86_pe_secrel32=no
24602 if test $in_tree_gas = yes; then
24603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24604 then gcc_cv_as_ix86_pe_secrel32=yes
24606 elif test x$gcc_cv_as != x; then
24607 $as_echo '.text
24608 foo: nop
24609 .data
24610 .secrel32 foo' > conftest.s
24611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24617 then
24618 if test x$gcc_cv_ld != x \
24619 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24620 gcc_cv_as_ix86_pe_secrel32=yes
24622 rm -f conftest
24623 else
24624 echo "configure: failed program was" >&5
24625 cat conftest.s >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24631 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24632 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24634 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24637 # Test if the assembler supports the extended form of the .section
24638 # directive that specifies section alignment. LTO support uses this,
24639 # but normally only after installation, so we warn but don't fail the
24640 # configure if LTO is enabled but the assembler does not support it.
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24642 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24643 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24645 else
24646 gcc_cv_as_section_has_align=no
24647 if test $in_tree_gas = yes; then
24648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24649 then gcc_cv_as_section_has_align=yes
24651 elif test x$gcc_cv_as != x; then
24652 $as_echo '.section lto_test,"dr0"' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_section_has_align=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24669 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24671 if test x$gcc_cv_as_section_has_align != xyes; then
24672 case ",$enable_languages," in
24673 *,lto,*)
24674 { $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
24675 $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;}
24677 esac
24680 esac
24682 # Test if the assembler supports the section flag 'e' for specifying
24683 # an excluded section.
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24685 $as_echo_n "checking assembler for .section with e... " >&6; }
24686 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 gcc_cv_as_section_has_e=no
24690 if test $in_tree_gas = yes; then
24691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24692 then gcc_cv_as_section_has_e=yes
24694 elif test x$gcc_cv_as != x; then
24695 $as_echo '.section foo1,"e"
24696 .byte 0,0,0,0' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24704 gcc_cv_as_section_has_e=yes
24705 else
24706 echo "configure: failed program was" >&5
24707 cat conftest.s >&5
24709 rm -f conftest.o conftest.s
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24713 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24716 cat >>confdefs.h <<_ACEOF
24717 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24718 _ACEOF
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24722 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24723 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24725 else
24726 gcc_cv_as_ix86_filds=no
24727 if test x$gcc_cv_as != x; then
24728 $as_echo 'filds mem; fists mem' > conftest.s
24729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24735 then
24736 gcc_cv_as_ix86_filds=yes
24737 else
24738 echo "configure: failed program was" >&5
24739 cat conftest.s >&5
24741 rm -f conftest.o conftest.s
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24745 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24746 if test $gcc_cv_as_ix86_filds = yes; then
24748 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24753 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24754 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24756 else
24757 gcc_cv_as_ix86_fildq=no
24758 if test x$gcc_cv_as != x; then
24759 $as_echo 'fildq mem; fistpq mem' > conftest.s
24760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24762 (eval $ac_try) 2>&5
24763 ac_status=$?
24764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24765 test $ac_status = 0; }; }
24766 then
24767 gcc_cv_as_ix86_fildq=yes
24768 else
24769 echo "configure: failed program was" >&5
24770 cat conftest.s >&5
24772 rm -f conftest.o conftest.s
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24776 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24777 if test $gcc_cv_as_ix86_fildq = yes; then
24779 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24784 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24785 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24786 $as_echo_n "(cached) " >&6
24787 else
24788 gcc_cv_as_ix86_cmov_sun_syntax=no
24789 if test x$gcc_cv_as != x; then
24790 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24797 then
24798 gcc_cv_as_ix86_cmov_sun_syntax=yes
24799 else
24800 echo "configure: failed program was" >&5
24801 cat conftest.s >&5
24803 rm -f conftest.o conftest.s
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24807 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24808 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24810 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24815 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24816 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24817 $as_echo_n "(cached) " >&6
24818 else
24819 gcc_cv_as_ix86_ffreep=no
24820 if test x$gcc_cv_as != x; then
24821 $as_echo 'ffreep %st(1)' > conftest.s
24822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24828 then
24829 gcc_cv_as_ix86_ffreep=yes
24830 else
24831 echo "configure: failed program was" >&5
24832 cat conftest.s >&5
24834 rm -f conftest.o conftest.s
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24838 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24839 if test $gcc_cv_as_ix86_ffreep = yes; then
24841 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24846 $as_echo_n "checking assembler for .quad directive... " >&6; }
24847 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24848 $as_echo_n "(cached) " >&6
24849 else
24850 gcc_cv_as_ix86_quad=no
24851 if test x$gcc_cv_as != x; then
24852 $as_echo '.quad 0' > conftest.s
24853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24858 test $ac_status = 0; }; }
24859 then
24860 gcc_cv_as_ix86_quad=yes
24861 else
24862 echo "configure: failed program was" >&5
24863 cat conftest.s >&5
24865 rm -f conftest.o conftest.s
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24869 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24870 if test $gcc_cv_as_ix86_quad = yes; then
24872 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24877 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24878 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24879 $as_echo_n "(cached) " >&6
24880 else
24881 gcc_cv_as_ix86_sahf=no
24882 if test x$gcc_cv_as != x; then
24883 $as_echo '.code64
24884 sahf' > conftest.s
24885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24890 test $ac_status = 0; }; }
24891 then
24892 gcc_cv_as_ix86_sahf=yes
24893 else
24894 echo "configure: failed program was" >&5
24895 cat conftest.s >&5
24897 rm -f conftest.o conftest.s
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24901 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24902 if test $gcc_cv_as_ix86_sahf = yes; then
24904 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24909 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24910 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 gcc_cv_as_ix86_interunit_movq=no
24914 if test x$gcc_cv_as != x; then
24915 $as_echo '.code64
24916 movq %mm0, %rax
24917 movq %rax, %xmm0' > conftest.s
24918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24920 (eval $ac_try) 2>&5
24921 ac_status=$?
24922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24923 test $ac_status = 0; }; }
24924 then
24925 gcc_cv_as_ix86_interunit_movq=yes
24926 else
24927 echo "configure: failed program was" >&5
24928 cat conftest.s >&5
24930 rm -f conftest.o conftest.s
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24934 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24937 cat >>confdefs.h <<_ACEOF
24938 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24939 _ACEOF
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24943 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24944 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24945 $as_echo_n "(cached) " >&6
24946 else
24947 gcc_cv_as_ix86_hle=no
24948 if test x$gcc_cv_as != x; then
24949 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24956 then
24957 gcc_cv_as_ix86_hle=yes
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_ix86_hle" >&5
24966 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24967 if test $gcc_cv_as_ix86_hle = yes; then
24969 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24974 $as_echo_n "checking assembler for swap suffix... " >&6; }
24975 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 gcc_cv_as_ix86_swap=no
24979 if test x$gcc_cv_as != x; then
24980 $as_echo 'movl.s %esp, %ebp' > conftest.s
24981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24987 then
24988 gcc_cv_as_ix86_swap=yes
24989 else
24990 echo "configure: failed program was" >&5
24991 cat conftest.s >&5
24993 rm -f conftest.o conftest.s
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24997 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24998 if test $gcc_cv_as_ix86_swap = yes; then
25000 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25005 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25006 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25008 else
25009 gcc_cv_as_ix86_diff_sect_delta=no
25010 if test x$gcc_cv_as != x; then
25011 $as_echo '.section .rodata
25012 .L1:
25013 .long .L2-.L1
25014 .long .L3-.L1
25015 .text
25016 .L3: nop
25017 .L2: nop' > conftest.s
25018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25023 test $ac_status = 0; }; }
25024 then
25025 gcc_cv_as_ix86_diff_sect_delta=yes
25026 else
25027 echo "configure: failed program was" >&5
25028 cat conftest.s >&5
25030 rm -f conftest.o conftest.s
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25034 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25035 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25037 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25041 # These two are used unconditionally by i386.[ch]; it is to be defined
25042 # to 1 if the feature is present, 0 otherwise.
25043 as_ix86_gotoff_in_data_opt=
25044 if test x$gas = xyes; then
25045 as_ix86_gotoff_in_data_opt="--32"
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25048 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25049 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 gcc_cv_as_ix86_gotoff_in_data=no
25053 if test $in_tree_gas = yes; then
25054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25055 then gcc_cv_as_ix86_gotoff_in_data=yes
25057 elif test x$gcc_cv_as != x; then
25058 $as_echo ' .text
25059 .L0:
25061 .data
25062 .long .L0@GOTOFF' > conftest.s
25063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25068 test $ac_status = 0; }; }
25069 then
25070 gcc_cv_as_ix86_gotoff_in_data=yes
25071 else
25072 echo "configure: failed program was" >&5
25073 cat conftest.s >&5
25075 rm -f conftest.o conftest.s
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25079 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25082 cat >>confdefs.h <<_ACEOF
25083 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25084 _ACEOF
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25088 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25089 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_ix86_rep_lock_prefix=no
25093 if test x$gcc_cv_as != x; then
25094 $as_echo 'rep movsl
25095 rep ret
25096 rep nop
25097 rep bsf %ecx, %eax
25098 rep bsr %ecx, %eax
25099 lock addl %edi, (%eax,%esi)
25100 lock orl $0, (%esp)' > conftest.s
25101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25107 then
25108 gcc_cv_as_ix86_rep_lock_prefix=yes
25109 else
25110 echo "configure: failed program was" >&5
25111 cat conftest.s >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25117 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25118 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25120 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25125 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25126 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25128 else
25129 gcc_cv_as_ix86_ud2=no
25130 if test x$gcc_cv_as != x; then
25131 $as_echo 'ud2' > conftest.s
25132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25135 ac_status=$?
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; }
25138 then
25139 gcc_cv_as_ix86_ud2=yes
25140 else
25141 echo "configure: failed program was" >&5
25142 cat conftest.s >&5
25144 rm -f conftest.o conftest.s
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25148 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25149 if test $gcc_cv_as_ix86_ud2 = yes; then
25151 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25156 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25157 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25159 else
25160 gcc_cv_as_ix86_tlsgdplt=no
25161 if test x$gcc_cv_as != x; then
25162 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25169 then
25170 if test x$gcc_cv_ld != x \
25171 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25172 gcc_cv_as_ix86_tlsgdplt=yes
25174 rm -f conftest
25175 else
25176 echo "configure: failed program was" >&5
25177 cat conftest.s >&5
25179 rm -f conftest.o conftest.s
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25183 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25184 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25186 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25190 conftest_s='
25191 .section .tdata,"aw'$tls_section_flag'",@progbits
25192 tls_ld:
25193 .section .text,"ax",@progbits
25194 call tls_ld@tlsldmplt'
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25196 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25197 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25199 else
25200 gcc_cv_as_ix86_tlsldmplt=no
25201 if test x$gcc_cv_as != x; then
25202 $as_echo "$conftest_s" > conftest.s
25203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25205 (eval $ac_try) 2>&5
25206 ac_status=$?
25207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25208 test $ac_status = 0; }; }
25209 then
25210 if test x$gcc_cv_ld != x \
25211 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25212 gcc_cv_as_ix86_tlsldmplt=yes
25214 rm -f conftest
25215 else
25216 echo "configure: failed program was" >&5
25217 cat conftest.s >&5
25219 rm -f conftest.o conftest.s
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25223 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25226 cat >>confdefs.h <<_ACEOF
25227 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25228 _ACEOF
25231 # Enforce 32-bit output with gas and gld.
25232 if test x$gas = xyes; then
25233 as_ix86_tls_ldm_opt="--32"
25235 if echo "$ld_ver" | grep GNU > /dev/null; then
25236 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25237 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25238 else
25239 ld_ix86_tls_ldm_opt="-melf_i386"
25242 conftest_s='
25243 .section .text,"ax",@progbits
25244 .globl _start
25245 .type _start, @function
25246 _start:
25247 leal value@tlsldm(%ebx), %eax
25248 call ___tls_get_addr@plt
25250 .section .tdata,"aw'$tls_section_flag'",@progbits
25251 .type value, @object
25252 value:'
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25254 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25255 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25257 else
25258 gcc_cv_as_ix86_tlsldm=no
25259 if test x$gcc_cv_as != x; then
25260 $as_echo "$conftest_s" > conftest.s
25261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25263 (eval $ac_try) 2>&5
25264 ac_status=$?
25265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25266 test $ac_status = 0; }; }
25267 then
25268 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25269 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25270 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25271 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25272 gcc_cv_as_ix86_tlsldm=yes
25275 rm -f conftest
25276 else
25277 echo "configure: failed program was" >&5
25278 cat conftest.s >&5
25280 rm -f conftest.o conftest.s
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25284 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25287 cat >>confdefs.h <<_ACEOF
25288 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25289 _ACEOF
25294 ia64*-*-*)
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25296 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25297 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25299 else
25300 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25301 if test $in_tree_gas = yes; then
25302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25303 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25305 elif test x$gcc_cv_as != x; then
25306 $as_echo ' .text
25307 addl r15 = @ltoffx(x#), gp
25309 ld8.mov r16 = [r15], x#' > conftest.s
25310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25312 (eval $ac_try) 2>&5
25313 ac_status=$?
25314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25315 test $ac_status = 0; }; }
25316 then
25317 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25318 else
25319 echo "configure: failed program was" >&5
25320 cat conftest.s >&5
25322 rm -f conftest.o conftest.s
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25326 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25327 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25329 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25335 powerpc*-*-*)
25336 case $target in
25337 *-*-aix*) conftest_s=' .machine "pwr5"
25338 .csect .text[PR]
25339 mfcr 3,128';;
25340 *-*-darwin*)
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25342 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25343 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25345 else
25346 gcc_cv_as_machine_directive=no
25347 if test x$gcc_cv_as != x; then
25348 $as_echo ' .machine ppc7400' > conftest.s
25349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25355 then
25356 gcc_cv_as_machine_directive=yes
25357 else
25358 echo "configure: failed program was" >&5
25359 cat conftest.s >&5
25361 rm -f conftest.o conftest.s
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25365 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25367 if test x$gcc_cv_as_machine_directive != xyes; then
25368 echo "*** This target requires an assembler supporting \".machine\"" >&2
25369 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25370 test x$build = x$target && exit 1
25372 conftest_s=' .text
25373 mfcr r3,128';;
25374 *) conftest_s=' .machine power4
25375 .text
25376 mfcr 3,128';;
25377 esac
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25380 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25381 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25382 $as_echo_n "(cached) " >&6
25383 else
25384 gcc_cv_as_powerpc_mfcrf=no
25385 if test $in_tree_gas = yes; then
25386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25387 then gcc_cv_as_powerpc_mfcrf=yes
25389 elif test x$gcc_cv_as != x; then
25390 $as_echo "$conftest_s" > conftest.s
25391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; }
25397 then
25398 gcc_cv_as_powerpc_mfcrf=yes
25399 else
25400 echo "configure: failed program was" >&5
25401 cat conftest.s >&5
25403 rm -f conftest.o conftest.s
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25407 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25408 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25410 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25414 case $target in
25415 *-*-aix*) conftest_s=' .machine "pwr5"
25416 .csect .text[PR]
25417 popcntb 3,3';;
25418 *) conftest_s=' .machine power5
25419 .text
25420 popcntb 3,3';;
25421 esac
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25424 $as_echo_n "checking assembler for popcntb support... " >&6; }
25425 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25426 $as_echo_n "(cached) " >&6
25427 else
25428 gcc_cv_as_powerpc_popcntb=no
25429 if test $in_tree_gas = yes; then
25430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25431 then gcc_cv_as_powerpc_popcntb=yes
25433 elif test x$gcc_cv_as != x; then
25434 $as_echo "$conftest_s" > conftest.s
25435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25441 then
25442 gcc_cv_as_powerpc_popcntb=yes
25443 else
25444 echo "configure: failed program was" >&5
25445 cat conftest.s >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25451 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25452 if test $gcc_cv_as_powerpc_popcntb = yes; then
25454 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25458 case $target in
25459 *-*-aix*) conftest_s=' .machine "pwr5x"
25460 .csect .text[PR]
25461 frin 1,1';;
25462 *) conftest_s=' .machine power5
25463 .text
25464 frin 1,1';;
25465 esac
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25468 $as_echo_n "checking assembler for fp round support... " >&6; }
25469 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472 gcc_cv_as_powerpc_fprnd=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25475 then gcc_cv_as_powerpc_fprnd=yes
25477 elif test x$gcc_cv_as != x; then
25478 $as_echo "$conftest_s" > conftest.s
25479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25485 then
25486 gcc_cv_as_powerpc_fprnd=yes
25487 else
25488 echo "configure: failed program was" >&5
25489 cat conftest.s >&5
25491 rm -f conftest.o conftest.s
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25495 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25496 if test $gcc_cv_as_powerpc_fprnd = yes; then
25498 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25502 case $target in
25503 *-*-aix*) conftest_s=' .machine "pwr6"
25504 .csect .text[PR]
25505 mffgpr 1,3';;
25506 *) conftest_s=' .machine power6
25507 .text
25508 mffgpr 1,3';;
25509 esac
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25512 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25513 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25515 else
25516 gcc_cv_as_powerpc_mfpgpr=no
25517 if test $in_tree_gas = yes; then
25518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25519 then gcc_cv_as_powerpc_mfpgpr=yes
25521 elif test x$gcc_cv_as != x; then
25522 $as_echo "$conftest_s" > conftest.s
25523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25526 ac_status=$?
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; }
25529 then
25530 gcc_cv_as_powerpc_mfpgpr=yes
25531 else
25532 echo "configure: failed program was" >&5
25533 cat conftest.s >&5
25535 rm -f conftest.o conftest.s
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25539 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25540 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25542 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25546 case $target in
25547 *-*-aix*) conftest_s=' .csect .text[PR]
25548 LCF..0:
25549 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25550 *-*-darwin*)
25551 conftest_s=' .text
25552 LCF0:
25553 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25554 *) conftest_s=' .text
25555 .LCF0:
25556 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25557 esac
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25560 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25561 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25562 $as_echo_n "(cached) " >&6
25563 else
25564 gcc_cv_as_powerpc_rel16=no
25565 if test $in_tree_gas = yes; then
25566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25567 then gcc_cv_as_powerpc_rel16=yes
25569 elif test x$gcc_cv_as != x; then
25570 $as_echo "$conftest_s" > conftest.s
25571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25573 (eval $ac_try) 2>&5
25574 ac_status=$?
25575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25576 test $ac_status = 0; }; }
25577 then
25578 gcc_cv_as_powerpc_rel16=yes
25579 else
25580 echo "configure: failed program was" >&5
25581 cat conftest.s >&5
25583 rm -f conftest.o conftest.s
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25587 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25588 if test $gcc_cv_as_powerpc_rel16 = yes; then
25590 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25594 case $target in
25595 *-*-aix*) conftest_s=' .machine "pwr6"
25596 .csect .text[PR]
25597 cmpb 3,4,5';;
25598 *) conftest_s=' .machine power6
25599 .text
25600 cmpb 3,4,5';;
25601 esac
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25604 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25605 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_as_powerpc_cmpb=no
25609 if test $in_tree_gas = yes; then
25610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25611 then gcc_cv_as_powerpc_cmpb=yes
25613 elif test x$gcc_cv_as != x; then
25614 $as_echo "$conftest_s" > conftest.s
25615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25617 (eval $ac_try) 2>&5
25618 ac_status=$?
25619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25620 test $ac_status = 0; }; }
25621 then
25622 gcc_cv_as_powerpc_cmpb=yes
25623 else
25624 echo "configure: failed program was" >&5
25625 cat conftest.s >&5
25627 rm -f conftest.o conftest.s
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25631 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25632 if test $gcc_cv_as_powerpc_cmpb = yes; then
25634 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25638 case $target in
25639 *-*-aix*) conftest_s=' .machine "pwr6"
25640 .csect .text[PR]
25641 dadd 1,2,3';;
25642 *) conftest_s=' .machine power6
25643 .text
25644 dadd 1,2,3';;
25645 esac
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25648 $as_echo_n "checking assembler for decimal float support... " >&6; }
25649 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25650 $as_echo_n "(cached) " >&6
25651 else
25652 gcc_cv_as_powerpc_dfp=no
25653 if test $in_tree_gas = yes; then
25654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25655 then gcc_cv_as_powerpc_dfp=yes
25657 elif test x$gcc_cv_as != x; then
25658 $as_echo "$conftest_s" > conftest.s
25659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25665 then
25666 gcc_cv_as_powerpc_dfp=yes
25667 else
25668 echo "configure: failed program was" >&5
25669 cat conftest.s >&5
25671 rm -f conftest.o conftest.s
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25675 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25676 if test $gcc_cv_as_powerpc_dfp = yes; then
25678 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25682 case $target in
25683 *-*-aix*) conftest_s=' .machine "pwr7"
25684 .csect .text[PR]
25685 lxvd2x 1,2,3';;
25686 *) conftest_s=' .machine power7
25687 .text
25688 lxvd2x 1,2,3';;
25689 esac
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25692 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25693 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25695 else
25696 gcc_cv_as_powerpc_vsx=no
25697 if test $in_tree_gas = yes; then
25698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25699 then gcc_cv_as_powerpc_vsx=yes
25701 elif test x$gcc_cv_as != x; then
25702 $as_echo "$conftest_s" > conftest.s
25703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25709 then
25710 gcc_cv_as_powerpc_vsx=yes
25711 else
25712 echo "configure: failed program was" >&5
25713 cat conftest.s >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25719 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25720 if test $gcc_cv_as_powerpc_vsx = yes; then
25722 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25726 case $target in
25727 *-*-aix*) conftest_s=' .machine "pwr7"
25728 .csect .text[PR]
25729 popcntd 3,3';;
25730 *) conftest_s=' .machine power7
25731 .text
25732 popcntd 3,3';;
25733 esac
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25736 $as_echo_n "checking assembler for popcntd support... " >&6; }
25737 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25739 else
25740 gcc_cv_as_powerpc_popcntd=no
25741 if test $in_tree_gas = yes; then
25742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25743 then gcc_cv_as_powerpc_popcntd=yes
25745 elif test x$gcc_cv_as != x; then
25746 $as_echo "$conftest_s" > conftest.s
25747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752 test $ac_status = 0; }; }
25753 then
25754 gcc_cv_as_powerpc_popcntd=yes
25755 else
25756 echo "configure: failed program was" >&5
25757 cat conftest.s >&5
25759 rm -f conftest.o conftest.s
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25763 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25764 if test $gcc_cv_as_powerpc_popcntd = yes; then
25766 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25770 case $target in
25771 *-*-aix*) conftest_s=' .machine "pwr8"
25772 .csect .text[PR]';;
25773 *) conftest_s=' .machine power8
25774 .text';;
25775 esac
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25778 $as_echo_n "checking assembler for power8 support... " >&6; }
25779 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25780 $as_echo_n "(cached) " >&6
25781 else
25782 gcc_cv_as_powerpc_power8=no
25783 if test $in_tree_gas = yes; then
25784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25785 then gcc_cv_as_powerpc_power8=yes
25787 elif test x$gcc_cv_as != x; then
25788 $as_echo "$conftest_s" > conftest.s
25789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25791 (eval $ac_try) 2>&5
25792 ac_status=$?
25793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25794 test $ac_status = 0; }; }
25795 then
25796 gcc_cv_as_powerpc_power8=yes
25797 else
25798 echo "configure: failed program was" >&5
25799 cat conftest.s >&5
25801 rm -f conftest.o conftest.s
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25805 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25806 if test $gcc_cv_as_powerpc_power8 = yes; then
25808 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25812 case $target in
25813 *-*-aix*) conftest_s=' .csect .text[PR]
25814 lwsync';;
25815 *) conftest_s=' .text
25816 lwsync';;
25817 esac
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25820 $as_echo_n "checking assembler for lwsync support... " >&6; }
25821 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25822 $as_echo_n "(cached) " >&6
25823 else
25824 gcc_cv_as_powerpc_lwsync=no
25825 if test $in_tree_gas = yes; then
25826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25827 then gcc_cv_as_powerpc_lwsync=yes
25829 elif test x$gcc_cv_as != x; then
25830 $as_echo "$conftest_s" > conftest.s
25831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25837 then
25838 gcc_cv_as_powerpc_lwsync=yes
25839 else
25840 echo "configure: failed program was" >&5
25841 cat conftest.s >&5
25843 rm -f conftest.o conftest.s
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25847 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25848 if test $gcc_cv_as_powerpc_lwsync = yes; then
25850 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25854 case $target in
25855 *-*-aix*) conftest_s=' .machine "476"
25856 .csect .text[PR]
25857 dci 0';;
25858 *) conftest_s=' .machine "476"
25859 .text
25860 dci 0';;
25861 esac
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25864 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25865 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25866 $as_echo_n "(cached) " >&6
25867 else
25868 gcc_cv_as_powerpc_dci=no
25869 if test $in_tree_gas = yes; then
25870 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25871 then gcc_cv_as_powerpc_dci=yes
25873 elif test x$gcc_cv_as != x; then
25874 $as_echo "$conftest_s" > conftest.s
25875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25877 (eval $ac_try) 2>&5
25878 ac_status=$?
25879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25880 test $ac_status = 0; }; }
25881 then
25882 gcc_cv_as_powerpc_dci=yes
25883 else
25884 echo "configure: failed program was" >&5
25885 cat conftest.s >&5
25887 rm -f conftest.o conftest.s
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25891 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25892 if test $gcc_cv_as_powerpc_dci = yes; then
25894 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25899 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25900 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25901 $as_echo_n "(cached) " >&6
25902 else
25903 gcc_cv_as_powerpc_gnu_attribute=no
25904 if test $in_tree_gas = yes; then
25905 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25906 then gcc_cv_as_powerpc_gnu_attribute=yes
25908 elif test x$gcc_cv_as != x; then
25909 $as_echo '.gnu_attribute 4,1' > conftest.s
25910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25912 (eval $ac_try) 2>&5
25913 ac_status=$?
25914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25915 test $ac_status = 0; }; }
25916 then
25917 gcc_cv_as_powerpc_gnu_attribute=yes
25918 else
25919 echo "configure: failed program was" >&5
25920 cat conftest.s >&5
25922 rm -f conftest.o conftest.s
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25926 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25927 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25929 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25934 $as_echo_n "checking assembler for tls marker support... " >&6; }
25935 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25936 $as_echo_n "(cached) " >&6
25937 else
25938 gcc_cv_as_powerpc_tls_markers=no
25939 if test $in_tree_gas = yes; then
25940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25941 then gcc_cv_as_powerpc_tls_markers=yes
25943 elif test x$gcc_cv_as != x; then
25944 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950 test $ac_status = 0; }; }
25951 then
25952 gcc_cv_as_powerpc_tls_markers=yes
25953 else
25954 echo "configure: failed program was" >&5
25955 cat conftest.s >&5
25957 rm -f conftest.o conftest.s
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25961 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25962 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25964 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25968 case $target in
25969 *-*-aix*)
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25971 $as_echo_n "checking assembler for .ref support... " >&6; }
25972 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25974 else
25975 gcc_cv_as_aix_ref=no
25976 if test $in_tree_gas = yes; then
25977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25978 then gcc_cv_as_aix_ref=yes
25980 elif test x$gcc_cv_as != x; then
25981 $as_echo ' .csect stuff[rw]
25982 stuff:
25983 .long 1
25984 .extern sym
25985 .ref sym
25986 ' > conftest.s
25987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25989 (eval $ac_try) 2>&5
25990 ac_status=$?
25991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25992 test $ac_status = 0; }; }
25993 then
25994 gcc_cv_as_aix_ref=yes
25995 else
25996 echo "configure: failed program was" >&5
25997 cat conftest.s >&5
25999 rm -f conftest.o conftest.s
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26003 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26004 if test $gcc_cv_as_aix_ref = yes; then
26006 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26010 esac
26013 mips*-*-*)
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26015 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26016 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26017 $as_echo_n "(cached) " >&6
26018 else
26019 gcc_cv_as_mips_explicit_relocs=no
26020 if test $in_tree_gas = yes; then
26021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26022 then gcc_cv_as_mips_explicit_relocs=yes
26024 elif test x$gcc_cv_as != x; then
26025 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031 test $ac_status = 0; }; }
26032 then
26033 gcc_cv_as_mips_explicit_relocs=yes
26034 else
26035 echo "configure: failed program was" >&5
26036 cat conftest.s >&5
26038 rm -f conftest.o conftest.s
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26042 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26043 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26044 if test x$target_cpu_default = x
26045 then target_cpu_default=MASK_EXPLICIT_RELOCS
26046 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26050 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26051 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 gcc_cv_as_mips_no_shared=no
26055 if test $in_tree_gas = yes; then
26056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26057 then gcc_cv_as_mips_no_shared=yes
26059 elif test x$gcc_cv_as != x; then
26060 $as_echo 'nop' > conftest.s
26061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26067 then
26068 gcc_cv_as_mips_no_shared=yes
26069 else
26070 echo "configure: failed program was" >&5
26071 cat conftest.s >&5
26073 rm -f conftest.o conftest.s
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26077 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26078 if test $gcc_cv_as_mips_no_shared = yes; then
26080 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26085 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26086 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26087 $as_echo_n "(cached) " >&6
26088 else
26089 gcc_cv_as_mips_gnu_attribute=no
26090 if test $in_tree_gas = yes; then
26091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26092 then gcc_cv_as_mips_gnu_attribute=yes
26094 elif test x$gcc_cv_as != x; then
26095 $as_echo '.gnu_attribute 4,1' > conftest.s
26096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26098 (eval $ac_try) 2>&5
26099 ac_status=$?
26100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26101 test $ac_status = 0; }; }
26102 then
26103 gcc_cv_as_mips_gnu_attribute=yes
26104 else
26105 echo "configure: failed program was" >&5
26106 cat conftest.s >&5
26108 rm -f conftest.o conftest.s
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26112 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26113 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26115 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26120 $as_echo_n "checking assembler for .micromips support... " >&6; }
26121 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26122 $as_echo_n "(cached) " >&6
26123 else
26124 gcc_cv_as_micromips_support=no
26125 if test x$gcc_cv_as != x; then
26126 $as_echo '.set micromips' > conftest.s
26127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_micromips_support=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_micromips_support" >&5
26143 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26144 if test $gcc_cv_as_micromips_support = yes; then
26146 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26151 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26152 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26153 $as_echo_n "(cached) " >&6
26154 else
26155 gcc_cv_as_mips_dtprelword=no
26156 if test $in_tree_gas = yes; then
26157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26158 then gcc_cv_as_mips_dtprelword=yes
26160 elif test x$gcc_cv_as != x; then
26161 $as_echo '.section .tdata,"awT",@progbits
26163 .word 2
26164 .text
26165 .dtprelword x+0x8000' > conftest.s
26166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26172 then
26173 gcc_cv_as_mips_dtprelword=yes
26174 else
26175 echo "configure: failed program was" >&5
26176 cat conftest.s >&5
26178 rm -f conftest.o conftest.s
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26182 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26183 if test $gcc_cv_as_mips_dtprelword = yes; then
26185 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26190 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26191 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26192 $as_echo_n "(cached) " >&6
26193 else
26194 gcc_cv_as_mips_dspr1_mult=no
26195 if test x$gcc_cv_as != x; then
26196 $as_echo ' .set mips32r2
26197 .set nodspr2
26198 .set dsp
26199 madd $ac3,$4,$5
26200 maddu $ac3,$4,$5
26201 msub $ac3,$4,$5
26202 msubu $ac3,$4,$5
26203 mult $ac3,$4,$5
26204 multu $ac3,$4,$5' > conftest.s
26205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26207 (eval $ac_try) 2>&5
26208 ac_status=$?
26209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26210 test $ac_status = 0; }; }
26211 then
26212 gcc_cv_as_mips_dspr1_mult=yes
26213 else
26214 echo "configure: failed program was" >&5
26215 cat conftest.s >&5
26217 rm -f conftest.o conftest.s
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26221 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26222 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26224 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26229 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26230 gcc_cv_as_ld_jalr_reloc=no
26231 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26232 if test $in_tree_ld = yes ; then
26233 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 \
26234 && test $in_tree_ld_is_elf = yes; then
26235 gcc_cv_as_ld_jalr_reloc=yes
26237 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26238 echo ' .ent x' > conftest.s
26239 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26240 echo ' lw $25,%call16(y)($28)' >> conftest.s
26241 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26242 echo '1: jalr $25' >> conftest.s
26243 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26244 echo '1: jalr $25' >> conftest.s
26245 echo ' .end x' >> conftest.s
26246 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26247 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26248 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26249 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26250 gcc_cv_as_ld_jalr_reloc=yes
26253 rm -f conftest.*
26256 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26257 if test x$target_cpu_default = x; then
26258 target_cpu_default=MASK_RELAX_PIC_CALLS
26259 else
26260 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26264 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26267 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26268 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26269 $as_echo_n "(cached) " >&6
26270 else
26271 gcc_cv_ld_mips_personality_relaxation=no
26272 if test $in_tree_ld = yes ; then
26273 if test "$gcc_cv_gld_major_version" -eq 2 \
26274 -a "$gcc_cv_gld_minor_version" -ge 21 \
26275 -o "$gcc_cv_gld_major_version" -gt 2; then
26276 gcc_cv_ld_mips_personality_relaxation=yes
26278 elif test x$gcc_cv_as != x \
26279 -a x$gcc_cv_ld != x \
26280 -a x$gcc_cv_readelf != x ; then
26281 cat > conftest.s <<EOF
26282 .cfi_startproc
26283 .cfi_personality 0x80,indirect_ptr
26284 .ent test
26285 test:
26287 .end test
26288 .cfi_endproc
26290 .section .data,"aw",@progbits
26291 indirect_ptr:
26292 .dc.a personality
26294 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26295 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26296 if $gcc_cv_readelf -d conftest 2>&1 \
26297 | grep TEXTREL > /dev/null 2>&1; then
26299 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26300 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26302 else
26303 gcc_cv_ld_mips_personality_relaxation=yes
26307 rm -f conftest.s conftest.o conftest
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26310 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26311 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26313 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26318 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26319 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26320 $as_echo_n "(cached) " >&6
26321 else
26322 gcc_cv_as_mips_nan=no
26323 if test x$gcc_cv_as != x; then
26324 $as_echo '' > conftest.s
26325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26331 then
26332 gcc_cv_as_mips_nan=yes
26333 else
26334 echo "configure: failed program was" >&5
26335 cat conftest.s >&5
26337 rm -f conftest.o conftest.s
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26341 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26342 if test $gcc_cv_as_mips_nan = yes; then
26344 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26347 if test x$gcc_cv_as_mips_nan = xno \
26348 && test x$with_nan != x; then
26349 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26352 esac
26354 # Mips and HP-UX need the GNU assembler.
26355 # Linux on IA64 might be able to use the Intel assembler.
26357 case "$target" in
26358 mips*-*-* | *-*-hpux* )
26359 if test x$gas_flag = xyes \
26360 || test x"$host" != x"$build" \
26361 || test ! -x "$gcc_cv_as" \
26362 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26364 else
26365 echo "*** This configuration requires the GNU assembler" >&2
26366 exit 1
26369 esac
26371 # ??? Not all targets support dwarf2 debug_line, even within a version
26372 # of gas. Moreover, we need to emit a valid instruction to trigger any
26373 # info to the output file. So, as supported targets are added to gas 2.11,
26374 # add some instruction here to (also) show we expect this might work.
26375 # ??? Once 2.11 is released, probably need to add first known working
26376 # version to the per-target configury.
26377 case "$cpu_type" in
26378 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26379 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26380 | xstormy16 | xtensa)
26381 insn="nop"
26383 ia64 | s390)
26384 insn="nop 0"
26386 mmix)
26387 insn="swym 0"
26389 esac
26390 if test x"$insn" != x; then
26391 conftest_s="\
26392 .file 1 \"conftest.s\"
26393 .loc 1 3 0
26394 $insn"
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26396 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26397 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26398 $as_echo_n "(cached) " >&6
26399 else
26400 gcc_cv_as_dwarf2_debug_line=no
26401 if test $in_tree_gas = yes; then
26402 if test $in_tree_gas_is_elf = yes \
26403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26404 then gcc_cv_as_dwarf2_debug_line=yes
26406 elif test x$gcc_cv_as != x; then
26407 $as_echo "$conftest_s" > conftest.s
26408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26410 (eval $ac_try) 2>&5
26411 ac_status=$?
26412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26413 test $ac_status = 0; }; }
26414 then
26415 if test x$gcc_cv_objdump != x \
26416 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26417 | grep debug_line > /dev/null 2>&1; then
26418 gcc_cv_as_dwarf2_debug_line=yes
26420 else
26421 echo "configure: failed program was" >&5
26422 cat conftest.s >&5
26424 rm -f conftest.o conftest.s
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26428 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26431 # The .debug_line file table must be in the exact order that
26432 # we specified the files, since these indices are also used
26433 # by DW_AT_decl_file. Approximate this test by testing if
26434 # the assembler bitches if the same index is assigned twice.
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26436 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26437 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26438 $as_echo_n "(cached) " >&6
26439 else
26440 gcc_cv_as_dwarf2_file_buggy=no
26441 if test x$gcc_cv_as != x; then
26442 $as_echo ' .file 1 "foo.s"
26443 .file 1 "bar.s"' > conftest.s
26444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26450 then
26451 gcc_cv_as_dwarf2_file_buggy=yes
26452 else
26453 echo "configure: failed program was" >&5
26454 cat conftest.s >&5
26456 rm -f conftest.o conftest.s
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26460 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26463 if test $gcc_cv_as_dwarf2_debug_line = yes \
26464 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26466 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26471 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26472 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26473 $as_echo_n "(cached) " >&6
26474 else
26475 gcc_cv_as_gdwarf2_flag=no
26476 if test $in_tree_gas = yes; then
26477 if test $in_tree_gas_is_elf = yes \
26478 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26479 then gcc_cv_as_gdwarf2_flag=yes
26481 elif test x$gcc_cv_as != x; then
26482 $as_echo "$insn" > conftest.s
26483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26485 (eval $ac_try) 2>&5
26486 ac_status=$?
26487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488 test $ac_status = 0; }; }
26489 then
26490 gcc_cv_as_gdwarf2_flag=yes
26491 else
26492 echo "configure: failed program was" >&5
26493 cat conftest.s >&5
26495 rm -f conftest.o conftest.s
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26499 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26500 if test $gcc_cv_as_gdwarf2_flag = yes; then
26502 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26507 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26508 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26509 $as_echo_n "(cached) " >&6
26510 else
26511 gcc_cv_as_gstabs_flag=no
26512 if test $in_tree_gas = yes; then
26513 if test $in_tree_gas_is_elf = yes \
26514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26515 then gcc_cv_as_gstabs_flag=yes
26517 elif test x$gcc_cv_as != x; then
26518 $as_echo "$insn" > conftest.s
26519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26525 then
26526 gcc_cv_as_gstabs_flag=yes
26527 else
26528 echo "configure: failed program was" >&5
26529 cat conftest.s >&5
26531 rm -f conftest.o conftest.s
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26535 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26536 if test $gcc_cv_as_gstabs_flag = yes; then
26538 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26543 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26544 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26545 $as_echo_n "(cached) " >&6
26546 else
26547 gcc_cv_as_debug_prefix_map_flag=no
26548 if test $in_tree_gas = yes; then
26549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26550 then gcc_cv_as_debug_prefix_map_flag=yes
26552 elif test x$gcc_cv_as != x; then
26553 $as_echo "$insn" > conftest.s
26554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26556 (eval $ac_try) 2>&5
26557 ac_status=$?
26558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26559 test $ac_status = 0; }; }
26560 then
26561 gcc_cv_as_debug_prefix_map_flag=yes
26562 else
26563 echo "configure: failed program was" >&5
26564 cat conftest.s >&5
26566 rm -f conftest.o conftest.s
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26570 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26571 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26573 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26579 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26580 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26581 $as_echo_n "(cached) " >&6
26582 else
26583 gcc_cv_as_compress_debug=no
26584 if test x$gcc_cv_as != x; then
26585 $as_echo '' > conftest.s
26586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588 (eval $ac_try) 2>&5
26589 ac_status=$?
26590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591 test $ac_status = 0; }; }
26592 then
26593 # gas compiled without zlib cannot compress debug sections and warns
26594 # about it, but still exits successfully. So check for this, too.
26595 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26596 then
26597 gcc_cv_as_compress_debug=0
26598 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26599 then
26600 gcc_cv_as_compress_debug=1
26601 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26602 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26603 else
26604 gcc_cv_as_compress_debug=0
26605 # FIXME: Future gas versions will support ELF gABI style via
26606 # --compress-debug-sections[=type].
26608 else
26609 echo "configure: failed program was" >&5
26610 cat conftest.s >&5
26612 rm -f conftest.o conftest.s
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26616 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26619 cat >>confdefs.h <<_ACEOF
26620 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26621 _ACEOF
26624 cat >>confdefs.h <<_ACEOF
26625 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26626 _ACEOF
26629 cat >>confdefs.h <<_ACEOF
26630 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26631 _ACEOF
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26635 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26636 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26637 $as_echo_n "(cached) " >&6
26638 else
26639 gcc_cv_as_lcomm_with_alignment=no
26640 if test x$gcc_cv_as != x; then
26641 $as_echo '.lcomm bar,4,16' > conftest.s
26642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26647 test $ac_status = 0; }; }
26648 then
26649 gcc_cv_as_lcomm_with_alignment=yes
26650 else
26651 echo "configure: failed program was" >&5
26652 cat conftest.s >&5
26654 rm -f conftest.o conftest.s
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26658 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26659 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26661 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26665 if test x$with_sysroot = x && test x$host = x$target \
26666 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26667 && test "$prefix" != "NONE"; then
26669 cat >>confdefs.h <<_ACEOF
26670 #define PREFIX_INCLUDE_DIR "$prefix/include"
26671 _ACEOF
26675 # Determine the version of glibc, if any, used on the target.
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26677 $as_echo_n "checking for target glibc version... " >&6; }
26679 # Check whether --with-glibc-version was given.
26680 if test "${with_glibc_version+set}" = set; then :
26681 withval=$with_glibc_version;
26682 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26683 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26684 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26685 else
26686 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26688 else
26690 glibc_version_major=0
26691 glibc_version_minor=0
26692 if test -f $target_header_dir/features.h \
26693 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26694 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26695 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26696 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26701 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26703 # Check whether --enable-gnu-unique-object was given.
26704 if test "${enable_gnu_unique_object+set}" = set; then :
26705 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26706 yes | no) ;;
26707 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26708 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26709 esac
26710 else
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26712 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26713 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26714 $as_echo_n "(cached) " >&6
26715 else
26716 gcc_cv_as_gnu_unique_object=no
26717 if test $in_tree_gas = yes; then
26718 if test $in_tree_gas_is_elf = yes \
26719 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26720 then gcc_cv_as_gnu_unique_object=yes
26722 elif test x$gcc_cv_as != x; then
26723 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 then
26731 gcc_cv_as_gnu_unique_object=yes
26732 else
26733 echo "configure: failed program was" >&5
26734 cat conftest.s >&5
26736 rm -f conftest.o conftest.s
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26740 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26741 if test $gcc_cv_as_gnu_unique_object = yes; then
26742 # We need to unquote above to to use the definition from config.gcc.
26743 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26745 if test $glibc_version_major -gt 2 \
26746 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26747 enable_gnu_unique_object=yes
26753 if test x$enable_gnu_unique_object = xyes; then
26755 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26760 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26761 if test "${gcc_cv_as_line_zero+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26763 else
26764 gcc_cv_as_line_zero=no
26765 if test $in_tree_gas = yes; then
26766 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26767 then gcc_cv_as_line_zero=yes
26769 elif test "x$gcc_cv_as" != x; then
26770 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26771 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26773 (eval $ac_try) 2>&5
26774 ac_status=$?
26775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26776 test $ac_status = 0; }; } &&
26777 test "x`cat conftest.out`" = x
26778 then
26779 gcc_cv_as_line_zero=yes
26780 else
26781 echo "configure: failed program was" >&5
26782 cat conftest.s >&5
26783 echo "configure: error output was" >&5
26784 cat conftest.out >&5
26786 rm -f conftest.o conftest.s conftest.out
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26790 $as_echo "$gcc_cv_as_line_zero" >&6; }
26791 if test "x$gcc_cv_as_line_zero" = xyes; then
26793 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26798 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26799 gcc_cv_ld_eh_frame_hdr=no
26800 if test $in_tree_ld = yes ; then
26801 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 \
26802 && test $in_tree_ld_is_elf = yes; then
26803 gcc_cv_ld_eh_frame_hdr=yes
26805 elif test x$gcc_cv_ld != x; then
26806 if echo "$ld_ver" | grep GNU > /dev/null; then
26807 # Check if linker supports --eh-frame-hdr option
26808 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26809 gcc_cv_ld_eh_frame_hdr=yes
26811 else
26812 case "$target" in
26813 *-*-solaris2*)
26814 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26815 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26816 gcc_cv_ld_eh_frame_hdr=yes
26819 esac
26823 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26825 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26829 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26832 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26833 gcc_cv_ld_eh_frame_ciev3=no
26834 if test $in_tree_ld = yes ; then
26835 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 \
26836 && test $in_tree_ld_is_elf = yes; then
26837 gcc_cv_ld_eh_frame_ciev3=yes
26839 elif test x$gcc_cv_ld != x; then
26840 if echo "$ld_ver" | grep GNU > /dev/null; then
26841 gcc_cv_ld_eh_frame_ciev3=yes
26842 if test 0"$ld_date" -lt 20040513; then
26843 if test -n "$ld_date"; then
26844 # If there was date string, but was earlier than 2004-05-13, fail
26845 gcc_cv_ld_eh_frame_ciev3=no
26846 elif test "$ld_vers_major" -lt 2; then
26847 gcc_cv_ld_eh_frame_ciev3=no
26848 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26849 gcc_cv_ld_eh_frame_ciev3=no
26852 else
26853 case "$target" in
26854 *-*-solaris2*)
26855 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26856 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26857 gcc_cv_ld_eh_frame_ciev3=yes
26860 esac
26864 cat >>confdefs.h <<_ACEOF
26865 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26866 _ACEOF
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26869 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26872 $as_echo_n "checking linker position independent executable support... " >&6; }
26873 gcc_cv_ld_pie=no
26874 if test $in_tree_ld = yes ; then
26875 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26876 && test $in_tree_ld_is_elf = yes; then
26877 gcc_cv_ld_pie=yes
26879 elif test x$gcc_cv_ld != x; then
26880 # Check if linker supports -pie option
26881 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26882 gcc_cv_ld_pie=yes
26885 if test x"$gcc_cv_ld_pie" = xyes; then
26887 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26891 $as_echo "$gcc_cv_ld_pie" >&6; }
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26894 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26895 gcc_cv_ld_eh_gc_sections=no
26896 if test $in_tree_ld = yes ; then
26897 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 \
26898 && test $in_tree_ld_is_elf = yes; then
26899 gcc_cv_ld_eh_gc_sections=yes
26901 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26902 cat > conftest.s <<EOF
26903 .section .text
26904 .globl _start
26905 .type _start, @function
26906 _start:
26907 .long foo
26908 .size _start, .-_start
26909 .section .text.foo,"ax",@progbits
26910 .type foo, @function
26911 foo:
26912 .long 0
26913 .size foo, .-foo
26914 .section .gcc_except_table.foo,"a",@progbits
26915 .L0:
26916 .long 0
26917 .section .eh_frame,"a",@progbits
26918 .long .L0
26920 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26921 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26922 | grep "gc-sections option ignored" > /dev/null; then
26923 gcc_cv_ld_eh_gc_sections=no
26924 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26925 | grep gcc_except_table > /dev/null; then
26926 gcc_cv_ld_eh_gc_sections=yes
26927 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26928 if test x$gcc_cv_as_comdat_group != xyes; then
26929 gcc_cv_ld_eh_gc_sections=no
26930 cat > conftest.s <<EOF
26931 .section .text
26932 .globl _start
26933 .type _start, @function
26934 _start:
26935 .long foo
26936 .size _start, .-_start
26937 .section .gnu.linkonce.t.foo,"ax",@progbits
26938 .type foo, @function
26939 foo:
26940 .long 0
26941 .size foo, .-foo
26942 .section .gcc_except_table.foo,"a",@progbits
26943 .L0:
26944 .long 0
26945 .section .eh_frame,"a",@progbits
26946 .long .L0
26948 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26949 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26950 | grep "gc-sections option ignored" > /dev/null; then
26951 gcc_cv_ld_eh_gc_sections=no
26952 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26953 | grep gcc_except_table > /dev/null; then
26954 gcc_cv_ld_eh_gc_sections=yes
26960 rm -f conftest.s conftest.o conftest
26962 case "$target" in
26963 hppa*-*-linux*)
26964 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26965 gcc_cv_ld_eh_gc_sections=no
26967 esac
26968 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26970 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26974 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26977 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26978 gcc_cv_ld_eh_gc_sections_bug=no
26979 if test $in_tree_ld = yes ; then
26980 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 \
26981 && test $in_tree_ld_is_elf = yes; then
26982 gcc_cv_ld_eh_gc_sections_bug=yes
26984 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
26985 gcc_cv_ld_eh_gc_sections_bug=yes
26986 cat > conftest.s <<EOF
26987 .section .text
26988 .globl _start
26989 .type _start, @function
26990 _start:
26991 .long foo
26992 .size _start, .-_start
26993 .section .text.startup.foo,"ax",@progbits
26994 .type foo, @function
26995 foo:
26996 .long 0
26997 .size foo, .-foo
26998 .section .gcc_except_table.foo,"a",@progbits
26999 .L0:
27000 .long 0
27001 .section .eh_frame,"a",@progbits
27002 .long .L0
27004 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27005 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27006 | grep "gc-sections option ignored" > /dev/null; then
27008 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27009 | grep gcc_except_table > /dev/null; then
27010 gcc_cv_ld_eh_gc_sections_bug=no
27013 rm -f conftest.s conftest.o conftest
27015 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27017 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27021 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27024 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27025 # gold/gld support compressed debug sections since binutils 2.19/2.21
27026 if test $in_tree_ld = yes ; then
27027 gcc_cv_ld_compress_debug=0
27028 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 \
27029 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27030 gcc_cv_ld_compress_debug=2
27031 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27032 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 \
27033 && test $in_tree_ld_is_elf = yes; then
27034 gcc_cv_ld_compress_debug=1
27036 elif echo "$ld_ver" | grep GNU > /dev/null; then
27037 gcc_cv_ld_compress_debug=1
27038 if test 0"$ld_date" -lt 20050308; then
27039 if test -n "$ld_date"; then
27040 # If there was date string, but was earlier than 2005-03-08, fail
27041 gcc_cv_ld_compress_debug=0
27042 elif test "$ld_vers_major" -lt 2; then
27043 gcc_cv_ld_compress_debug=0
27044 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27045 gcc_cv_ld_compress_debug=0
27048 if test $ld_is_gold = yes; then
27049 gcc_cv_ld_compress_debug=2
27050 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27052 else
27053 case "${target}" in
27054 *-*-solaris2*)
27055 # Introduced in Solaris 11.2.
27056 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27057 gcc_cv_ld_compress_debug=3
27058 gcc_cv_ld_compress_debug_option="-z compress-sections"
27059 else
27060 gcc_cv_ld_compress_debug=0
27064 # Assume linkers other than GNU ld don't support compessed debug
27065 # sections.
27066 gcc_cv_ld_compress_debug=0
27068 esac
27071 cat >>confdefs.h <<_ACEOF
27072 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27073 _ACEOF
27076 cat >>confdefs.h <<_ACEOF
27077 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27078 _ACEOF
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27081 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27083 # --------
27084 # UNSORTED
27085 # --------
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27088 $as_echo_n "checking linker --as-needed support... " >&6; }
27089 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27090 $as_echo_n "(cached) " >&6
27091 else
27092 gcc_cv_ld_as_needed=no
27093 gcc_cv_ld_as_needed_option='--as-needed'
27094 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27095 if test $in_tree_ld = yes ; then
27096 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 \
27097 && test $in_tree_ld_is_elf = yes; then
27098 gcc_cv_ld_as_needed=yes
27100 elif test x$gcc_cv_ld != x; then
27101 # Check if linker supports --as-needed and --no-as-needed options
27102 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27103 gcc_cv_ld_as_needed=yes
27104 else
27105 case "$target" in
27106 # Solaris 2 ld always supports -z ignore/-z record.
27107 *-*-solaris2*)
27108 gcc_cv_ld_as_needed=yes
27109 gcc_cv_ld_as_needed_option="-z ignore"
27110 gcc_cv_ld_no_as_needed_option="-z record"
27112 esac
27115 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27116 # dl_iterate_phdr, i.e. since Solaris 11.
27117 case "$target" in
27118 *-*-solaris2.1[1-9]*)
27119 case "$target" in
27120 i?86-*-* | x86_64-*-*)
27121 if echo "$ld_ver" | grep GNU > /dev/null; then
27122 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27123 gcc_cv_ld_as_needed=no
27126 esac
27128 *-*-solaris2*)
27129 gcc_cv_ld_as_needed=no
27131 esac
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27135 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27136 if test x"$gcc_cv_ld_as_needed" = xyes; then
27138 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27141 cat >>confdefs.h <<_ACEOF
27142 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27143 _ACEOF
27146 cat >>confdefs.h <<_ACEOF
27147 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27148 _ACEOF
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27153 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27154 saved_LDFLAGS="$LDFLAGS"
27155 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27156 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27158 /* end confdefs.h. */
27159 int main(void) {return 0;}
27160 _ACEOF
27161 if ac_fn_c_try_link "$LINENO"; then :
27162 gcc_cv_ld_clearcap=yes; break
27163 else
27164 gcc_cv_ld_clearcap=no
27166 rm -f core conftest.err conftest.$ac_objext \
27167 conftest$ac_exeext conftest.$ac_ext
27168 done
27169 LDFLAGS="$saved_LDFLAGS"
27170 if test "x$gcc_cv_ld_clearcap" = xyes; then
27172 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27174 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27178 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27180 case "$target:$tm_file" in
27181 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27182 case "$target" in
27183 *le-*-linux*)
27184 emul_name="-melf64lppc"
27186 *-*-linux*)
27187 emul_name="-melf64ppc"
27189 *-*-freebsd*)
27190 emul_name="-melf64ppc_fbsd"
27192 esac
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27194 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27195 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27196 $as_echo_n "(cached) " >&6
27197 else
27198 gcc_cv_ld_no_dot_syms=no
27199 if test x"$ld_is_gold" = xyes; then
27200 gcc_cv_ld_no_dot_syms=yes
27201 elif test $in_tree_ld = yes ; then
27202 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
27203 gcc_cv_ld_no_dot_syms=yes
27205 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27206 cat > conftest1.s <<EOF
27207 .text
27208 bl .foo
27210 cat > conftest2.s <<EOF
27211 .section ".opd","aw"
27212 .align 3
27213 .globl foo
27214 .type foo,@function
27215 foo:
27216 .quad .LEfoo,.TOC.@tocbase,0
27217 .text
27218 .LEfoo:
27220 .size foo,.-.LEfoo
27222 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27223 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27224 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27225 gcc_cv_ld_no_dot_syms=yes
27227 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27232 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27233 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27235 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27240 $as_echo_n "checking linker large toc support... " >&6; }
27241 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27242 $as_echo_n "(cached) " >&6
27243 else
27244 gcc_cv_ld_large_toc=no
27245 if test x"$ld_is_gold" = xyes; then
27246 gcc_cv_ld_large_toc=yes
27247 elif test $in_tree_ld = yes ; then
27248 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
27249 gcc_cv_ld_large_toc=yes
27251 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27252 cat > conftest.s <<EOF
27253 .section ".tbss","awT",@nobits
27254 .align 3
27255 ie0: .space 8
27256 .global _start
27257 .text
27258 _start:
27259 addis 9,13,ie0@got@tprel@ha
27260 ld 9,ie0@got@tprel@l(9)
27262 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27263 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27264 gcc_cv_ld_large_toc=yes
27266 rm -f conftest conftest.o conftest.s
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27271 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27272 if test x"$gcc_cv_ld_large_toc" = xyes; then
27274 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27278 esac
27280 case "$target" in
27281 *-*-aix*)
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27283 $as_echo_n "checking linker large toc support... " >&6; }
27284 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27285 $as_echo_n "(cached) " >&6
27286 else
27287 gcc_cv_ld_large_toc=no
27288 if test x$gcc_cv_as != x ; then
27289 cat > conftest.s <<EOF
27290 .toc
27291 LC..1:
27292 .tc a[TC],a[RW]
27293 .extern a[RW]
27294 .csect .text[PR]
27295 .largetoctest:
27296 addis 9,LC..1@u(2)
27297 ld 3,LC..1@l(9)
27299 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27300 gcc_cv_ld_large_toc=yes
27302 rm -f conftest conftest.o conftest.s
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27307 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27308 if test x"$gcc_cv_ld_large_toc" = xyes; then
27310 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27314 esac
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27317 $as_echo_n "checking linker --build-id support... " >&6; }
27318 if test "${gcc_cv_ld_buildid+set}" = set; then :
27319 $as_echo_n "(cached) " >&6
27320 else
27321 gcc_cv_ld_buildid=no
27322 if test $in_tree_ld = yes ; then
27323 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27324 "$gcc_cv_gld_minor_version" -ge 18 -o \
27325 "$gcc_cv_gld_major_version" -gt 2 \
27326 && test $in_tree_ld_is_elf = yes; then
27327 gcc_cv_ld_buildid=yes
27329 elif test x$gcc_cv_ld != x; then
27330 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27331 gcc_cv_ld_buildid=yes
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27336 $as_echo "$gcc_cv_ld_buildid" >&6; }
27337 if test x"$gcc_cv_ld_buildid" = xyes; then
27339 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27343 # Check whether --enable-linker-build-id was given.
27344 if test "${enable_linker_build_id+set}" = set; then :
27345 enableval=$enable_linker_build_id;
27346 else
27347 enable_linker_build_id=no
27351 if test x"$enable_linker_build_id" = xyes; then
27352 if test x"$gcc_cv_ld_buildid" = xyes; then
27354 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27356 else
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27358 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27362 # In binutils 2.21, GNU ld gained support for new emulations fully
27363 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27365 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27366 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27367 $as_echo_n "(cached) " >&6
27368 else
27369 gcc_cv_ld_sol2_emulation=no
27370 if test $in_tree_ld = yes ; then
27371 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27372 "$gcc_cv_gld_minor_version" -ge 21 -o \
27373 "$gcc_cv_gld_major_version" -gt 2 \
27374 && test $in_tree_ld_is_elf = yes; then
27375 gcc_cv_ld_sol2_emulation=yes
27377 elif test x$gcc_cv_ld != x; then
27378 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27379 grep _sol2 > /dev/null; then
27380 gcc_cv_ld_sol2_emulation=yes
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27385 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27386 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27388 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27393 $as_echo_n "checking linker --sysroot support... " >&6; }
27394 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27395 $as_echo_n "(cached) " >&6
27396 else
27397 gcc_cv_ld_sysroot=no
27398 if test $in_tree_ld = yes ; then
27399 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
27400 gcc_cv_ld_sysroot=yes
27402 elif test x$gcc_cv_ld != x; then
27403 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27404 gcc_cv_ld_sysroot=yes
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27409 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27410 if test x"$gcc_cv_ld_sysroot" = xyes; then
27412 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27416 # Test for stack protector support in target C library.
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27418 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27419 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27420 $as_echo_n "(cached) " >&6
27421 else
27422 gcc_cv_libc_provides_ssp=no
27423 case "$target" in
27424 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27425 # glibc 2.4 and later provides __stack_chk_fail and
27426 # either __stack_chk_guard, or TLS access to stack guard canary.
27428 if test $glibc_version_major -gt 2 \
27429 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27430 gcc_cv_libc_provides_ssp=yes
27431 else
27433 if test -f $target_header_dir/features.h \
27434 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27435 $target_header_dir/features.h > /dev/null; then
27436 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27437 $target_header_dir/features.h > /dev/null && \
27438 test -f $target_header_dir/bits/uClibc_config.h && \
27439 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27440 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27441 gcc_cv_libc_provides_ssp=yes
27443 # all versions of Bionic support stack protector
27444 elif test -f $target_header_dir/sys/cdefs.h \
27445 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27446 $target_header_dir/sys/cdefs.h > /dev/null; then
27447 gcc_cv_libc_provides_ssp=yes
27451 *-*-gnu*)
27452 # Avoid complicated tests (see
27453 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27454 # simply assert that glibc does provide this, which is true for all
27455 # realistically usable GNU/Hurd configurations.
27456 gcc_cv_libc_provides_ssp=yes;;
27457 *-*-darwin* | *-*-freebsd*)
27458 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27459 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27460 gcc_cv_libc_provides_ssp=yes
27461 else
27462 echo "no __stack_chk_fail on this target"
27466 *) gcc_cv_libc_provides_ssp=no ;;
27467 esac
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27470 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27472 if test x$gcc_cv_libc_provides_ssp = xyes; then
27474 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27478 # Test for <sys/sdt.h> on the target.
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27481 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27482 have_sys_sdt_h=no
27483 if test -f $target_header_dir/sys/sdt.h; then
27484 have_sys_sdt_h=yes
27486 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27490 $as_echo "$have_sys_sdt_h" >&6; }
27492 # Check if TFmode long double should be used by default or not.
27493 # Some glibc targets used DFmode long double, but with glibc 2.4
27494 # and later they can use TFmode.
27495 case "$target" in
27496 powerpc*-*-linux* | \
27497 sparc*-*-linux* | \
27498 s390*-*-linux* | \
27499 alpha*-*-linux*)
27501 # Check whether --with-long-double-128 was given.
27502 if test "${with_long_double_128+set}" = set; then :
27503 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27504 else
27506 if test $glibc_version_major -gt 2 \
27507 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27508 gcc_cv_target_ldbl128=yes
27509 else
27511 gcc_cv_target_ldbl128=no
27512 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27513 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27514 && gcc_cv_target_ldbl128=yes
27520 esac
27521 if test x$gcc_cv_target_ldbl128 = xyes; then
27523 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27528 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27529 gcc_cv_target_dl_iterate_phdr=unknown
27530 case "$target" in
27531 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27532 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27533 # libdl there, both complicating its use and breaking compatibility
27534 # between Solaris 10 updates.
27535 *-*-solaris2.1[1-9]*)
27536 # <link.h> needs both a dl_iterate_phdr declaration and support for
27537 # compilation with largefile support.
27538 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27539 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27540 gcc_cv_target_dl_iterate_phdr=yes
27541 else
27542 gcc_cv_target_dl_iterate_phdr=no
27545 *-*-dragonfly* | *-*-freebsd*)
27546 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27547 gcc_cv_target_dl_iterate_phdr=yes
27548 else
27549 gcc_cv_target_dl_iterate_phdr=no
27552 esac
27554 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27556 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27560 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27562 # We no longer support different GC mechanisms. Emit an error if
27563 # the user configures with --with-gc.
27565 # Check whether --with-gc was given.
27566 if test "${with_gc+set}" = set; then :
27567 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27571 # Libraries to use on the host. This will normally be set by the top
27572 # level Makefile. Here we simply capture the value for our Makefile.
27573 if test -z "${HOST_LIBS+set}"; then
27574 HOST_LIBS=
27578 # Use the system's zlib library.
27579 zlibdir=-L../zlib
27580 zlibinc="-I\$(srcdir)/../zlib"
27582 # Check whether --with-system-zlib was given.
27583 if test "${with_system_zlib+set}" = set; then :
27584 withval=$with_system_zlib; zlibdir=
27585 zlibinc=
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27594 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27595 # Check whether --enable-maintainer-mode was given.
27596 if test "${enable_maintainer_mode+set}" = set; then :
27597 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27598 else
27599 maintainer_mode=no
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27604 $as_echo "$maintainer_mode" >&6; }
27606 if test "$maintainer_mode" = "yes"; then
27607 MAINT=''
27608 else
27609 MAINT='#'
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27614 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27615 # Check whether --enable-link-mutex was given.
27616 if test "${enable_link_mutex+set}" = set; then :
27617 enableval=$enable_link_mutex; do_link_mutex=$enableval
27618 else
27619 do_link_mutex=no
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27623 $as_echo "$do_link_mutex" >&6; }
27625 if test "$do_link_mutex" = "yes"; then
27626 DO_LINK_MUTEX=true
27627 else
27628 DO_LINK_MUTEX=false
27632 # --------------
27633 # Language hooks
27634 # --------------
27636 # Make empty files to contain the specs and options for each language.
27637 # Then add #include lines to for a compiler that has specs and/or options.
27639 subdirs=
27640 lang_opt_files=
27641 lang_specs_files=
27642 lang_tree_files=
27643 # These (without "all_") are set in each config-lang.in.
27644 # `language' must be a single word so is spelled singularly.
27645 all_languages=
27646 all_compilers=
27647 all_outputs='Makefile'
27648 # List of language makefile fragments.
27649 all_lang_makefrags=
27650 # Additional files for gengtype
27651 all_gtfiles="$target_gtfiles"
27653 # These are the languages that are set in --enable-languages,
27654 # and are available in the GCC tree.
27655 all_selected_languages=
27657 # Add the language fragments.
27658 # Languages are added via two mechanisms. Some information must be
27659 # recorded in makefile variables, these are defined in config-lang.in.
27660 # We accumulate them and plug them into the main Makefile.
27661 # The other mechanism is a set of hooks for each of the main targets
27662 # like `clean', `install', etc.
27664 language_hooks="Make-hooks"
27666 for lang in ${srcdir}/*/config-lang.in
27668 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27670 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27671 if test "x$lang_alias" = x
27672 then
27673 echo "$lang doesn't set \$language." 1>&2
27674 exit 1
27676 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27677 subdirs="$subdirs $subdir"
27679 # $gcc_subdir is where the gcc integration files are to be found
27680 # for a language, both for internal compiler purposes (compiler
27681 # sources implementing front-end to GCC tree converters), and for
27682 # build infrastructure purposes (Make-lang.in, etc.)
27684 # This will be <subdir> (relative to $srcdir) if a line like
27685 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27686 # is found in <langdir>/config-lang.in, and will remain <langdir>
27687 # otherwise.
27689 # Except for the language alias (fetched above), the regular
27690 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27691 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27692 # only this and the language alias.
27694 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27695 if [ "$gcc_subdir" = "" ]; then
27696 gcc_subdir="$subdir"
27699 case ",$enable_languages," in
27700 *,$lang_alias,*)
27701 all_selected_languages="$all_selected_languages $lang_alias"
27702 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27703 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27706 esac
27708 language=
27709 boot_language=
27710 compilers=
27711 outputs=
27712 gtfiles=
27713 subdir_requires=
27714 . ${srcdir}/$gcc_subdir/config-lang.in
27715 if test "x$language" = x
27716 then
27717 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27718 exit 1
27721 ok=:
27722 case ",$enable_languages," in
27723 *,$lang_alias,*) ;;
27725 for i in $subdir_requires; do
27726 test -f "${srcdir}/$i/config-lang.in" && continue
27727 ok=false
27728 break
27729 done
27731 esac
27732 $ok || continue
27734 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27735 if test -f $srcdir/$gcc_subdir/lang.opt; then
27736 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27737 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27739 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27740 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27742 all_languages="$all_languages $language"
27743 all_compilers="$all_compilers $compilers"
27744 all_outputs="$all_outputs $outputs"
27745 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27746 case ",$enable_languages," in
27747 *,lto,*)
27749 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27751 enable_lto=yes
27754 *) ;;
27755 esac
27756 done
27758 check_languages=
27759 for language in $all_selected_languages
27761 check_languages="$check_languages check-$language"
27762 done
27764 # We link each language in with a set of hooks, reached indirectly via
27765 # lang.${target}. Only do so for selected languages.
27767 rm -f Make-hooks
27768 touch Make-hooks
27769 target_list="all.cross start.encap rest.encap tags \
27770 install-common install-man install-info install-pdf install-html dvi \
27771 pdf html uninstall info man srcextra srcman srcinfo \
27772 mostlyclean clean distclean maintainer-clean install-plugin"
27774 for t in $target_list
27777 for lang in $all_selected_languages
27779 x="$x $lang.$t"
27780 done
27781 echo "lang.$t: $x" >> Make-hooks
27782 done
27784 # --------
27785 # Option include files
27786 # --------
27788 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27789 option_includes="option-includes.mk"
27792 # --------
27793 # UNSORTED
27794 # --------
27796 # Create .gdbinit.
27798 echo "dir ." > .gdbinit
27799 echo "dir ${srcdir}" >> .gdbinit
27800 if test x$gdb_needs_out_file_path = xyes
27801 then
27802 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27804 if test "x$subdirs" != x; then
27805 for s in $subdirs
27807 echo "dir ${srcdir}/$s" >> .gdbinit
27808 done
27810 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27811 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27813 # Put a breakpoint on __asan_report_error to help with debugging buffer
27814 # overflow.
27815 case "$CFLAGS" in
27816 *-fsanitize=address*)
27817 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27819 esac
27821 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27825 # Find a directory in which to install a shared libgcc.
27827 # Check whether --enable-version-specific-runtime-libs was given.
27828 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27829 enableval=$enable_version_specific_runtime_libs;
27833 # Substitute configuration variables
27896 # Echo link setup.
27897 if test x${build} = x${host} ; then
27898 if test x${host} = x${target} ; then
27899 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27900 else
27901 echo "Links are now set up to build a cross-compiler" 1>&2
27902 echo " from ${host} to ${target}." 1>&2
27904 else
27905 if test x${host} = x${target} ; then
27906 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27907 echo " for ${target}." 1>&2
27908 else
27909 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27910 echo " from ${host} to ${target}." 1>&2
27919 if test "x${ISLLIBS}" != "x" ; then
27921 $as_echo "#define HAVE_isl 1" >>confdefs.h
27927 if test "x${CLOOGLIBS}" != "x" ; then
27929 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27933 # Check for plugin support
27934 # Check whether --enable-plugin was given.
27935 if test "${enable_plugin+set}" = set; then :
27936 enableval=$enable_plugin; enable_plugin=$enableval
27937 else
27938 enable_plugin=yes; default_plugin=yes
27942 pluginlibs=
27944 case "${host}" in
27945 *-*-darwin*)
27946 if test x$build = x$host; then
27947 export_sym_check="nm${exeext} -g"
27948 elif test x$host = x$target; then
27949 export_sym_check="$gcc_cv_nm -g"
27950 else
27951 export_sym_check=
27955 if test x$build = x$host; then
27956 export_sym_check="objdump${exeext} -T"
27957 elif test x$host = x$target; then
27958 export_sym_check="$gcc_cv_objdump -T"
27959 else
27960 export_sym_check=
27963 esac
27965 if test x"$enable_plugin" = x"yes"; then
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27968 $as_echo_n "checking for exported symbols... " >&6; }
27969 if test "x$export_sym_check" != x; then
27970 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27971 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27972 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27973 : # No need to use a flag
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27975 $as_echo "yes" >&6; }
27976 else
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27978 $as_echo "yes" >&6; }
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27980 $as_echo_n "checking for -rdynamic... " >&6; }
27981 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27982 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27983 plugin_rdynamic=yes
27984 pluginlibs="-rdynamic"
27985 else
27986 plugin_rdynamic=no
27987 enable_plugin=no
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27990 $as_echo "$plugin_rdynamic" >&6; }
27992 else
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27994 $as_echo "unable to check" >&6; }
27997 # Check -ldl
27998 saved_LIBS="$LIBS"
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28000 $as_echo_n "checking for library containing dlopen... " >&6; }
28001 if test "${ac_cv_search_dlopen+set}" = set; then :
28002 $as_echo_n "(cached) " >&6
28003 else
28004 ac_func_search_save_LIBS=$LIBS
28005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28006 /* end confdefs.h. */
28008 /* Override any GCC internal prototype to avoid an error.
28009 Use char because int might match the return type of a GCC
28010 builtin and then its argument prototype would still apply. */
28011 #ifdef __cplusplus
28012 extern "C"
28013 #endif
28014 char dlopen ();
28016 main ()
28018 return dlopen ();
28020 return 0;
28022 _ACEOF
28023 for ac_lib in '' dl; do
28024 if test -z "$ac_lib"; then
28025 ac_res="none required"
28026 else
28027 ac_res=-l$ac_lib
28028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28030 if ac_fn_c_try_link "$LINENO"; then :
28031 ac_cv_search_dlopen=$ac_res
28033 rm -f core conftest.err conftest.$ac_objext \
28034 conftest$ac_exeext
28035 if test "${ac_cv_search_dlopen+set}" = set; then :
28036 break
28038 done
28039 if test "${ac_cv_search_dlopen+set}" = set; then :
28041 else
28042 ac_cv_search_dlopen=no
28044 rm conftest.$ac_ext
28045 LIBS=$ac_func_search_save_LIBS
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28048 $as_echo "$ac_cv_search_dlopen" >&6; }
28049 ac_res=$ac_cv_search_dlopen
28050 if test "$ac_res" != no; then :
28051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28055 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28056 pluginlibs="$pluginlibs -ldl"
28058 LIBS="$saved_LIBS"
28060 # Check that we can build shared objects with -fPIC -shared
28061 saved_LDFLAGS="$LDFLAGS"
28062 saved_CFLAGS="$CFLAGS"
28063 case "${host}" in
28064 *-*-darwin*)
28065 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28066 CFLAGS="$CFLAGS -fPIC"
28067 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28070 CFLAGS="$CFLAGS -fPIC"
28071 LDFLAGS="$LDFLAGS -fPIC -shared"
28073 esac
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28075 $as_echo_n "checking for -fPIC -shared... " >&6; }
28076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h. */
28078 extern int X;
28080 main ()
28082 return X == 0;
28084 return 0;
28086 _ACEOF
28087 if ac_fn_c_try_link "$LINENO"; then :
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28089 $as_echo "yes" >&6; }; have_pic_shared=yes
28090 else
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28092 $as_echo "no" >&6; }; have_pic_shared=no
28094 rm -f core conftest.err conftest.$ac_objext \
28095 conftest$ac_exeext conftest.$ac_ext
28096 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28097 pluginlibs=
28098 enable_plugin=no
28100 LDFLAGS="$saved_LDFLAGS"
28101 CFLAGS="$saved_CFLAGS"
28103 # If plugin support had been requested but not available, fail.
28104 if test x"$enable_plugin" = x"no" ; then
28105 if test x"$default_plugin" != x"yes"; then
28106 as_fn_error "
28107 Building GCC with plugin support requires a host that supports
28108 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28115 if test x"$enable_plugin" = x"yes"; then
28117 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28122 # Enable --enable-host-shared
28123 # Check whether --enable-host-shared was given.
28124 if test "${enable_host_shared+set}" = set; then :
28125 enableval=$enable_host_shared; PICFLAG=-fPIC
28126 else
28127 PICFLAG=
28134 # Check whether --enable-libquadmath-support was given.
28135 if test "${enable_libquadmath_support+set}" = set; then :
28136 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28137 else
28138 ENABLE_LIBQUADMATH_SUPPORT=yes
28141 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28143 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28148 # Specify what hash style to use by default.
28150 # Check whether --with-linker-hash-style was given.
28151 if test "${with_linker_hash_style+set}" = set; then :
28152 withval=$with_linker_hash_style; case x"$withval" in
28153 xsysv)
28154 LINKER_HASH_STYLE=sysv
28156 xgnu)
28157 LINKER_HASH_STYLE=gnu
28159 xboth)
28160 LINKER_HASH_STYLE=both
28163 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28165 esac
28166 else
28167 LINKER_HASH_STYLE=''
28170 if test x"${LINKER_HASH_STYLE}" != x; then
28172 cat >>confdefs.h <<_ACEOF
28173 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28174 _ACEOF
28178 # Configure the subdirectories
28179 # AC_CONFIG_SUBDIRS($subdirs)
28181 # Create the Makefile
28182 # and configure language subdirectories
28183 ac_config_files="$ac_config_files $all_outputs"
28186 ac_config_commands="$ac_config_commands default"
28188 cat >confcache <<\_ACEOF
28189 # This file is a shell script that caches the results of configure
28190 # tests run on this system so they can be shared between configure
28191 # scripts and configure runs, see configure's option --config-cache.
28192 # It is not useful on other systems. If it contains results you don't
28193 # want to keep, you may remove or edit it.
28195 # config.status only pays attention to the cache file if you give it
28196 # the --recheck option to rerun configure.
28198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28200 # following values.
28202 _ACEOF
28204 # The following way of writing the cache mishandles newlines in values,
28205 # but we know of no workaround that is simple, portable, and efficient.
28206 # So, we kill variables containing newlines.
28207 # Ultrix sh set writes to stderr and can't be redirected directly,
28208 # and sets the high bit in the cache file unless we assign to the vars.
28210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28211 eval ac_val=\$$ac_var
28212 case $ac_val in #(
28213 *${as_nl}*)
28214 case $ac_var in #(
28215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28217 esac
28218 case $ac_var in #(
28219 _ | IFS | as_nl) ;; #(
28220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28221 *) { eval $ac_var=; unset $ac_var;} ;;
28222 esac ;;
28223 esac
28224 done
28226 (set) 2>&1 |
28227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28228 *${as_nl}ac_space=\ *)
28229 # `set' does not quote correctly, so add quotes: double-quote
28230 # substitution turns \\\\ into \\, and sed turns \\ into \.
28231 sed -n \
28232 "s/'/'\\\\''/g;
28233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28234 ;; #(
28236 # `set' quotes correctly as required by POSIX, so do not add quotes.
28237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28239 esac |
28240 sort
28242 sed '
28243 /^ac_cv_env_/b end
28244 t clear
28245 :clear
28246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28247 t end
28248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28249 :end' >>confcache
28250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28251 if test -w "$cache_file"; then
28252 test "x$cache_file" != "x/dev/null" &&
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28254 $as_echo "$as_me: updating cache $cache_file" >&6;}
28255 cat confcache >$cache_file
28256 else
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28258 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28261 rm -f confcache
28263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28264 # Let make expand exec_prefix.
28265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28267 DEFS=-DHAVE_CONFIG_H
28269 ac_libobjs=
28270 ac_ltlibobjs=
28271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28272 # 1. Remove the extension, and $U if already installed.
28273 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28274 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28276 # will be set to the directory where LIBOBJS objects are built.
28277 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28278 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28279 done
28280 LIBOBJS=$ac_libobjs
28282 LTLIBOBJS=$ac_ltlibobjs
28287 : ${CONFIG_STATUS=./config.status}
28288 ac_write_fail=0
28289 ac_clean_files_save=$ac_clean_files
28290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28292 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28293 as_write_fail=0
28294 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28295 #! $SHELL
28296 # Generated by $as_me.
28297 # Run this file to recreate the current configuration.
28298 # Compiler output produced by configure, useful for debugging
28299 # configure, is in config.log if it exists.
28301 debug=false
28302 ac_cs_recheck=false
28303 ac_cs_silent=false
28305 SHELL=\${CONFIG_SHELL-$SHELL}
28306 export SHELL
28307 _ASEOF
28308 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28309 ## -------------------- ##
28310 ## M4sh Initialization. ##
28311 ## -------------------- ##
28313 # Be more Bourne compatible
28314 DUALCASE=1; export DUALCASE # for MKS sh
28315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28316 emulate sh
28317 NULLCMD=:
28318 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28319 # is contrary to our usage. Disable this feature.
28320 alias -g '${1+"$@"}'='"$@"'
28321 setopt NO_GLOB_SUBST
28322 else
28323 case `(set -o) 2>/dev/null` in #(
28324 *posix*) :
28325 set -o posix ;; #(
28326 *) :
28328 esac
28332 as_nl='
28334 export as_nl
28335 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28336 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28337 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28338 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28339 # Prefer a ksh shell builtin over an external printf program on Solaris,
28340 # but without wasting forks for bash or zsh.
28341 if test -z "$BASH_VERSION$ZSH_VERSION" \
28342 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28343 as_echo='print -r --'
28344 as_echo_n='print -rn --'
28345 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28346 as_echo='printf %s\n'
28347 as_echo_n='printf %s'
28348 else
28349 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28350 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28351 as_echo_n='/usr/ucb/echo -n'
28352 else
28353 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28354 as_echo_n_body='eval
28355 arg=$1;
28356 case $arg in #(
28357 *"$as_nl"*)
28358 expr "X$arg" : "X\\(.*\\)$as_nl";
28359 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28360 esac;
28361 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28363 export as_echo_n_body
28364 as_echo_n='sh -c $as_echo_n_body as_echo'
28366 export as_echo_body
28367 as_echo='sh -c $as_echo_body as_echo'
28370 # The user is always right.
28371 if test "${PATH_SEPARATOR+set}" != set; then
28372 PATH_SEPARATOR=:
28373 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28374 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28375 PATH_SEPARATOR=';'
28380 # IFS
28381 # We need space, tab and new line, in precisely that order. Quoting is
28382 # there to prevent editors from complaining about space-tab.
28383 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28384 # splitting by setting IFS to empty value.)
28385 IFS=" "" $as_nl"
28387 # Find who we are. Look in the path if we contain no directory separator.
28388 case $0 in #((
28389 *[\\/]* ) as_myself=$0 ;;
28390 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28391 for as_dir in $PATH
28393 IFS=$as_save_IFS
28394 test -z "$as_dir" && as_dir=.
28395 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28396 done
28397 IFS=$as_save_IFS
28400 esac
28401 # We did not find ourselves, most probably we were run as `sh COMMAND'
28402 # in which case we are not to be found in the path.
28403 if test "x$as_myself" = x; then
28404 as_myself=$0
28406 if test ! -f "$as_myself"; then
28407 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28408 exit 1
28411 # Unset variables that we do not need and which cause bugs (e.g. in
28412 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28413 # suppresses any "Segmentation fault" message there. '((' could
28414 # trigger a bug in pdksh 5.2.14.
28415 for as_var in BASH_ENV ENV MAIL MAILPATH
28416 do eval test x\${$as_var+set} = xset \
28417 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28418 done
28419 PS1='$ '
28420 PS2='> '
28421 PS4='+ '
28423 # NLS nuisances.
28424 LC_ALL=C
28425 export LC_ALL
28426 LANGUAGE=C
28427 export LANGUAGE
28429 # CDPATH.
28430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28433 # as_fn_error ERROR [LINENO LOG_FD]
28434 # ---------------------------------
28435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28437 # script with status $?, using 1 if that was 0.
28438 as_fn_error ()
28440 as_status=$?; test $as_status -eq 0 && as_status=1
28441 if test "$3"; then
28442 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28445 $as_echo "$as_me: error: $1" >&2
28446 as_fn_exit $as_status
28447 } # as_fn_error
28450 # as_fn_set_status STATUS
28451 # -----------------------
28452 # Set $? to STATUS, without forking.
28453 as_fn_set_status ()
28455 return $1
28456 } # as_fn_set_status
28458 # as_fn_exit STATUS
28459 # -----------------
28460 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28461 as_fn_exit ()
28463 set +e
28464 as_fn_set_status $1
28465 exit $1
28466 } # as_fn_exit
28468 # as_fn_unset VAR
28469 # ---------------
28470 # Portably unset VAR.
28471 as_fn_unset ()
28473 { eval $1=; unset $1;}
28475 as_unset=as_fn_unset
28476 # as_fn_append VAR VALUE
28477 # ----------------------
28478 # Append the text in VALUE to the end of the definition contained in VAR. Take
28479 # advantage of any shell optimizations that allow amortized linear growth over
28480 # repeated appends, instead of the typical quadratic growth present in naive
28481 # implementations.
28482 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28483 eval 'as_fn_append ()
28485 eval $1+=\$2
28487 else
28488 as_fn_append ()
28490 eval $1=\$$1\$2
28492 fi # as_fn_append
28494 # as_fn_arith ARG...
28495 # ------------------
28496 # Perform arithmetic evaluation on the ARGs, and store the result in the
28497 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28498 # must be portable across $(()) and expr.
28499 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28500 eval 'as_fn_arith ()
28502 as_val=$(( $* ))
28504 else
28505 as_fn_arith ()
28507 as_val=`expr "$@" || test $? -eq 1`
28509 fi # as_fn_arith
28512 if expr a : '\(a\)' >/dev/null 2>&1 &&
28513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28514 as_expr=expr
28515 else
28516 as_expr=false
28519 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28520 as_basename=basename
28521 else
28522 as_basename=false
28525 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28526 as_dirname=dirname
28527 else
28528 as_dirname=false
28531 as_me=`$as_basename -- "$0" ||
28532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28533 X"$0" : 'X\(//\)$' \| \
28534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28535 $as_echo X/"$0" |
28536 sed '/^.*\/\([^/][^/]*\)\/*$/{
28537 s//\1/
28540 /^X\/\(\/\/\)$/{
28541 s//\1/
28544 /^X\/\(\/\).*/{
28545 s//\1/
28548 s/.*/./; q'`
28550 # Avoid depending upon Character Ranges.
28551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28554 as_cr_digits='0123456789'
28555 as_cr_alnum=$as_cr_Letters$as_cr_digits
28557 ECHO_C= ECHO_N= ECHO_T=
28558 case `echo -n x` in #(((((
28559 -n*)
28560 case `echo 'xy\c'` in
28561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28562 xy) ECHO_C='\c';;
28563 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28564 ECHO_T=' ';;
28565 esac;;
28567 ECHO_N='-n';;
28568 esac
28570 rm -f conf$$ conf$$.exe conf$$.file
28571 if test -d conf$$.dir; then
28572 rm -f conf$$.dir/conf$$.file
28573 else
28574 rm -f conf$$.dir
28575 mkdir conf$$.dir 2>/dev/null
28577 if (echo >conf$$.file) 2>/dev/null; then
28578 if ln -s conf$$.file conf$$ 2>/dev/null; then
28579 as_ln_s='ln -s'
28580 # ... but there are two gotchas:
28581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28583 # In both cases, we have to default to `cp -p'.
28584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28585 as_ln_s='cp -p'
28586 elif ln conf$$.file conf$$ 2>/dev/null; then
28587 as_ln_s=ln
28588 else
28589 as_ln_s='cp -p'
28591 else
28592 as_ln_s='cp -p'
28594 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28595 rmdir conf$$.dir 2>/dev/null
28598 # as_fn_mkdir_p
28599 # -------------
28600 # Create "$as_dir" as a directory, including parents if necessary.
28601 as_fn_mkdir_p ()
28604 case $as_dir in #(
28605 -*) as_dir=./$as_dir;;
28606 esac
28607 test -d "$as_dir" || eval $as_mkdir_p || {
28608 as_dirs=
28609 while :; do
28610 case $as_dir in #(
28611 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28612 *) as_qdir=$as_dir;;
28613 esac
28614 as_dirs="'$as_qdir' $as_dirs"
28615 as_dir=`$as_dirname -- "$as_dir" ||
28616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28617 X"$as_dir" : 'X\(//\)[^/]' \| \
28618 X"$as_dir" : 'X\(//\)$' \| \
28619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28620 $as_echo X"$as_dir" |
28621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28622 s//\1/
28625 /^X\(\/\/\)[^/].*/{
28626 s//\1/
28629 /^X\(\/\/\)$/{
28630 s//\1/
28633 /^X\(\/\).*/{
28634 s//\1/
28637 s/.*/./; q'`
28638 test -d "$as_dir" && break
28639 done
28640 test -z "$as_dirs" || eval "mkdir $as_dirs"
28641 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28644 } # as_fn_mkdir_p
28645 if mkdir -p . 2>/dev/null; then
28646 as_mkdir_p='mkdir -p "$as_dir"'
28647 else
28648 test -d ./-p && rmdir ./-p
28649 as_mkdir_p=false
28652 if test -x / >/dev/null 2>&1; then
28653 as_test_x='test -x'
28654 else
28655 if ls -dL / >/dev/null 2>&1; then
28656 as_ls_L_option=L
28657 else
28658 as_ls_L_option=
28660 as_test_x='
28661 eval sh -c '\''
28662 if test -d "$1"; then
28663 test -d "$1/.";
28664 else
28665 case $1 in #(
28666 -*)set "./$1";;
28667 esac;
28668 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28669 ???[sx]*):;;*)false;;esac;fi
28670 '\'' sh
28673 as_executable_p=$as_test_x
28675 # Sed expression to map a string onto a valid CPP name.
28676 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28678 # Sed expression to map a string onto a valid variable name.
28679 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28682 exec 6>&1
28683 ## ----------------------------------- ##
28684 ## Main body of $CONFIG_STATUS script. ##
28685 ## ----------------------------------- ##
28686 _ASEOF
28687 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28690 # Save the log message, to keep $0 and so on meaningful, and to
28691 # report actual input values of CONFIG_FILES etc. instead of their
28692 # values after options handling.
28693 ac_log="
28694 This file was extended by $as_me, which was
28695 generated by GNU Autoconf 2.64. Invocation command line was
28697 CONFIG_FILES = $CONFIG_FILES
28698 CONFIG_HEADERS = $CONFIG_HEADERS
28699 CONFIG_LINKS = $CONFIG_LINKS
28700 CONFIG_COMMANDS = $CONFIG_COMMANDS
28701 $ $0 $@
28703 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28706 _ACEOF
28708 case $ac_config_files in *"
28709 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28710 esac
28712 case $ac_config_headers in *"
28713 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28714 esac
28717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28718 # Files that config.status was made for.
28719 config_files="$ac_config_files"
28720 config_headers="$ac_config_headers"
28721 config_links="$ac_config_links"
28722 config_commands="$ac_config_commands"
28724 _ACEOF
28726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28727 ac_cs_usage="\
28728 \`$as_me' instantiates files and other configuration actions
28729 from templates according to the current configuration. Unless the files
28730 and actions are specified as TAGs, all are instantiated by default.
28732 Usage: $0 [OPTION]... [TAG]...
28734 -h, --help print this help, then exit
28735 -V, --version print version number and configuration settings, then exit
28736 -q, --quiet, --silent
28737 do not print progress messages
28738 -d, --debug don't remove temporary files
28739 --recheck update $as_me by reconfiguring in the same conditions
28740 --file=FILE[:TEMPLATE]
28741 instantiate the configuration file FILE
28742 --header=FILE[:TEMPLATE]
28743 instantiate the configuration header FILE
28745 Configuration files:
28746 $config_files
28748 Configuration headers:
28749 $config_headers
28751 Configuration links:
28752 $config_links
28754 Configuration commands:
28755 $config_commands
28757 Report bugs to the package provider."
28759 _ACEOF
28760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28761 ac_cs_version="\\
28762 config.status
28763 configured by $0, generated by GNU Autoconf 2.64,
28764 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28766 Copyright (C) 2009 Free Software Foundation, Inc.
28767 This config.status script is free software; the Free Software Foundation
28768 gives unlimited permission to copy, distribute and modify it."
28770 ac_pwd='$ac_pwd'
28771 srcdir='$srcdir'
28772 AWK='$AWK'
28773 test -n "\$AWK" || AWK=awk
28774 _ACEOF
28776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28777 # The default lists apply if the user does not specify any file.
28778 ac_need_defaults=:
28779 while test $# != 0
28781 case $1 in
28782 --*=*)
28783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28785 ac_shift=:
28788 ac_option=$1
28789 ac_optarg=$2
28790 ac_shift=shift
28792 esac
28794 case $ac_option in
28795 # Handling of the options.
28796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28797 ac_cs_recheck=: ;;
28798 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28799 $as_echo "$ac_cs_version"; exit ;;
28800 --debug | --debu | --deb | --de | --d | -d )
28801 debug=: ;;
28802 --file | --fil | --fi | --f )
28803 $ac_shift
28804 case $ac_optarg in
28805 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28806 esac
28807 as_fn_append CONFIG_FILES " '$ac_optarg'"
28808 ac_need_defaults=false;;
28809 --header | --heade | --head | --hea )
28810 $ac_shift
28811 case $ac_optarg in
28812 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28813 esac
28814 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28815 ac_need_defaults=false;;
28816 --he | --h)
28817 # Conflict between --help and --header
28818 as_fn_error "ambiguous option: \`$1'
28819 Try \`$0 --help' for more information.";;
28820 --help | --hel | -h )
28821 $as_echo "$ac_cs_usage"; exit ;;
28822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28824 ac_cs_silent=: ;;
28826 # This is an error.
28827 -*) as_fn_error "unrecognized option: \`$1'
28828 Try \`$0 --help' for more information." ;;
28830 *) as_fn_append ac_config_targets " $1"
28831 ac_need_defaults=false ;;
28833 esac
28834 shift
28835 done
28837 ac_configure_extra_args=
28839 if $ac_cs_silent; then
28840 exec 6>/dev/null
28841 ac_configure_extra_args="$ac_configure_extra_args --silent"
28844 _ACEOF
28845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28846 if \$ac_cs_recheck; then
28847 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28848 shift
28849 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28850 CONFIG_SHELL='$SHELL'
28851 export CONFIG_SHELL
28852 exec "\$@"
28855 _ACEOF
28856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28857 exec 5>>config.log
28859 echo
28860 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28861 ## Running $as_me. ##
28862 _ASBOX
28863 $as_echo "$ac_log"
28864 } >&5
28866 _ACEOF
28867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28869 # INIT-COMMANDS
28871 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28872 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28873 subdirs='$subdirs'
28875 _ACEOF
28877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28879 # Handling of arguments.
28880 for ac_config_target in $ac_config_targets
28882 case $ac_config_target in
28883 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28884 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28885 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28886 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28887 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28888 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28889 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28890 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28891 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28893 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28894 esac
28895 done
28898 # If the user did not use the arguments to specify the items to instantiate,
28899 # then the envvar interface is used. Set only those that are not.
28900 # We use the long form for the default assignment because of an extremely
28901 # bizarre bug on SunOS 4.1.3.
28902 if $ac_need_defaults; then
28903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28904 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28905 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28906 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28909 # Have a temporary directory for convenience. Make it in the build tree
28910 # simply because there is no reason against having it here, and in addition,
28911 # creating and moving files from /tmp can sometimes cause problems.
28912 # Hook for its removal unless debugging.
28913 # Note that there is a small window in which the directory will not be cleaned:
28914 # after its creation but before its name has been assigned to `$tmp'.
28915 $debug ||
28917 tmp=
28918 trap 'exit_status=$?
28919 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28921 trap 'as_fn_exit 1' 1 2 13 15
28923 # Create a (secure) tmp directory for tmp files.
28926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28927 test -n "$tmp" && test -d "$tmp"
28928 } ||
28930 tmp=./conf$$-$RANDOM
28931 (umask 077 && mkdir "$tmp")
28932 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28934 # Set up the scripts for CONFIG_FILES section.
28935 # No need to generate them if there are no CONFIG_FILES.
28936 # This happens for instance with `./config.status config.h'.
28937 if test -n "$CONFIG_FILES"; then
28939 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28940 ac_cs_awk_getline=:
28941 ac_cs_awk_pipe_init=
28942 ac_cs_awk_read_file='
28943 while ((getline aline < (F[key])) > 0)
28944 print(aline)
28945 close(F[key])'
28946 ac_cs_awk_pipe_fini=
28947 else
28948 ac_cs_awk_getline=false
28949 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28950 ac_cs_awk_read_file='
28951 print "|#_!!_#|"
28952 print "cat " F[key] " &&"
28953 '$ac_cs_awk_pipe_init
28954 # The final `:' finishes the AND list.
28955 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28957 ac_cr=`echo X | tr X '\015'`
28958 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28959 # But we know of no other shell where ac_cr would be empty at this
28960 # point, so we can use a bashism as a fallback.
28961 if test "x$ac_cr" = x; then
28962 eval ac_cr=\$\'\\r\'
28964 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28965 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28966 ac_cs_awk_cr='\r'
28967 else
28968 ac_cs_awk_cr=$ac_cr
28971 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28972 _ACEOF
28974 # Create commands to substitute file output variables.
28976 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28977 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28978 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28979 echo "_ACAWK" &&
28980 echo "_ACEOF"
28981 } >conf$$files.sh &&
28982 . ./conf$$files.sh ||
28983 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28984 rm -f conf$$files.sh
28987 echo "cat >conf$$subs.awk <<_ACEOF" &&
28988 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28989 echo "_ACEOF"
28990 } >conf$$subs.sh ||
28991 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28992 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28993 ac_delim='%!_!# '
28994 for ac_last_try in false false false false false :; do
28995 . ./conf$$subs.sh ||
28996 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28998 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28999 if test $ac_delim_n = $ac_delim_num; then
29000 break
29001 elif $ac_last_try; then
29002 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29003 else
29004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29006 done
29007 rm -f conf$$subs.sh
29009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29010 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29011 _ACEOF
29012 sed -n '
29014 s/^/S["/; s/!.*/"]=/
29017 s/^[^!]*!//
29018 :repl
29019 t repl
29020 s/'"$ac_delim"'$//
29021 t delim
29024 s/\(.\{148\}\).*/\1/
29025 t more1
29026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29029 b repl
29030 :more1
29031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29034 s/.\{148\}//
29035 t nl
29036 :delim
29038 s/\(.\{148\}\).*/\1/
29039 t more2
29040 s/["\\]/\\&/g; s/^/"/; s/$/"/
29043 :more2
29044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29047 s/.\{148\}//
29048 t delim
29049 ' <conf$$subs.awk | sed '
29050 /^[^""]/{
29052 s/\n//
29054 ' >>$CONFIG_STATUS || ac_write_fail=1
29055 rm -f conf$$subs.awk
29056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29057 _ACAWK
29058 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29059 for (key in S) S_is_set[key] = 1
29060 FS = "\a"
29061 \$ac_cs_awk_pipe_init
29064 line = $ 0
29065 nfields = split(line, field, "@")
29066 substed = 0
29067 len = length(field[1])
29068 for (i = 2; i < nfields; i++) {
29069 key = field[i]
29070 keylen = length(key)
29071 if (S_is_set[key]) {
29072 value = S[key]
29073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29074 len += length(value) + length(field[++i])
29075 substed = 1
29076 } else
29077 len += 1 + keylen
29079 if (nfields == 3 && !substed) {
29080 key = field[2]
29081 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29082 \$ac_cs_awk_read_file
29083 next
29086 print line
29088 \$ac_cs_awk_pipe_fini
29089 _ACAWK
29090 _ACEOF
29091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29092 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29093 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29094 else
29096 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29097 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29098 _ACEOF
29100 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29101 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29102 # trailing colons and then remove the whole line if VPATH becomes empty
29103 # (actually we leave an empty line to preserve line numbers).
29104 if test "x$srcdir" = x.; then
29105 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29106 s/:*\$(srcdir):*/:/
29107 s/:*\${srcdir}:*/:/
29108 s/:*@srcdir@:*/:/
29109 s/^\([^=]*=[ ]*\):*/\1/
29110 s/:*$//
29111 s/^[^=]*=[ ]*$//
29115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29116 fi # test -n "$CONFIG_FILES"
29118 # Set up the scripts for CONFIG_HEADERS section.
29119 # No need to generate them if there are no CONFIG_HEADERS.
29120 # This happens for instance with `./config.status Makefile'.
29121 if test -n "$CONFIG_HEADERS"; then
29122 cat >"$tmp/defines.awk" <<\_ACAWK ||
29123 BEGIN {
29124 _ACEOF
29126 # Transform confdefs.h into an awk script `defines.awk', embedded as
29127 # here-document in config.status, that substitutes the proper values into
29128 # config.h.in to produce config.h.
29130 # Create a delimiter string that does not exist in confdefs.h, to ease
29131 # handling of long lines.
29132 ac_delim='%!_!# '
29133 for ac_last_try in false false :; do
29134 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29135 if test -z "$ac_t"; then
29136 break
29137 elif $ac_last_try; then
29138 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29139 else
29140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29142 done
29144 # For the awk script, D is an array of macro values keyed by name,
29145 # likewise P contains macro parameters if any. Preserve backslash
29146 # newline sequences.
29148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29149 sed -n '
29150 s/.\{148\}/&'"$ac_delim"'/g
29151 t rset
29152 :rset
29153 s/^[ ]*#[ ]*define[ ][ ]*/ /
29154 t def
29156 :def
29157 s/\\$//
29158 t bsnl
29159 s/["\\]/\\&/g
29160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29161 D["\1"]=" \3"/p
29162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29164 :bsnl
29165 s/["\\]/\\&/g
29166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29167 D["\1"]=" \3\\\\\\n"\\/p
29168 t cont
29169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29170 t cont
29172 :cont
29174 s/.\{148\}/&'"$ac_delim"'/g
29175 t clear
29176 :clear
29177 s/\\$//
29178 t bsnlc
29179 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29181 :bsnlc
29182 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29183 b cont
29184 ' <confdefs.h | sed '
29185 s/'"$ac_delim"'/"\\\
29186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29189 for (key in D) D_is_set[key] = 1
29190 FS = "\a"
29192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29193 line = \$ 0
29194 split(line, arg, " ")
29195 if (arg[1] == "#") {
29196 defundef = arg[2]
29197 mac1 = arg[3]
29198 } else {
29199 defundef = substr(arg[1], 2)
29200 mac1 = arg[2]
29202 split(mac1, mac2, "(") #)
29203 macro = mac2[1]
29204 prefix = substr(line, 1, index(line, defundef) - 1)
29205 if (D_is_set[macro]) {
29206 # Preserve the white space surrounding the "#".
29207 print prefix "define", macro P[macro] D[macro]
29208 next
29209 } else {
29210 # Replace #undef with comments. This is necessary, for example,
29211 # in the case of _POSIX_SOURCE, which is predefined and required
29212 # on some systems where configure will not decide to define it.
29213 if (defundef == "undef") {
29214 print "/*", prefix defundef, macro, "*/"
29215 next
29219 { print }
29220 _ACAWK
29221 _ACEOF
29222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29223 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29224 fi # test -n "$CONFIG_HEADERS"
29227 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29228 shift
29229 for ac_tag
29231 case $ac_tag in
29232 :[FHLC]) ac_mode=$ac_tag; continue;;
29233 esac
29234 case $ac_mode$ac_tag in
29235 :[FHL]*:*);;
29236 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29237 :[FH]-) ac_tag=-:-;;
29238 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29239 esac
29240 ac_save_IFS=$IFS
29241 IFS=:
29242 set x $ac_tag
29243 IFS=$ac_save_IFS
29244 shift
29245 ac_file=$1
29246 shift
29248 case $ac_mode in
29249 :L) ac_source=$1;;
29250 :[FH])
29251 ac_file_inputs=
29252 for ac_f
29254 case $ac_f in
29255 -) ac_f="$tmp/stdin";;
29256 *) # Look for the file first in the build tree, then in the source tree
29257 # (if the path is not absolute). The absolute path cannot be DOS-style,
29258 # because $ac_f cannot contain `:'.
29259 test -f "$ac_f" ||
29260 case $ac_f in
29261 [\\/$]*) false;;
29262 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29263 esac ||
29264 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29265 esac
29266 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29267 as_fn_append ac_file_inputs " '$ac_f'"
29268 done
29270 # Let's still pretend it is `configure' which instantiates (i.e., don't
29271 # use $as_me), people would be surprised to read:
29272 # /* config.h. Generated by config.status. */
29273 configure_input='Generated from '`
29274 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29275 `' by configure.'
29276 if test x"$ac_file" != x-; then
29277 configure_input="$ac_file. $configure_input"
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29279 $as_echo "$as_me: creating $ac_file" >&6;}
29281 # Neutralize special characters interpreted by sed in replacement strings.
29282 case $configure_input in #(
29283 *\&* | *\|* | *\\* )
29284 ac_sed_conf_input=`$as_echo "$configure_input" |
29285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29286 *) ac_sed_conf_input=$configure_input;;
29287 esac
29289 case $ac_tag in
29290 *:-:* | *:-) cat >"$tmp/stdin" \
29291 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29292 esac
29294 esac
29296 ac_dir=`$as_dirname -- "$ac_file" ||
29297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29298 X"$ac_file" : 'X\(//\)[^/]' \| \
29299 X"$ac_file" : 'X\(//\)$' \| \
29300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29301 $as_echo X"$ac_file" |
29302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29303 s//\1/
29306 /^X\(\/\/\)[^/].*/{
29307 s//\1/
29310 /^X\(\/\/\)$/{
29311 s//\1/
29314 /^X\(\/\).*/{
29315 s//\1/
29318 s/.*/./; q'`
29319 as_dir="$ac_dir"; as_fn_mkdir_p
29320 ac_builddir=.
29322 case "$ac_dir" in
29323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29326 # A ".." for each directory in $ac_dir_suffix.
29327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29328 case $ac_top_builddir_sub in
29329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29331 esac ;;
29332 esac
29333 ac_abs_top_builddir=$ac_pwd
29334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29335 # for backward compatibility:
29336 ac_top_builddir=$ac_top_build_prefix
29338 case $srcdir in
29339 .) # We are building in place.
29340 ac_srcdir=.
29341 ac_top_srcdir=$ac_top_builddir_sub
29342 ac_abs_top_srcdir=$ac_pwd ;;
29343 [\\/]* | ?:[\\/]* ) # Absolute name.
29344 ac_srcdir=$srcdir$ac_dir_suffix;
29345 ac_top_srcdir=$srcdir
29346 ac_abs_top_srcdir=$srcdir ;;
29347 *) # Relative name.
29348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29349 ac_top_srcdir=$ac_top_build_prefix$srcdir
29350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29351 esac
29352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29355 case $ac_mode in
29358 # CONFIG_FILE
29361 _ACEOF
29363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29364 # If the template does not know about datarootdir, expand it.
29365 # FIXME: This hack should be removed a few years after 2.60.
29366 ac_datarootdir_hack=; ac_datarootdir_seen=
29367 ac_sed_dataroot='
29368 /datarootdir/ {
29372 /@datadir@/p
29373 /@docdir@/p
29374 /@infodir@/p
29375 /@localedir@/p
29376 /@mandir@/p'
29377 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29378 *datarootdir*) ac_datarootdir_seen=yes;;
29379 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29381 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29382 _ACEOF
29383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29384 ac_datarootdir_hack='
29385 s&@datadir@&$datadir&g
29386 s&@docdir@&$docdir&g
29387 s&@infodir@&$infodir&g
29388 s&@localedir@&$localedir&g
29389 s&@mandir@&$mandir&g
29390 s&\\\${datarootdir}&$datarootdir&g' ;;
29391 esac
29392 _ACEOF
29394 # Neutralize VPATH when `$srcdir' = `.'.
29395 # Shell code in configure.ac might set extrasub.
29396 # FIXME: do we really want to maintain this feature?
29397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29398 ac_sed_extra="$ac_vpsub
29399 $extrasub
29400 _ACEOF
29401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29404 s|@configure_input@|$ac_sed_conf_input|;t t
29405 s&@top_builddir@&$ac_top_builddir_sub&;t t
29406 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29407 s&@srcdir@&$ac_srcdir&;t t
29408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29409 s&@top_srcdir@&$ac_top_srcdir&;t t
29410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29411 s&@builddir@&$ac_builddir&;t t
29412 s&@abs_builddir@&$ac_abs_builddir&;t t
29413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29414 $ac_datarootdir_hack
29416 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29417 if $ac_cs_awk_getline; then
29418 $AWK -f "$tmp/subs.awk"
29419 else
29420 $AWK -f "$tmp/subs.awk" | $SHELL
29421 fi >$tmp/out \
29422 || as_fn_error "could not create $ac_file" "$LINENO" 5
29424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29428 which seems to be undefined. Please make sure it is defined." >&5
29429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29430 which seems to be undefined. Please make sure it is defined." >&2;}
29432 rm -f "$tmp/stdin"
29433 case $ac_file in
29434 -) cat "$tmp/out" && rm -f "$tmp/out";;
29435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29436 esac \
29437 || as_fn_error "could not create $ac_file" "$LINENO" 5
29441 # CONFIG_HEADER
29443 if test x"$ac_file" != x-; then
29445 $as_echo "/* $configure_input */" \
29446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29447 } >"$tmp/config.h" \
29448 || as_fn_error "could not create $ac_file" "$LINENO" 5
29449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29452 else
29453 rm -f "$ac_file"
29454 mv "$tmp/config.h" "$ac_file" \
29455 || as_fn_error "could not create $ac_file" "$LINENO" 5
29457 else
29458 $as_echo "/* $configure_input */" \
29459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29460 || as_fn_error "could not create -" "$LINENO" 5
29465 # CONFIG_LINK
29468 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29470 else
29471 # Prefer the file from the source tree if names are identical.
29472 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29473 ac_source=$srcdir/$ac_source
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29477 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29479 if test ! -r "$ac_source"; then
29480 as_fn_error "$ac_source: file not found" "$LINENO" 5
29482 rm -f "$ac_file"
29484 # Try a relative symlink, then a hard link, then a copy.
29485 case $srcdir in
29486 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29487 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29488 esac
29489 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29490 ln "$ac_source" "$ac_file" 2>/dev/null ||
29491 cp -p "$ac_source" "$ac_file" ||
29492 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29495 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29496 $as_echo "$as_me: executing $ac_file commands" >&6;}
29498 esac
29501 case $ac_file$ac_mode in
29502 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29503 "gccdepdir":C)
29504 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29505 for lang in $subdirs c-family common
29507 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29508 done ;;
29509 "as":F) chmod +x as ;;
29510 "collect-ld":F) chmod +x collect-ld ;;
29511 "nm":F) chmod +x nm ;;
29512 "default":C)
29513 case ${CONFIG_HEADERS} in
29514 *auto-host.h:config.in*)
29515 echo > cstamp-h ;;
29516 esac
29517 # Make sure all the subdirs exist.
29518 for d in $subdirs doc build common c-family
29520 test -d $d || mkdir $d
29521 done
29524 esac
29525 done # for ac_tag
29528 as_fn_exit 0
29529 _ACEOF
29530 ac_clean_files=$ac_clean_files_save
29532 test $ac_write_fail = 0 ||
29533 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29536 # configure is writing to config.log, and then calls config.status.
29537 # config.status does its own redirection, appending to config.log.
29538 # Unfortunately, on DOS this fails, as config.log is still kept open
29539 # by configure, so config.status won't be able to write to it; its
29540 # output is simply discarded. So we exec the FD to /dev/null,
29541 # effectively closing config.log, so it can be properly (re)opened and
29542 # appended to by config.status. When coming back to configure, we
29543 # need to make the FD available again.
29544 if test "$no_create" != yes; then
29545 ac_cs_success=:
29546 ac_config_status_args=
29547 test "$silent" = yes &&
29548 ac_config_status_args="$ac_config_status_args --quiet"
29549 exec 5>/dev/null
29550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29551 exec 5>>config.log
29552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29553 # would make configure fail if this is the last instruction.
29554 $ac_cs_success || as_fn_exit $?
29556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}