Fix typo/copy'n'pasto.
[official-gcc.git] / gcc / configure
blobf0bcb67bf5634edb802104c5f52c5e7980086bf3
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 accel_dir_suffix
614 real_target_noncanonical
615 tool_prefix
616 target_cpu_default
617 fortran_target_objs
618 cxx_target_objs
619 c_target_objs
620 use_gcc_stdint
621 xm_defines
622 xm_include_list
623 xm_file_list
624 tm_p_include_list
625 tm_p_file_list
626 tm_defines
627 tm_include_list
628 tm_file_list
629 common_out_object_file
630 common_out_file
631 out_object_file
632 out_file
633 objc_boehm_gc
634 md_file
635 local_prefix
636 lang_tree_files
637 lang_specs_files
638 lang_opt_files
639 install
640 out_host_hook_obj
641 host_xm_defines
642 host_xm_include_list
643 host_xm_file_list
644 host_exeext
645 gcc_gxx_include_dir_add_sysroot
646 gcc_gxx_include_dir
647 gcc_config_arguments
648 float_h_file
649 extra_programs
650 extra_objs
651 extra_headers_list
652 user_headers_inc_next_post
653 user_headers_inc_next_pre
654 extra_gcc_objs
655 TM_MULTILIB_EXCEPTIONS_CONFIG
656 TM_MULTILIB_CONFIG
657 TM_ENDIAN_CONFIG
658 tmake_file
659 xmake_file
660 cpp_install_dir
661 check_languages
662 build_file_translate
663 build_xm_defines
664 build_xm_include_list
665 build_xm_file_list
666 build_install_headers_dir
667 build_exeext
668 all_selected_languages
669 all_languages
670 all_lang_makefrags
671 all_gtfiles
672 all_compilers
673 srcdir
674 subdirs
675 dollar
676 gcc_tooldir
677 enable_lto
678 DO_LINK_MUTEX
679 MAINT
680 zlibinc
681 zlibdir
682 HOST_LIBS
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 STMP_FIXINC
712 BUILD_LDFLAGS
713 BUILD_CXXFLAGS
714 BUILD_CFLAGS
715 CXX_FOR_BUILD
716 CC_FOR_BUILD
717 inhibit_libc
718 SYSTEM_HEADER_DIR
720 CROSS
721 CATOBJEXT
722 GENCAT
723 INSTOBJEXT
724 DATADIRNAME
725 CATALOGS
726 POSUB
727 GMSGFMT
728 XGETTEXT
729 INCINTL
730 LIBINTL_DEP
731 LIBINTL
732 USE_NLS
733 extra_opt_files
734 extra_modes_file
735 NATIVE_SYSTEM_HEADER_DIR
736 objext
737 manext
738 LIBICONV_DEP
739 LTLIBICONV
740 LIBICONV
741 LDEXP_LIB
742 EXTRA_GCC_LIBS
743 GNAT_LIBEXC
744 COLLECT2_LIBS
745 CXXDEPMODE
746 DEPDIR
747 am__leading_dot
748 CXXCPP
751 BISON
752 FLEX
753 GENERATED_MANPAGES
754 BUILD_INFO
755 MAKEINFO
756 have_mktemp_command
757 make_compare_target
758 INSTALL_DATA
759 INSTALL_PROGRAM
760 INSTALL
761 ranlib_flags
762 RANLIB
764 LN_S
766 SET_MAKE
767 enable_as_accelerator
768 enable_accelerator
769 REPORT_BUGS_TEXI
770 REPORT_BUGS_TO
771 PKGVERSION
772 CONFIGURE_SPECS
773 CROSS_SYSTEM_HEADER_DIR
774 TARGET_SYSTEM_ROOT_DEFINE
775 TARGET_SYSTEM_ROOT
776 SYSROOT_CFLAGS_FOR_TARGET
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 TREEBROWSER
790 nocommon_flag
791 noexception_flags
792 warn_cxxflags
793 warn_cflags
794 c_strict_warn
795 strict_warn
796 c_loose_warn
797 loose_warn
798 EGREP
799 GREP
801 PICFLAG_FOR_TARGET
802 GNATMAKE
803 GNATBIND
804 ac_ct_CXX
805 CXXFLAGS
807 OBJEXT
808 EXEEXT
809 ac_ct_CC
810 CPPFLAGS
811 LDFLAGS
812 CFLAGS
814 GENINSRC
815 target_subdir
816 host_subdir
817 build_subdir
818 build_libsubdir
819 target_noncanonical
820 target_os
821 target_vendor
822 target_cpu
823 target
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files='option_includes
871 language_hooks'
872 ac_user_opts='
873 enable_option_checking
874 with_build_libsubdir
875 with_local_prefix
876 with_gxx_include_dir
877 with_cpp_install_dir
878 enable_generated_files_in_srcdir
879 with_gnu_ld
880 with_ld
881 with_demangler_in_ld
882 with_gnu_as
883 with_as
884 enable_largefile
885 enable_build_format_warnings
886 enable_werror_always
887 enable_checking
888 enable_coverage
889 enable_gather_detailed_mem_stats
890 with_stabs
891 enable_multilib
892 enable_multiarch
893 enable___cxa_atexit
894 enable_decimal_float
895 enable_fixed_point
896 enable_threads
897 enable_tls
898 enable_objc_gc
899 with_dwarf2
900 enable_shared
901 with_native_system_header_dir
902 with_build_sysroot
903 with_sysroot
904 with_specs
905 with_pkgversion
906 with_bugurl
907 enable_languages
908 enable_accelerator
909 enable_as_accelerator_for
910 enable_offload_targets
911 with_multilib_list
912 enable_rpath
913 with_libiconv_prefix
914 enable_sjlj_exceptions
915 enable_secureplt
916 enable_leading_mingw64_underscores
917 enable_cld
918 enable_frame_pointer
919 enable_win32_registry
920 enable_static
921 with_pic
922 enable_fast_install
923 enable_libtool_lock
924 enable_ld
925 enable_gold
926 with_plugin_ld
927 enable_gnu_indirect_function
928 enable_initfini_array
929 enable_comdat
930 with_glibc_version
931 enable_gnu_unique_object
932 enable_linker_build_id
933 with_long_double_128
934 with_gc
935 with_system_zlib
936 enable_maintainer_mode
937 enable_link_mutex
938 enable_version_specific_runtime_libs
939 enable_plugin
940 enable_host_shared
941 enable_libquadmath_support
942 with_linker_hash_style
944 ac_precious_vars='build_alias
945 host_alias
946 target_alias
948 CFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
953 CXXFLAGS
956 CXXCPP
957 GMPLIBS
958 GMPINC
959 ISLLIBS
960 ISLINC
961 CLOOGLIBS
962 CLOOGINC'
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1033 ac_dashdash=yes ;;
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 ac_prev=sbindir ;;
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 | --sbi=* | --sb=*)
1256 sbindir=$ac_optarg ;;
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1261 | --sha | --sh)
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 | --sha=* | --sh=*)
1267 sharedstatedir=$ac_optarg ;;
1269 -site | --site | --sit)
1270 ac_prev=site ;;
1271 -site=* | --site=* | --sit=*)
1272 site=$ac_optarg ;;
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 ac_prev=srcdir ;;
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 verbose=yes ;;
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1297 -with-* | --with-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1347 -*) as_fn_error "unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information."
1351 *=*)
1352 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353 # Reject names that are not valid shell variable names.
1354 case $ac_envvar in #(
1355 '' | [0-9]* | *[!_$as_cr_alnum]* )
1356 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1357 esac
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 esac
1370 done
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 as_fn_error "missing argument to $ac_option"
1377 if test -n "$ac_unrecognized_opts"; then
1378 case $enable_option_checking in
1379 no) ;;
1380 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1404 done
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427 test "$silent" = yes && exec 6>/dev/null
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error "working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error "pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1456 /^X\(\/\/\)$/{
1457 s//\1/
1460 /^X\(\/\).*/{
1461 s//\1/
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1469 else
1470 ac_srcdir_defaulted=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 ac_abs_confdir=`(
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1559 cat <<\_ACEOF
1561 Program names:
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1566 System types:
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1569 --target=TARGET configure for building compilers for TARGET [HOST]
1570 _ACEOF
1573 if test -n "$ac_init_help"; then
1575 cat <<\_ACEOF
1577 Optional Features:
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-generated-files-in-srcdir
1582 put copies of generated files in source dir intended
1583 for creating source tarballs for users without
1584 texinfo bison or flex
1585 --disable-largefile omit support for large files
1586 --disable-build-format-warnings
1587 don't use -Wformat while building GCC
1588 --enable-werror-always enable -Werror despite compiler version
1589 --enable-checking[=LIST]
1590 enable expensive run-time checks. With LIST, enable
1591 only specific categories of checks. Categories are:
1592 yes,no,all,none,release. Flags are:
1593 assert,df,fold,gc,gcac,gimple,misc,
1594 rtlflag,rtl,runtime,tree,valgrind,types
1595 --enable-coverage[=LEVEL]
1596 enable compiler's code coverage collection. Use to
1597 measure compiler performance and locate unused parts
1598 of the compiler. With LEVEL, specify optimization.
1599 Values are opt, noopt, default is noopt
1600 --enable-gather-detailed-mem-stats
1601 enable detailed memory allocation stats gathering
1602 --enable-multilib enable library support for multiple ABIs
1603 --enable-multiarch enable support for multiarch paths
1604 --enable-__cxa_atexit enable __cxa_atexit for C++
1605 --enable-decimal-float={no,yes,bid,dpd}
1606 enable decimal float extension to C. Selecting 'bid'
1607 or 'dpd' choses which decimal floating point format
1608 to use
1609 --enable-fixed-point enable fixed-point arithmetic extension to C
1610 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1611 package
1612 --enable-tls enable or disable generation of tls code overriding
1613 the assembler check for tls support
1614 --enable-objc-gc enable the use of Boehm's garbage collector with the
1615 GNU Objective-C runtime
1616 --disable-shared don't provide a shared libgcc
1617 --enable-languages=LIST specify which front-ends to build
1618 --enable-accelerator build accelerator [ARG={no,device-triplet}]
1619 --enable-as-accelerator-for
1620 build compiler as accelerator target for given host
1621 --enable-offload-targets=LIST
1622 enable offloading to devices from LIST
1623 --disable-rpath do not hardcode runtime library paths
1624 --enable-sjlj-exceptions
1625 arrange to use setjmp/longjmp exception handling
1626 --enable-secureplt enable -msecure-plt by default for PowerPC
1627 --enable-leading-mingw64-underscores
1628 enable leading underscores on 64 bit mingw targets
1629 --enable-cld enable -mcld by default for 32bit x86
1630 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1632 --disable-win32-registry
1633 disable lookup of installation paths in the Registry
1634 on Windows hosts
1635 --enable-win32-registry enable registry lookup (default)
1636 --enable-win32-registry=KEY
1637 use KEY instead of GCC version as the last portion
1638 of the registry key
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=yes]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1645 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1646 --enable-gnu-indirect-function
1647 enable the use of the @gnu_indirect_function to
1648 glibc systems
1649 --enable-initfini-array use .init_array/.fini_array sections
1650 --enable-comdat enable COMDAT group support
1651 --enable-gnu-unique-object
1652 enable the use of the @gnu_unique_object ELF
1653 extension on glibc systems
1654 --enable-linker-build-id
1655 compiler will always pass --build-id to linker
1656 --enable-maintainer-mode
1657 enable make rules and dependencies not useful (and
1658 sometimes confusing) to the casual installer
1659 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1660 thrashing on the build machine
1661 --enable-version-specific-runtime-libs
1662 specify that runtime libraries should be installed
1663 in a compiler-specific directory
1664 --enable-plugin enable plugin support
1665 --enable-host-shared build host code as shared libraries
1666 --disable-libquadmath-support
1667 disable libquadmath support for Fortran
1669 Optional Packages:
1670 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1671 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1672 --with-build-libsubdir=DIR Directory where to find libraries for build system
1673 --with-local-prefix=DIR specifies directory to put local include
1674 --with-gxx-include-dir=DIR
1675 specifies directory to put g++ header files
1676 --with-cpp-install-dir=DIR
1677 install the user visible C preprocessor in DIR
1678 (relative to PREFIX) as well as PREFIX/bin
1679 --with-gnu-ld arrange to work with GNU ld
1680 --with-ld arrange to use the specified ld (full pathname)
1681 --with-demangler-in-ld try to use demangler in GNU ld
1682 --with-gnu-as arrange to work with GNU as
1683 --with-as arrange to use the specified as (full pathname)
1684 --with-stabs arrange to use stabs instead of host debug format
1685 --with-dwarf2 force the default debug format to be DWARF 2
1686 --with-native-system-header-dir=dir
1687 use dir as the directory to look for standard
1688 system header files in. Defaults to /usr/include.
1689 --with-build-sysroot=sysroot
1690 use sysroot as the system root during the build
1691 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1692 --with-specs=SPECS add SPECS to driver command-line processing
1693 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1694 --with-bugurl=URL Direct users to URL to report a bug
1695 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1696 --with-gnu-ld assume the C compiler uses GNU ld default=no
1697 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1698 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1699 --with-pic try to use only PIC/non-PIC objects [default=use
1700 both]
1701 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1702 --with-plugin-ld=[ARG] specify the plugin linker
1703 --with-glibc-version=M.N
1704 assume GCC used with glibc version M.N or later
1705 --with-long-double-128 use 128-bit long double by default
1706 --with-gc={page,zone} this option is not supported anymore. It used to
1707 choose the garbage collection mechanism to use with
1708 the compiler
1709 --with-system-zlib use installed libz
1710 --with-linker-hash-style={sysv,gnu,both}
1711 specify the linker hash style
1713 Some influential environment variables:
1714 CC C compiler command
1715 CFLAGS C compiler flags
1716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1717 nonstandard directory <lib dir>
1718 LIBS libraries to pass to the linker, e.g. -l<library>
1719 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1720 you have headers in a nonstandard directory <include dir>
1721 CXX C++ compiler command
1722 CXXFLAGS C++ compiler flags
1723 CPP C preprocessor
1724 CXXCPP C++ preprocessor
1725 GMPLIBS How to link GMP
1726 GMPINC How to find GMP include files
1727 ISLLIBS How to link ISL
1728 ISLINC How to find ISL include files
1729 CLOOGLIBS How to link CLOOG
1730 CLOOGINC How to find CLOOG include files
1732 Use these variables to override the choices made by `configure' or to help
1733 it to find libraries and programs with nonstandard names/locations.
1735 Report bugs to the package provider.
1736 _ACEOF
1737 ac_status=$?
1740 if test "$ac_init_help" = "recursive"; then
1741 # If there are subdirs, report their specific --help.
1742 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1743 test -d "$ac_dir" ||
1744 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1745 continue
1746 ac_builddir=.
1748 case "$ac_dir" in
1749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1752 # A ".." for each directory in $ac_dir_suffix.
1753 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1754 case $ac_top_builddir_sub in
1755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1757 esac ;;
1758 esac
1759 ac_abs_top_builddir=$ac_pwd
1760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1761 # for backward compatibility:
1762 ac_top_builddir=$ac_top_build_prefix
1764 case $srcdir in
1765 .) # We are building in place.
1766 ac_srcdir=.
1767 ac_top_srcdir=$ac_top_builddir_sub
1768 ac_abs_top_srcdir=$ac_pwd ;;
1769 [\\/]* | ?:[\\/]* ) # Absolute name.
1770 ac_srcdir=$srcdir$ac_dir_suffix;
1771 ac_top_srcdir=$srcdir
1772 ac_abs_top_srcdir=$srcdir ;;
1773 *) # Relative name.
1774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1775 ac_top_srcdir=$ac_top_build_prefix$srcdir
1776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1777 esac
1778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1780 cd "$ac_dir" || { ac_status=$?; continue; }
1781 # Check for guested configure.
1782 if test -f "$ac_srcdir/configure.gnu"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785 elif test -f "$ac_srcdir/configure"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure" --help=recursive
1788 else
1789 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 fi || ac_status=$?
1791 cd "$ac_pwd" || { ac_status=$?; break; }
1792 done
1795 test -n "$ac_init_help" && exit $ac_status
1796 if $ac_init_version; then
1797 cat <<\_ACEOF
1798 configure
1799 generated by GNU Autoconf 2.64
1801 Copyright (C) 2009 Free Software Foundation, Inc.
1802 This configure script is free software; the Free Software Foundation
1803 gives unlimited permission to copy, distribute and modify it.
1804 _ACEOF
1805 exit
1808 ## ------------------------ ##
1809 ## Autoconf initialization. ##
1810 ## ------------------------ ##
1812 # ac_fn_c_try_compile LINENO
1813 # --------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1848 } # ac_fn_c_try_compile
1850 # ac_fn_cxx_try_compile LINENO
1851 # ----------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1886 } # ac_fn_cxx_try_compile
1888 # ac_fn_c_try_cpp LINENO
1889 # ----------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_c_try_cpp ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } >/dev/null && {
1910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 return $ac_retval
1923 } # ac_fn_c_try_cpp
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1929 # accordingly.
1930 ac_fn_c_check_header_mongrel ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 else
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1953 else
1954 ac_header_compiler=no
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1969 else
1970 ac_header_preproc=no
1972 rm -f conftest.err conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 yes:no: )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 no:yes:* )
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 esac
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 eval "$3=\$ac_header_compiler"
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 } # ac_fn_c_check_header_mongrel
2012 # ac_fn_c_try_run LINENO
2013 # ----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2015 # that executables *can* be run.
2016 ac_fn_c_try_run ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if { { ac_try="$ac_link"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2030 { { case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_try") 2>&5
2037 ac_status=$?
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; }; }; then :
2040 ac_retval=0
2041 else
2042 $as_echo "$as_me: program exited with status $ac_status" >&5
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 ac_retval=$ac_status
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 return $ac_retval
2052 } # ac_fn_c_try_run
2054 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2055 # -------------------------------------------------------
2056 # Tests whether HEADER exists and can be compiled using the include files in
2057 # INCLUDES, setting the cache variable VAR accordingly.
2058 ac_fn_c_check_header_compile ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 eval "$3=yes"
2073 else
2074 eval "$3=no"
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083 } # ac_fn_c_check_header_compile
2085 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2086 # --------------------------------------------
2087 # Tries to find the compile-time value of EXPR in a program that includes
2088 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2089 # computed
2090 ac_fn_c_compute_int ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 if test "$cross_compiling" = yes; then
2094 # Depending upon the size, compute the lo and hi bounds.
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2099 main ()
2101 static int test_array [1 - 2 * !(($2) >= 0)];
2102 test_array [0] = 0
2105 return 0;
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_lo=0 ac_mid=0
2110 while :; do
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2115 main ()
2117 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2118 test_array [0] = 0
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 ac_hi=$ac_mid; break
2126 else
2127 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2128 if test $ac_lo -le $ac_mid; then
2129 ac_lo= ac_hi=
2130 break
2132 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 done
2136 else
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2141 main ()
2143 static int test_array [1 - 2 * !(($2) < 0)];
2144 test_array [0] = 0
2147 return 0;
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=-1 ac_mid=-1
2152 while :; do
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2157 main ()
2159 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2160 test_array [0] = 0
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_lo=$ac_mid; break
2168 else
2169 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2170 if test $ac_mid -le $ac_hi; then
2171 ac_lo= ac_hi=
2172 break
2174 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 done
2178 else
2179 ac_lo= ac_hi=
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 # Binary search between lo and hi bounds.
2185 while test "x$ac_lo" != "x$ac_hi"; do
2186 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2191 main ()
2193 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2194 test_array [0] = 0
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_hi=$ac_mid
2202 else
2203 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 done
2207 case $ac_lo in #((
2208 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2209 '') ac_retval=1 ;;
2210 esac
2211 else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2215 static long int longval () { return $2; }
2216 static unsigned long int ulongval () { return $2; }
2217 #include <stdio.h>
2218 #include <stdlib.h>
2220 main ()
2223 FILE *f = fopen ("conftest.val", "w");
2224 if (! f)
2225 return 1;
2226 if (($2) < 0)
2228 long int i = longval ();
2229 if (i != ($2))
2230 return 1;
2231 fprintf (f, "%ld", i);
2233 else
2235 unsigned long int i = ulongval ();
2236 if (i != ($2))
2237 return 1;
2238 fprintf (f, "%lu", i);
2240 /* Do not output a trailing newline, as this causes \r\n confusion
2241 on some platforms. */
2242 return ferror (f) || fclose (f) != 0;
2245 return 0;
2247 _ACEOF
2248 if ac_fn_c_try_run "$LINENO"; then :
2249 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2250 else
2251 ac_retval=1
2253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2254 conftest.$ac_objext conftest.beam conftest.$ac_ext
2255 rm -f conftest.val
2258 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2259 return $ac_retval
2261 } # ac_fn_c_compute_int
2263 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2264 # -------------------------------------------
2265 # Tests whether TYPE exists after having included INCLUDES, setting cache
2266 # variable VAR accordingly.
2267 ac_fn_c_check_type ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 eval "$3=no"
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2280 main ()
2282 if (sizeof ($2))
2283 return 0;
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2293 main ()
2295 if (sizeof (($2)))
2296 return 0;
2298 return 0;
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2303 else
2304 eval "$3=yes"
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 eval ac_res=\$$3
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 } # ac_fn_c_check_type
2317 # ac_fn_c_find_intX_t LINENO BITS VAR
2318 # -----------------------------------
2319 # Finds a signed integer type with width BITS, setting cache variable VAR
2320 # accordingly.
2321 ac_fn_c_find_intX_t ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2325 $as_echo_n "checking for int$2_t... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 eval "$3=no"
2330 for ac_type in int$2_t 'int' 'long int' \
2331 'long long int' 'short int' 'signed char'; do
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 $ac_includes_default
2336 main ()
2338 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2339 test_array [0] = 0
2342 return 0;
2344 _ACEOF
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2348 $ac_includes_default
2350 main ()
2352 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2353 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2354 test_array [0] = 0
2357 return 0;
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2362 else
2363 case $ac_type in #(
2364 int$2_t) :
2365 eval "$3=yes" ;; #(
2366 *) :
2367 eval "$3=\$ac_type" ;;
2368 esac
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 eval as_val=\$$3
2374 if test "x$as_val" = x""no; then :
2376 else
2377 break
2379 done
2381 eval ac_res=\$$3
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_find_intX_t
2388 # ac_fn_c_try_link LINENO
2389 # -----------------------
2390 # Try to link conftest.$ac_ext, and return whether this succeeded.
2391 ac_fn_c_try_link ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 rm -f conftest.$ac_objext conftest$ac_exeext
2395 if { { ac_try="$ac_link"
2396 case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399 esac
2400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2401 $as_echo "$ac_try_echo"; } >&5
2402 (eval "$ac_link") 2>conftest.err
2403 ac_status=$?
2404 if test -s conftest.err; then
2405 grep -v '^ *+' conftest.err >conftest.er1
2406 cat conftest.er1 >&5
2407 mv -f conftest.er1 conftest.err
2409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2410 test $ac_status = 0; } && {
2411 test -z "$ac_c_werror_flag" ||
2412 test ! -s conftest.err
2413 } && test -s conftest$ac_exeext && {
2414 test "$cross_compiling" = yes ||
2415 $as_test_x conftest$ac_exeext
2416 }; then :
2417 ac_retval=0
2418 else
2419 $as_echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2422 ac_retval=1
2424 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2425 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2426 # interfere with the next link command; also delete a directory that is
2427 # left behind by Apple's compiler. We do this before executing the actions.
2428 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2429 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 return $ac_retval
2432 } # ac_fn_c_try_link
2434 # ac_fn_c_find_uintX_t LINENO BITS VAR
2435 # ------------------------------------
2436 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2437 # accordingly.
2438 ac_fn_c_find_uintX_t ()
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2442 $as_echo_n "checking for uint$2_t... " >&6; }
2443 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 eval "$3=no"
2447 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2448 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2451 $ac_includes_default
2453 main ()
2455 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2456 test_array [0] = 0
2459 return 0;
2461 _ACEOF
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463 case $ac_type in #(
2464 uint$2_t) :
2465 eval "$3=yes" ;; #(
2466 *) :
2467 eval "$3=\$ac_type" ;;
2468 esac
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 eval as_val=\$$3
2472 if test "x$as_val" = x""no; then :
2474 else
2475 break
2477 done
2479 eval ac_res=\$$3
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_find_uintX_t
2486 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2487 # ----------------------------------------------
2488 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2489 ac_fn_c_check_header_preproc ()
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493 $as_echo_n "checking for $2... " >&6; }
2494 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2499 #include <$2>
2500 _ACEOF
2501 if ac_fn_c_try_cpp "$LINENO"; then :
2502 eval "$3=yes"
2503 else
2504 eval "$3=no"
2506 rm -f conftest.err conftest.$ac_ext
2508 eval ac_res=\$$3
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 $as_echo "$ac_res" >&6; }
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2513 } # ac_fn_c_check_header_preproc
2515 # ac_fn_cxx_try_cpp LINENO
2516 # ------------------------
2517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2518 ac_fn_cxx_try_cpp ()
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 if { { ac_try="$ac_cpp conftest.$ac_ext"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527 $as_echo "$ac_try_echo"; } >&5
2528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2529 ac_status=$?
2530 if test -s conftest.err; then
2531 grep -v '^ *+' conftest.err >conftest.er1
2532 cat conftest.er1 >&5
2533 mv -f conftest.er1 conftest.err
2535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536 test $ac_status = 0; } >/dev/null && {
2537 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2538 test ! -s conftest.err
2539 }; then :
2540 ac_retval=0
2541 else
2542 $as_echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 ac_retval=1
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2548 return $ac_retval
2550 } # ac_fn_cxx_try_cpp
2552 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2553 # ------------------------------------------------
2554 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2555 ac_fn_cxx_check_header_preproc ()
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2559 $as_echo_n "checking for $2... " >&6; }
2560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2565 #include <$2>
2566 _ACEOF
2567 if ac_fn_cxx_try_cpp "$LINENO"; then :
2568 eval "$3=yes"
2569 else
2570 eval "$3=no"
2572 rm -f conftest.err conftest.$ac_ext
2574 eval ac_res=\$$3
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579 } # ac_fn_cxx_check_header_preproc
2581 # ac_fn_c_check_func LINENO FUNC VAR
2582 # ----------------------------------
2583 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2584 ac_fn_c_check_func ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2588 $as_echo_n "checking for $2... " >&6; }
2589 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2594 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2596 #define $2 innocuous_$2
2598 /* System header to define __stub macros and hopefully few prototypes,
2599 which can conflict with char $2 (); below.
2600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2601 <limits.h> exists even on freestanding compilers. */
2603 #ifdef __STDC__
2604 # include <limits.h>
2605 #else
2606 # include <assert.h>
2607 #endif
2609 #undef $2
2611 /* Override any GCC internal prototype to avoid an error.
2612 Use char because int might match the return type of a GCC
2613 builtin and then its argument prototype would still apply. */
2614 #ifdef __cplusplus
2615 extern "C"
2616 #endif
2617 char $2 ();
2618 /* The GNU C library defines this for functions which it implements
2619 to always fail with ENOSYS. Some functions are actually named
2620 something starting with __ and the normal name is an alias. */
2621 #if defined __stub_$2 || defined __stub___$2
2622 choke me
2623 #endif
2626 main ()
2628 return $2 ();
2630 return 0;
2632 _ACEOF
2633 if ac_fn_c_try_link "$LINENO"; then :
2634 eval "$3=yes"
2635 else
2636 eval "$3=no"
2638 rm -f core conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2641 eval ac_res=\$$3
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2646 } # ac_fn_c_check_func
2648 # ac_fn_cxx_try_link LINENO
2649 # -------------------------
2650 # Try to link conftest.$ac_ext, and return whether this succeeded.
2651 ac_fn_cxx_try_link ()
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { { ac_try="$ac_link"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2661 $as_echo "$ac_try_echo"; } >&5
2662 (eval "$ac_link") 2>conftest.err
2663 ac_status=$?
2664 if test -s conftest.err; then
2665 grep -v '^ *+' conftest.err >conftest.er1
2666 cat conftest.er1 >&5
2667 mv -f conftest.er1 conftest.err
2669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2670 test $ac_status = 0; } && {
2671 test -z "$ac_cxx_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest$ac_exeext && {
2674 test "$cross_compiling" = yes ||
2675 $as_test_x conftest$ac_exeext
2676 }; then :
2677 ac_retval=0
2678 else
2679 $as_echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 ac_retval=1
2684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2686 # interfere with the next link command; also delete a directory that is
2687 # left behind by Apple's compiler. We do this before executing the actions.
2688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 return $ac_retval
2692 } # ac_fn_cxx_try_link
2693 cat >config.log <<_ACEOF
2694 This file contains any messages produced by compilers while
2695 running configure, to aid debugging if configure makes a mistake.
2697 It was created by $as_me, which was
2698 generated by GNU Autoconf 2.64. Invocation command line was
2700 $ $0 $@
2702 _ACEOF
2703 exec 5>>config.log
2705 cat <<_ASUNAME
2706 ## --------- ##
2707 ## Platform. ##
2708 ## --------- ##
2710 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2711 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2712 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2713 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2714 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2716 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2717 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2719 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2720 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2721 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2722 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2723 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2724 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2725 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2727 _ASUNAME
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 $as_echo "PATH: $as_dir"
2735 done
2736 IFS=$as_save_IFS
2738 } >&5
2740 cat >&5 <<_ACEOF
2743 ## ----------- ##
2744 ## Core tests. ##
2745 ## ----------- ##
2747 _ACEOF
2750 # Keep a trace of the command line.
2751 # Strip out --no-create and --no-recursion so they do not pile up.
2752 # Strip out --silent because we don't want to record it for future runs.
2753 # Also quote any args containing shell meta-characters.
2754 # Make two passes to allow for proper duplicate-argument suppression.
2755 ac_configure_args=
2756 ac_configure_args0=
2757 ac_configure_args1=
2758 ac_must_keep_next=false
2759 for ac_pass in 1 2
2761 for ac_arg
2763 case $ac_arg in
2764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2766 | -silent | --silent | --silen | --sile | --sil)
2767 continue ;;
2768 *\'*)
2769 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2770 esac
2771 case $ac_pass in
2772 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2774 as_fn_append ac_configure_args1 " '$ac_arg'"
2775 if test $ac_must_keep_next = true; then
2776 ac_must_keep_next=false # Got value, back to normal.
2777 else
2778 case $ac_arg in
2779 *=* | --config-cache | -C | -disable-* | --disable-* \
2780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2782 | -with-* | --with-* | -without-* | --without-* | --x)
2783 case "$ac_configure_args0 " in
2784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2785 esac
2787 -* ) ac_must_keep_next=true ;;
2788 esac
2790 as_fn_append ac_configure_args " '$ac_arg'"
2792 esac
2793 done
2794 done
2795 { ac_configure_args0=; unset ac_configure_args0;}
2796 { ac_configure_args1=; unset ac_configure_args1;}
2798 # When interrupted or exit'd, cleanup temporary files, and complete
2799 # config.log. We remove comments because anyway the quotes in there
2800 # would cause problems or look ugly.
2801 # WARNING: Use '\'' to represent an apostrophe within the trap.
2802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2803 trap 'exit_status=$?
2804 # Save into config.log some information that might help in debugging.
2806 echo
2808 cat <<\_ASBOX
2809 ## ---------------- ##
2810 ## Cache variables. ##
2811 ## ---------------- ##
2812 _ASBOX
2813 echo
2814 # The following way of writing the cache mishandles newlines in values,
2816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2817 eval ac_val=\$$ac_var
2818 case $ac_val in #(
2819 *${as_nl}*)
2820 case $ac_var in #(
2821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2823 esac
2824 case $ac_var in #(
2825 _ | IFS | as_nl) ;; #(
2826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2827 *) { eval $ac_var=; unset $ac_var;} ;;
2828 esac ;;
2829 esac
2830 done
2831 (set) 2>&1 |
2832 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2833 *${as_nl}ac_space=\ *)
2834 sed -n \
2835 "s/'\''/'\''\\\\'\'''\''/g;
2836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2837 ;; #(
2839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2841 esac |
2842 sort
2844 echo
2846 cat <<\_ASBOX
2847 ## ----------------- ##
2848 ## Output variables. ##
2849 ## ----------------- ##
2850 _ASBOX
2851 echo
2852 for ac_var in $ac_subst_vars
2854 eval ac_val=\$$ac_var
2855 case $ac_val in
2856 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2857 esac
2858 $as_echo "$ac_var='\''$ac_val'\''"
2859 done | sort
2860 echo
2862 if test -n "$ac_subst_files"; then
2863 cat <<\_ASBOX
2864 ## ------------------- ##
2865 ## File substitutions. ##
2866 ## ------------------- ##
2867 _ASBOX
2868 echo
2869 for ac_var in $ac_subst_files
2871 eval ac_val=\$$ac_var
2872 case $ac_val in
2873 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2874 esac
2875 $as_echo "$ac_var='\''$ac_val'\''"
2876 done | sort
2877 echo
2880 if test -s confdefs.h; then
2881 cat <<\_ASBOX
2882 ## ----------- ##
2883 ## confdefs.h. ##
2884 ## ----------- ##
2885 _ASBOX
2886 echo
2887 cat confdefs.h
2888 echo
2890 test "$ac_signal" != 0 &&
2891 $as_echo "$as_me: caught signal $ac_signal"
2892 $as_echo "$as_me: exit $exit_status"
2893 } >&5
2894 rm -f core *.core core.conftest.* &&
2895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2896 exit $exit_status
2898 for ac_signal in 1 2 13 15; do
2899 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2900 done
2901 ac_signal=0
2903 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2904 rm -f -r conftest* confdefs.h
2906 $as_echo "/* confdefs.h */" > confdefs.h
2908 # Predefined preprocessor variables.
2910 cat >>confdefs.h <<_ACEOF
2911 #define PACKAGE_NAME "$PACKAGE_NAME"
2912 _ACEOF
2914 cat >>confdefs.h <<_ACEOF
2915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2916 _ACEOF
2918 cat >>confdefs.h <<_ACEOF
2919 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2920 _ACEOF
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_STRING "$PACKAGE_STRING"
2924 _ACEOF
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2928 _ACEOF
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_URL "$PACKAGE_URL"
2932 _ACEOF
2935 # Let the site file select an alternate cache file if it wants to.
2936 # Prefer an explicitly selected file to automatically selected ones.
2937 ac_site_file1=NONE
2938 ac_site_file2=NONE
2939 if test -n "$CONFIG_SITE"; then
2940 ac_site_file1=$CONFIG_SITE
2941 elif test "x$prefix" != xNONE; then
2942 ac_site_file1=$prefix/share/config.site
2943 ac_site_file2=$prefix/etc/config.site
2944 else
2945 ac_site_file1=$ac_default_prefix/share/config.site
2946 ac_site_file2=$ac_default_prefix/etc/config.site
2948 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2950 test "x$ac_site_file" = xNONE && continue
2951 if test -r "$ac_site_file"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2953 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2954 sed 's/^/| /' "$ac_site_file" >&5
2955 . "$ac_site_file"
2957 done
2959 if test -r "$cache_file"; then
2960 # Some versions of bash will fail to source /dev/null (special
2961 # files actually), so we avoid doing that.
2962 if test -f "$cache_file"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2964 $as_echo "$as_me: loading cache $cache_file" >&6;}
2965 case $cache_file in
2966 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2967 *) . "./$cache_file";;
2968 esac
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2972 $as_echo "$as_me: creating cache $cache_file" >&6;}
2973 >$cache_file
2976 # Check that the precious variables saved in the cache have kept the same
2977 # value.
2978 ac_cache_corrupted=false
2979 for ac_var in $ac_precious_vars; do
2980 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2981 eval ac_new_set=\$ac_env_${ac_var}_set
2982 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2983 eval ac_new_val=\$ac_env_${ac_var}_value
2984 case $ac_old_set,$ac_new_set in
2985 set,)
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2987 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2988 ac_cache_corrupted=: ;;
2989 ,set)
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2991 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2992 ac_cache_corrupted=: ;;
2993 ,);;
2995 if test "x$ac_old_val" != "x$ac_new_val"; then
2996 # differences in whitespace do not lead to failure.
2997 ac_old_val_w=`echo x $ac_old_val`
2998 ac_new_val_w=`echo x $ac_new_val`
2999 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3001 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3002 ac_cache_corrupted=:
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3005 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3006 eval $ac_var=\$ac_old_val
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3009 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3011 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3012 fi;;
3013 esac
3014 # Pass precious variables to config.status.
3015 if test "$ac_new_set" = set; then
3016 case $ac_new_val in
3017 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3018 *) ac_arg=$ac_var=$ac_new_val ;;
3019 esac
3020 case " $ac_configure_args " in
3021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3022 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3023 esac
3025 done
3026 if $ac_cache_corrupted; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3030 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3031 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3033 ## -------------------- ##
3034 ## Main body of script. ##
3035 ## -------------------- ##
3037 ac_ext=c
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3051 gcc_version=`cat $srcdir/BASE-VER`
3053 # Determine the host, build, and target systems
3054 ac_aux_dir=
3055 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3056 for ac_t in install-sh install.sh shtool; do
3057 if test -f "$ac_dir/$ac_t"; then
3058 ac_aux_dir=$ac_dir
3059 ac_install_sh="$ac_aux_dir/$ac_t -c"
3060 break 2
3062 done
3063 done
3064 if test -z "$ac_aux_dir"; then
3065 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3068 # These three variables are undocumented and unsupported,
3069 # and are intended to be withdrawn in a future Autoconf release.
3070 # They can cause serious problems if a builder's source tree is in a directory
3071 # whose full name contains unusual characters.
3072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3074 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3077 # Make sure we can run config.sub.
3078 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3079 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3082 $as_echo_n "checking build system type... " >&6; }
3083 if test "${ac_cv_build+set}" = set; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 ac_build_alias=$build_alias
3087 test "x$ac_build_alias" = x &&
3088 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3089 test "x$ac_build_alias" = x &&
3090 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3091 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3092 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3096 $as_echo "$ac_cv_build" >&6; }
3097 case $ac_cv_build in
3098 *-*-*) ;;
3099 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3100 esac
3101 build=$ac_cv_build
3102 ac_save_IFS=$IFS; IFS='-'
3103 set x $ac_cv_build
3104 shift
3105 build_cpu=$1
3106 build_vendor=$2
3107 shift; shift
3108 # Remember, the first character of IFS is used to create $*,
3109 # except with old shells:
3110 build_os=$*
3111 IFS=$ac_save_IFS
3112 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3116 $as_echo_n "checking host system type... " >&6; }
3117 if test "${ac_cv_host+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test "x$host_alias" = x; then
3121 ac_cv_host=$ac_cv_build
3122 else
3123 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3124 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3129 $as_echo "$ac_cv_host" >&6; }
3130 case $ac_cv_host in
3131 *-*-*) ;;
3132 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3133 esac
3134 host=$ac_cv_host
3135 ac_save_IFS=$IFS; IFS='-'
3136 set x $ac_cv_host
3137 shift
3138 host_cpu=$1
3139 host_vendor=$2
3140 shift; shift
3141 # Remember, the first character of IFS is used to create $*,
3142 # except with old shells:
3143 host_os=$*
3144 IFS=$ac_save_IFS
3145 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3149 $as_echo_n "checking target system type... " >&6; }
3150 if test "${ac_cv_target+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test "x$target_alias" = x; then
3154 ac_cv_target=$ac_cv_host
3155 else
3156 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3157 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3162 $as_echo "$ac_cv_target" >&6; }
3163 case $ac_cv_target in
3164 *-*-*) ;;
3165 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3166 esac
3167 target=$ac_cv_target
3168 ac_save_IFS=$IFS; IFS='-'
3169 set x $ac_cv_target
3170 shift
3171 target_cpu=$1
3172 target_vendor=$2
3173 shift; shift
3174 # Remember, the first character of IFS is used to create $*,
3175 # except with old shells:
3176 target_os=$*
3177 IFS=$ac_save_IFS
3178 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3181 # The aliases save the names the user supplied, while $host etc.
3182 # will get canonicalized.
3183 test -n "$target_alias" &&
3184 test "$program_prefix$program_suffix$program_transform_name" = \
3185 NONENONEs,x,x, &&
3186 program_prefix=${target_alias}-
3188 # Determine the noncanonical target name, for directory use.
3189 case ${build_alias} in
3190 "") build_noncanonical=${build} ;;
3191 *) build_noncanonical=${build_alias} ;;
3192 esac
3194 case ${host_alias} in
3195 "") host_noncanonical=${build_noncanonical} ;;
3196 *) host_noncanonical=${host_alias} ;;
3197 esac
3199 case ${target_alias} in
3200 "") target_noncanonical=${host_noncanonical} ;;
3201 *) target_noncanonical=${target_alias} ;;
3202 esac
3207 # Used for constructing correct paths for offload compilers.
3208 real_target_noncanonical=${target_noncanonical}
3209 tool_prefix=$target_noncanonical
3210 accel_dir_suffix=
3212 # Determine the target- and build-specific subdirectories
3214 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3215 # have matching libraries, they should use host libraries: Makefile.tpl
3216 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3217 # However, they still use the build modules, because the corresponding
3218 # host modules (e.g. bison) are only built for the host when bootstrap
3219 # finishes. So:
3220 # - build_subdir is where we find build modules, and never changes.
3221 # - build_libsubdir is where we find build libraries, and can be overridden.
3223 # Prefix 'build-' so this never conflicts with target_subdir.
3224 build_subdir="build-${build_noncanonical}"
3226 # Check whether --with-build-libsubdir was given.
3227 if test "${with_build_libsubdir+set}" = set; then :
3228 withval=$with_build_libsubdir; build_libsubdir="$withval"
3229 else
3230 build_libsubdir="$build_subdir"
3233 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3234 if ( test $srcdir = . && test -d gcc ) \
3235 || test -d $srcdir/../host-${host_noncanonical}; then
3236 host_subdir="host-${host_noncanonical}"
3237 else
3238 host_subdir=.
3240 # No prefix.
3241 target_subdir=${target_noncanonical}
3244 # Set program_transform_name
3245 test "$program_prefix" != NONE &&
3246 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3247 # Use a double $ so make ignores it.
3248 test "$program_suffix" != NONE &&
3249 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3250 # Double any \ or $.
3251 # By default was `s,x,x', remove it if useless.
3252 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3253 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3256 # Check for bogus environment variables.
3257 # Test if LIBRARY_PATH contains the notation for the current directory
3258 # since this would lead to problems installing/building glibc.
3259 # LIBRARY_PATH contains the current directory if one of the following
3260 # is true:
3261 # - one of the terminals (":" and ";") is the first or last sign
3262 # - two terminals occur directly after each other
3263 # - the path contains an element with a dot in it
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3265 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3266 case ${LIBRARY_PATH} in
3267 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3268 library_path_setting="contains current directory"
3271 library_path_setting="ok"
3273 esac
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3275 $as_echo "$library_path_setting" >&6; }
3276 if test "$library_path_setting" != "ok"; then
3277 as_fn_error "
3278 *** LIBRARY_PATH shouldn't contain the current directory when
3279 *** building gcc. Please change the environment variable
3280 *** and run configure again." "$LINENO" 5
3283 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3284 # since this would lead to problems installing/building glibc.
3285 # GCC_EXEC_PREFIX contains the current directory if one of the following
3286 # is true:
3287 # - one of the terminals (":" and ";") is the first or last sign
3288 # - two terminals occur directly after each other
3289 # - the path contains an element with a dot in it
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3291 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3292 case ${GCC_EXEC_PREFIX} in
3293 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3294 gcc_exec_prefix_setting="contains current directory"
3297 gcc_exec_prefix_setting="ok"
3299 esac
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3301 $as_echo "$gcc_exec_prefix_setting" >&6; }
3302 if test "$gcc_exec_prefix_setting" != "ok"; then
3303 as_fn_error "
3304 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3305 *** building gcc. Please change the environment variable
3306 *** and run configure again." "$LINENO" 5
3309 # -----------
3310 # Directories
3311 # -----------
3313 # Specify the local prefix
3314 local_prefix=
3316 # Check whether --with-local-prefix was given.
3317 if test "${with_local_prefix+set}" = set; then :
3318 withval=$with_local_prefix; case "${withval}" in
3319 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3320 no) ;;
3321 *) local_prefix=$with_local_prefix ;;
3322 esac
3326 # Default local prefix if it is empty
3327 if test x$local_prefix = x; then
3328 local_prefix=/usr/local
3331 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3332 # passed in by the toplevel make and thus we'd get different behavior
3333 # depending on where we built the sources.
3334 gcc_gxx_include_dir=
3335 # Specify the g++ header file directory
3337 # Check whether --with-gxx-include-dir was given.
3338 if test "${with_gxx_include_dir+set}" = set; then :
3339 withval=$with_gxx_include_dir; case "${withval}" in
3340 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3341 no) ;;
3342 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3343 esac
3347 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3348 if test x${gcc_gxx_include_dir} = x; then
3349 if test x${enable_version_specific_runtime_libs} = xyes; then
3350 gcc_gxx_include_dir='${libsubdir}/include/c++'
3351 else
3352 libstdcxx_incdir='include/c++/$(version)'
3353 if test x$host != x$target; then
3354 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3356 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3360 gcc_gxx_include_dir_add_sysroot=0
3361 if test "${with_sysroot+set}" = set; then
3362 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3363 if test "${gcc_gxx_without_sysroot}"; then
3364 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3365 gcc_gxx_include_dir_add_sysroot=1
3370 # Check whether --with-cpp_install_dir was given.
3371 if test "${with_cpp_install_dir+set}" = set; then :
3372 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3373 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3374 elif test x$withval != xno; then
3375 cpp_install_dir=$withval
3380 # We would like to our source tree to be readonly. However when releases or
3381 # pre-releases are generated, the flex/bison generated files as well as the
3382 # various formats of manuals need to be included along with the rest of the
3383 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3384 # just that.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3387 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3388 # Check whether --enable-generated-files-in-srcdir was given.
3389 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3390 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3391 else
3392 generated_files_in_srcdir=no
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3397 $as_echo "$generated_files_in_srcdir" >&6; }
3399 if test "$generated_files_in_srcdir" = "yes"; then
3400 GENINSRC=''
3401 else
3402 GENINSRC='#'
3406 # -------------------
3407 # Find default linker
3408 # -------------------
3410 # With GNU ld
3412 # Check whether --with-gnu-ld was given.
3413 if test "${with_gnu_ld+set}" = set; then :
3414 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3415 else
3416 gnu_ld_flag=no
3420 # With pre-defined ld
3422 # Check whether --with-ld was given.
3423 if test "${with_ld+set}" = set; then :
3424 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3427 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3428 if test ! -x "$DEFAULT_LINKER"; then
3429 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3430 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3431 gnu_ld_flag=yes
3434 cat >>confdefs.h <<_ACEOF
3435 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3436 _ACEOF
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3441 $as_echo_n "checking whether a default linker was specified... " >&6; }
3442 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3443 if test x"$gnu_ld_flag" = x"no"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3445 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3448 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3455 # With demangler in GNU ld
3457 # Check whether --with-demangler-in-ld was given.
3458 if test "${with_demangler_in_ld+set}" = set; then :
3459 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3460 else
3461 demangler_in_ld=yes
3465 # ----------------------
3466 # Find default assembler
3467 # ----------------------
3469 # With GNU as
3471 # Check whether --with-gnu-as was given.
3472 if test "${with_gnu_as+set}" = set; then :
3473 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3474 else
3475 gas_flag=no
3480 # Check whether --with-as was given.
3481 if test "${with_as+set}" = set; then :
3482 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3485 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3486 if test ! -x "$DEFAULT_ASSEMBLER"; then
3487 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3488 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3489 gas_flag=yes
3492 cat >>confdefs.h <<_ACEOF
3493 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3494 _ACEOF
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3499 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3500 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3501 if test x"$gas_flag" = x"no"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3503 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3506 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3513 # ---------------
3514 # Find C compiler
3515 # ---------------
3517 # If a non-executable a.out is present (e.g. created by GNU as above even if
3518 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3519 # file, even when creating an executable, so an execution test fails.
3520 # Remove possible default executable files to avoid this.
3522 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3523 # Autoconf includes it.
3524 rm -f a.out a.exe b.out
3526 # Find the native compiler
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3571 if test -z "$ac_cv_prog_CC"; then
3572 ac_ct_CC=$CC
3573 # Extract the first word of "gcc", so it can be a program name with args.
3574 set dummy gcc; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_ac_ct_CC="gcc"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601 if test -n "$ac_ct_CC"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3603 $as_echo "$ac_ct_CC" >&6; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3609 if test "x$ac_ct_CC" = x; then
3610 CC=""
3611 else
3612 case $cross_compiling:$ac_tool_warned in
3613 yes:)
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned=yes ;;
3617 esac
3618 CC=$ac_ct_CC
3620 else
3621 CC="$ac_cv_prog_CC"
3624 if test -z "$CC"; then
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}cc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CC="${ac_tool_prefix}cc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3647 done
3648 done
3649 IFS=$as_save_IFS
3653 CC=$ac_cv_prog_CC
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3665 if test -z "$CC"; then
3666 # Extract the first word of "cc", so it can be a program name with args.
3667 set dummy cc; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_CC+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC="$CC" # Let the user override the test.
3675 else
3676 ac_prog_rejected=no
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3685 ac_prog_rejected=yes
3686 continue
3688 ac_cv_prog_CC="cc"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 break 2
3692 done
3693 done
3694 IFS=$as_save_IFS
3696 if test $ac_prog_rejected = yes; then
3697 # We found a bogon in the path, so make sure we never use it.
3698 set dummy $ac_cv_prog_CC
3699 shift
3700 if test $# != 0; then
3701 # We chose a different compiler from the bogus one.
3702 # However, it has the same basename, so the bogon will be chosen
3703 # first if we set CC to just the basename; use the full file name.
3704 shift
3705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 for ac_prog in cl.exe
3725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_CC+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC="$CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3748 IFS=$as_save_IFS
3752 CC=$ac_cv_prog_CC
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3762 test -n "$CC" && break
3763 done
3765 if test -z "$CC"; then
3766 ac_ct_CC=$CC
3767 for ac_prog in cl.exe
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770 set dummy $ac_prog; ac_word=$2
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_ac_ct_CC="$ac_prog"
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3790 done
3791 done
3792 IFS=$as_save_IFS
3796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3797 if test -n "$ac_ct_CC"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3799 $as_echo "$ac_ct_CC" >&6; }
3800 else
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3806 test -n "$ac_ct_CC" && break
3807 done
3809 if test "x$ac_ct_CC" = x; then
3810 CC=""
3811 else
3812 case $cross_compiling:$ac_tool_warned in
3813 yes:)
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818 CC=$ac_ct_CC
3825 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error "no acceptable C compiler found in \$PATH
3828 See \`config.log' for more details." "$LINENO" 5; }
3830 # Provide some information about the compiler.
3831 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3832 set X $ac_compile
3833 ac_compiler=$2
3834 for ac_option in --version -v -V -qversion; do
3835 { { ac_try="$ac_compiler $ac_option >&5"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3843 ac_status=$?
3844 if test -s conftest.err; then
3845 sed '10a\
3846 ... rest of stderr output deleted ...
3847 10q' conftest.err >conftest.er1
3848 cat conftest.er1 >&5
3849 rm -f conftest.er1 conftest.err
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852 test $ac_status = 0; }
3853 done
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 main ()
3863 return 0;
3865 _ACEOF
3866 ac_clean_files_save=$ac_clean_files
3867 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3868 # Try to create an executable without -o first, disregard a.out.
3869 # It will help us diagnose broken compilers, and finding out an intuition
3870 # of exeext.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3872 $as_echo_n "checking for C compiler default output file name... " >&6; }
3873 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3875 # The possible output files:
3876 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3878 ac_rmfiles=
3879 for ac_file in $ac_files
3881 case $ac_file in
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3884 esac
3885 done
3886 rm -f $ac_rmfiles
3888 if { { ac_try="$ac_link_default"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_link_default") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; then :
3899 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3900 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3901 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3902 # so that the user can short-circuit this test for compilers unknown to
3903 # Autoconf.
3904 for ac_file in $ac_files ''
3906 test -f "$ac_file" || continue
3907 case $ac_file in
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3910 [ab].out )
3911 # We found the default executable, but exeext='' is most
3912 # certainly right.
3913 break;;
3914 *.* )
3915 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3916 then :; else
3917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3919 # We set ac_cv_exeext here because the later test for it is not
3920 # safe: cross compilers may not add the suffix if given an `-o'
3921 # argument, so we may need to know it at that point already.
3922 # Even if this section looks crufty: it has the advantage of
3923 # actually working.
3924 break;;
3926 break;;
3927 esac
3928 done
3929 test "$ac_cv_exeext" = no && ac_cv_exeext=
3931 else
3932 ac_file=''
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3935 $as_echo "$ac_file" >&6; }
3936 if test -z "$ac_file"; then :
3937 $as_echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 { as_fn_set_status 77
3943 as_fn_error "C compiler cannot create executables
3944 See \`config.log' for more details." "$LINENO" 5; }; }
3946 ac_exeext=$ac_cv_exeext
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3951 $as_echo_n "checking whether the C compiler works... " >&6; }
3952 # If not cross compiling, check that we can run a simple program.
3953 if test "$cross_compiling" != yes; then
3954 if { ac_try='./$ac_file'
3955 { { case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_try") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; }; then
3965 cross_compiling=no
3966 else
3967 if test "$cross_compiling" = maybe; then
3968 cross_compiling=yes
3969 else
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot run C compiled programs.
3973 If you meant to cross compile, use \`--host'.
3974 See \`config.log' for more details." "$LINENO" 5; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 $as_echo "yes" >&6; }
3981 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3982 ac_clean_files=$ac_clean_files_save
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 $as_echo_n "checking whether we are cross compiling... " >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3988 $as_echo "$cross_compiling" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3991 $as_echo_n "checking for suffix of executables... " >&6; }
3992 if { { ac_try="$ac_link"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4004 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4005 # work properly (i.e., refer to `conftest.exe'), while it won't with
4006 # `rm'.
4007 for ac_file in conftest.exe conftest conftest.*; do
4008 test -f "$ac_file" || continue
4009 case $ac_file in
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4012 break;;
4013 * ) break;;
4014 esac
4015 done
4016 else
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error "cannot compute suffix of executables: cannot compile and link
4020 See \`config.log' for more details." "$LINENO" 5; }
4022 rm -f conftest$ac_cv_exeext
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4024 $as_echo "$ac_cv_exeext" >&6; }
4026 rm -f conftest.$ac_ext
4027 EXEEXT=$ac_cv_exeext
4028 ac_exeext=$EXEEXT
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4030 $as_echo_n "checking for suffix of object files... " >&6; }
4031 if test "${ac_cv_objext+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4038 main ()
4042 return 0;
4044 _ACEOF
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try="$ac_compile"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4054 ac_status=$?
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; then :
4057 for ac_file in conftest.o conftest.obj conftest.*; do
4058 test -f "$ac_file" || continue;
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4062 break;;
4063 esac
4064 done
4065 else
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of object files: cannot compile
4072 See \`config.log' for more details." "$LINENO" 5; }
4074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077 $as_echo "$ac_cv_objext" >&6; }
4078 OBJEXT=$ac_cv_objext
4079 ac_objext=$OBJEXT
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4082 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4089 main ()
4091 #ifndef __GNUC__
4092 choke me
4093 #endif
4096 return 0;
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_compiler_gnu=yes
4101 else
4102 ac_compiler_gnu=no
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110 if test $ac_compiler_gnu = yes; then
4111 GCC=yes
4112 else
4113 GCC=
4115 ac_test_CFLAGS=${CFLAGS+set}
4116 ac_save_CFLAGS=$CFLAGS
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4119 if test "${ac_cv_prog_cc_g+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 ac_save_c_werror_flag=$ac_c_werror_flag
4123 ac_c_werror_flag=yes
4124 ac_cv_prog_cc_g=no
4125 CFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_g=yes
4139 else
4140 CFLAGS=""
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4145 main ()
4149 return 0;
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4154 else
4155 ac_c_werror_flag=$ac_save_c_werror_flag
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_g=yes
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179 $as_echo "$ac_cv_prog_cc_g" >&6; }
4180 if test "$ac_test_CFLAGS" = set; then
4181 CFLAGS=$ac_save_CFLAGS
4182 elif test $ac_cv_prog_cc_g = yes; then
4183 if test "$GCC" = yes; then
4184 CFLAGS="-g -O2"
4185 else
4186 CFLAGS="-g"
4188 else
4189 if test "$GCC" = yes; then
4190 CFLAGS="-O2"
4191 else
4192 CFLAGS=
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4197 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 ac_cv_prog_cc_c89=no
4201 ac_save_CC=$CC
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <stdarg.h>
4205 #include <stdio.h>
4206 #include <sys/types.h>
4207 #include <sys/stat.h>
4208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4209 struct buf { int x; };
4210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4211 static char *e (p, i)
4212 char **p;
4213 int i;
4215 return p[i];
4217 static char *f (char * (*g) (char **, int), char **p, ...)
4219 char *s;
4220 va_list v;
4221 va_start (v,p);
4222 s = g (p, va_arg (v,int));
4223 va_end (v);
4224 return s;
4227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4228 function prototypes and stuff, but not '\xHH' hex character constants.
4229 These don't provoke an error unfortunately, instead are silently treated
4230 as 'x'. The following induces an error, until -std is added to get
4231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4232 array size at least. It's necessary to write '\x00'==0 to get something
4233 that's true only with -std. */
4234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4237 inside strings and character constants. */
4238 #define FOO(x) 'x'
4239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241 int test (int i, double x);
4242 struct s1 {int (*f) (int a);};
4243 struct s2 {int (*f) (double a);};
4244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4245 int argc;
4246 char **argv;
4248 main ()
4250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4252 return 0;
4254 _ACEOF
4255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258 CC="$ac_save_CC $ac_arg"
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_prog_cc_c89=$ac_arg
4262 rm -f core conftest.err conftest.$ac_objext
4263 test "x$ac_cv_prog_cc_c89" != "xno" && break
4264 done
4265 rm -f conftest.$ac_ext
4266 CC=$ac_save_CC
4269 # AC_CACHE_VAL
4270 case "x$ac_cv_prog_cc_c89" in
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4273 $as_echo "none needed" >&6; } ;;
4274 xno)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276 $as_echo "unsupported" >&6; } ;;
4278 CC="$CC $ac_cv_prog_cc_c89"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4281 esac
4282 if test "x$ac_cv_prog_cc_c89" != xno; then :
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 ac_ext=cpp
4293 ac_cpp='$CXXCPP $CPPFLAGS'
4294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4297 if test -z "$CXX"; then
4298 if test -n "$CCC"; then
4299 CXX=$CCC
4300 else
4301 if test -n "$ac_tool_prefix"; then
4302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if test "${ac_cv_prog_CXX+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$CXX"; then
4312 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4327 IFS=$as_save_IFS
4331 CXX=$ac_cv_prog_CXX
4332 if test -n "$CXX"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4334 $as_echo "$CXX" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4341 test -n "$CXX" && break
4342 done
4344 if test -z "$CXX"; then
4345 ac_ct_CXX=$CXX
4346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4348 # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$ac_ct_CXX"; then
4356 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_CXX="$ac_prog"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4375 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4376 if test -n "$ac_ct_CXX"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4378 $as_echo "$ac_ct_CXX" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4385 test -n "$ac_ct_CXX" && break
4386 done
4388 if test "x$ac_ct_CXX" = x; then
4389 CXX="g++"
4390 else
4391 case $cross_compiling:$ac_tool_warned in
4392 yes:)
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4395 ac_tool_warned=yes ;;
4396 esac
4397 CXX=$ac_ct_CXX
4403 # Provide some information about the compiler.
4404 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4405 set X $ac_compile
4406 ac_compiler=$2
4407 for ac_option in --version -v -V -qversion; do
4408 { { ac_try="$ac_compiler $ac_option >&5"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4416 ac_status=$?
4417 if test -s conftest.err; then
4418 sed '10a\
4419 ... rest of stderr output deleted ...
4420 10q' conftest.err >conftest.er1
4421 cat conftest.er1 >&5
4422 rm -f conftest.er1 conftest.err
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }
4426 done
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4429 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4430 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4437 main ()
4439 #ifndef __GNUC__
4440 choke me
4441 #endif
4444 return 0;
4446 _ACEOF
4447 if ac_fn_cxx_try_compile "$LINENO"; then :
4448 ac_compiler_gnu=yes
4449 else
4450 ac_compiler_gnu=no
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4457 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4458 if test $ac_compiler_gnu = yes; then
4459 GXX=yes
4460 else
4461 GXX=
4463 ac_test_CXXFLAGS=${CXXFLAGS+set}
4464 ac_save_CXXFLAGS=$CXXFLAGS
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4466 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4467 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4471 ac_cxx_werror_flag=yes
4472 ac_cv_prog_cxx_g=no
4473 CXXFLAGS="-g"
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4478 main ()
4482 return 0;
4484 _ACEOF
4485 if ac_fn_cxx_try_compile "$LINENO"; then :
4486 ac_cv_prog_cxx_g=yes
4487 else
4488 CXXFLAGS=""
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4493 main ()
4497 return 0;
4499 _ACEOF
4500 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 else
4503 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4504 CXXFLAGS="-g"
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4509 main ()
4513 return 0;
4515 _ACEOF
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_cv_prog_cxx_g=yes
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4527 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4528 if test "$ac_test_CXXFLAGS" = set; then
4529 CXXFLAGS=$ac_save_CXXFLAGS
4530 elif test $ac_cv_prog_cxx_g = yes; then
4531 if test "$GXX" = yes; then
4532 CXXFLAGS="-g -O2"
4533 else
4534 CXXFLAGS="-g"
4536 else
4537 if test "$GXX" = yes; then
4538 CXXFLAGS="-O2"
4539 else
4540 CXXFLAGS=
4543 ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$GNATBIND"; then
4561 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 GNATBIND=$ac_cv_prog_GNATBIND
4581 if test -n "$GNATBIND"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4583 $as_echo "$GNATBIND" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$ac_cv_prog_GNATBIND"; then
4592 ac_ct_GNATBIND=$GNATBIND
4593 # Extract the first word of "gnatbind", so it can be a program name with args.
4594 set dummy gnatbind; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_GNATBIND"; then
4601 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4621 if test -n "$ac_ct_GNATBIND"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4623 $as_echo "$ac_ct_GNATBIND" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4629 if test "x$ac_ct_GNATBIND" = x; then
4630 GNATBIND="no"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 GNATBIND=$ac_ct_GNATBIND
4640 else
4641 GNATBIND="$ac_cv_prog_GNATBIND"
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4646 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$GNATMAKE"; then
4653 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 GNATMAKE=$ac_cv_prog_GNATMAKE
4673 if test -n "$GNATMAKE"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4675 $as_echo "$GNATMAKE" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4683 if test -z "$ac_cv_prog_GNATMAKE"; then
4684 ac_ct_GNATMAKE=$GNATMAKE
4685 # Extract the first word of "gnatmake", so it can be a program name with args.
4686 set dummy gnatmake; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$ac_ct_GNATMAKE"; then
4693 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4706 done
4707 done
4708 IFS=$as_save_IFS
4712 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4713 if test -n "$ac_ct_GNATMAKE"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4715 $as_echo "$ac_ct_GNATMAKE" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4721 if test "x$ac_ct_GNATMAKE" = x; then
4722 GNATMAKE="no"
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 GNATMAKE=$ac_ct_GNATMAKE
4732 else
4733 GNATMAKE="$ac_cv_prog_GNATMAKE"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4737 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4738 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 cat >conftest.adb <<EOF
4742 procedure conftest is begin null; end conftest;
4744 acx_cv_cc_gcc_supports_ada=no
4745 # There is a bug in old released versions of GCC which causes the
4746 # driver to exit successfully when the appropriate language module
4747 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4748 # Therefore we must check for the error message as well as an
4749 # unsuccessful exit.
4750 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4751 # given a .adb file, but produce no object file. So we must check
4752 # if an object file was really produced to guard against this.
4753 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4754 if test x"$errors" = x && test -f conftest.$ac_objext; then
4755 acx_cv_cc_gcc_supports_ada=yes
4757 rm -f conftest.*
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4760 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4762 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4763 have_gnat=yes
4764 else
4765 have_gnat=no
4769 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4770 # optimizations to be activated explicitly by the toplevel.
4771 case "$CC" in
4772 */prev-gcc/xgcc*) ;;
4773 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4774 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4775 esac
4779 # Determine PICFLAG for target gnatlib.
4784 case "${target}" in
4785 # PIC is the default on some targets or must not be used.
4786 *-*-darwin*)
4787 # PIC is the default on this platform
4788 # Common symbols not allowed in MH_DYLIB files
4789 PICFLAG_FOR_TARGET=-fno-common
4791 alpha*-dec-osf5*)
4792 # PIC is the default.
4794 hppa*64*-*-hpux*)
4795 # PIC is the default for 64-bit PA HP-UX.
4797 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4799 i[34567]86-*-mingw* | x86_64-*-mingw*)
4801 i[34567]86-*-interix[3-9]*)
4802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4803 # Instead, we relocate shared libraries at runtime.
4805 i[34567]86-*-nto-qnx*)
4806 # QNX uses GNU C++, but need to define -shared option too, otherwise
4807 # it will coredump.
4808 PICFLAG_FOR_TARGET='-fPIC -shared'
4810 i[34567]86-pc-msdosdjgpp*)
4811 # DJGPP does not support shared libraries at all.
4813 ia64*-*-hpux*)
4814 # On IA64 HP-UX, PIC is the default but the pic flag
4815 # sets the default TLS model and affects inlining.
4816 PICFLAG_FOR_TARGET=-fPIC
4818 mips-sgi-irix6*)
4819 # PIC is the default.
4821 rs6000-ibm-aix* | powerpc-ibm-aix*)
4822 # All AIX code is PIC.
4825 # Some targets support both -fPIC and -fpic, but prefer the latter.
4826 # FIXME: Why?
4827 i[34567]86-*-* | x86_64-*-*)
4828 PICFLAG_FOR_TARGET=-fpic
4830 # FIXME: Override -fPIC default in libgcc only?
4831 sh-*-linux* | sh[2346lbe]*-*-linux*)
4832 PICFLAG_FOR_TARGET=-fpic
4834 # FIXME: Simplify to sh*-*-netbsd*?
4835 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4836 sh64-*-netbsd* | sh64l*-*-netbsd*)
4837 PICFLAG_FOR_TARGET=-fpic
4839 # Default to -fPIC unless specified otherwise.
4841 PICFLAG_FOR_TARGET=-fPIC
4843 esac
4845 # If the user explicitly uses -fpic/-fPIC, keep that.
4846 case "${CFLAGS_FOR_TARGET}" in
4847 *-fpic*)
4848 PICFLAG_FOR_TARGET=-fpic
4850 *-fPIC*)
4851 PICFLAG_FOR_TARGET=-fPIC
4853 esac
4857 # -------------------------
4858 # Check C compiler features
4859 # -------------------------
4862 ac_ext=c
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4868 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4869 # On Suns, sometimes $CPP names a directory.
4870 if test -n "$CPP" && test -d "$CPP"; then
4871 CPP=
4873 if test -z "$CPP"; then
4874 if test "${ac_cv_prog_CPP+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 # Double quotes because CPP needs to be expanded
4878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4880 ac_preproc_ok=false
4881 for ac_c_preproc_warn_flag in '' yes
4883 # Use a header file that comes with gcc, so configuring glibc
4884 # with a fresh cross-compiler works.
4885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886 # <limits.h> exists even on freestanding compilers.
4887 # On the NeXT, cc -E runs the code through the compiler's parser,
4888 # not just through cpp. "Syntax error" is here to catch this case.
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 #ifdef __STDC__
4892 # include <limits.h>
4893 #else
4894 # include <assert.h>
4895 #endif
4896 Syntax error
4897 _ACEOF
4898 if ac_fn_c_try_cpp "$LINENO"; then :
4900 else
4901 # Broken: fails on valid input.
4902 continue
4904 rm -f conftest.err conftest.$ac_ext
4906 # OK, works on sane cases. Now check whether nonexistent headers
4907 # can be detected and how.
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <ac_nonexistent.h>
4911 _ACEOF
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4913 # Broken: success on invalid input.
4914 continue
4915 else
4916 # Passes both tests.
4917 ac_preproc_ok=:
4918 break
4920 rm -f conftest.err conftest.$ac_ext
4922 done
4923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4924 rm -f conftest.err conftest.$ac_ext
4925 if $ac_preproc_ok; then :
4926 break
4929 done
4930 ac_cv_prog_CPP=$CPP
4933 CPP=$ac_cv_prog_CPP
4934 else
4935 ac_cv_prog_CPP=$CPP
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4938 $as_echo "$CPP" >&6; }
4939 ac_preproc_ok=false
4940 for ac_c_preproc_warn_flag in '' yes
4942 # Use a header file that comes with gcc, so configuring glibc
4943 # with a fresh cross-compiler works.
4944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 # <limits.h> exists even on freestanding compilers.
4946 # On the NeXT, cc -E runs the code through the compiler's parser,
4947 # not just through cpp. "Syntax error" is here to catch this case.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #ifdef __STDC__
4951 # include <limits.h>
4952 #else
4953 # include <assert.h>
4954 #endif
4955 Syntax error
4956 _ACEOF
4957 if ac_fn_c_try_cpp "$LINENO"; then :
4959 else
4960 # Broken: fails on valid input.
4961 continue
4963 rm -f conftest.err conftest.$ac_ext
4965 # OK, works on sane cases. Now check whether nonexistent headers
4966 # can be detected and how.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4970 _ACEOF
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4972 # Broken: success on invalid input.
4973 continue
4974 else
4975 # Passes both tests.
4976 ac_preproc_ok=:
4977 break
4979 rm -f conftest.err conftest.$ac_ext
4981 done
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.err conftest.$ac_ext
4984 if $ac_preproc_ok; then :
4986 else
4987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4989 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4990 See \`config.log' for more details." "$LINENO" 5; }
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5001 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5002 if test "${ac_cv_path_GREP+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -z "$GREP"; then
5006 ac_path_GREP_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_prog in grep ggrep; do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5017 # Check for GNU ac_path_GREP and select it if it is found.
5018 # Check for GNU $ac_path_GREP
5019 case `"$ac_path_GREP" --version 2>&1` in
5020 *GNU*)
5021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5023 ac_count=0
5024 $as_echo_n 0123456789 >"conftest.in"
5025 while :
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo 'GREP' >> "conftest.nl"
5031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_GREP="$ac_path_GREP"
5037 ac_path_GREP_max=$ac_count
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5041 done
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 esac
5045 $ac_path_GREP_found && break 3
5046 done
5047 done
5048 done
5049 IFS=$as_save_IFS
5050 if test -z "$ac_cv_path_GREP"; then
5051 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5053 else
5054 ac_cv_path_GREP=$GREP
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5059 $as_echo "$ac_cv_path_GREP" >&6; }
5060 GREP="$ac_cv_path_GREP"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5064 $as_echo_n "checking for egrep... " >&6; }
5065 if test "${ac_cv_path_EGREP+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5069 then ac_cv_path_EGREP="$GREP -E"
5070 else
5071 if test -z "$EGREP"; then
5072 ac_path_EGREP_found=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in egrep; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5083 # Check for GNU ac_path_EGREP and select it if it is found.
5084 # Check for GNU $ac_path_EGREP
5085 case `"$ac_path_EGREP" --version 2>&1` in
5086 *GNU*)
5087 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5089 ac_count=0
5090 $as_echo_n 0123456789 >"conftest.in"
5091 while :
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo 'EGREP' >> "conftest.nl"
5097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 as_fn_arith $ac_count + 1 && ac_count=$as_val
5100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_EGREP="$ac_path_EGREP"
5103 ac_path_EGREP_max=$ac_count
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5107 done
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 esac
5111 $ac_path_EGREP_found && break 3
5112 done
5113 done
5114 done
5115 IFS=$as_save_IFS
5116 if test -z "$ac_cv_path_EGREP"; then
5117 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5119 else
5120 ac_cv_path_EGREP=$EGREP
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5126 $as_echo "$ac_cv_path_EGREP" >&6; }
5127 EGREP="$ac_cv_path_EGREP"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5131 $as_echo_n "checking for ANSI C header files... " >&6; }
5132 if test "${ac_cv_header_stdc+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <stdlib.h>
5138 #include <stdarg.h>
5139 #include <string.h>
5140 #include <float.h>
5143 main ()
5147 return 0;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_cv_header_stdc=yes
5152 else
5153 ac_cv_header_stdc=no
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 if test $ac_cv_header_stdc = yes; then
5158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <string.h>
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "memchr" >/dev/null 2>&1; then :
5167 else
5168 ac_cv_header_stdc=no
5170 rm -f conftest*
5174 if test $ac_cv_header_stdc = yes; then
5175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <stdlib.h>
5180 _ACEOF
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "free" >/dev/null 2>&1; then :
5184 else
5185 ac_cv_header_stdc=no
5187 rm -f conftest*
5191 if test $ac_cv_header_stdc = yes; then
5192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5193 if test "$cross_compiling" = yes; then :
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #include <ctype.h>
5199 #include <stdlib.h>
5200 #if ((' ' & 0x0FF) == 0x020)
5201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5203 #else
5204 # define ISLOWER(c) \
5205 (('a' <= (c) && (c) <= 'i') \
5206 || ('j' <= (c) && (c) <= 'r') \
5207 || ('s' <= (c) && (c) <= 'z'))
5208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5209 #endif
5211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5213 main ()
5215 int i;
5216 for (i = 0; i < 256; i++)
5217 if (XOR (islower (i), ISLOWER (i))
5218 || toupper (i) != TOUPPER (i))
5219 return 2;
5220 return 0;
5222 _ACEOF
5223 if ac_fn_c_try_run "$LINENO"; then :
5225 else
5226 ac_cv_header_stdc=no
5228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5229 conftest.$ac_objext conftest.beam conftest.$ac_ext
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5235 $as_echo "$ac_cv_header_stdc" >&6; }
5236 if test $ac_cv_header_stdc = yes; then
5238 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5244 inttypes.h stdint.h unistd.h
5245 do :
5246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5247 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5249 eval as_val=\$$as_ac_Header
5250 if test "x$as_val" = x""yes; then :
5251 cat >>confdefs.h <<_ACEOF
5252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5257 done
5261 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5263 MINIX=yes
5264 else
5265 MINIX=
5269 if test "$MINIX" = yes; then
5271 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5274 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5277 $as_echo "#define _MINIX 1" >>confdefs.h
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5283 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5284 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5290 # define __EXTENSIONS__ 1
5291 $ac_includes_default
5293 main ()
5297 return 0;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_safe_to_define___extensions__=yes
5302 else
5303 ac_cv_safe_to_define___extensions__=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5308 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5309 test $ac_cv_safe_to_define___extensions__ = yes &&
5310 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5312 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5314 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5318 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5327 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5328 # On Suns, sometimes $CPP names a directory.
5329 if test -n "$CPP" && test -d "$CPP"; then
5330 CPP=
5332 if test -z "$CPP"; then
5333 if test "${ac_cv_prog_CPP+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 # Double quotes because CPP needs to be expanded
5337 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5339 ac_preproc_ok=false
5340 for ac_c_preproc_warn_flag in '' yes
5342 # Use a header file that comes with gcc, so configuring glibc
5343 # with a fresh cross-compiler works.
5344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5345 # <limits.h> exists even on freestanding compilers.
5346 # On the NeXT, cc -E runs the code through the compiler's parser,
5347 # not just through cpp. "Syntax error" is here to catch this case.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #ifdef __STDC__
5351 # include <limits.h>
5352 #else
5353 # include <assert.h>
5354 #endif
5355 Syntax error
5356 _ACEOF
5357 if ac_fn_c_try_cpp "$LINENO"; then :
5359 else
5360 # Broken: fails on valid input.
5361 continue
5363 rm -f conftest.err conftest.$ac_ext
5365 # OK, works on sane cases. Now check whether nonexistent headers
5366 # can be detected and how.
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <ac_nonexistent.h>
5370 _ACEOF
5371 if ac_fn_c_try_cpp "$LINENO"; then :
5372 # Broken: success on invalid input.
5373 continue
5374 else
5375 # Passes both tests.
5376 ac_preproc_ok=:
5377 break
5379 rm -f conftest.err conftest.$ac_ext
5381 done
5382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5383 rm -f conftest.err conftest.$ac_ext
5384 if $ac_preproc_ok; then :
5385 break
5388 done
5389 ac_cv_prog_CPP=$CPP
5392 CPP=$ac_cv_prog_CPP
5393 else
5394 ac_cv_prog_CPP=$CPP
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5397 $as_echo "$CPP" >&6; }
5398 ac_preproc_ok=false
5399 for ac_c_preproc_warn_flag in '' yes
5401 # Use a header file that comes with gcc, so configuring glibc
5402 # with a fresh cross-compiler works.
5403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 # <limits.h> exists even on freestanding compilers.
5405 # On the NeXT, cc -E runs the code through the compiler's parser,
5406 # not just through cpp. "Syntax error" is here to catch this case.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #ifdef __STDC__
5410 # include <limits.h>
5411 #else
5412 # include <assert.h>
5413 #endif
5414 Syntax error
5415 _ACEOF
5416 if ac_fn_c_try_cpp "$LINENO"; then :
5418 else
5419 # Broken: fails on valid input.
5420 continue
5422 rm -f conftest.err conftest.$ac_ext
5424 # OK, works on sane cases. Now check whether nonexistent headers
5425 # can be detected and how.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5429 _ACEOF
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5431 # Broken: success on invalid input.
5432 continue
5433 else
5434 # Passes both tests.
5435 ac_preproc_ok=:
5436 break
5438 rm -f conftest.err conftest.$ac_ext
5440 done
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.err conftest.$ac_ext
5443 if $ac_preproc_ok; then :
5445 else
5446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5448 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5449 See \`config.log' for more details." "$LINENO" 5; }
5452 ac_ext=c
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5459 $as_echo_n "checking for inline... " >&6; }
5460 if test "${ac_cv_c_inline+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 ac_cv_c_inline=no
5464 for ac_kw in inline __inline__ __inline; do
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #ifndef __cplusplus
5468 typedef int foo_t;
5469 static $ac_kw foo_t static_foo () {return 0; }
5470 $ac_kw foo_t foo () {return 0; }
5471 #endif
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_c_inline=$ac_kw
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 test "$ac_cv_c_inline" != no && break
5479 done
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5483 $as_echo "$ac_cv_c_inline" >&6; }
5485 case $ac_cv_c_inline in
5486 inline | yes) ;;
5488 case $ac_cv_c_inline in
5489 no) ac_val=;;
5490 *) ac_val=$ac_cv_c_inline;;
5491 esac
5492 cat >>confdefs.h <<_ACEOF
5493 #ifndef __cplusplus
5494 #define inline $ac_val
5495 #endif
5496 _ACEOF
5498 esac
5501 # Check whether --enable-largefile was given.
5502 if test "${enable_largefile+set}" = set; then :
5503 enableval=$enable_largefile;
5506 if test "$enable_largefile" != no; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5509 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5510 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 ac_cv_sys_largefile_CC=no
5514 if test "$GCC" != yes; then
5515 ac_save_CC=$CC
5516 while :; do
5517 # IRIX 6.2 and later do not support large files by default,
5518 # so use the C compiler's -n32 option if that helps.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 /* Check that off_t can represent 2**63 - 1 correctly.
5523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5524 since some C++ compilers masquerading as C compilers
5525 incorrectly reject 9223372036854775807. */
5526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5528 && LARGE_OFF_T % 2147483647 == 1)
5529 ? 1 : -1];
5531 main ()
5535 return 0;
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 break
5541 rm -f core conftest.err conftest.$ac_objext
5542 CC="$CC -n32"
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 ac_cv_sys_largefile_CC=' -n32'; break
5546 rm -f core conftest.err conftest.$ac_objext
5547 break
5548 done
5549 CC=$ac_save_CC
5550 rm -f conftest.$ac_ext
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5554 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5555 if test "$ac_cv_sys_largefile_CC" != no; then
5556 CC=$CC$ac_cv_sys_largefile_CC
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5560 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5561 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 while :; do
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5568 /* Check that off_t can represent 2**63 - 1 correctly.
5569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5570 since some C++ compilers masquerading as C compilers
5571 incorrectly reject 9223372036854775807. */
5572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5574 && LARGE_OFF_T % 2147483647 == 1)
5575 ? 1 : -1];
5577 main ()
5581 return 0;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_sys_file_offset_bits=no; break
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #define _FILE_OFFSET_BITS 64
5591 #include <sys/types.h>
5592 /* Check that off_t can represent 2**63 - 1 correctly.
5593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5594 since some C++ compilers masquerading as C compilers
5595 incorrectly reject 9223372036854775807. */
5596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5598 && LARGE_OFF_T % 2147483647 == 1)
5599 ? 1 : -1];
5601 main ()
5605 return 0;
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_sys_file_offset_bits=64; break
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 ac_cv_sys_file_offset_bits=unknown
5613 break
5614 done
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5617 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5618 case $ac_cv_sys_file_offset_bits in #(
5619 no | unknown) ;;
5621 cat >>confdefs.h <<_ACEOF
5622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5623 _ACEOF
5625 esac
5626 rm -rf conftest*
5627 if test $ac_cv_sys_file_offset_bits = unknown; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5629 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5630 if test "${ac_cv_sys_large_files+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 while :; do
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #include <sys/types.h>
5637 /* Check that off_t can represent 2**63 - 1 correctly.
5638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5639 since some C++ compilers masquerading as C compilers
5640 incorrectly reject 9223372036854775807. */
5641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5643 && LARGE_OFF_T % 2147483647 == 1)
5644 ? 1 : -1];
5646 main ()
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 ac_cv_sys_large_files=no; break
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #define _LARGE_FILES 1
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5668 ? 1 : -1];
5670 main ()
5674 return 0;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 ac_cv_sys_large_files=1; break
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_sys_large_files=unknown
5682 break
5683 done
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5686 $as_echo "$ac_cv_sys_large_files" >&6; }
5687 case $ac_cv_sys_large_files in #(
5688 no | unknown) ;;
5690 cat >>confdefs.h <<_ACEOF
5691 #define _LARGE_FILES $ac_cv_sys_large_files
5692 _ACEOF
5694 esac
5695 rm -rf conftest*
5700 # sizeof(char) is 1 by definition.
5701 # The cast to long int works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5706 $as_echo_n "checking size of void *... " >&6; }
5707 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5712 else
5713 if test "$ac_cv_type_void_p" = yes; then
5714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5716 { as_fn_set_status 77
5717 as_fn_error "cannot compute sizeof (void *)
5718 See \`config.log' for more details." "$LINENO" 5; }; }
5719 else
5720 ac_cv_sizeof_void_p=0
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5726 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5730 cat >>confdefs.h <<_ACEOF
5731 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5732 _ACEOF
5735 # The cast to long int works around a bug in the HP C Compiler
5736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5738 # This bug is HP SR number 8606223364.
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5740 $as_echo_n "checking size of short... " >&6; }
5741 if test "${ac_cv_sizeof_short+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5746 else
5747 if test "$ac_cv_type_short" = yes; then
5748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5750 { as_fn_set_status 77
5751 as_fn_error "cannot compute sizeof (short)
5752 See \`config.log' for more details." "$LINENO" 5; }; }
5753 else
5754 ac_cv_sizeof_short=0
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5760 $as_echo "$ac_cv_sizeof_short" >&6; }
5764 cat >>confdefs.h <<_ACEOF
5765 #define SIZEOF_SHORT $ac_cv_sizeof_short
5766 _ACEOF
5769 # The cast to long int works around a bug in the HP C Compiler
5770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5772 # This bug is HP SR number 8606223364.
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5774 $as_echo_n "checking size of int... " >&6; }
5775 if test "${ac_cv_sizeof_int+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5780 else
5781 if test "$ac_cv_type_int" = yes; then
5782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5784 { as_fn_set_status 77
5785 as_fn_error "cannot compute sizeof (int)
5786 See \`config.log' for more details." "$LINENO" 5; }; }
5787 else
5788 ac_cv_sizeof_int=0
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5794 $as_echo "$ac_cv_sizeof_int" >&6; }
5798 cat >>confdefs.h <<_ACEOF
5799 #define SIZEOF_INT $ac_cv_sizeof_int
5800 _ACEOF
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5808 $as_echo_n "checking size of long... " >&6; }
5809 if test "${ac_cv_sizeof_long+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5814 else
5815 if test "$ac_cv_type_long" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status 77
5819 as_fn_error "cannot compute sizeof (long)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5821 else
5822 ac_cv_sizeof_long=0
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5828 $as_echo "$ac_cv_sizeof_long" >&6; }
5832 cat >>confdefs.h <<_ACEOF
5833 #define SIZEOF_LONG $ac_cv_sizeof_long
5834 _ACEOF
5837 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5838 if test "x$ac_cv_type_long_long" = x""yes; then :
5840 cat >>confdefs.h <<_ACEOF
5841 #define HAVE_LONG_LONG 1
5842 _ACEOF
5844 # The cast to long int works around a bug in the HP C Compiler
5845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5847 # This bug is HP SR number 8606223364.
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5849 $as_echo_n "checking size of long long... " >&6; }
5850 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5855 else
5856 if test "$ac_cv_type_long_long" = yes; then
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 { as_fn_set_status 77
5860 as_fn_error "cannot compute sizeof (long long)
5861 See \`config.log' for more details." "$LINENO" 5; }; }
5862 else
5863 ac_cv_sizeof_long_long=0
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5869 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5873 cat >>confdefs.h <<_ACEOF
5874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5875 _ACEOF
5880 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5881 if test "x$ac_cv_type___int64" = x""yes; then :
5883 cat >>confdefs.h <<_ACEOF
5884 #define HAVE___INT64 1
5885 _ACEOF
5887 # The cast to long int works around a bug in the HP C Compiler
5888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5890 # This bug is HP SR number 8606223364.
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5892 $as_echo_n "checking size of __int64... " >&6; }
5893 if test "${ac_cv_sizeof___int64+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5898 else
5899 if test "$ac_cv_type___int64" = yes; then
5900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5902 { as_fn_set_status 77
5903 as_fn_error "cannot compute sizeof (__int64)
5904 See \`config.log' for more details." "$LINENO" 5; }; }
5905 else
5906 ac_cv_sizeof___int64=0
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5912 $as_echo "$ac_cv_sizeof___int64" >&6; }
5916 cat >>confdefs.h <<_ACEOF
5917 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5918 _ACEOF
5923 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5924 case $ac_cv_c_int8_t in #(
5925 no|yes) ;; #(
5928 cat >>confdefs.h <<_ACEOF
5929 #define int8_t $ac_cv_c_int8_t
5930 _ACEOF
5932 esac
5934 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5935 case $ac_cv_c_int16_t in #(
5936 no|yes) ;; #(
5939 cat >>confdefs.h <<_ACEOF
5940 #define int16_t $ac_cv_c_int16_t
5941 _ACEOF
5943 esac
5945 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5946 case $ac_cv_c_int32_t in #(
5947 no|yes) ;; #(
5950 cat >>confdefs.h <<_ACEOF
5951 #define int32_t $ac_cv_c_int32_t
5952 _ACEOF
5954 esac
5956 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5957 case $ac_cv_c_int64_t in #(
5958 no|yes) ;; #(
5961 cat >>confdefs.h <<_ACEOF
5962 #define int64_t $ac_cv_c_int64_t
5963 _ACEOF
5965 esac
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5969 $as_echo_n "checking for long long int... " >&6; }
5970 if test "${ac_cv_type_long_long_int+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5976 /* For now, do not test the preprocessor; as of 2007 there are too many
5977 implementations with broken preprocessors. Perhaps this can
5978 be revisited in 2012. In the meantime, code should not expect
5979 #if to work with literals wider than 32 bits. */
5980 /* Test literals. */
5981 long long int ll = 9223372036854775807ll;
5982 long long int nll = -9223372036854775807LL;
5983 unsigned long long int ull = 18446744073709551615ULL;
5984 /* Test constant expressions. */
5985 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5986 ? 1 : -1)];
5987 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5988 ? 1 : -1)];
5989 int i = 63;
5991 main ()
5993 /* Test availability of runtime routines for shift and division. */
5994 long long int llmax = 9223372036854775807ll;
5995 unsigned long long int ullmax = 18446744073709551615ull;
5996 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5997 | (llmax / ll) | (llmax % ll)
5998 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5999 | (ullmax / ull) | (ullmax % ull));
6001 return 0;
6004 _ACEOF
6005 if ac_fn_c_try_link "$LINENO"; then :
6006 if test "$cross_compiling" = yes; then :
6007 ac_cv_type_long_long_int=yes
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <limits.h>
6012 #ifndef LLONG_MAX
6013 # define HALF \
6014 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6015 # define LLONG_MAX (HALF - 1 + HALF)
6016 #endif
6018 main ()
6020 long long int n = 1;
6021 int i;
6022 for (i = 0; ; i++)
6024 long long int m = n << i;
6025 if (m >> i != n)
6026 return 1;
6027 if (LLONG_MAX / 2 < m)
6028 break;
6030 return 0;
6032 return 0;
6034 _ACEOF
6035 if ac_fn_c_try_run "$LINENO"; then :
6036 ac_cv_type_long_long_int=yes
6037 else
6038 ac_cv_type_long_long_int=no
6040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6041 conftest.$ac_objext conftest.beam conftest.$ac_ext
6044 else
6045 ac_cv_type_long_long_int=no
6047 rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6051 $as_echo "$ac_cv_type_long_long_int" >&6; }
6052 if test $ac_cv_type_long_long_int = yes; then
6054 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6060 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6063 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6065 else
6066 test $ac_cv_type_long_long_int = yes \
6067 && ac_type='long long int' \
6068 || ac_type='long int'
6070 cat >>confdefs.h <<_ACEOF
6071 #define intmax_t $ac_type
6072 _ACEOF
6078 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6079 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6081 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6083 else
6084 for ac_type in 'int' 'long int' 'long long int'; do
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 $ac_includes_default
6089 main ()
6091 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6092 test_array [0] = 0
6095 return 0;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6100 cat >>confdefs.h <<_ACEOF
6101 #define intptr_t $ac_type
6102 _ACEOF
6104 ac_type=
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 test -z "$ac_type" && break
6108 done
6112 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6113 case $ac_cv_c_uint8_t in #(
6114 no|yes) ;; #(
6117 $as_echo "#define _UINT8_T 1" >>confdefs.h
6120 cat >>confdefs.h <<_ACEOF
6121 #define uint8_t $ac_cv_c_uint8_t
6122 _ACEOF
6124 esac
6126 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6127 case $ac_cv_c_uint16_t in #(
6128 no|yes) ;; #(
6132 cat >>confdefs.h <<_ACEOF
6133 #define uint16_t $ac_cv_c_uint16_t
6134 _ACEOF
6136 esac
6138 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6139 case $ac_cv_c_uint32_t in #(
6140 no|yes) ;; #(
6143 $as_echo "#define _UINT32_T 1" >>confdefs.h
6146 cat >>confdefs.h <<_ACEOF
6147 #define uint32_t $ac_cv_c_uint32_t
6148 _ACEOF
6150 esac
6152 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6153 case $ac_cv_c_uint64_t in #(
6154 no|yes) ;; #(
6157 $as_echo "#define _UINT64_T 1" >>confdefs.h
6160 cat >>confdefs.h <<_ACEOF
6161 #define uint64_t $ac_cv_c_uint64_t
6162 _ACEOF
6164 esac
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6168 $as_echo_n "checking for unsigned long long int... " >&6; }
6169 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6175 /* For now, do not test the preprocessor; as of 2007 there are too many
6176 implementations with broken preprocessors. Perhaps this can
6177 be revisited in 2012. In the meantime, code should not expect
6178 #if to work with literals wider than 32 bits. */
6179 /* Test literals. */
6180 long long int ll = 9223372036854775807ll;
6181 long long int nll = -9223372036854775807LL;
6182 unsigned long long int ull = 18446744073709551615ULL;
6183 /* Test constant expressions. */
6184 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6185 ? 1 : -1)];
6186 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6187 ? 1 : -1)];
6188 int i = 63;
6190 main ()
6192 /* Test availability of runtime routines for shift and division. */
6193 long long int llmax = 9223372036854775807ll;
6194 unsigned long long int ullmax = 18446744073709551615ull;
6195 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6196 | (llmax / ll) | (llmax % ll)
6197 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6198 | (ullmax / ull) | (ullmax % ull));
6200 return 0;
6203 _ACEOF
6204 if ac_fn_c_try_link "$LINENO"; then :
6205 ac_cv_type_unsigned_long_long_int=yes
6206 else
6207 ac_cv_type_unsigned_long_long_int=no
6209 rm -f core conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6213 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6214 if test $ac_cv_type_unsigned_long_long_int = yes; then
6216 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6222 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6225 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6227 else
6228 test $ac_cv_type_unsigned_long_long_int = yes \
6229 && ac_type='unsigned long long int' \
6230 || ac_type='unsigned long int'
6232 cat >>confdefs.h <<_ACEOF
6233 #define uintmax_t $ac_type
6234 _ACEOF
6240 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6241 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6243 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6245 else
6246 for ac_type in 'unsigned int' 'unsigned long int' \
6247 'unsigned long long int'; do
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 $ac_includes_default
6252 main ()
6254 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6255 test_array [0] = 0
6258 return 0;
6260 _ACEOF
6261 if ac_fn_c_try_compile "$LINENO"; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define uintptr_t $ac_type
6265 _ACEOF
6267 ac_type=
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 test -z "$ac_type" && break
6271 done
6288 # ---------------------
6289 # Warnings and checking
6290 # ---------------------
6292 # Check $CC warning features (if it's GCC).
6293 # We want to use -pedantic, but we don't want warnings about
6294 # * 'long long'
6295 # * variadic macros
6296 # * overlong strings
6297 # * C++11 narrowing conversions in { }
6298 # So, we only use -pedantic if we can disable those warnings.
6300 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6301 # Check whether --enable-build-format-warnings was given.
6302 if test "${enable_build_format_warnings+set}" = set; then :
6303 enableval=$enable_build_format_warnings;
6304 else
6305 enable_build_format_warnings=yes
6308 if test $enable_build_format_warnings = no; then :
6309 wf_opt=-Wno-format
6310 else
6311 wf_opt=
6313 loose_warn=
6314 save_CFLAGS="$CFLAGS"
6315 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6316 # Do the check with the no- prefix removed since gcc silently
6317 # accepts any -Wno-* option on purpose
6318 case $real_option in
6319 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6320 *) option=$real_option ;;
6321 esac
6322 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6325 $as_echo_n "checking whether $CC supports $option... " >&6; }
6326 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 CFLAGS="$option"
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6334 main ()
6338 return 0;
6340 _ACEOF
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342 eval "$as_acx_Woption=yes"
6343 else
6344 eval "$as_acx_Woption=no"
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 eval ac_res=\$$as_acx_Woption
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6353 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6355 done
6356 CFLAGS="$save_CFLAGS"
6358 c_loose_warn=
6359 save_CFLAGS="$CFLAGS"
6360 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6361 # Do the check with the no- prefix removed since gcc silently
6362 # accepts any -Wno-* option on purpose
6363 case $real_option in
6364 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6365 *) option=$real_option ;;
6366 esac
6367 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6370 $as_echo_n "checking whether $CC supports $option... " >&6; }
6371 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 CFLAGS="$option"
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6379 main ()
6383 return 0;
6385 _ACEOF
6386 if ac_fn_c_try_compile "$LINENO"; then :
6387 eval "$as_acx_Woption=yes"
6388 else
6389 eval "$as_acx_Woption=no"
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 eval ac_res=\$$as_acx_Woption
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6396 $as_echo "$ac_res" >&6; }
6397 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6398 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6400 done
6401 CFLAGS="$save_CFLAGS"
6403 strict_warn=
6404 save_CFLAGS="$CFLAGS"
6405 for real_option in -Wmissing-format-attribute; do
6406 # Do the check with the no- prefix removed since gcc silently
6407 # accepts any -Wno-* option on purpose
6408 case $real_option in
6409 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6410 *) option=$real_option ;;
6411 esac
6412 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6415 $as_echo_n "checking whether $CC supports $option... " >&6; }
6416 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 CFLAGS="$option"
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6424 main ()
6428 return 0;
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 eval "$as_acx_Woption=yes"
6433 else
6434 eval "$as_acx_Woption=no"
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 eval ac_res=\$$as_acx_Woption
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6441 $as_echo "$ac_res" >&6; }
6442 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6443 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6445 done
6446 CFLAGS="$save_CFLAGS"
6448 c_strict_warn=
6449 save_CFLAGS="$CFLAGS"
6450 for real_option in -Wold-style-definition -Wc++-compat; do
6451 # Do the check with the no- prefix removed since gcc silently
6452 # accepts any -Wno-* option on purpose
6453 case $real_option in
6454 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6455 *) option=$real_option ;;
6456 esac
6457 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6460 $as_echo_n "checking whether $CC supports $option... " >&6; }
6461 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 CFLAGS="$option"
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6469 main ()
6473 return 0;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 eval "$as_acx_Woption=yes"
6478 else
6479 eval "$as_acx_Woption=no"
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 eval ac_res=\$$as_acx_Woption
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6486 $as_echo "$ac_res" >&6; }
6487 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6488 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6490 done
6491 CFLAGS="$save_CFLAGS"
6493 # Do the check with the no- prefix removed from the warning options
6494 # since gcc silently accepts any -Wno-* option on purpose
6495 if test "$GCC" = yes; then :
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6497 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6498 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 save_CFLAGS="$CFLAGS"
6502 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6507 main ()
6511 return 0;
6513 _ACEOF
6514 if ac_fn_c_try_compile "$LINENO"; then :
6515 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6516 else
6517 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 CFLAGS="$save_CFLAGS"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6523 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6524 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6525 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6530 # Check whether --enable-werror-always was given.
6531 if test "${enable_werror_always+set}" = set; then :
6532 enableval=$enable_werror_always;
6533 else
6534 enable_werror_always=no
6537 if test $enable_werror_always = yes; then :
6538 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6543 # The above macros do nothing if the compiler is not GCC. However, the
6544 # Makefile has more goo to add other flags, so these variables are used
6545 # to enable warnings only for GCC.
6546 warn_cflags=
6547 warn_cxxflags=
6548 if test "x$GCC" = "xyes"; then
6549 warn_cflags='$(GCC_WARN_CFLAGS)'
6550 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6555 # Disable exceptions and RTTI if building with g++
6556 noexception_flags=
6557 save_CFLAGS="$CFLAGS"
6558 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6559 # Do the check with the no- prefix removed since gcc silently
6560 # accepts any -Wno-* option on purpose
6561 case $real_option in
6562 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6563 *) option=$real_option ;;
6564 esac
6565 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6568 $as_echo_n "checking whether $CC supports $option... " >&6; }
6569 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 CFLAGS="$option"
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6577 main ()
6581 return 0;
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 eval "$as_acx_Woption=yes"
6586 else
6587 eval "$as_acx_Woption=no"
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 eval ac_res=\$$as_acx_Woption
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6594 $as_echo "$ac_res" >&6; }
6595 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6596 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6598 done
6599 CFLAGS="$save_CFLAGS"
6602 # Enable expensive internal checks
6603 is_release=
6604 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6605 is_release=yes
6608 # Check whether --enable-checking was given.
6609 if test "${enable_checking+set}" = set; then :
6610 enableval=$enable_checking; ac_checking_flags="${enableval}"
6611 else
6613 # Determine the default checks.
6614 if test x$is_release = x ; then
6615 ac_checking_flags=yes
6616 else
6617 ac_checking_flags=release
6621 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6622 for check in release $ac_checking_flags
6624 case $check in
6625 # these set all the flags to specific states
6626 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6627 ac_fold_checking= ; ac_gc_checking=1 ;
6628 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6629 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6630 ac_tree_checking=1 ; ac_valgrind_checking= ;
6631 ac_types_checking=1 ;;
6632 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6633 ac_fold_checking= ; ac_gc_checking= ;
6634 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6635 ac_rtlflag_checking= ; ac_runtime_checking= ;
6636 ac_tree_checking= ; ac_valgrind_checking= ;
6637 ac_types_checking= ;;
6638 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6639 ac_fold_checking=1 ; ac_gc_checking=1 ;
6640 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6641 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6642 ac_tree_checking=1 ; ac_valgrind_checking= ;
6643 ac_types_checking=1 ;;
6644 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6645 ac_fold_checking= ; ac_gc_checking= ;
6646 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6647 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6648 ac_tree_checking= ; ac_valgrind_checking= ;
6649 ac_types_checking= ;;
6650 # these enable particular checks
6651 assert) ac_assert_checking=1 ;;
6652 df) ac_df_checking=1 ;;
6653 fold) ac_fold_checking=1 ;;
6654 gc) ac_gc_checking=1 ;;
6655 gcac) ac_gc_always_collect=1 ;;
6656 gimple) ac_gimple_checking=1 ;;
6657 misc) ac_checking=1 ;;
6658 rtl) ac_rtl_checking=1 ;;
6659 rtlflag) ac_rtlflag_checking=1 ;;
6660 runtime) ac_runtime_checking=1 ;;
6661 tree) ac_tree_checking=1 ;;
6662 types) ac_types_checking=1 ;;
6663 valgrind) ac_valgrind_checking=1 ;;
6664 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6665 esac
6666 done
6667 IFS="$ac_save_IFS"
6669 nocommon_flag=""
6670 if test x$ac_checking != x ; then
6672 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6674 nocommon_flag=-fno-common
6677 if test x$ac_df_checking != x ; then
6679 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6682 if test x$ac_assert_checking != x ; then
6684 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6687 if test x$ac_gimple_checking != x ; then
6689 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6693 if test x$ac_runtime_checking != x ; then
6695 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6698 if test x$ac_tree_checking != x ; then
6700 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6702 TREEBROWSER=tree-browser.o
6703 TREECHECKING=yes
6705 if test x$ac_types_checking != x ; then
6707 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6712 if test x$ac_rtl_checking != x ; then
6714 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6717 if test x$ac_rtlflag_checking != x ; then
6719 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6722 if test x$ac_gc_checking != x ; then
6724 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6727 if test x$ac_gc_always_collect != x ; then
6729 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6732 if test x$ac_fold_checking != x ; then
6734 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6737 valgrind_path_defines=
6738 valgrind_command=
6740 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6741 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6742 have_valgrind_h=yes
6743 else
6744 have_valgrind_h=no
6749 if test x$ac_valgrind_checking != x ; then
6750 # It is certainly possible that there's valgrind but no valgrind.h.
6751 # GCC relies on making annotations so we must have both.
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6753 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <valgrind/memcheck.h>
6757 #ifndef VALGRIND_DISCARD
6758 #error VALGRIND_DISCARD not defined
6759 #endif
6760 _ACEOF
6761 if ac_fn_c_try_cpp "$LINENO"; then :
6762 gcc_cv_header_valgrind_memcheck_h=yes
6763 else
6764 gcc_cv_header_valgrind_memcheck_h=no
6766 rm -f conftest.err conftest.$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6768 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6770 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <memcheck.h>
6774 #ifndef VALGRIND_DISCARD
6775 #error VALGRIND_DISCARD not defined
6776 #endif
6777 _ACEOF
6778 if ac_fn_c_try_cpp "$LINENO"; then :
6779 gcc_cv_header_memcheck_h=yes
6780 else
6781 gcc_cv_header_memcheck_h=no
6783 rm -f conftest.err conftest.$ac_ext
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6785 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6787 # Prepare PATH_SEPARATOR.
6788 # The user is always right.
6789 if test "${PATH_SEPARATOR+set}" != set; then
6790 echo "#! /bin/sh" >conf$$.sh
6791 echo "exit 0" >>conf$$.sh
6792 chmod +x conf$$.sh
6793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6794 PATH_SEPARATOR=';'
6795 else
6796 PATH_SEPARATOR=:
6798 rm -f conf$$.sh
6801 # Find out how to test for executable files. Don't use a zero-byte file,
6802 # as systems may use methods other than mode bits to determine executability.
6803 cat >conf$$.file <<_ASEOF
6804 #! /bin/sh
6805 exit 0
6806 _ASEOF
6807 chmod +x conf$$.file
6808 if test -x conf$$.file >/dev/null 2>&1; then
6809 ac_executable_p="test -x"
6810 else
6811 ac_executable_p="test -f"
6813 rm -f conf$$.file
6815 # Extract the first word of "valgrind", so it can be a program name with args.
6816 set dummy valgrind; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 case "$valgrind_path" in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6827 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6828 for ac_dir in $PATH; do
6829 IFS="$ac_save_IFS"
6830 test -z "$ac_dir" && ac_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6833 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6834 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6835 break 2
6838 done
6839 done
6840 IFS="$ac_save_IFS"
6842 esac
6844 valgrind_path="$ac_cv_path_valgrind_path"
6845 if test -n "$valgrind_path"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6847 $as_echo "$valgrind_path" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$valgrind_path" = "x" \
6854 || (test $have_valgrind_h = no \
6855 && test $gcc_cv_header_memcheck_h = no \
6856 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6857 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6859 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6860 valgrind_command="$valgrind_path -q"
6862 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
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
6878 # Enable code coverage collection
6879 # Check whether --enable-coverage was given.
6880 if test "${enable_coverage+set}" = set; then :
6881 enableval=$enable_coverage; case "${enableval}" in
6882 yes|noopt)
6883 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6885 opt)
6886 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6889 # a.k.a. --disable-coverage
6890 coverage_flags=""
6893 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6895 esac
6896 else
6897 coverage_flags=""
6902 # Check whether --enable-gather-detailed-mem-stats was given.
6903 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6904 enableval=$enable_gather_detailed_mem_stats;
6905 else
6906 enable_gather_detailed_mem_stats=no
6909 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6911 cat >>confdefs.h <<_ACEOF
6912 #define GATHER_STATISTICS $gather_stats
6913 _ACEOF
6916 # -------------------------------
6917 # Miscenalleous configure options
6918 # -------------------------------
6920 # With stabs
6922 # Check whether --with-stabs was given.
6923 if test "${with_stabs+set}" = set; then :
6924 withval=$with_stabs; stabs="$with_stabs"
6925 else
6926 stabs=no
6930 # Determine whether or not multilibs are enabled.
6931 # Check whether --enable-multilib was given.
6932 if test "${enable_multilib+set}" = set; then :
6933 enableval=$enable_multilib;
6934 else
6935 enable_multilib=yes
6940 # Determine whether or not multiarch is enabled.
6941 # Check whether --enable-multiarch was given.
6942 if test "${enable_multiarch+set}" = set; then :
6943 enableval=$enable_multiarch; case "${enableval}" in
6944 yes|no|auto) enable_multiarch=$enableval;;
6945 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6946 esac
6947 else
6948 enable_multiarch=auto
6951 if test x${enable_multiarch} = xauto; then
6952 if test x${with_native_system_header_dir} != x; then
6953 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6954 enable_multiarch=no
6956 if test x$host != x$target && test "x$with_sysroot" = x; then
6957 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6958 enable_multiarch=no
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6962 $as_echo_n "checking for multiarch configuration... " >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6965 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6967 # needed for setting the multiarch name for soft-float/hard-float ABIs
6971 # Enable __cxa_atexit for C++.
6972 # Check whether --enable-__cxa_atexit was given.
6973 if test "${enable___cxa_atexit+set}" = set; then :
6974 enableval=$enable___cxa_atexit;
6978 # Enable C extension for decimal float if target supports it.
6980 # Check whether --enable-decimal-float was given.
6981 if test "${enable_decimal_float+set}" = set; then :
6982 enableval=$enable_decimal_float;
6983 case $enable_decimal_float in
6984 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6985 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6986 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6987 esac
6989 else
6991 case $target in
6992 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6993 i?86*-*-gnu* | \
6994 i?86*-*-mingw* | x86_64*-*-mingw* | \
6995 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6996 enable_decimal_float=yes
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7000 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7001 enable_decimal_float=no
7003 esac
7008 # x86's use BID format instead of DPD
7009 case x$enable_decimal_float in
7010 xyes)
7011 case $target in
7012 i?86*-*-* | x86_64*-*-*)
7013 enable_decimal_float=bid
7016 enable_decimal_float=dpd
7018 esac
7019 default_decimal_float=$enable_decimal_float
7021 xno)
7022 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7023 # dependency on libdecnumber.
7024 default_decimal_float=dpd
7026 esac
7031 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7033 cat >>confdefs.h <<_ACEOF
7034 #define ENABLE_DECIMAL_FLOAT $dfp
7035 _ACEOF
7038 # Use default_decimal_float for dependency.
7039 enable_decimal_float=$default_decimal_float
7041 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7043 cat >>confdefs.h <<_ACEOF
7044 #define ENABLE_DECIMAL_BID_FORMAT $bid
7045 _ACEOF
7048 # Enable C extension for fixed-point arithmetic.
7049 # Check whether --enable-fixed-point was given.
7050 if test "${enable_fixed_point+set}" = set; then :
7051 enableval=$enable_fixed_point;
7052 else
7054 case $target in
7055 arm*)
7056 enable_fixed_point=yes
7059 mips*-*-*)
7060 enable_fixed_point=yes
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7064 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7065 enable_fixed_point=no
7067 esac
7073 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7075 cat >>confdefs.h <<_ACEOF
7076 #define ENABLE_FIXED_POINT $fixedpoint
7077 _ACEOF
7080 # Enable threads
7081 # Pass with no value to take the default
7082 # Pass with a value to specify a thread package
7083 # Check whether --enable-threads was given.
7084 if test "${enable_threads+set}" = set; then :
7085 enableval=$enable_threads;
7086 else
7087 enable_threads=''
7091 # Check whether --enable-tls was given.
7092 if test "${enable_tls+set}" = set; then :
7093 enableval=$enable_tls;
7094 case $enable_tls in
7095 yes | no) ;;
7096 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7097 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7098 esac
7100 else
7101 enable_tls=''
7105 # Check whether --enable-objc-gc was given.
7106 if test "${enable_objc_gc+set}" = set; then :
7107 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7108 objc_boehm_gc=''
7109 else
7110 objc_boehm_gc=1
7112 else
7113 objc_boehm_gc=''
7118 # Check whether --with-dwarf2 was given.
7119 if test "${with_dwarf2+set}" = set; then :
7120 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7121 else
7122 dwarf2=no
7126 # Check whether --enable-shared was given.
7127 if test "${enable_shared+set}" = set; then :
7128 enableval=$enable_shared;
7129 case $enable_shared in
7130 yes | no) ;;
7132 enable_shared=no
7133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7134 for pkg in $enableval; do
7135 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7136 enable_shared=yes
7138 done
7139 IFS="$ac_save_ifs"
7141 esac
7143 else
7144 enable_shared=yes
7150 # Check whether --with-native-system-header-dir was given.
7151 if test "${with_native_system_header_dir+set}" = set; then :
7152 withval=$with_native_system_header_dir;
7153 case ${with_native_system_header_dir} in
7154 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7155 /* | [A-Za-z]:[\\/]*) ;;
7156 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7157 esac
7158 configured_native_system_header_dir="${withval}"
7160 else
7161 configured_native_system_header_dir=
7166 # Check whether --with-build-sysroot was given.
7167 if test "${with_build_sysroot+set}" = set; then :
7168 withval=$with_build_sysroot; if test x"$withval" != x ; then
7169 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7171 else
7172 SYSROOT_CFLAGS_FOR_TARGET=
7177 if test "x$prefix" = xNONE; then
7178 test_prefix=/usr/local
7179 else
7180 test_prefix=$prefix
7182 if test "x$exec_prefix" = xNONE; then
7183 test_exec_prefix=$test_prefix
7184 else
7185 test_exec_prefix=$exec_prefix
7189 # Check whether --with-sysroot was given.
7190 if test "${with_sysroot+set}" = set; then :
7191 withval=$with_sysroot;
7192 case ${with_sysroot} in
7193 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7194 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7195 esac
7197 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7198 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7200 case ${TARGET_SYSTEM_ROOT} in
7201 "${test_prefix}"|"${test_prefix}/"*|\
7202 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7203 '${prefix}'|'${prefix}/'*|\
7204 '${exec_prefix}'|'${exec_prefix}/'*)
7205 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7206 TARGET_SYSTEM_ROOT_DEFINE="$t"
7208 esac
7210 else
7212 TARGET_SYSTEM_ROOT=
7213 TARGET_SYSTEM_ROOT_DEFINE=
7214 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7223 # Check whether --with-specs was given.
7224 if test "${with_specs+set}" = set; then :
7225 withval=$with_specs; CONFIGURE_SPECS=$withval
7226 else
7227 CONFIGURE_SPECS=
7235 # Check whether --with-pkgversion was given.
7236 if test "${with_pkgversion+set}" = set; then :
7237 withval=$with_pkgversion; case "$withval" in
7238 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7239 no) PKGVERSION= ;;
7240 *) PKGVERSION="($withval) " ;;
7241 esac
7242 else
7243 PKGVERSION="(GCC) "
7251 # Check whether --with-bugurl was given.
7252 if test "${with_bugurl+set}" = set; then :
7253 withval=$with_bugurl; case "$withval" in
7254 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7255 no) BUGURL=
7257 *) BUGURL="$withval"
7259 esac
7260 else
7261 BUGURL="http://gcc.gnu.org/bugs.html"
7265 case ${BUGURL} in
7267 REPORT_BUGS_TO=
7268 REPORT_BUGS_TEXI=
7271 REPORT_BUGS_TO="<$BUGURL>"
7272 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7274 esac;
7279 # Sanity check enable_languages in case someone does not run the toplevel
7280 # configure # script.
7281 # Check whether --enable-languages was given.
7282 if test "${enable_languages+set}" = set; then :
7283 enableval=$enable_languages; case ,${enable_languages}, in
7284 ,,|,yes,)
7285 # go safe -- we cannot be much sure without the toplevel
7286 # configure's
7287 # analysis of which target libs are present and usable
7288 enable_languages=c
7290 *,all,*)
7291 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7293 *,c,*)
7296 enable_languages=c,${enable_languages}
7298 esac
7299 else
7300 enable_languages=c
7304 offload_targets=
7305 # Check whether --enable-accelerator was given.
7306 if test "${enable_accelerator+set}" = set; then :
7307 enableval=$enable_accelerator;
7308 case $enable_accelerator in
7309 no) ;;
7311 offload_targets=$enable_accelerator
7313 esac
7315 else
7316 enable_accelerator=no
7321 # Check whether --enable-as-accelerator-for was given.
7322 if test "${enable_as_accelerator_for+set}" = set; then :
7323 enableval=$enable_as_accelerator_for;
7324 if test $enable_accelerator = no; then
7325 echo "--enable-as-accelerator-for requires --enable-accelerator"
7326 exit 1;
7329 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7331 enable_as_accelerator=yes
7332 tool_prefix=${enable_as_accelerator_for}-accel-${enable_accelerator}
7333 accel_dir_suffix=/accel/${target_noncanonical}
7334 real_target_noncanonical=${enable_as_accelerator_for}
7336 else
7337 enable_as_accelerator=no
7342 # Check whether --enable-offload-targets was given.
7343 if test "${enable_offload_targets+set}" = set; then :
7344 enableval=$enable_offload_targets;
7345 if test x$enable_offload_targets = x; then
7346 as_fn_error "no offload targets specified" "$LINENO" 5
7347 else
7348 if test x$offload_targets = x; then
7349 offload_targets=$enable_offload_targets
7350 else
7351 offload_targets=$offload_targets,$enable_offload_targets
7355 else
7356 enable_accelerator=no
7360 offload_targets=`echo $offload_targets | sed -e 's#,#:#'`
7362 cat >>confdefs.h <<_ACEOF
7363 #define OFFLOAD_TARGETS "$offload_targets"
7364 _ACEOF
7366 if test x$offload_targets != x; then
7368 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7373 # Check whether --with-multilib-list was given.
7374 if test "${with_multilib_list+set}" = set; then :
7375 withval=$with_multilib_list; :
7376 else
7377 with_multilib_list=default
7381 # -------------------------
7382 # Checks for other programs
7383 # -------------------------
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7386 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7387 set x ${MAKE-make}
7388 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7389 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat >conftest.make <<\_ACEOF
7393 SHELL = /bin/sh
7394 all:
7395 @echo '@@@%%%=$(MAKE)=@@@%%%'
7396 _ACEOF
7397 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7398 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7399 *@@@%%%=?*=@@@%%%*)
7400 eval ac_cv_prog_make_${ac_make}_set=yes;;
7402 eval ac_cv_prog_make_${ac_make}_set=no;;
7403 esac
7404 rm -f conftest.make
7406 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7408 $as_echo "yes" >&6; }
7409 SET_MAKE=
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 SET_MAKE="MAKE=${MAKE-make}"
7417 # Find some useful tools
7418 for ac_prog in gawk mawk nawk awk
7420 # Extract the first word of "$ac_prog", so it can be a program name with args.
7421 set dummy $ac_prog; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if test "${ac_cv_prog_AWK+set}" = set; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$AWK"; then
7428 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_AWK="$ac_prog"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7441 done
7442 done
7443 IFS=$as_save_IFS
7447 AWK=$ac_cv_prog_AWK
7448 if test -n "$AWK"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7450 $as_echo "$AWK" >&6; }
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7457 test -n "$AWK" && break
7458 done
7460 # We need awk to create options.c and options.h.
7461 # Bail out if it's missing.
7462 case ${AWK} in
7463 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7464 esac
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7467 $as_echo_n "checking whether ln -s works... " >&6; }
7468 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 rm -f conftestdata_t
7472 echo >conftestdata_f
7473 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7474 then
7475 gcc_cv_prog_LN_S="ln -s"
7476 else
7477 if ln conftestdata_f conftestdata_t 2>/dev/null
7478 then
7479 gcc_cv_prog_LN_S=ln
7480 else
7481 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7482 then
7483 gcc_cv_prog_LN_S="cp -p"
7484 else
7485 gcc_cv_prog_LN_S=cp
7489 rm -f conftestdata_f conftestdata_t
7492 LN_S="$gcc_cv_prog_LN_S"
7493 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7495 $as_echo "yes" >&6; }
7496 else
7497 if test "$gcc_cv_prog_LN_S" = "ln"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7499 $as_echo "no, using ln" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7502 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7507 $as_echo_n "checking whether ln works... " >&6; }
7508 if test "${acx_cv_prog_LN+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 rm -f conftestdata_t
7512 echo >conftestdata_f
7513 if ln conftestdata_f conftestdata_t 2>/dev/null
7514 then
7515 acx_cv_prog_LN=ln
7516 else
7517 acx_cv_prog_LN=no
7519 rm -f conftestdata_f conftestdata_t
7522 if test $acx_cv_prog_LN = no; then
7523 LN="$LN_S"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7525 $as_echo "no, using $LN" >&6; }
7526 else
7527 LN="$acx_cv_prog_LN"
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7529 $as_echo "yes" >&6; }
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$RANLIB"; then
7541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7560 RANLIB=$ac_cv_prog_RANLIB
7561 if test -n "$RANLIB"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7563 $as_echo "$RANLIB" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7571 if test -z "$ac_cv_prog_RANLIB"; then
7572 ac_ct_RANLIB=$RANLIB
7573 # Extract the first word of "ranlib", so it can be a program name with args.
7574 set dummy ranlib; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 if test -n "$ac_ct_RANLIB"; then
7581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_ac_ct_RANLIB="ranlib"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7594 done
7595 done
7596 IFS=$as_save_IFS
7600 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7601 if test -n "$ac_ct_RANLIB"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7603 $as_echo "$ac_ct_RANLIB" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7609 if test "x$ac_ct_RANLIB" = x; then
7610 RANLIB=":"
7611 else
7612 case $cross_compiling:$ac_tool_warned in
7613 yes:)
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7617 esac
7618 RANLIB=$ac_ct_RANLIB
7620 else
7621 RANLIB="$ac_cv_prog_RANLIB"
7624 ranlib_flags=""
7627 # Find a good install program. We prefer a C program (faster),
7628 # so one script is as good as another. But avoid the broken or
7629 # incompatible versions:
7630 # SysV /etc/install, /usr/sbin/install
7631 # SunOS /usr/etc/install
7632 # IRIX /sbin/install
7633 # AIX /bin/install
7634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7636 # ./install, which can be erroneously created by make from ./install.sh.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7638 $as_echo_n "checking for a BSD compatible install... " >&6; }
7639 if test -z "$INSTALL"; then
7640 if test "${ac_cv_path_install+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7644 for ac_dir in $PATH; do
7645 # Account for people who put trailing slashes in PATH elements.
7646 case "$ac_dir/" in
7647 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7649 # OSF1 and SCO ODT 3.0 have their own names for install.
7650 for ac_prog in ginstall scoinst install; do
7651 if test -f $ac_dir/$ac_prog; then
7652 if test $ac_prog = install &&
7653 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7654 # AIX install. It has an incompatible calling convention.
7655 # OSF/1 installbsd also uses dspmsg, but is usable.
7657 else
7658 ac_cv_path_install="$ac_dir/$ac_prog -c"
7659 break 2
7662 done
7664 esac
7665 done
7666 IFS="$ac_save_IFS"
7669 if test "${ac_cv_path_install+set}" = set; then
7670 INSTALL="$ac_cv_path_install"
7671 else
7672 # As a last resort, use the slow shell script. We don't cache a
7673 # path for INSTALL within a source directory, because that will
7674 # break other packages using the cache if that directory is
7675 # removed, or if the path is relative.
7676 INSTALL="$ac_install_sh"
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7680 $as_echo "$INSTALL" >&6; }
7682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7683 # It thinks the first close brace ends the variable substitution.
7684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7689 # See if cmp has --ignore-initial.
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7691 $as_echo_n "checking for cmp's capabilities... " >&6; }
7692 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 echo abfoo >t1
7696 echo cdfoo >t2
7697 gcc_cv_prog_cmp_skip=slowcompare
7698 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7699 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7701 else
7702 gcc_cv_prog_cmp_skip=gnucompare
7705 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7706 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7707 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7709 else
7710 gcc_cv_prog_cmp_skip=fastcompare
7714 rm t1 t2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7718 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7719 make_compare_target=$gcc_cv_prog_cmp_skip
7723 # See if we have the mktemp command.
7724 # Extract the first word of "mktemp", so it can be a program name with args.
7725 set dummy mktemp; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$have_mktemp_command"; then
7732 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7741 ac_cv_prog_have_mktemp_command="yes"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7745 done
7746 done
7747 IFS=$as_save_IFS
7749 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7752 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7753 if test -n "$have_mktemp_command"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7755 $as_echo "$have_mktemp_command" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7763 # See if makeinfo has been installed and is modern enough
7764 # that we can use it.
7766 # Extract the first word of "makeinfo", so it can be a program name with args.
7767 set dummy makeinfo; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$MAKEINFO"; then
7774 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_prog_MAKEINFO="makeinfo"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7787 done
7788 done
7789 IFS=$as_save_IFS
7793 MAKEINFO=$ac_cv_prog_MAKEINFO
7794 if test -n "$MAKEINFO"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7796 $as_echo "$MAKEINFO" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7803 if test -n "$MAKEINFO"; then
7804 # Found it, now check the version.
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7806 $as_echo_n "checking for modern makeinfo... " >&6; }
7807 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7811 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7813 case $ac_prog_version in
7814 '') gcc_cv_prog_makeinfo_modern=no;;
7815 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7816 *) gcc_cv_prog_makeinfo_modern=no;;
7817 esac
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7821 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7822 else
7823 gcc_cv_prog_makeinfo_modern=no
7825 if test $gcc_cv_prog_makeinfo_modern = no; then
7826 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7829 if test $gcc_cv_prog_makeinfo_modern = no; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7831 *** Makeinfo is missing or too old.
7832 *** Info documentation will not be built." >&5
7833 $as_echo "$as_me: WARNING:
7834 *** Makeinfo is missing or too old.
7835 *** Info documentation will not be built." >&2;}
7836 BUILD_INFO=
7837 else
7838 BUILD_INFO=info
7842 # Is pod2man recent enough to regenerate manpages?
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7844 $as_echo_n "checking for recent Pod::Man... " >&6; }
7845 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7848 GENERATED_MANPAGES=generated-manpages
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 GENERATED_MANPAGES=
7856 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7858 # How about lex?
7859 for ac_prog in flex
7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
7862 set dummy $ac_prog; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if test "${ac_cv_prog_FLEX+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 if test -n "$FLEX"; then
7869 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 ac_cv_prog_FLEX="$ac_prog"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7882 done
7883 done
7884 IFS=$as_save_IFS
7888 FLEX=$ac_cv_prog_FLEX
7889 if test -n "$FLEX"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7891 $as_echo "$FLEX" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7898 test -n "$FLEX" && break
7899 done
7900 test -n "$FLEX" || FLEX="$MISSING flex"
7903 # Bison?
7904 for ac_prog in bison
7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_BISON+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 if test -n "$BISON"; then
7914 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_BISON="$ac_prog"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7927 done
7928 done
7929 IFS=$as_save_IFS
7933 BISON=$ac_cv_prog_BISON
7934 if test -n "$BISON"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7936 $as_echo "$BISON" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7943 test -n "$BISON" && break
7944 done
7945 test -n "$BISON" || BISON="$MISSING bison"
7948 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7949 # check for build == host before using them.
7951 # NM
7952 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7953 && test -d ../binutils ; then
7954 NM='${objdir}/../binutils/nm-new'
7955 else
7956 # Extract the first word of "nm", so it can be a program name with args.
7957 set dummy nm; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if test "${ac_cv_prog_NM+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 if test -n "$NM"; then
7964 ac_cv_prog_NM="$NM" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_prog_NM="nm"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7977 done
7978 done
7979 IFS=$as_save_IFS
7981 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7984 NM=$ac_cv_prog_NM
7985 if test -n "$NM"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7987 $as_echo "$NM" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7996 # AR
7997 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7998 && test -d ../binutils ; then
7999 AR='${objdir}/../binutils/ar'
8000 else
8001 # Extract the first word of "ar", so it can be a program name with args.
8002 set dummy ar; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if test "${ac_cv_prog_AR+set}" = set; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 if test -n "$AR"; then
8009 ac_cv_prog_AR="$AR" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_prog_AR="ar"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8022 done
8023 done
8024 IFS=$as_save_IFS
8026 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8029 AR=$ac_cv_prog_AR
8030 if test -n "$AR"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8032 $as_echo "$AR" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8042 # --------------------
8043 # Checks for C headers
8044 # --------------------
8046 # Need to reject headers which give warnings, so that the -Werror bootstrap
8047 # works later. *sigh* This needs to come before all header checks.
8049 ac_c_preproc_warn_flag=yes
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8052 $as_echo_n "checking for ANSI C header files... " >&6; }
8053 if test "${ac_cv_header_stdc+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 #include <stdlib.h>
8059 #include <stdarg.h>
8060 #include <string.h>
8061 #include <float.h>
8064 main ()
8068 return 0;
8070 _ACEOF
8071 if ac_fn_c_try_compile "$LINENO"; then :
8072 ac_cv_header_stdc=yes
8073 else
8074 ac_cv_header_stdc=no
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 if test $ac_cv_header_stdc = yes; then
8079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 #include <string.h>
8084 _ACEOF
8085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8086 $EGREP "memchr" >/dev/null 2>&1; then :
8088 else
8089 ac_cv_header_stdc=no
8091 rm -f conftest*
8095 if test $ac_cv_header_stdc = yes; then
8096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 #include <stdlib.h>
8101 _ACEOF
8102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8103 $EGREP "free" >/dev/null 2>&1; then :
8105 else
8106 ac_cv_header_stdc=no
8108 rm -f conftest*
8112 if test $ac_cv_header_stdc = yes; then
8113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8114 if test "$cross_compiling" = yes; then :
8116 else
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <ctype.h>
8120 #include <stdlib.h>
8121 #if ((' ' & 0x0FF) == 0x020)
8122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8124 #else
8125 # define ISLOWER(c) \
8126 (('a' <= (c) && (c) <= 'i') \
8127 || ('j' <= (c) && (c) <= 'r') \
8128 || ('s' <= (c) && (c) <= 'z'))
8129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8130 #endif
8132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8134 main ()
8136 int i;
8137 for (i = 0; i < 256; i++)
8138 if (XOR (islower (i), ISLOWER (i))
8139 || toupper (i) != TOUPPER (i))
8140 return 2;
8141 return 0;
8143 _ACEOF
8144 if ac_fn_c_try_run "$LINENO"; then :
8146 else
8147 ac_cv_header_stdc=no
8149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8150 conftest.$ac_objext conftest.beam conftest.$ac_ext
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8156 $as_echo "$ac_cv_header_stdc" >&6; }
8157 if test $ac_cv_header_stdc = yes; then
8159 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8164 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8165 if test "${ac_cv_header_time+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <sys/types.h>
8171 #include <sys/time.h>
8172 #include <time.h>
8175 main ()
8177 if ((struct tm *) 0)
8178 return 0;
8180 return 0;
8182 _ACEOF
8183 if ac_fn_c_try_compile "$LINENO"; then :
8184 ac_cv_header_time=yes
8185 else
8186 ac_cv_header_time=no
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8191 $as_echo "$ac_cv_header_time" >&6; }
8192 if test $ac_cv_header_time = yes; then
8194 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8199 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8200 if test "${gcc_cv_header_string+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205 #include <string.h>
8206 #include <strings.h>
8208 main ()
8212 return 0;
8214 _ACEOF
8215 if ac_fn_c_try_compile "$LINENO"; then :
8216 gcc_cv_header_string=yes
8217 else
8218 gcc_cv_header_string=no
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8223 $as_echo "$gcc_cv_header_string" >&6; }
8224 if test $gcc_cv_header_string = yes; then
8226 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8231 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8232 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 #include <sys/types.h>
8238 #include <sys/wait.h>
8239 #ifndef WEXITSTATUS
8240 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8241 #endif
8242 #ifndef WIFEXITED
8243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8244 #endif
8247 main ()
8249 int s;
8250 wait (&s);
8251 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8253 return 0;
8255 _ACEOF
8256 if ac_fn_c_try_compile "$LINENO"; then :
8257 ac_cv_header_sys_wait_h=yes
8258 else
8259 ac_cv_header_sys_wait_h=no
8261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8264 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8265 if test $ac_cv_header_sys_wait_h = yes; then
8267 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8272 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8273 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 #include <sys/types.h>
8279 #include <termios.h>
8280 #ifdef TIOCGWINSZ
8282 #endif
8284 _ACEOF
8285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8286 $EGREP "yes" >/dev/null 2>&1; then :
8287 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8288 else
8289 ac_cv_sys_tiocgwinsz_in_termios_h=no
8291 rm -f conftest*
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8295 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8297 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8299 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8300 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 #include <sys/types.h>
8306 #include <sys/ioctl.h>
8307 #ifdef TIOCGWINSZ
8309 #endif
8311 _ACEOF
8312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8313 $EGREP "yes" >/dev/null 2>&1; then :
8314 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8315 else
8316 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8318 rm -f conftest*
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8322 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8324 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8326 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8331 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8332 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8333 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8334 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8335 do :
8336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8337 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8338 eval as_val=\$$as_ac_Header
8339 if test "x$as_val" = x""yes; then :
8340 cat >>confdefs.h <<_ACEOF
8341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8342 _ACEOF
8345 done
8348 # Check for thread headers.
8349 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8350 if test "x$ac_cv_header_thread_h" = x""yes; then :
8351 have_thread_h=yes
8352 else
8353 have_thread_h=
8356 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8357 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8358 have_pthread_h=yes
8359 else
8360 have_pthread_h=
8364 # These tests can't be done till we know if we have limits.h.
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8366 $as_echo_n "checking for CHAR_BIT... " >&6; }
8367 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #ifdef HAVE_LIMITS_H
8373 #include <limits.h>
8374 #endif
8375 #ifdef CHAR_BIT
8376 found
8377 #endif
8378 _ACEOF
8379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8380 $EGREP "found" >/dev/null 2>&1; then :
8381 gcc_cv_decl_char_bit=yes
8382 else
8383 gcc_cv_decl_char_bit=no
8385 rm -f conftest*
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8390 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8391 if test $gcc_cv_decl_char_bit = no; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8393 $as_echo_n "checking number of bits in a byte... " >&6; }
8394 if test "${gcc_cv_c_nbby+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8398 gcc_cv_c_nbby=
8399 while test $i -lt 65; do
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8404 main ()
8406 switch(0) {
8407 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8408 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8411 return 0;
8413 _ACEOF
8414 if ac_fn_c_try_compile "$LINENO"; then :
8415 gcc_cv_c_nbby=$i; break
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 i=`expr $i + 1`
8419 done
8420 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8424 $as_echo "$gcc_cv_c_nbby" >&6; }
8425 if test $gcc_cv_c_nbby = failed; then
8426 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8427 else
8429 cat >>confdefs.h <<_ACEOF
8430 #define CHAR_BIT $gcc_cv_c_nbby
8431 _ACEOF
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8436 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8437 if test "${ac_cv_c_bigendian+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 ac_cv_c_bigendian=unknown
8441 # See if we're dealing with a universal compiler.
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 #ifndef __APPLE_CC__
8445 not a universal capable compiler
8446 #endif
8447 typedef int dummy;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8452 # Check for potential -arch flags. It is not universal unless
8453 # there are at least two -arch flags with different values.
8454 ac_arch=
8455 ac_prev=
8456 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8457 if test -n "$ac_prev"; then
8458 case $ac_word in
8459 i?86 | x86_64 | ppc | ppc64)
8460 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8461 ac_arch=$ac_word
8462 else
8463 ac_cv_c_bigendian=universal
8464 break
8467 esac
8468 ac_prev=
8469 elif test "x$ac_word" = "x-arch"; then
8470 ac_prev=arch
8472 done
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 if test $ac_cv_c_bigendian = unknown; then
8476 # See if sys/param.h defines the BYTE_ORDER macro.
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 #include <sys/types.h>
8480 #include <sys/param.h>
8483 main ()
8485 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8486 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8487 && LITTLE_ENDIAN)
8488 bogus endian macros
8489 #endif
8492 return 0;
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496 # It does; now see whether it defined to BIG_ENDIAN or not.
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <sys/types.h>
8500 #include <sys/param.h>
8503 main ()
8505 #if BYTE_ORDER != BIG_ENDIAN
8506 not big endian
8507 #endif
8510 return 0;
8512 _ACEOF
8513 if ac_fn_c_try_compile "$LINENO"; then :
8514 ac_cv_c_bigendian=yes
8515 else
8516 ac_cv_c_bigendian=no
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 if test $ac_cv_c_bigendian = unknown; then
8523 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 #include <limits.h>
8529 main ()
8531 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8532 bogus endian macros
8533 #endif
8536 return 0;
8538 _ACEOF
8539 if ac_fn_c_try_compile "$LINENO"; then :
8540 # It does; now see whether it defined to _BIG_ENDIAN or not.
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 #include <limits.h>
8546 main ()
8548 #ifndef _BIG_ENDIAN
8549 not big endian
8550 #endif
8553 return 0;
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 ac_cv_c_bigendian=yes
8558 else
8559 ac_cv_c_bigendian=no
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 if test $ac_cv_c_bigendian = unknown; then
8566 # Compile a test program.
8567 if test "$cross_compiling" = yes; then :
8568 # Try to guess by grepping values from an object file.
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 short int ascii_mm[] =
8572 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8573 short int ascii_ii[] =
8574 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8575 int use_ascii (int i) {
8576 return ascii_mm[i] + ascii_ii[i];
8578 short int ebcdic_ii[] =
8579 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8580 short int ebcdic_mm[] =
8581 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8582 int use_ebcdic (int i) {
8583 return ebcdic_mm[i] + ebcdic_ii[i];
8585 extern int foo;
8588 main ()
8590 return use_ascii (foo) == use_ebcdic (foo);
8592 return 0;
8594 _ACEOF
8595 if ac_fn_c_try_compile "$LINENO"; then :
8596 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8597 ac_cv_c_bigendian=yes
8599 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8600 if test "$ac_cv_c_bigendian" = unknown; then
8601 ac_cv_c_bigendian=no
8602 else
8603 # finding both strings is unlikely to happen, but who knows?
8604 ac_cv_c_bigendian=unknown
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 $ac_includes_default
8614 main ()
8617 /* Are we little or big endian? From Harbison&Steele. */
8618 union
8620 long int l;
8621 char c[sizeof (long int)];
8622 } u;
8623 u.l = 1;
8624 return u.c[sizeof (long int) - 1] == 1;
8627 return 0;
8629 _ACEOF
8630 if ac_fn_c_try_run "$LINENO"; then :
8631 ac_cv_c_bigendian=no
8632 else
8633 ac_cv_c_bigendian=yes
8635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8636 conftest.$ac_objext conftest.beam conftest.$ac_ext
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8642 $as_echo "$ac_cv_c_bigendian" >&6; }
8643 case $ac_cv_c_bigendian in #(
8644 yes)
8645 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8646 ;; #(
8648 ;; #(
8649 universal)
8651 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8653 ;; #(
8655 as_fn_error "unknown endianness
8656 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8657 esac
8660 # ----------------------
8661 # Checks for C++ headers
8662 # ----------------------
8664 ac_ext=cpp
8665 ac_cpp='$CXXCPP $CPPFLAGS'
8666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8670 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8671 if test -z "$CXXCPP"; then
8672 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 # Double quotes because CXXCPP needs to be expanded
8676 for CXXCPP in "$CXX -E" "/lib/cpp"
8678 ac_preproc_ok=false
8679 for ac_cxx_preproc_warn_flag in '' yes
8681 # Use a header file that comes with gcc, so configuring glibc
8682 # with a fresh cross-compiler works.
8683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8684 # <limits.h> exists even on freestanding compilers.
8685 # On the NeXT, cc -E runs the code through the compiler's parser,
8686 # not just through cpp. "Syntax error" is here to catch this case.
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #ifdef __STDC__
8690 # include <limits.h>
8691 #else
8692 # include <assert.h>
8693 #endif
8694 Syntax error
8695 _ACEOF
8696 if ac_fn_cxx_try_cpp "$LINENO"; then :
8698 else
8699 # Broken: fails on valid input.
8700 continue
8702 rm -f conftest.err conftest.$ac_ext
8704 # OK, works on sane cases. Now check whether nonexistent headers
8705 # can be detected and how.
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <ac_nonexistent.h>
8709 _ACEOF
8710 if ac_fn_cxx_try_cpp "$LINENO"; then :
8711 # Broken: success on invalid input.
8712 continue
8713 else
8714 # Passes both tests.
8715 ac_preproc_ok=:
8716 break
8718 rm -f conftest.err conftest.$ac_ext
8720 done
8721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8722 rm -f conftest.err conftest.$ac_ext
8723 if $ac_preproc_ok; then :
8724 break
8727 done
8728 ac_cv_prog_CXXCPP=$CXXCPP
8731 CXXCPP=$ac_cv_prog_CXXCPP
8732 else
8733 ac_cv_prog_CXXCPP=$CXXCPP
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8736 $as_echo "$CXXCPP" >&6; }
8737 ac_preproc_ok=false
8738 for ac_cxx_preproc_warn_flag in '' yes
8740 # Use a header file that comes with gcc, so configuring glibc
8741 # with a fresh cross-compiler works.
8742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8743 # <limits.h> exists even on freestanding compilers.
8744 # On the NeXT, cc -E runs the code through the compiler's parser,
8745 # not just through cpp. "Syntax error" is here to catch this case.
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 #ifdef __STDC__
8749 # include <limits.h>
8750 #else
8751 # include <assert.h>
8752 #endif
8753 Syntax error
8754 _ACEOF
8755 if ac_fn_cxx_try_cpp "$LINENO"; then :
8757 else
8758 # Broken: fails on valid input.
8759 continue
8761 rm -f conftest.err conftest.$ac_ext
8763 # OK, works on sane cases. Now check whether nonexistent headers
8764 # can be detected and how.
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 #include <ac_nonexistent.h>
8768 _ACEOF
8769 if ac_fn_cxx_try_cpp "$LINENO"; then :
8770 # Broken: success on invalid input.
8771 continue
8772 else
8773 # Passes both tests.
8774 ac_preproc_ok=:
8775 break
8777 rm -f conftest.err conftest.$ac_ext
8779 done
8780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8781 rm -f conftest.err conftest.$ac_ext
8782 if $ac_preproc_ok; then :
8784 else
8785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8788 See \`config.log' for more details." >&5
8789 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8790 See \`config.log' for more details." >&2;}; }
8793 ac_ext=c
8794 ac_cpp='$CPP $CPPFLAGS'
8795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8800 ac_ext=cpp
8801 ac_cpp='$CXXCPP $CPPFLAGS'
8802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8809 for ac_header in unordered_map
8810 do :
8811 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8812 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8813 cat >>confdefs.h <<_ACEOF
8814 #define HAVE_UNORDERED_MAP 1
8815 _ACEOF
8818 done
8820 for ac_header in tr1/unordered_map
8821 do :
8822 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8823 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8824 cat >>confdefs.h <<_ACEOF
8825 #define HAVE_TR1_UNORDERED_MAP 1
8826 _ACEOF
8829 done
8831 for ac_header in ext/hash_map
8832 do :
8833 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8834 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8835 cat >>confdefs.h <<_ACEOF
8836 #define HAVE_EXT_HASH_MAP 1
8837 _ACEOF
8840 done
8843 ac_ext=c
8844 ac_cpp='$CPP $CPPFLAGS'
8845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8850 # --------
8851 # Dependency checking.
8852 # --------
8854 ac_ext=cpp
8855 ac_cpp='$CXXCPP $CPPFLAGS'
8856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8860 rm -rf .tst 2>/dev/null
8861 mkdir .tst 2>/dev/null
8862 if test -d .tst; then
8863 am__leading_dot=.
8864 else
8865 am__leading_dot=_
8867 rmdir .tst 2>/dev/null
8869 DEPDIR="${am__leading_dot}deps"
8871 ac_config_commands="$ac_config_commands depdir"
8874 ac_config_commands="$ac_config_commands gccdepdir"
8877 depcc="$CXX" am_compiler_list=
8879 am_depcomp=$ac_aux_dir/depcomp
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8881 $as_echo_n "checking dependency style of $depcc... " >&6; }
8882 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 if test -f "$am_depcomp"; then
8886 # We make a subdir and do the tests there. Otherwise we can end up
8887 # making bogus files that we don't know about and never remove. For
8888 # instance it was reported that on HP-UX the gcc test will end up
8889 # making a dummy file named `D' -- because `-MD' means `put the output
8890 # in D'.
8891 mkdir conftest.dir
8892 # Copy depcomp to subdir because otherwise we won't find it if we're
8893 # using a relative directory.
8894 cp "$am_depcomp" conftest.dir
8895 cd conftest.dir
8896 # We will build objects and dependencies in a subdirectory because
8897 # it helps to detect inapplicable dependency modes. For instance
8898 # both Tru64's cc and ICC support -MD to output dependencies as a
8899 # side effect of compilation, but ICC will put the dependencies in
8900 # the current directory while Tru64 will put them in the object
8901 # directory.
8902 mkdir sub
8904 am_cv_CXX_dependencies_compiler_type=none
8905 if test "$am_compiler_list" = ""; then
8906 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8908 for depmode in $am_compiler_list; do
8909 if test $depmode = none; then break; fi
8911 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8912 # Setup a source with many dependencies, because some compilers
8913 # like to wrap large dependency lists on column 80 (with \), and
8914 # we should not choose a depcomp mode which is confused by this.
8916 # We need to recreate these files for each test, as the compiler may
8917 # overwrite some of them when testing with obscure command lines.
8918 # This happens at least with the AIX C compiler.
8919 : > sub/conftest.c
8920 for i in 1 2 3 4 5 6; do
8921 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8922 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8923 # Solaris 8's {/usr,}/bin/sh.
8924 touch sub/conftst$i.h
8925 done
8926 echo "include sub/conftest.Po" > confmf
8928 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8929 # mode. It turns out that the SunPro C++ compiler does not properly
8930 # handle `-M -o', and we need to detect this.
8931 depcmd="depmode=$depmode \
8932 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8933 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8934 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8935 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8936 if env $depcmd > conftest.err 2>&1 &&
8937 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8938 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8939 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8940 # icc doesn't choke on unknown options, it will just issue warnings
8941 # or remarks (even with -Werror). So we grep stderr for any message
8942 # that says an option was ignored or not supported.
8943 # When given -MP, icc 7.0 and 7.1 complain thusly:
8944 # icc: Command line warning: ignoring option '-M'; no argument required
8945 # The diagnosis changed in icc 8.0:
8946 # icc: Command line remark: option '-MP' not supported
8947 if (grep 'ignoring option' conftest.err ||
8948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8949 am_cv_CXX_dependencies_compiler_type=$depmode
8950 $as_echo "$as_me:$LINENO: success" >&5
8951 break
8954 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8955 sed -e 's/^/| /' < conftest.err >&5
8956 done
8958 cd ..
8959 rm -rf conftest.dir
8960 else
8961 am_cv_CXX_dependencies_compiler_type=none
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8966 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8967 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8968 then as_fn_error "no usable dependency style found" "$LINENO" 5
8969 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8973 ac_ext=c
8974 ac_cpp='$CPP $CPPFLAGS'
8975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8980 # --------
8981 # UNSORTED
8982 # --------
8985 # These libraries may be used by collect2.
8986 # We may need a special search path to get them linked.
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8988 $as_echo_n "checking for collect2 libraries... " >&6; }
8989 if test "${gcc_cv_collect2_libs+set}" = set; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 save_LIBS="$LIBS"
8993 for libs in '' -lld -lmld \
8994 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8995 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8997 LIBS="$libs"
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9004 #ifdef __cplusplus
9005 extern "C"
9006 #endif
9007 char ldopen ();
9009 main ()
9011 return ldopen ();
9013 return 0;
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 gcc_cv_collect2_libs="$libs"; break
9019 rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9021 done
9022 LIBS="$save_LIBS"
9023 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9026 $as_echo "$gcc_cv_collect2_libs" >&6; }
9027 case $gcc_cv_collect2_libs in
9028 "none required") ;;
9029 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9030 esac
9033 # When building Ada code on Alpha, we need exc_resume which is usually in
9034 # -lexc. So test for it.
9035 save_LIBS="$LIBS"
9036 LIBS=
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9038 $as_echo_n "checking for library containing exc_resume... " >&6; }
9039 if test "${ac_cv_search_exc_resume+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 ac_func_search_save_LIBS=$LIBS
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9046 /* Override any GCC internal prototype to avoid an error.
9047 Use char because int might match the return type of a GCC
9048 builtin and then its argument prototype would still apply. */
9049 #ifdef __cplusplus
9050 extern "C"
9051 #endif
9052 char exc_resume ();
9054 main ()
9056 return exc_resume ();
9058 return 0;
9060 _ACEOF
9061 for ac_lib in '' exc; do
9062 if test -z "$ac_lib"; then
9063 ac_res="none required"
9064 else
9065 ac_res=-l$ac_lib
9066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9068 if ac_fn_c_try_link "$LINENO"; then :
9069 ac_cv_search_exc_resume=$ac_res
9071 rm -f core conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext
9073 if test "${ac_cv_search_exc_resume+set}" = set; then :
9074 break
9076 done
9077 if test "${ac_cv_search_exc_resume+set}" = set; then :
9079 else
9080 ac_cv_search_exc_resume=no
9082 rm conftest.$ac_ext
9083 LIBS=$ac_func_search_save_LIBS
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9086 $as_echo "$ac_cv_search_exc_resume" >&6; }
9087 ac_res=$ac_cv_search_exc_resume
9088 if test "$ac_res" != no; then :
9089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9093 GNAT_LIBEXC="$LIBS"
9094 LIBS="$save_LIBS"
9097 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9098 save_LIBS="$LIBS"
9099 LIBS=
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9101 $as_echo_n "checking for library containing kstat_open... " >&6; }
9102 if test "${ac_cv_search_kstat_open+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 ac_func_search_save_LIBS=$LIBS
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 char kstat_open ();
9117 main ()
9119 return kstat_open ();
9121 return 0;
9123 _ACEOF
9124 for ac_lib in '' kstat; do
9125 if test -z "$ac_lib"; then
9126 ac_res="none required"
9127 else
9128 ac_res=-l$ac_lib
9129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9131 if ac_fn_c_try_link "$LINENO"; then :
9132 ac_cv_search_kstat_open=$ac_res
9134 rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext
9136 if test "${ac_cv_search_kstat_open+set}" = set; then :
9137 break
9139 done
9140 if test "${ac_cv_search_kstat_open+set}" = set; then :
9142 else
9143 ac_cv_search_kstat_open=no
9145 rm conftest.$ac_ext
9146 LIBS=$ac_func_search_save_LIBS
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9149 $as_echo "$ac_cv_search_kstat_open" >&6; }
9150 ac_res=$ac_cv_search_kstat_open
9151 if test "$ac_res" != no; then :
9152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9156 EXTRA_GCC_LIBS="$LIBS"
9157 LIBS="$save_LIBS"
9160 # Some systems put ldexp and frexp in libm instead of libc; assume
9161 # they're both in the same place. jcf-dump needs them.
9162 save_LIBS="$LIBS"
9163 LIBS=
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9165 $as_echo_n "checking for library containing ldexp... " >&6; }
9166 if test "${ac_cv_search_ldexp+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 ac_func_search_save_LIBS=$LIBS
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9173 /* Override any GCC internal prototype to avoid an error.
9174 Use char because int might match the return type of a GCC
9175 builtin and then its argument prototype would still apply. */
9176 #ifdef __cplusplus
9177 extern "C"
9178 #endif
9179 char ldexp ();
9181 main ()
9183 return ldexp ();
9185 return 0;
9187 _ACEOF
9188 for ac_lib in '' m; do
9189 if test -z "$ac_lib"; then
9190 ac_res="none required"
9191 else
9192 ac_res=-l$ac_lib
9193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9195 if ac_fn_c_try_link "$LINENO"; then :
9196 ac_cv_search_ldexp=$ac_res
9198 rm -f core conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext
9200 if test "${ac_cv_search_ldexp+set}" = set; then :
9201 break
9203 done
9204 if test "${ac_cv_search_ldexp+set}" = set; then :
9206 else
9207 ac_cv_search_ldexp=no
9209 rm conftest.$ac_ext
9210 LIBS=$ac_func_search_save_LIBS
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9213 $as_echo "$ac_cv_search_ldexp" >&6; }
9214 ac_res=$ac_cv_search_ldexp
9215 if test "$ac_res" != no; then :
9216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9220 LDEXP_LIB="$LIBS"
9221 LIBS="$save_LIBS"
9224 # Use <inttypes.h> only if it exists,
9225 # doesn't clash with <sys/types.h>, and declares intmax_t.
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9227 $as_echo_n "checking for inttypes.h... " >&6; }
9228 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <sys/types.h>
9234 #include <inttypes.h>
9236 main ()
9238 intmax_t i = -1;
9240 return 0;
9242 _ACEOF
9243 if ac_fn_c_try_compile "$LINENO"; then :
9244 gcc_cv_header_inttypes_h=yes
9245 else
9246 gcc_cv_header_inttypes_h=no
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9252 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9253 if test $gcc_cv_header_inttypes_h = yes; then
9255 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9261 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9262 sysconf strsignal getrusage nl_langinfo \
9263 gettimeofday mbstowcs wcswidth mmap setlocale \
9264 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
9265 do :
9266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9268 eval as_val=\$$as_ac_var
9269 if test "x$as_val" = x""yes; then :
9270 cat >>confdefs.h <<_ACEOF
9271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9272 _ACEOF
9275 done
9278 if test x$ac_cv_func_mbstowcs = xyes; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9280 $as_echo_n "checking whether mbstowcs works... " >&6; }
9281 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9282 $as_echo_n "(cached) " >&6
9283 else
9284 if test "$cross_compiling" = yes; then :
9285 gcc_cv_func_mbstowcs_works=yes
9286 else
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 #include <stdlib.h>
9290 int main()
9292 mbstowcs(0, "", 0);
9293 return 0;
9295 _ACEOF
9296 if ac_fn_c_try_run "$LINENO"; then :
9297 gcc_cv_func_mbstowcs_works=yes
9298 else
9299 gcc_cv_func_mbstowcs_works=no
9301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9302 conftest.$ac_objext conftest.beam conftest.$ac_ext
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9307 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9308 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9310 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9315 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9316 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9318 else
9320 cat >>confdefs.h <<_ACEOF
9321 #define ssize_t int
9322 _ACEOF
9326 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9327 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9329 else
9331 cat >>confdefs.h <<_ACEOF
9332 #define caddr_t char *
9333 _ACEOF
9339 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9340 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9341 gcc_header_sys_mman_h=yes
9342 else
9343 gcc_header_sys_mman_h=no
9346 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9347 if test "x$ac_cv_func_mmap" = x""yes; then :
9348 gcc_func_mmap=yes
9349 else
9350 gcc_func_mmap=no
9353 if test "$gcc_header_sys_mman_h" != yes \
9354 || test "$gcc_func_mmap" != yes; then
9355 gcc_cv_func_mmap_file=no
9356 gcc_cv_func_mmap_dev_zero=no
9357 gcc_cv_func_mmap_anon=no
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9360 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9361 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 # Add a system to this blacklist if
9365 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9366 # memory area containing the same data that you'd get if you applied
9367 # read() to the same fd. The only system known to have a problem here
9368 # is VMS, where text files have record structure.
9369 case "$host_os" in
9370 *vms* | ultrix*)
9371 gcc_cv_func_mmap_file=no ;;
9373 gcc_cv_func_mmap_file=yes;;
9374 esac
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9377 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9379 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9380 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 # Add a system to this blacklist if it has mmap() but /dev/zero
9384 # does not exist, or if mmapping /dev/zero does not give anonymous
9385 # zeroed pages with both the following properties:
9386 # 1. If you map N consecutive pages in with one call, and then
9387 # unmap any subset of those pages, the pages that were not
9388 # explicitly unmapped remain accessible.
9389 # 2. If you map two adjacent blocks of memory and then unmap them
9390 # both at once, they must both go away.
9391 # Systems known to be in this category are Windows (all variants),
9392 # VMS, and Darwin.
9393 case "$host_os" in
9394 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9395 gcc_cv_func_mmap_dev_zero=no ;;
9397 gcc_cv_func_mmap_dev_zero=yes;;
9398 esac
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9401 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9403 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9405 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9406 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <sys/mman.h>
9413 #include <unistd.h>
9415 #ifndef MAP_ANONYMOUS
9416 #define MAP_ANONYMOUS MAP_ANON
9417 #endif
9420 main ()
9422 int n = MAP_ANONYMOUS;
9424 return 0;
9426 _ACEOF
9427 if ac_fn_c_try_compile "$LINENO"; then :
9428 gcc_cv_decl_map_anon=yes
9429 else
9430 gcc_cv_decl_map_anon=no
9432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9435 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9437 if test $gcc_cv_decl_map_anon = no; then
9438 gcc_cv_func_mmap_anon=no
9439 else
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9441 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9442 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9446 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9447 # doesn't give anonymous zeroed pages with the same properties listed
9448 # above for use of /dev/zero.
9449 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9450 case "$host_os" in
9451 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9452 gcc_cv_func_mmap_anon=no ;;
9454 gcc_cv_func_mmap_anon=yes;;
9455 esac
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9458 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9462 if test $gcc_cv_func_mmap_file = yes; then
9464 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9467 if test $gcc_cv_func_mmap_dev_zero = yes; then
9469 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9472 if test $gcc_cv_func_mmap_anon = yes; then
9474 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9479 case "${host}" in
9480 *-*-*vms*)
9481 # Under VMS, vfork works very differently than on Unix. The standard test
9482 # won't work, and it isn't easily adaptable. It makes more sense to
9483 # just force it.
9484 ac_cv_func_vfork_works=yes
9486 esac
9487 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9488 if test "x$ac_cv_type_pid_t" = x""yes; then :
9490 else
9492 cat >>confdefs.h <<_ACEOF
9493 #define pid_t int
9494 _ACEOF
9498 for ac_header in vfork.h
9499 do :
9500 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9501 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9502 cat >>confdefs.h <<_ACEOF
9503 #define HAVE_VFORK_H 1
9504 _ACEOF
9507 done
9509 for ac_func in fork vfork
9510 do :
9511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9513 eval as_val=\$$as_ac_var
9514 if test "x$as_val" = x""yes; then :
9515 cat >>confdefs.h <<_ACEOF
9516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9517 _ACEOF
9520 done
9522 if test "x$ac_cv_func_fork" = xyes; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9524 $as_echo_n "checking for working fork... " >&6; }
9525 if test "${ac_cv_func_fork_works+set}" = set; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 if test "$cross_compiling" = yes; then :
9529 ac_cv_func_fork_works=cross
9530 else
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533 $ac_includes_default
9535 main ()
9538 /* By Ruediger Kuhlmann. */
9539 return fork () < 0;
9542 return 0;
9544 _ACEOF
9545 if ac_fn_c_try_run "$LINENO"; then :
9546 ac_cv_func_fork_works=yes
9547 else
9548 ac_cv_func_fork_works=no
9550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9551 conftest.$ac_objext conftest.beam conftest.$ac_ext
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9556 $as_echo "$ac_cv_func_fork_works" >&6; }
9558 else
9559 ac_cv_func_fork_works=$ac_cv_func_fork
9561 if test "x$ac_cv_func_fork_works" = xcross; then
9562 case $host in
9563 *-*-amigaos* | *-*-msdosdjgpp*)
9564 # Override, as these systems have only a dummy fork() stub
9565 ac_cv_func_fork_works=no
9568 ac_cv_func_fork_works=yes
9570 esac
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9572 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9574 ac_cv_func_vfork_works=$ac_cv_func_vfork
9575 if test "x$ac_cv_func_vfork" = xyes; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9577 $as_echo_n "checking for working vfork... " >&6; }
9578 if test "${ac_cv_func_vfork_works+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 if test "$cross_compiling" = yes; then :
9582 ac_cv_func_vfork_works=cross
9583 else
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 /* Thanks to Paul Eggert for this test. */
9587 $ac_includes_default
9588 #include <sys/wait.h>
9589 #ifdef HAVE_VFORK_H
9590 # include <vfork.h>
9591 #endif
9592 /* On some sparc systems, changes by the child to local and incoming
9593 argument registers are propagated back to the parent. The compiler
9594 is told about this with #include <vfork.h>, but some compilers
9595 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9596 static variable whose address is put into a register that is
9597 clobbered by the vfork. */
9598 static void
9599 #ifdef __cplusplus
9600 sparc_address_test (int arg)
9601 # else
9602 sparc_address_test (arg) int arg;
9603 #endif
9605 static pid_t child;
9606 if (!child) {
9607 child = vfork ();
9608 if (child < 0) {
9609 perror ("vfork");
9610 _exit(2);
9612 if (!child) {
9613 arg = getpid();
9614 write(-1, "", 0);
9615 _exit (arg);
9621 main ()
9623 pid_t parent = getpid ();
9624 pid_t child;
9626 sparc_address_test (0);
9628 child = vfork ();
9630 if (child == 0) {
9631 /* Here is another test for sparc vfork register problems. This
9632 test uses lots of local variables, at least as many local
9633 variables as main has allocated so far including compiler
9634 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9635 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9636 reuse the register of parent for one of the local variables,
9637 since it will think that parent can't possibly be used any more
9638 in this routine. Assigning to the local variable will thus
9639 munge parent in the parent process. */
9640 pid_t
9641 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9642 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9643 /* Convince the compiler that p..p7 are live; otherwise, it might
9644 use the same hardware register for all 8 local variables. */
9645 if (p != p1 || p != p2 || p != p3 || p != p4
9646 || p != p5 || p != p6 || p != p7)
9647 _exit(1);
9649 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9650 from child file descriptors. If the child closes a descriptor
9651 before it execs or exits, this munges the parent's descriptor
9652 as well. Test for this by closing stdout in the child. */
9653 _exit(close(fileno(stdout)) != 0);
9654 } else {
9655 int status;
9656 struct stat st;
9658 while (wait(&status) != child)
9660 return (
9661 /* Was there some problem with vforking? */
9662 child < 0
9664 /* Did the child fail? (This shouldn't happen.) */
9665 || status
9667 /* Did the vfork/compiler bug occur? */
9668 || parent != getpid()
9670 /* Did the file descriptor bug occur? */
9671 || fstat(fileno(stdout), &st) != 0
9675 _ACEOF
9676 if ac_fn_c_try_run "$LINENO"; then :
9677 ac_cv_func_vfork_works=yes
9678 else
9679 ac_cv_func_vfork_works=no
9681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9682 conftest.$ac_objext conftest.beam conftest.$ac_ext
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9687 $as_echo "$ac_cv_func_vfork_works" >&6; }
9690 if test "x$ac_cv_func_fork_works" = xcross; then
9691 ac_cv_func_vfork_works=$ac_cv_func_vfork
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9693 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9696 if test "x$ac_cv_func_vfork_works" = xyes; then
9698 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9700 else
9702 $as_echo "#define vfork fork" >>confdefs.h
9705 if test "x$ac_cv_func_fork_works" = xyes; then
9707 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9712 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9713 # iconv() prototype.
9714 ac_ext=cpp
9715 ac_cpp='$CXXCPP $CPPFLAGS'
9716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9721 if test "X$prefix" = "XNONE"; then
9722 acl_final_prefix="$ac_default_prefix"
9723 else
9724 acl_final_prefix="$prefix"
9726 if test "X$exec_prefix" = "XNONE"; then
9727 acl_final_exec_prefix='${prefix}'
9728 else
9729 acl_final_exec_prefix="$exec_prefix"
9731 acl_save_prefix="$prefix"
9732 prefix="$acl_final_prefix"
9733 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9734 prefix="$acl_save_prefix"
9737 # Check whether --with-gnu-ld was given.
9738 if test "${with_gnu_ld+set}" = set; then :
9739 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9740 else
9741 with_gnu_ld=no
9744 # Prepare PATH_SEPARATOR.
9745 # The user is always right.
9746 if test "${PATH_SEPARATOR+set}" != set; then
9747 echo "#! /bin/sh" >conf$$.sh
9748 echo "exit 0" >>conf$$.sh
9749 chmod +x conf$$.sh
9750 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9751 PATH_SEPARATOR=';'
9752 else
9753 PATH_SEPARATOR=:
9755 rm -f conf$$.sh
9757 ac_prog=ld
9758 if test "$GCC" = yes; then
9759 # Check if gcc -print-prog-name=ld gives a path.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9761 $as_echo_n "checking for ld used by GCC... " >&6; }
9762 case $host in
9763 *-*-mingw*)
9764 # gcc leaves a trailing carriage return which upsets mingw
9765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9768 esac
9769 case $ac_prog in
9770 # Accept absolute paths.
9771 [\\/]* | [A-Za-z]:[\\/]*)
9772 re_direlt='/[^/][^/]*/\.\./'
9773 # Canonicalize the path of ld
9774 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9775 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9776 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9777 done
9778 test -z "$LD" && LD="$ac_prog"
9781 # If it fails, then pretend we aren't using GCC.
9782 ac_prog=ld
9785 # If it is relative, then search for the first ld in PATH.
9786 with_gnu_ld=unknown
9788 esac
9789 elif test "$with_gnu_ld" = yes; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9791 $as_echo_n "checking for GNU ld... " >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9794 $as_echo_n "checking for non-GNU ld... " >&6; }
9796 if test "${acl_cv_path_LD+set}" = set; then :
9797 $as_echo_n "(cached) " >&6
9798 else
9799 if test -z "$LD"; then
9800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9801 for ac_dir in $PATH; do
9802 test -z "$ac_dir" && ac_dir=.
9803 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9804 acl_cv_path_LD="$ac_dir/$ac_prog"
9805 # Check to see if the program is GNU ld. I'd rather use --version,
9806 # but apparently some GNU ld's only accept -v.
9807 # Break only if it was the GNU/non-GNU ld that we prefer.
9808 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9809 test "$with_gnu_ld" != no && break
9810 else
9811 test "$with_gnu_ld" != yes && break
9814 done
9815 IFS="$ac_save_ifs"
9816 else
9817 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9821 LD="$acl_cv_path_LD"
9822 if test -n "$LD"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9824 $as_echo "$LD" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9829 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9831 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9832 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9836 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9837 acl_cv_prog_gnu_ld=yes
9838 else
9839 acl_cv_prog_gnu_ld=no
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9843 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9844 with_gnu_ld=$acl_cv_prog_gnu_ld
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9849 $as_echo_n "checking for shared library run path origin... " >&6; }
9850 if test "${acl_cv_rpath+set}" = set; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9854 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9855 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9856 . ./conftest.sh
9857 rm -f ./conftest.sh
9858 acl_cv_rpath=done
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9862 $as_echo "$acl_cv_rpath" >&6; }
9863 wl="$acl_cv_wl"
9864 libext="$acl_cv_libext"
9865 shlibext="$acl_cv_shlibext"
9866 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9867 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9868 hardcode_direct="$acl_cv_hardcode_direct"
9869 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9870 # Check whether --enable-rpath was given.
9871 if test "${enable_rpath+set}" = set; then :
9872 enableval=$enable_rpath; :
9873 else
9874 enable_rpath=yes
9884 use_additional=yes
9886 acl_save_prefix="$prefix"
9887 prefix="$acl_final_prefix"
9888 acl_save_exec_prefix="$exec_prefix"
9889 exec_prefix="$acl_final_exec_prefix"
9891 eval additional_includedir=\"$includedir\"
9892 eval additional_libdir=\"$libdir\"
9894 exec_prefix="$acl_save_exec_prefix"
9895 prefix="$acl_save_prefix"
9898 # Check whether --with-libiconv-prefix was given.
9899 if test "${with_libiconv_prefix+set}" = set; then :
9900 withval=$with_libiconv_prefix;
9901 if test "X$withval" = "Xno"; then
9902 use_additional=no
9903 else
9904 if test "X$withval" = "X"; then
9906 acl_save_prefix="$prefix"
9907 prefix="$acl_final_prefix"
9908 acl_save_exec_prefix="$exec_prefix"
9909 exec_prefix="$acl_final_exec_prefix"
9911 eval additional_includedir=\"$includedir\"
9912 eval additional_libdir=\"$libdir\"
9914 exec_prefix="$acl_save_exec_prefix"
9915 prefix="$acl_save_prefix"
9917 else
9918 additional_includedir="$withval/include"
9919 additional_libdir="$withval/lib"
9925 LIBICONV=
9926 LTLIBICONV=
9927 INCICONV=
9928 rpathdirs=
9929 ltrpathdirs=
9930 names_already_handled=
9931 names_next_round='iconv '
9932 while test -n "$names_next_round"; do
9933 names_this_round="$names_next_round"
9934 names_next_round=
9935 for name in $names_this_round; do
9936 already_handled=
9937 for n in $names_already_handled; do
9938 if test "$n" = "$name"; then
9939 already_handled=yes
9940 break
9942 done
9943 if test -z "$already_handled"; then
9944 names_already_handled="$names_already_handled $name"
9945 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9946 eval value=\"\$HAVE_LIB$uppername\"
9947 if test -n "$value"; then
9948 if test "$value" = yes; then
9949 eval value=\"\$LIB$uppername\"
9950 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9951 eval value=\"\$LTLIB$uppername\"
9952 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9953 else
9956 else
9957 found_dir=
9958 found_la=
9959 found_so=
9960 found_a=
9961 if test $use_additional = yes; then
9962 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9963 found_dir="$additional_libdir"
9964 found_so="$additional_libdir/lib$name.$shlibext"
9965 if test -f "$additional_libdir/lib$name.la"; then
9966 found_la="$additional_libdir/lib$name.la"
9968 else
9969 if test -f "$additional_libdir/lib$name.$libext"; then
9970 found_dir="$additional_libdir"
9971 found_a="$additional_libdir/lib$name.$libext"
9972 if test -f "$additional_libdir/lib$name.la"; then
9973 found_la="$additional_libdir/lib$name.la"
9978 if test "X$found_dir" = "X"; then
9979 for x in $LDFLAGS $LTLIBICONV; do
9981 acl_save_prefix="$prefix"
9982 prefix="$acl_final_prefix"
9983 acl_save_exec_prefix="$exec_prefix"
9984 exec_prefix="$acl_final_exec_prefix"
9985 eval x=\"$x\"
9986 exec_prefix="$acl_save_exec_prefix"
9987 prefix="$acl_save_prefix"
9989 case "$x" in
9990 -L*)
9991 dir=`echo "X$x" | sed -e 's/^X-L//'`
9992 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9993 found_dir="$dir"
9994 found_so="$dir/lib$name.$shlibext"
9995 if test -f "$dir/lib$name.la"; then
9996 found_la="$dir/lib$name.la"
9998 else
9999 if test -f "$dir/lib$name.$libext"; then
10000 found_dir="$dir"
10001 found_a="$dir/lib$name.$libext"
10002 if test -f "$dir/lib$name.la"; then
10003 found_la="$dir/lib$name.la"
10008 esac
10009 if test "X$found_dir" != "X"; then
10010 break
10012 done
10014 if test "X$found_dir" != "X"; then
10015 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10016 if test "X$found_so" != "X"; then
10017 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10018 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10019 else
10020 haveit=
10021 for x in $ltrpathdirs; do
10022 if test "X$x" = "X$found_dir"; then
10023 haveit=yes
10024 break
10026 done
10027 if test -z "$haveit"; then
10028 ltrpathdirs="$ltrpathdirs $found_dir"
10030 if test "$hardcode_direct" = yes; then
10031 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10032 else
10033 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10034 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10035 haveit=
10036 for x in $rpathdirs; do
10037 if test "X$x" = "X$found_dir"; then
10038 haveit=yes
10039 break
10041 done
10042 if test -z "$haveit"; then
10043 rpathdirs="$rpathdirs $found_dir"
10045 else
10046 haveit=
10047 for x in $LDFLAGS $LIBICONV; do
10049 acl_save_prefix="$prefix"
10050 prefix="$acl_final_prefix"
10051 acl_save_exec_prefix="$exec_prefix"
10052 exec_prefix="$acl_final_exec_prefix"
10053 eval x=\"$x\"
10054 exec_prefix="$acl_save_exec_prefix"
10055 prefix="$acl_save_prefix"
10057 if test "X$x" = "X-L$found_dir"; then
10058 haveit=yes
10059 break
10061 done
10062 if test -z "$haveit"; then
10063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10065 if test "$hardcode_minus_L" != no; then
10066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10067 else
10068 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10073 else
10074 if test "X$found_a" != "X"; then
10075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10076 else
10077 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10080 additional_includedir=
10081 case "$found_dir" in
10082 */lib | */lib/)
10083 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10084 additional_includedir="$basedir/include"
10086 esac
10087 if test "X$additional_includedir" != "X"; then
10088 if test "X$additional_includedir" != "X/usr/include"; then
10089 haveit=
10090 if test "X$additional_includedir" = "X/usr/local/include"; then
10091 if test -n "$GCC"; then
10092 case $host_os in
10093 linux*) haveit=yes;;
10094 esac
10097 if test -z "$haveit"; then
10098 for x in $CPPFLAGS $INCICONV; do
10100 acl_save_prefix="$prefix"
10101 prefix="$acl_final_prefix"
10102 acl_save_exec_prefix="$exec_prefix"
10103 exec_prefix="$acl_final_exec_prefix"
10104 eval x=\"$x\"
10105 exec_prefix="$acl_save_exec_prefix"
10106 prefix="$acl_save_prefix"
10108 if test "X$x" = "X-I$additional_includedir"; then
10109 haveit=yes
10110 break
10112 done
10113 if test -z "$haveit"; then
10114 if test -d "$additional_includedir"; then
10115 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10121 if test -n "$found_la"; then
10122 save_libdir="$libdir"
10123 case "$found_la" in
10124 */* | *\\*) . "$found_la" ;;
10125 *) . "./$found_la" ;;
10126 esac
10127 libdir="$save_libdir"
10128 for dep in $dependency_libs; do
10129 case "$dep" in
10130 -L*)
10131 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10132 if test "X$additional_libdir" != "X/usr/lib"; then
10133 haveit=
10134 if test "X$additional_libdir" = "X/usr/local/lib"; then
10135 if test -n "$GCC"; then
10136 case $host_os in
10137 linux*) haveit=yes;;
10138 esac
10141 if test -z "$haveit"; then
10142 haveit=
10143 for x in $LDFLAGS $LIBICONV; do
10145 acl_save_prefix="$prefix"
10146 prefix="$acl_final_prefix"
10147 acl_save_exec_prefix="$exec_prefix"
10148 exec_prefix="$acl_final_exec_prefix"
10149 eval x=\"$x\"
10150 exec_prefix="$acl_save_exec_prefix"
10151 prefix="$acl_save_prefix"
10153 if test "X$x" = "X-L$additional_libdir"; then
10154 haveit=yes
10155 break
10157 done
10158 if test -z "$haveit"; then
10159 if test -d "$additional_libdir"; then
10160 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10163 haveit=
10164 for x in $LDFLAGS $LTLIBICONV; do
10166 acl_save_prefix="$prefix"
10167 prefix="$acl_final_prefix"
10168 acl_save_exec_prefix="$exec_prefix"
10169 exec_prefix="$acl_final_exec_prefix"
10170 eval x=\"$x\"
10171 exec_prefix="$acl_save_exec_prefix"
10172 prefix="$acl_save_prefix"
10174 if test "X$x" = "X-L$additional_libdir"; then
10175 haveit=yes
10176 break
10178 done
10179 if test -z "$haveit"; then
10180 if test -d "$additional_libdir"; then
10181 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10187 -R*)
10188 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10189 if test "$enable_rpath" != no; then
10190 haveit=
10191 for x in $rpathdirs; do
10192 if test "X$x" = "X$dir"; then
10193 haveit=yes
10194 break
10196 done
10197 if test -z "$haveit"; then
10198 rpathdirs="$rpathdirs $dir"
10200 haveit=
10201 for x in $ltrpathdirs; do
10202 if test "X$x" = "X$dir"; then
10203 haveit=yes
10204 break
10206 done
10207 if test -z "$haveit"; then
10208 ltrpathdirs="$ltrpathdirs $dir"
10212 -l*)
10213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10215 *.la)
10216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10219 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10220 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10222 esac
10223 done
10225 else
10226 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10231 done
10232 done
10233 if test "X$rpathdirs" != "X"; then
10234 if test -n "$hardcode_libdir_separator"; then
10235 alldirs=
10236 for found_dir in $rpathdirs; do
10237 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10238 done
10239 acl_save_libdir="$libdir"
10240 libdir="$alldirs"
10241 eval flag=\"$hardcode_libdir_flag_spec\"
10242 libdir="$acl_save_libdir"
10243 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10244 else
10245 for found_dir in $rpathdirs; do
10246 acl_save_libdir="$libdir"
10247 libdir="$found_dir"
10248 eval flag=\"$hardcode_libdir_flag_spec\"
10249 libdir="$acl_save_libdir"
10250 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10251 done
10254 if test "X$ltrpathdirs" != "X"; then
10255 for found_dir in $ltrpathdirs; do
10256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10257 done
10266 am_save_CPPFLAGS="$CPPFLAGS"
10268 for element in $INCICONV; do
10269 haveit=
10270 for x in $CPPFLAGS; do
10272 acl_save_prefix="$prefix"
10273 prefix="$acl_final_prefix"
10274 acl_save_exec_prefix="$exec_prefix"
10275 exec_prefix="$acl_final_exec_prefix"
10276 eval x=\"$x\"
10277 exec_prefix="$acl_save_exec_prefix"
10278 prefix="$acl_save_prefix"
10280 if test "X$x" = "X$element"; then
10281 haveit=yes
10282 break
10284 done
10285 if test -z "$haveit"; then
10286 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10288 done
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10292 $as_echo_n "checking for iconv... " >&6; }
10293 if test "${am_cv_func_iconv+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10297 am_cv_func_iconv="no, consider installing GNU libiconv"
10298 am_cv_lib_iconv=no
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301 #include <stdlib.h>
10302 #include <iconv.h>
10304 main ()
10306 iconv_t cd = iconv_open("","");
10307 iconv(cd,NULL,NULL,NULL,NULL);
10308 iconv_close(cd);
10310 return 0;
10312 _ACEOF
10313 if ac_fn_cxx_try_link "$LINENO"; then :
10314 am_cv_func_iconv=yes
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 if test "$am_cv_func_iconv" != yes; then
10319 am_save_LIBS="$LIBS"
10320 LIBS="$LIBS $LIBICONV"
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 #include <stdlib.h>
10324 #include <iconv.h>
10326 main ()
10328 iconv_t cd = iconv_open("","");
10329 iconv(cd,NULL,NULL,NULL,NULL);
10330 iconv_close(cd);
10332 return 0;
10334 _ACEOF
10335 if ac_fn_cxx_try_link "$LINENO"; then :
10336 am_cv_lib_iconv=yes
10337 am_cv_func_iconv=yes
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 LIBS="$am_save_LIBS"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10346 $as_echo "$am_cv_func_iconv" >&6; }
10347 if test "$am_cv_func_iconv" = yes; then
10349 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10352 if test "$am_cv_lib_iconv" = yes; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10354 $as_echo_n "checking how to link with libiconv... " >&6; }
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10356 $as_echo "$LIBICONV" >&6; }
10357 else
10358 CPPFLAGS="$am_save_CPPFLAGS"
10359 LIBICONV=
10360 LTLIBICONV=
10365 if test "$am_cv_func_iconv" = yes; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10367 $as_echo_n "checking for iconv declaration... " >&6; }
10368 if test "${am_cv_proto_iconv+set}" = set; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10375 #include <stdlib.h>
10376 #include <iconv.h>
10377 extern
10378 #ifdef __cplusplus
10380 #endif
10381 #if defined(__STDC__) || defined(__cplusplus)
10382 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10383 #else
10384 size_t iconv();
10385 #endif
10388 main ()
10392 return 0;
10394 _ACEOF
10395 if ac_fn_cxx_try_compile "$LINENO"; then :
10396 am_cv_proto_iconv_arg1=""
10397 else
10398 am_cv_proto_iconv_arg1="const"
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 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);"
10404 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10406 }$am_cv_proto_iconv" >&5
10407 $as_echo "${ac_t:-
10408 }$am_cv_proto_iconv" >&6; }
10410 cat >>confdefs.h <<_ACEOF
10411 #define ICONV_CONST $am_cv_proto_iconv_arg1
10412 _ACEOF
10416 ac_ext=c
10417 ac_cpp='$CPP $CPPFLAGS'
10418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10423 # Until we have in-tree GNU iconv:
10424 LIBICONV_DEP=
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10429 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10430 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435 #include <locale.h>
10437 main ()
10439 return LC_MESSAGES
10441 return 0;
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"; then :
10445 am_cv_val_LC_MESSAGES=yes
10446 else
10447 am_cv_val_LC_MESSAGES=no
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10453 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10454 if test $am_cv_val_LC_MESSAGES = yes; then
10456 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10463 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10464 if test "${am_cv_langinfo_codeset+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469 #include <langinfo.h>
10471 main ()
10473 char* cs = nl_langinfo(CODESET);
10475 return 0;
10477 _ACEOF
10478 if ac_fn_c_try_link "$LINENO"; then :
10479 am_cv_langinfo_codeset=yes
10480 else
10481 am_cv_langinfo_codeset=no
10483 rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10488 $as_echo "$am_cv_langinfo_codeset" >&6; }
10489 if test $am_cv_langinfo_codeset = yes; then
10491 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10496 # We will need to find libiberty.h and ansidecl.h
10497 saved_CFLAGS="$CFLAGS"
10498 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10499 saved_CXXFLAGS="$CXXFLAGS"
10500 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10501 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10502 strsignal strstr stpcpy strverscmp \
10503 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10504 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
10506 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10508 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10509 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10514 #undef $ac_tr_decl
10515 #define $ac_tr_decl 1
10517 #include "ansidecl.h"
10518 #include "system.h"
10521 main ()
10523 #ifndef $ac_func
10524 char *(*pfn) = (char *(*)) $ac_func ;
10525 #endif
10527 return 0;
10529 _ACEOF
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531 eval "gcc_cv_have_decl_$ac_func=yes"
10532 else
10533 eval "gcc_cv_have_decl_$ac_func=no"
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10541 #define $ac_tr_decl 1
10542 _ACEOF
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10547 #define $ac_tr_decl 0
10548 _ACEOF
10552 done
10555 for ac_func in getrlimit setrlimit getrusage
10557 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10559 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10560 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 #undef $ac_tr_decl
10566 #define $ac_tr_decl 1
10568 #include "ansidecl.h"
10569 #include "system.h"
10570 #ifdef HAVE_SYS_RESOURCE_H
10571 #include <sys/resource.h>
10572 #endif
10576 main ()
10578 #ifndef $ac_func
10579 char *(*pfn) = (char *(*)) $ac_func ;
10580 #endif
10582 return 0;
10584 _ACEOF
10585 if ac_fn_c_try_compile "$LINENO"; then :
10586 eval "gcc_cv_have_decl_$ac_func=yes"
10587 else
10588 eval "gcc_cv_have_decl_$ac_func=no"
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10596 #define $ac_tr_decl 1
10597 _ACEOF
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10602 #define $ac_tr_decl 0
10603 _ACEOF
10607 done
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10613 #include "ansidecl.h"
10614 #include "system.h"
10615 #ifdef HAVE_SYS_RESOURCE_H
10616 #include <sys/resource.h>
10617 #endif
10620 main ()
10622 rlim_t l = 0;
10624 return 0;
10626 _ACEOF
10627 if ac_fn_c_try_compile "$LINENO"; then :
10629 else
10631 $as_echo "#define rlim_t long" >>confdefs.h
10634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10636 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10637 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10638 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10639 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10640 for ac_func in ldgetname
10642 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10644 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10645 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 #undef $ac_tr_decl
10651 #define $ac_tr_decl 1
10653 #include "ansidecl.h"
10654 #include "system.h"
10655 #ifdef HAVE_LDFCN_H
10656 #undef FREAD
10657 #undef FWRITE
10658 #include <ldfcn.h>
10659 #endif
10663 main ()
10665 #ifndef $ac_func
10666 char *(*pfn) = (char *(*)) $ac_func ;
10667 #endif
10669 return 0;
10671 _ACEOF
10672 if ac_fn_c_try_compile "$LINENO"; then :
10673 eval "gcc_cv_have_decl_$ac_func=yes"
10674 else
10675 eval "gcc_cv_have_decl_$ac_func=no"
10677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10682 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10683 #define $ac_tr_decl 1
10684 _ACEOF
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10689 #define $ac_tr_decl 0
10690 _ACEOF
10694 done
10697 for ac_func in times
10699 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10701 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10702 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 #undef $ac_tr_decl
10708 #define $ac_tr_decl 1
10710 #include "ansidecl.h"
10711 #include "system.h"
10712 #ifdef HAVE_SYS_TIMES_H
10713 #include <sys/times.h>
10714 #endif
10718 main ()
10720 #ifndef $ac_func
10721 char *(*pfn) = (char *(*)) $ac_func ;
10722 #endif
10724 return 0;
10726 _ACEOF
10727 if ac_fn_c_try_compile "$LINENO"; then :
10728 eval "gcc_cv_have_decl_$ac_func=yes"
10729 else
10730 eval "gcc_cv_have_decl_$ac_func=no"
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10737 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10738 #define $ac_tr_decl 1
10739 _ACEOF
10741 else
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10744 #define $ac_tr_decl 0
10745 _ACEOF
10749 done
10752 for ac_func in sigaltstack
10754 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10756 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10757 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 #undef $ac_tr_decl
10763 #define $ac_tr_decl 1
10765 #include "ansidecl.h"
10766 #include "system.h"
10767 #include <signal.h>
10771 main ()
10773 #ifndef $ac_func
10774 char *(*pfn) = (char *(*)) $ac_func ;
10775 #endif
10777 return 0;
10779 _ACEOF
10780 if ac_fn_c_try_compile "$LINENO"; then :
10781 eval "gcc_cv_have_decl_$ac_func=yes"
10782 else
10783 eval "gcc_cv_have_decl_$ac_func=no"
10785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10790 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10791 #define $ac_tr_decl 1
10792 _ACEOF
10794 else
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10797 #define $ac_tr_decl 0
10798 _ACEOF
10802 done
10805 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10806 # prototype.
10807 ac_ext=cpp
10808 ac_cpp='$CXXCPP $CPPFLAGS'
10809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10813 for ac_func in madvise
10815 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10817 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10818 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10823 #undef $ac_tr_decl
10824 #define $ac_tr_decl 1
10826 #include "ansidecl.h"
10827 #include "system.h"
10831 main ()
10833 #ifndef $ac_func
10834 char *(*pfn) = (char *(*)) $ac_func ;
10835 #endif
10837 return 0;
10839 _ACEOF
10840 if ac_fn_cxx_try_compile "$LINENO"; then :
10841 eval "gcc_cv_have_decl_$ac_func=yes"
10842 else
10843 eval "gcc_cv_have_decl_$ac_func=no"
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10850 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10851 #define $ac_tr_decl 1
10852 _ACEOF
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10857 #define $ac_tr_decl 0
10858 _ACEOF
10862 done
10864 ac_ext=c
10865 ac_cpp='$CPP $CPPFLAGS'
10866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10871 # More time-related stuff.
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10873 $as_echo_n "checking for struct tms... " >&6; }
10874 if test "${ac_cv_struct_tms+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10881 #include "ansidecl.h"
10882 #include "system.h"
10883 #ifdef HAVE_SYS_TIMES_H
10884 #include <sys/times.h>
10885 #endif
10888 main ()
10890 struct tms tms;
10892 return 0;
10894 _ACEOF
10895 if ac_fn_c_try_compile "$LINENO"; then :
10896 ac_cv_struct_tms=yes
10897 else
10898 ac_cv_struct_tms=no
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10903 $as_echo "$ac_cv_struct_tms" >&6; }
10904 if test $ac_cv_struct_tms = yes; then
10906 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10910 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10911 # revisit after autoconf 2.50.
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10913 $as_echo_n "checking for clock_t... " >&6; }
10914 if test "${gcc_cv_type_clock_t+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10921 #include "ansidecl.h"
10922 #include "system.h"
10925 main ()
10927 clock_t x;
10929 return 0;
10931 _ACEOF
10932 if ac_fn_c_try_compile "$LINENO"; then :
10933 gcc_cv_type_clock_t=yes
10934 else
10935 gcc_cv_type_clock_t=no
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10940 $as_echo "$gcc_cv_type_clock_t" >&6; }
10941 if test $gcc_cv_type_clock_t = yes; then
10943 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10947 # Check if F_SETLKW is supported by fcntl.
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10949 $as_echo_n "checking for F_SETLKW... " >&6; }
10950 if test "${ac_cv_f_setlkw+set}" = set; then :
10951 $as_echo_n "(cached) " >&6
10952 else
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10957 #include <fcntl.h>
10959 main ()
10962 struct flock fl;
10963 fl.l_whence = 0;
10964 fl.l_start = 0;
10965 fl.l_len = 0;
10966 fl.l_pid = 0;
10967 return fcntl (1, F_SETLKW, &fl);
10969 return 0;
10971 _ACEOF
10972 if ac_fn_c_try_compile "$LINENO"; then :
10973 ac_cv_f_setlkw=yes
10974 else
10975 ac_cv_f_setlkw=no
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10980 $as_echo "$ac_cv_f_setlkw" >&6; }
10981 if test $ac_cv_f_setlkw = yes; then
10983 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10987 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10988 CFLAGS="$saved_CFLAGS"
10989 CXXFLAGS="$saved_CXXFLAGS"
10991 # mkdir takes a single argument on some systems.
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10993 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10994 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 #include <sys/types.h>
11001 #ifdef HAVE_SYS_STAT_H
11002 # include <sys/stat.h>
11003 #endif
11004 #ifdef HAVE_UNISTD_H
11005 # include <unistd.h>
11006 #endif
11007 #ifdef HAVE_DIRECT_H
11008 # include <direct.h>
11009 #endif
11011 main ()
11013 mkdir ("foo", 0);
11015 return 0;
11017 _ACEOF
11018 if ac_fn_c_try_compile "$LINENO"; then :
11019 gcc_cv_mkdir_takes_one_arg=no
11020 else
11021 gcc_cv_mkdir_takes_one_arg=yes
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11026 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11027 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11029 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11034 # File extensions
11035 manext='.1'
11036 objext='.o'
11040 # With Setjmp/Longjmp based exception handling.
11041 # Check whether --enable-sjlj-exceptions was given.
11042 if test "${enable_sjlj_exceptions+set}" = set; then :
11043 enableval=$enable_sjlj_exceptions; case $target in
11044 *-*-hpux10*)
11045 if test $enableval != yes; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11047 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11048 enableval=yes
11051 esac
11052 force_sjlj_exceptions=yes
11053 else
11054 case $target in
11055 *-*-hpux10*)
11056 force_sjlj_exceptions=yes
11057 enableval=yes
11059 lm32*-*-*)
11060 force_sjlj_exceptions=yes
11061 enableval=yes
11064 force_sjlj_exceptions=no
11066 esac
11069 if test $force_sjlj_exceptions = yes; then
11070 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11072 cat >>confdefs.h <<_ACEOF
11073 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11074 _ACEOF
11078 # --------------------------------------------------------
11079 # Build, host, and target specific configuration fragments
11080 # --------------------------------------------------------
11082 # Collect build-machine-specific information.
11083 . ${srcdir}/config.build
11085 # Collect host-machine-specific information.
11086 . ${srcdir}/config.host
11088 target_gtfiles=
11090 # Collect target-machine-specific information.
11091 . ${srcdir}/config.gcc
11093 extra_objs="${host_extra_objs} ${extra_objs}"
11094 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11096 # Default the target-machine variables that were not explicitly set.
11097 if test x"$tm_file" = x
11098 then tm_file=$cpu_type/$cpu_type.h; fi
11100 if test x"$extra_headers" = x
11101 then extra_headers=; fi
11103 if test x$md_file = x
11104 then md_file=$cpu_type/$cpu_type.md; fi
11106 if test x$out_file = x
11107 then out_file=$cpu_type/$cpu_type.c; fi
11109 if test x"$tmake_file" = x
11110 then tmake_file=$cpu_type/t-$cpu_type
11113 # Support --enable-initfini-array.
11114 if test x$enable_initfini_array != xno; then
11115 tm_file="${tm_file} initfini-array.h"
11118 if test x"$dwarf2" = xyes
11119 then tm_file="$tm_file tm-dwarf2.h"
11122 # Say what files are being used for the output code and MD file.
11123 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11124 echo "Using \`$srcdir/config/$md_file' as machine description file."
11126 # If any of the xm_file variables contain nonexistent files, warn
11127 # about them and drop them.
11130 for x in $build_xm_file; do
11131 if test -f $srcdir/config/$x
11132 then bx="$bx $x"
11133 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11134 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11136 done
11137 build_xm_file="$bx"
11140 for x in $host_xm_file; do
11141 if test -f $srcdir/config/$x
11142 then hx="$hx $x"
11143 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11144 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11146 done
11147 host_xm_file="$hx"
11150 for x in $xm_file; do
11151 if test -f $srcdir/config/$x
11152 then tx="$tx $x"
11153 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11154 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11156 done
11157 xm_file="$tx"
11159 count=a
11160 for f in $tm_file; do
11161 count=${count}x
11162 done
11163 if test $count = ax; then
11164 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11165 else
11166 echo "Using the following target machine macro files:"
11167 for f in $tm_file; do
11168 echo " $srcdir/config/$f"
11169 done
11172 if test x$need_64bit_hwint = xyes; then
11174 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11178 if test x$use_long_long_for_widest_fast_int = xyes; then
11180 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11184 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11186 cat >>confdefs.h <<_ACEOF
11187 #define HAVE_GNU_LD $gnu_ld_bool
11188 _ACEOF
11191 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11193 cat >>confdefs.h <<_ACEOF
11194 #define HAVE_GNU_AS $gnu_as_bool
11195 _ACEOF
11198 count=a
11199 for f in $host_xm_file; do
11200 count=${count}x
11201 done
11202 if test $count = a; then
11204 elif test $count = ax; then
11205 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11206 else
11207 echo "Using the following host machine macro files:"
11208 for f in $host_xm_file; do
11209 echo " $srcdir/config/$f"
11210 done
11212 echo "Using ${out_host_hook_obj} for host machine hooks."
11214 if test "$host_xm_file" != "$build_xm_file"; then
11215 count=a
11216 for f in $build_xm_file; do
11217 count=${count}x
11218 done
11219 if test $count = a; then
11221 elif test $count = ax; then
11222 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11223 else
11224 echo "Using the following build machine macro files:"
11225 for f in $build_xm_file; do
11226 echo " $srcdir/config/$f"
11227 done
11231 if test -n "$configured_native_system_header_dir"; then
11232 native_system_header_dir=$configured_native_system_header_dir
11234 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11237 case ${host} in
11238 powerpc*-*-darwin*)
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11240 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11241 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 #include <sys/cdefs.h>
11248 #include <sys/signal.h>
11249 #include <ucontext.h>
11250 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11252 _ACEOF
11253 if ac_fn_c_try_compile "$LINENO"; then :
11254 gcc_cv_mcontext_underscores=no
11255 else
11256 gcc_cv_mcontext_underscores=yes
11258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11261 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11262 if test $gcc_cv_mcontext_underscores = yes; then
11264 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11268 esac
11270 # ---------
11271 # Threading
11272 # ---------
11274 # Check if a valid thread package
11275 case ${enable_threads} in
11276 "" | no)
11277 # No threads
11278 target_thread_file='single'
11280 yes)
11281 # default
11282 target_thread_file='single'
11284 aix | dce | lynx | mipssde | posix | rtems | \
11285 single | tpf | vxworks | win32)
11286 target_thread_file=${enable_threads}
11289 echo "${enable_threads} is an unknown thread package" 1>&2
11290 exit 1
11292 esac
11294 if test x${thread_file} = x; then
11295 # No thread file set by target-specific clauses in config.gcc,
11296 # so use file chosen by default logic above
11297 thread_file=${target_thread_file}
11300 # --------
11301 # UNSORTED
11302 # --------
11304 use_cxa_atexit=no
11305 if test x$enable___cxa_atexit = xyes || \
11306 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11307 if test x$host = x$target; then
11308 case $host in
11309 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11310 # keyed to flag_use_cxa_atexit
11311 *-*-mingw32*)
11312 use_cxa_atexit=yes
11314 powerpc-ibm-aix*)
11315 use_cxa_atexit=yes
11318 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11319 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11320 use_cxa_atexit=yes
11321 else
11322 echo "__cxa_atexit can't be enabled on this target"
11326 esac
11327 else
11328 # We can't check for __cxa_atexit when building a cross, so assume
11329 # it is available
11330 use_cxa_atexit=yes
11332 if test x$use_cxa_atexit = xyes; then
11334 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11339 # Look for a file containing extra machine modes.
11340 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11341 extra_modes_file='$(srcdir)'/config/${extra_modes}
11344 cat >>confdefs.h <<_ACEOF
11345 #define EXTRA_MODES_FILE "config/$extra_modes"
11346 _ACEOF
11350 # Convert extra_options into a form suitable for Makefile use.
11351 extra_opt_files=
11352 all_opt_files=
11353 for f in $extra_options; do
11354 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11355 all_opt_files="$all_opt_files $srcdir/config/$f"
11356 done
11359 # auto-host.h is the file containing items generated by autoconf and is
11360 # the first file included by config.h.
11361 # If host=build, it is correct to have bconfig include auto-host.h
11362 # as well. If host!=build, we are in error and need to do more
11363 # work to find out the build config parameters.
11364 if test x$host = x$build
11365 then
11366 build_auto=auto-host.h
11367 else
11368 # We create a subdir, then run autoconf in the subdir.
11369 # To prevent recursion we set host and build for the new
11370 # invocation of configure to the build for this invocation
11371 # of configure.
11372 tempdir=build.$$
11373 rm -rf $tempdir
11374 mkdir $tempdir
11375 cd $tempdir
11376 case ${srcdir} in
11377 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11378 *) realsrcdir=../${srcdir};;
11379 esac
11380 # Clearing GMPINC is necessary to prevent host headers being
11381 # used by the build compiler. Defining GENERATOR_FILE stops
11382 # system.h from including gmp.h.
11383 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11384 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11385 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11386 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11387 ${realsrcdir}/configure \
11388 --enable-languages=${enable_languages-all} \
11389 --target=$target_alias --host=$build_alias --build=$build_alias
11391 # We just finished tests for the build machine, so rename
11392 # the file auto-build.h in the gcc directory.
11393 mv auto-host.h ../auto-build.h
11394 cd ..
11395 rm -rf $tempdir
11396 build_auto=auto-build.h
11400 tm_file="${tm_file} defaults.h"
11401 tm_p_file="${tm_p_file} tm-preds.h"
11402 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11403 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11404 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11405 # put this back in temporarily.
11406 xm_file="auto-host.h ansidecl.h ${xm_file}"
11408 # --------
11409 # UNSORTED
11410 # --------
11412 # Compile in configure arguments.
11413 if test -f configargs.h ; then
11414 # Being re-configured.
11415 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11416 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11417 else
11418 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11421 # Double all backslashes and backslash all quotes to turn
11422 # gcc_config_arguments into a C string.
11423 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11424 $gcc_config_arguments
11426 gcc_config_arguments_str=`cat conftest.out`
11427 rm -f conftest.out
11429 cat > configargs.h <<EOF
11430 /* Generated automatically. */
11431 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11432 static const char thread_model[] = "$thread_file";
11434 static const struct {
11435 const char *name, *value;
11436 } configure_default_options[] = $configure_default_options;
11439 gcc_BASEVER=`cat $srcdir/BASE-VER`
11440 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11441 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11442 if test -f $srcdir/REVISION ; then
11443 gcc_REVISION=`cat $srcdir/REVISION`
11444 else
11445 gcc_REVISION=""
11447 cat > plugin-version.h <<EOF
11448 #include "configargs.h"
11450 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11451 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11452 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11453 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11455 static char basever[] = "$gcc_BASEVER";
11456 static char datestamp[] = "$gcc_DATESTAMP";
11457 static char devphase[] = "$gcc_DEVPHASE";
11458 static char revision[] = "$gcc_REVISION";
11460 /* FIXME plugins: We should make the version information more precise.
11461 One way to do is to add a checksum. */
11463 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11464 devphase, revision,
11465 configuration_arguments};
11468 # Internationalization
11469 # If we haven't got the data from the intl directory,
11470 # assume NLS is disabled.
11471 USE_NLS=no
11472 LIBINTL=
11473 LIBINTL_DEP=
11474 INCINTL=
11475 XGETTEXT=
11476 GMSGFMT=
11477 POSUB=
11479 if test -f ../intl/config.intl; then
11480 . ../intl/config.intl
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11483 $as_echo_n "checking whether NLS is requested... " >&6; }
11484 if test x"$USE_NLS" != xyes; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11489 $as_echo "yes" >&6; }
11491 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11495 $as_echo_n "checking for catalogs to be installed... " >&6; }
11496 # Look for .po and .gmo files in the source directory.
11497 CATALOGS=
11498 XLINGUAS=
11499 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11500 # If there aren't any .gmo files the shell will give us the
11501 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11502 # weeded out.
11503 case "$cat" in *\**)
11504 continue;;
11505 esac
11506 # The quadruple backslash is collapsed to a double backslash
11507 # by the backticks, then collapsed again by the double quotes,
11508 # leaving us with one backslash in the sed expression (right
11509 # before the dot that mustn't act as a wildcard).
11510 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11511 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11512 # The user is allowed to set LINGUAS to a list of languages to
11513 # install catalogs for. If it's empty that means "all of them."
11514 if test "x$LINGUAS" = x; then
11515 CATALOGS="$CATALOGS $cat"
11516 XLINGUAS="$XLINGUAS $lang"
11517 else
11518 case "$LINGUAS" in *$lang*)
11519 CATALOGS="$CATALOGS $cat"
11520 XLINGUAS="$XLINGUAS $lang"
11522 esac
11524 done
11525 LINGUAS="$XLINGUAS"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11527 $as_echo "$LINGUAS" >&6; }
11530 DATADIRNAME=share
11532 INSTOBJEXT=.mo
11534 GENCAT=gencat
11536 CATOBJEXT=.gmo
11540 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11541 # -liconv on the link line twice.
11542 case "$LIBINTL" in *$LIBICONV*)
11543 LIBICONV= ;;
11544 esac
11546 # Check whether --enable-secureplt was given.
11547 if test "${enable_secureplt+set}" = set; then :
11548 enableval=$enable_secureplt;
11552 # Check whether --enable-leading-mingw64-underscores was given.
11553 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11554 enableval=$enable_leading_mingw64_underscores;
11557 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11559 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11563 # Check whether --enable-cld was given.
11564 if test "${enable_cld+set}" = set; then :
11565 enableval=$enable_cld;
11566 else
11567 enable_cld=no
11571 # Check whether --enable-frame-pointer was given.
11572 if test "${enable_frame_pointer+set}" = set; then :
11573 enableval=$enable_frame_pointer;
11574 else
11576 case $target_os in
11577 linux* | darwin[8912]*)
11578 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11579 # DWARF2.
11580 enable_frame_pointer=no
11583 enable_frame_pointer=yes
11585 esac
11590 # Windows32 Registry support for specifying GCC installation paths.
11591 # Check whether --enable-win32-registry was given.
11592 if test "${enable_win32_registry+set}" = set; then :
11593 enableval=$enable_win32_registry;
11597 case $host_os in
11598 win32 | pe | cygwin* | mingw32* | uwin*)
11599 if test "x$enable_win32_registry" != xno; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11601 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11602 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 ac_func_search_save_LIBS=$LIBS
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 char RegOpenKeyExA ();
11617 main ()
11619 return RegOpenKeyExA ();
11621 return 0;
11623 _ACEOF
11624 for ac_lib in '' advapi32; do
11625 if test -z "$ac_lib"; then
11626 ac_res="none required"
11627 else
11628 ac_res=-l$ac_lib
11629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11631 if ac_fn_c_try_link "$LINENO"; then :
11632 ac_cv_search_RegOpenKeyExA=$ac_res
11634 rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext
11636 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11637 break
11639 done
11640 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11642 else
11643 ac_cv_search_RegOpenKeyExA=no
11645 rm conftest.$ac_ext
11646 LIBS=$ac_func_search_save_LIBS
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11649 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11650 ac_res=$ac_cv_search_RegOpenKeyExA
11651 if test "$ac_res" != no; then :
11652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11654 else
11655 enable_win32_registry=no
11660 if test "x$enable_win32_registry" != xno; then
11662 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11665 if test "x$enable_win32_registry" != xyes \
11666 && test "x$enable_win32_registry" != x; then
11668 cat >>confdefs.h <<_ACEOF
11669 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11670 _ACEOF
11675 esac
11677 # Get an absolute path to the GCC top-level source directory
11678 holddir=`${PWDCMD-pwd}`
11679 cd $srcdir
11680 topdir=`${PWDCMD-pwd}`
11681 cd $holddir
11683 # Conditionalize the makefile for this host machine.
11684 xmake_file=
11685 for f in ${host_xmake_file}
11687 if test -f ${srcdir}/config/$f
11688 then
11689 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11691 done
11693 # Conditionalize the makefile for this target machine.
11694 tmake_file_=
11695 for f in ${tmake_file}
11697 if test -f ${srcdir}/config/$f
11698 then
11699 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11701 done
11702 tmake_file="${tmake_file_}"
11704 out_object_file=`basename $out_file .c`.o
11705 common_out_object_file=`basename $common_out_file .c`.o
11707 tm_file_list="options.h"
11708 tm_include_list="options.h insn-constants.h"
11709 for f in $tm_file; do
11710 case $f in
11711 ./* )
11712 f=`echo $f | sed 's/^..//'`
11713 tm_file_list="${tm_file_list} $f"
11714 tm_include_list="${tm_include_list} $f"
11716 defaults.h )
11717 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11718 tm_include_list="${tm_include_list} $f"
11721 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11722 tm_include_list="${tm_include_list} config/$f"
11724 esac
11725 done
11727 tm_p_file_list=
11728 tm_p_include_list=
11729 for f in $tm_p_file; do
11730 case $f in
11731 tm-preds.h )
11732 tm_p_file_list="${tm_p_file_list} $f"
11733 tm_p_include_list="${tm_p_include_list} $f"
11736 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11737 tm_p_include_list="${tm_p_include_list} config/$f"
11738 esac
11739 done
11741 xm_file_list=
11742 xm_include_list=
11743 for f in $xm_file; do
11744 case $f in
11745 ansidecl.h )
11746 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11747 xm_include_list="${xm_include_list} $f"
11749 auto-host.h )
11750 xm_file_list="${xm_file_list} $f"
11751 xm_include_list="${xm_include_list} $f"
11754 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11755 xm_include_list="${xm_include_list} config/$f"
11757 esac
11758 done
11760 host_xm_file_list=
11761 host_xm_include_list=
11762 for f in $host_xm_file; do
11763 case $f in
11764 ansidecl.h )
11765 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11766 host_xm_include_list="${host_xm_include_list} $f"
11768 auto-host.h )
11769 host_xm_file_list="${host_xm_file_list} $f"
11770 host_xm_include_list="${host_xm_include_list} $f"
11773 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11774 host_xm_include_list="${host_xm_include_list} config/$f"
11776 esac
11777 done
11779 build_xm_file_list=
11780 for f in $build_xm_file; do
11781 case $f in
11782 ansidecl.h )
11783 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11784 build_xm_include_list="${build_xm_include_list} $f"
11786 auto-build.h | auto-host.h )
11787 build_xm_file_list="${build_xm_file_list} $f"
11788 build_xm_include_list="${build_xm_include_list} $f"
11791 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11792 build_xm_include_list="${build_xm_include_list} config/$f"
11794 esac
11795 done
11797 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11798 # cross-compiler which does not use the native headers and libraries.
11799 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11800 CROSS=
11801 ALL=all.internal
11802 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11804 if test "x$with_build_sysroot" != x; then
11805 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11806 else
11807 # This value is used, even on a native system, because
11808 # CROSS_SYSTEM_HEADER_DIR is just
11809 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11810 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11813 if test x$host != x$target
11814 then
11815 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11816 ALL=all.cross
11817 SYSTEM_HEADER_DIR=$build_system_header_dir
11818 case "$host","$target" in
11819 # Darwin crosses can use the host system's libraries and headers,
11820 # because of the fat library support. Of course, it must be the
11821 # same version of Darwin on both sides. Allow the user to
11822 # just say --target=foo-darwin without a version number to mean
11823 # "the version on this system".
11824 *-*-darwin*,*-*-darwin*)
11825 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11826 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11827 if test $hostos = $targetos -o $targetos = darwin ; then
11828 CROSS=
11829 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11830 with_headers=yes
11834 i?86-*-*,x86_64-*-* \
11835 | powerpc*-*-*,powerpc64*-*-*)
11836 CROSS="$CROSS -DNATIVE_CROSS" ;;
11837 esac
11839 case $target in
11840 *-*-mingw*)
11841 if test "x$with_headers" = x; then
11842 with_headers=yes
11847 esac
11848 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11849 SYSTEM_HEADER_DIR=$build_system_header_dir
11852 # If this is a cross-compiler that does not
11853 # have its own set of headers then define
11854 # inhibit_libc
11856 # If this is using newlib, without having the headers available now,
11857 # then define inhibit_libc in LIBGCC2_CFLAGS.
11858 # This prevents libgcc2 from containing any code which requires libc
11859 # support.
11860 : ${inhibit_libc=false}
11861 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11862 test x$with_newlib = xyes ; } &&
11863 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11864 inhibit_libc=true
11868 # When building gcc with a cross-compiler, we need to adjust things so
11869 # that the generator programs are still built with the native compiler.
11870 # Also, we cannot run fixincludes.
11872 # These are the normal (build=host) settings:
11873 CC_FOR_BUILD='$(CC)'
11874 CXX_FOR_BUILD='$(CXX)'
11875 BUILD_CFLAGS='$(ALL_CFLAGS)'
11876 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11877 BUILD_LDFLAGS='$(LDFLAGS)'
11878 STMP_FIXINC=stmp-fixinc
11880 # And these apply if build != host, or we are generating coverage data
11881 if test x$build != x$host || test "x$coverage_flags" != x
11882 then
11883 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11884 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11885 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11888 # Expand extra_headers to include complete path.
11889 # This substitutes for lots of t-* files.
11890 extra_headers_list=
11891 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11892 for file in ${extra_headers} ; do
11893 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11894 done
11896 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11897 if test x"$use_gcc_tgmath" = xyes
11898 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11901 # Define collect2 in Makefile.
11902 case $host_can_use_collect2 in
11903 no) collect2= ;;
11904 *) collect2='collect2$(exeext)' ;;
11905 esac
11908 # Add a definition of USE_COLLECT2 if system wants one.
11909 case $use_collect2 in
11910 no) use_collect2= ;;
11911 "") ;;
11913 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11914 xm_defines="${xm_defines} USE_COLLECT2"
11915 case $host_can_use_collect2 in
11917 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11919 esac
11921 esac
11924 cat >>confdefs.h <<_ACEOF
11925 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11926 _ACEOF
11929 # ---------------------------
11930 # Assembler & linker features
11931 # ---------------------------
11933 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11934 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11935 # However when ld-new is first executed from the build tree, libtool will
11936 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11937 # to the build tree. While doing this we need to use the previous-stage
11938 # linker, or we have an infinite loop. The presence of a shell script as
11939 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11940 # the gcc/collect-ld script. So we need to know how libtool works, or
11941 # exec-tool will fail.
11944 case `pwd` in
11945 *\ * | *\ *)
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11947 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11948 esac
11952 macro_version='2.2.7a'
11953 macro_revision='1.3134'
11967 ltmain="$ac_aux_dir/ltmain.sh"
11969 # Backslashify metacharacters that are still active within
11970 # double-quoted strings.
11971 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11973 # Same as above, but do not quote variable references.
11974 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11976 # Sed substitution to delay expansion of an escaped shell variable in a
11977 # double_quote_subst'ed string.
11978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11980 # Sed substitution to delay expansion of an escaped single quote.
11981 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11983 # Sed substitution to avoid accidental globbing in evaled expressions
11984 no_glob_subst='s/\*/\\\*/g'
11986 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11987 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11988 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11991 $as_echo_n "checking how to print strings... " >&6; }
11992 # Test print first, because it will be a builtin if present.
11993 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11994 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11995 ECHO='print -r --'
11996 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11997 ECHO='printf %s\n'
11998 else
11999 # Use this function as a fallback that always works.
12000 func_fallback_echo ()
12002 eval 'cat <<_LTECHO_EOF
12004 _LTECHO_EOF'
12006 ECHO='func_fallback_echo'
12009 # func_echo_all arg...
12010 # Invoke $ECHO with all args, space-separated.
12011 func_echo_all ()
12013 $ECHO ""
12016 case "$ECHO" in
12017 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12018 $as_echo "printf" >&6; } ;;
12019 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12020 $as_echo "print -r" >&6; } ;;
12021 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12022 $as_echo "cat" >&6; } ;;
12023 esac
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12039 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12040 if test "${ac_cv_path_SED+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12044 for ac_i in 1 2 3 4 5 6 7; do
12045 ac_script="$ac_script$as_nl$ac_script"
12046 done
12047 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12048 { ac_script=; unset ac_script;}
12049 if test -z "$SED"; then
12050 ac_path_SED_found=false
12051 # Loop through the user's path and test for each of PROGNAME-LIST
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12055 IFS=$as_save_IFS
12056 test -z "$as_dir" && as_dir=.
12057 for ac_prog in sed gsed; do
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12060 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12061 # Check for GNU ac_path_SED and select it if it is found.
12062 # Check for GNU $ac_path_SED
12063 case `"$ac_path_SED" --version 2>&1` in
12064 *GNU*)
12065 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12067 ac_count=0
12068 $as_echo_n 0123456789 >"conftest.in"
12069 while :
12071 cat "conftest.in" "conftest.in" >"conftest.tmp"
12072 mv "conftest.tmp" "conftest.in"
12073 cp "conftest.in" "conftest.nl"
12074 $as_echo '' >> "conftest.nl"
12075 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12077 as_fn_arith $ac_count + 1 && ac_count=$as_val
12078 if test $ac_count -gt ${ac_path_SED_max-0}; then
12079 # Best one so far, save it but keep looking for a better one
12080 ac_cv_path_SED="$ac_path_SED"
12081 ac_path_SED_max=$ac_count
12083 # 10*(2^10) chars as input seems more than enough
12084 test $ac_count -gt 10 && break
12085 done
12086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12087 esac
12089 $ac_path_SED_found && break 3
12090 done
12091 done
12092 done
12093 IFS=$as_save_IFS
12094 if test -z "$ac_cv_path_SED"; then
12095 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12097 else
12098 ac_cv_path_SED=$SED
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12103 $as_echo "$ac_cv_path_SED" >&6; }
12104 SED="$ac_cv_path_SED"
12105 rm -f conftest.sed
12107 test -z "$SED" && SED=sed
12108 Xsed="$SED -e 1s/^X//"
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12121 $as_echo_n "checking for fgrep... " >&6; }
12122 if test "${ac_cv_path_FGREP+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12126 then ac_cv_path_FGREP="$GREP -F"
12127 else
12128 if test -z "$FGREP"; then
12129 ac_path_FGREP_found=false
12130 # Loop through the user's path and test for each of PROGNAME-LIST
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_prog in fgrep; do
12137 for ac_exec_ext in '' $ac_executable_extensions; do
12138 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12139 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12140 # Check for GNU ac_path_FGREP and select it if it is found.
12141 # Check for GNU $ac_path_FGREP
12142 case `"$ac_path_FGREP" --version 2>&1` in
12143 *GNU*)
12144 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12146 ac_count=0
12147 $as_echo_n 0123456789 >"conftest.in"
12148 while :
12150 cat "conftest.in" "conftest.in" >"conftest.tmp"
12151 mv "conftest.tmp" "conftest.in"
12152 cp "conftest.in" "conftest.nl"
12153 $as_echo 'FGREP' >> "conftest.nl"
12154 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12156 as_fn_arith $ac_count + 1 && ac_count=$as_val
12157 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12158 # Best one so far, save it but keep looking for a better one
12159 ac_cv_path_FGREP="$ac_path_FGREP"
12160 ac_path_FGREP_max=$ac_count
12162 # 10*(2^10) chars as input seems more than enough
12163 test $ac_count -gt 10 && break
12164 done
12165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12166 esac
12168 $ac_path_FGREP_found && break 3
12169 done
12170 done
12171 done
12172 IFS=$as_save_IFS
12173 if test -z "$ac_cv_path_FGREP"; then
12174 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12176 else
12177 ac_cv_path_FGREP=$FGREP
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12183 $as_echo "$ac_cv_path_FGREP" >&6; }
12184 FGREP="$ac_cv_path_FGREP"
12187 test -z "$GREP" && GREP=grep
12207 # Check whether --with-gnu-ld was given.
12208 if test "${with_gnu_ld+set}" = set; then :
12209 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12210 else
12211 with_gnu_ld=no
12214 ac_prog=ld
12215 if test "$GCC" = yes; then
12216 # Check if gcc -print-prog-name=ld gives a path.
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12218 $as_echo_n "checking for ld used by $CC... " >&6; }
12219 case $host in
12220 *-*-mingw*)
12221 # gcc leaves a trailing carriage return which upsets mingw
12222 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12224 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12225 esac
12226 case $ac_prog in
12227 # Accept absolute paths.
12228 [\\/]* | ?:[\\/]*)
12229 re_direlt='/[^/][^/]*/\.\./'
12230 # Canonicalize the pathname of ld
12231 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12232 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12233 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12234 done
12235 test -z "$LD" && LD="$ac_prog"
12238 # If it fails, then pretend we aren't using GCC.
12239 ac_prog=ld
12242 # If it is relative, then search for the first ld in PATH.
12243 with_gnu_ld=unknown
12245 esac
12246 elif test "$with_gnu_ld" = yes; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12248 $as_echo_n "checking for GNU ld... " >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12251 $as_echo_n "checking for non-GNU ld... " >&6; }
12253 if test "${lt_cv_path_LD+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 if test -z "$LD"; then
12257 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12258 for ac_dir in $PATH; do
12259 IFS="$lt_save_ifs"
12260 test -z "$ac_dir" && ac_dir=.
12261 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12262 lt_cv_path_LD="$ac_dir/$ac_prog"
12263 # Check to see if the program is GNU ld. I'd rather use --version,
12264 # but apparently some variants of GNU ld only accept -v.
12265 # Break only if it was the GNU/non-GNU ld that we prefer.
12266 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12267 *GNU* | *'with BFD'*)
12268 test "$with_gnu_ld" != no && break
12271 test "$with_gnu_ld" != yes && break
12273 esac
12275 done
12276 IFS="$lt_save_ifs"
12277 else
12278 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12282 LD="$lt_cv_path_LD"
12283 if test -n "$LD"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12285 $as_echo "$LD" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12290 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12292 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12293 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12297 case `$LD -v 2>&1 </dev/null` in
12298 *GNU* | *'with BFD'*)
12299 lt_cv_prog_gnu_ld=yes
12302 lt_cv_prog_gnu_ld=no
12304 esac
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12307 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12308 with_gnu_ld=$lt_cv_prog_gnu_ld
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12319 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12320 if test "${lt_cv_path_NM+set}" = set; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 if test -n "$NM"; then
12324 # Let the user override the test.
12325 lt_cv_path_NM="$NM"
12326 else
12327 lt_nm_to_check="${ac_tool_prefix}nm"
12328 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12329 lt_nm_to_check="$lt_nm_to_check nm"
12331 for lt_tmp_nm in $lt_nm_to_check; do
12332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12333 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12334 IFS="$lt_save_ifs"
12335 test -z "$ac_dir" && ac_dir=.
12336 tmp_nm="$ac_dir/$lt_tmp_nm"
12337 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12338 # Check to see if the nm accepts a BSD-compat flag.
12339 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12340 # nm: unknown option "B" ignored
12341 # Tru64's nm complains that /dev/null is an invalid object file
12342 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12343 */dev/null* | *'Invalid file or object type'*)
12344 lt_cv_path_NM="$tmp_nm -B"
12345 break
12348 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12349 */dev/null*)
12350 lt_cv_path_NM="$tmp_nm -p"
12351 break
12354 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12355 continue # so that we can try to find one that supports BSD flags
12357 esac
12359 esac
12361 done
12362 IFS="$lt_save_ifs"
12363 done
12364 : ${lt_cv_path_NM=no}
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12368 $as_echo "$lt_cv_path_NM" >&6; }
12369 if test "$lt_cv_path_NM" != "no"; then
12370 NM="$lt_cv_path_NM"
12371 else
12372 # Didn't find any BSD compatible name lister, look for dumpbin.
12373 if test -n "$DUMPBIN"; then :
12374 # Let the user override the test.
12375 else
12376 if test -n "$ac_tool_prefix"; then
12377 for ac_prog in dumpbin "link -dump"
12379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12382 $as_echo_n "checking for $ac_word... " >&6; }
12383 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 if test -n "$DUMPBIN"; then
12387 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12388 else
12389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390 for as_dir in $PATH
12392 IFS=$as_save_IFS
12393 test -z "$as_dir" && as_dir=.
12394 for ac_exec_ext in '' $ac_executable_extensions; do
12395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12396 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12398 break 2
12400 done
12401 done
12402 IFS=$as_save_IFS
12406 DUMPBIN=$ac_cv_prog_DUMPBIN
12407 if test -n "$DUMPBIN"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12409 $as_echo "$DUMPBIN" >&6; }
12410 else
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12416 test -n "$DUMPBIN" && break
12417 done
12419 if test -z "$DUMPBIN"; then
12420 ac_ct_DUMPBIN=$DUMPBIN
12421 for ac_prog in dumpbin "link -dump"
12423 # Extract the first word of "$ac_prog", so it can be a program name with args.
12424 set dummy $ac_prog; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 if test -n "$ac_ct_DUMPBIN"; then
12431 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12432 else
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12440 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12444 done
12445 done
12446 IFS=$as_save_IFS
12450 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12451 if test -n "$ac_ct_DUMPBIN"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12453 $as_echo "$ac_ct_DUMPBIN" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12460 test -n "$ac_ct_DUMPBIN" && break
12461 done
12463 if test "x$ac_ct_DUMPBIN" = x; then
12464 DUMPBIN=":"
12465 else
12466 case $cross_compiling:$ac_tool_warned in
12467 yes:)
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12470 ac_tool_warned=yes ;;
12471 esac
12472 DUMPBIN=$ac_ct_DUMPBIN
12476 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12477 *COFF*)
12478 DUMPBIN="$DUMPBIN -symbols"
12481 DUMPBIN=:
12483 esac
12486 if test "$DUMPBIN" != ":"; then
12487 NM="$DUMPBIN"
12490 test -z "$NM" && NM=nm
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12498 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12499 if test "${lt_cv_nm_interface+set}" = set; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 lt_cv_nm_interface="BSD nm"
12503 echo "int some_variable = 0;" > conftest.$ac_ext
12504 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12505 (eval "$ac_compile" 2>conftest.err)
12506 cat conftest.err >&5
12507 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12508 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12509 cat conftest.err >&5
12510 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12511 cat conftest.out >&5
12512 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12513 lt_cv_nm_interface="MS dumpbin"
12515 rm -f conftest*
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12518 $as_echo "$lt_cv_nm_interface" >&6; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12521 $as_echo_n "checking whether ln -s works... " >&6; }
12522 LN_S=$as_ln_s
12523 if test "$LN_S" = "ln -s"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12525 $as_echo "yes" >&6; }
12526 else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12528 $as_echo "no, using $LN_S" >&6; }
12531 # find the maximum length of command line arguments
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12533 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12534 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12538 teststring="ABCD"
12540 case $build_os in
12541 msdosdjgpp*)
12542 # On DJGPP, this test can blow up pretty badly due to problems in libc
12543 # (any single argument exceeding 2000 bytes causes a buffer overrun
12544 # during glob expansion). Even if it were fixed, the result of this
12545 # check would be larger than it should be.
12546 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12549 gnu*)
12550 # Under GNU Hurd, this test is not required because there is
12551 # no limit to the length of command line arguments.
12552 # Libtool will interpret -1 as no limit whatsoever
12553 lt_cv_sys_max_cmd_len=-1;
12556 cygwin* | mingw* | cegcc*)
12557 # On Win9x/ME, this test blows up -- it succeeds, but takes
12558 # about 5 minutes as the teststring grows exponentially.
12559 # Worse, since 9x/ME are not pre-emptively multitasking,
12560 # you end up with a "frozen" computer, even though with patience
12561 # the test eventually succeeds (with a max line length of 256k).
12562 # Instead, let's just punt: use the minimum linelength reported by
12563 # all of the supported platforms: 8192 (on NT/2K/XP).
12564 lt_cv_sys_max_cmd_len=8192;
12567 mint*)
12568 # On MiNT this can take a long time and run out of memory.
12569 lt_cv_sys_max_cmd_len=8192;
12572 amigaos*)
12573 # On AmigaOS with pdksh, this test takes hours, literally.
12574 # So we just punt and use a minimum line length of 8192.
12575 lt_cv_sys_max_cmd_len=8192;
12578 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12579 # This has been around since 386BSD, at least. Likely further.
12580 if test -x /sbin/sysctl; then
12581 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12582 elif test -x /usr/sbin/sysctl; then
12583 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12584 else
12585 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12587 # And add a safety zone
12588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12592 interix*)
12593 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12594 lt_cv_sys_max_cmd_len=196608
12597 osf*)
12598 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12599 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12600 # nice to cause kernel panics so lets avoid the loop below.
12601 # First set a reasonable default.
12602 lt_cv_sys_max_cmd_len=16384
12604 if test -x /sbin/sysconfig; then
12605 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12606 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12607 esac
12610 sco3.2v5*)
12611 lt_cv_sys_max_cmd_len=102400
12613 sysv5* | sco5v6* | sysv4.2uw2*)
12614 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12615 if test -n "$kargmax"; then
12616 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12617 else
12618 lt_cv_sys_max_cmd_len=32768
12622 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12623 if test -n "$lt_cv_sys_max_cmd_len"; then
12624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12626 else
12627 # Make teststring a little bigger before we do anything with it.
12628 # a 1K string should be a reasonable start.
12629 for i in 1 2 3 4 5 6 7 8 ; do
12630 teststring=$teststring$teststring
12631 done
12632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12633 # If test is not a shell built-in, we'll probably end up computing a
12634 # maximum length that is only half of the actual maximum length, but
12635 # we can't tell.
12636 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12637 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12638 test $i != 17 # 1/2 MB should be enough
12640 i=`expr $i + 1`
12641 teststring=$teststring$teststring
12642 done
12643 # Only check the string length outside the loop.
12644 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12645 teststring=
12646 # Add a significant safety factor because C++ compilers can tack on
12647 # massive amounts of additional arguments before passing them to the
12648 # linker. It appears as though 1/2 is a usable value.
12649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12652 esac
12656 if test -n $lt_cv_sys_max_cmd_len ; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12658 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12661 $as_echo "none" >&6; }
12663 max_cmd_len=$lt_cv_sys_max_cmd_len
12670 : ${CP="cp -f"}
12671 : ${MV="mv -f"}
12672 : ${RM="rm -f"}
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12675 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12676 # Try some XSI features
12677 xsi_shell=no
12678 ( _lt_dummy="a/b/c"
12679 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12680 = c,a/b,, \
12681 && eval 'test $(( 1 + 1 )) -eq 2 \
12682 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12683 && xsi_shell=yes
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12685 $as_echo "$xsi_shell" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12689 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12690 lt_shell_append=no
12691 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12692 >/dev/null 2>&1 \
12693 && lt_shell_append=yes
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12695 $as_echo "$lt_shell_append" >&6; }
12698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12699 lt_unset=unset
12700 else
12701 lt_unset=false
12708 # test EBCDIC or ASCII
12709 case `echo X|tr X '\101'` in
12710 A) # ASCII based system
12711 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12712 lt_SP2NL='tr \040 \012'
12713 lt_NL2SP='tr \015\012 \040\040'
12715 *) # EBCDIC based system
12716 lt_SP2NL='tr \100 \n'
12717 lt_NL2SP='tr \r\n \100\100'
12719 esac
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12730 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12731 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12732 $as_echo_n "(cached) " >&6
12733 else
12734 lt_cv_ld_reload_flag='-r'
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12737 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12738 reload_flag=$lt_cv_ld_reload_flag
12739 case $reload_flag in
12740 "" | " "*) ;;
12741 *) reload_flag=" $reload_flag" ;;
12742 esac
12743 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12744 case $host_os in
12745 darwin*)
12746 if test "$GCC" = yes; then
12747 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12748 else
12749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12752 esac
12762 if test -n "$ac_tool_prefix"; then
12763 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12764 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 if test -n "$OBJDUMP"; then
12771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12772 else
12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774 for as_dir in $PATH
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12780 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12784 done
12785 done
12786 IFS=$as_save_IFS
12790 OBJDUMP=$ac_cv_prog_OBJDUMP
12791 if test -n "$OBJDUMP"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12793 $as_echo "$OBJDUMP" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12801 if test -z "$ac_cv_prog_OBJDUMP"; then
12802 ac_ct_OBJDUMP=$OBJDUMP
12803 # Extract the first word of "objdump", so it can be a program name with args.
12804 set dummy objdump; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 if test -n "$ac_ct_OBJDUMP"; then
12811 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12812 else
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12824 done
12825 done
12826 IFS=$as_save_IFS
12830 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12831 if test -n "$ac_ct_OBJDUMP"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12833 $as_echo "$ac_ct_OBJDUMP" >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12839 if test "x$ac_ct_OBJDUMP" = x; then
12840 OBJDUMP="false"
12841 else
12842 case $cross_compiling:$ac_tool_warned in
12843 yes:)
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12846 ac_tool_warned=yes ;;
12847 esac
12848 OBJDUMP=$ac_ct_OBJDUMP
12850 else
12851 OBJDUMP="$ac_cv_prog_OBJDUMP"
12854 test -z "$OBJDUMP" && OBJDUMP=objdump
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12865 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12866 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 lt_cv_file_magic_cmd='$MAGIC_CMD'
12870 lt_cv_file_magic_test_file=
12871 lt_cv_deplibs_check_method='unknown'
12872 # Need to set the preceding variable on all platforms that support
12873 # interlibrary dependencies.
12874 # 'none' -- dependencies not supported.
12875 # `unknown' -- same as none, but documents that we really don't know.
12876 # 'pass_all' -- all dependencies passed with no checks.
12877 # 'test_compile' -- check by making test program.
12878 # 'file_magic [[regex]]' -- check by looking for files in library path
12879 # which responds to the $file_magic_cmd with a given extended regex.
12880 # If you have `file' or equivalent on your system and you're not sure
12881 # whether `pass_all' will *always* work, you probably want this one.
12883 case $host_os in
12884 aix[4-9]*)
12885 lt_cv_deplibs_check_method=pass_all
12888 beos*)
12889 lt_cv_deplibs_check_method=pass_all
12892 bsdi[45]*)
12893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12894 lt_cv_file_magic_cmd='/usr/bin/file -L'
12895 lt_cv_file_magic_test_file=/shlib/libc.so
12898 cygwin*)
12899 # func_win32_libid is a shell function defined in ltmain.sh
12900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12901 lt_cv_file_magic_cmd='func_win32_libid'
12904 mingw* | pw32*)
12905 # Base MSYS/MinGW do not provide the 'file' command needed by
12906 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12907 # unless we find 'file', for example because we are cross-compiling.
12908 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12909 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12910 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12911 lt_cv_file_magic_cmd='func_win32_libid'
12912 else
12913 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12914 lt_cv_file_magic_cmd='$OBJDUMP -f'
12918 cegcc*)
12919 # use the weaker test based on 'objdump'. See mingw*.
12920 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12921 lt_cv_file_magic_cmd='$OBJDUMP -f'
12924 darwin* | rhapsody*)
12925 lt_cv_deplibs_check_method=pass_all
12928 freebsd* | dragonfly*)
12929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12930 case $host_cpu in
12931 i*86 )
12932 # Not sure whether the presence of OpenBSD here was a mistake.
12933 # Let's accept both of them until this is cleared up.
12934 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12935 lt_cv_file_magic_cmd=/usr/bin/file
12936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12938 esac
12939 else
12940 lt_cv_deplibs_check_method=pass_all
12944 gnu*)
12945 lt_cv_deplibs_check_method=pass_all
12948 haiku*)
12949 lt_cv_deplibs_check_method=pass_all
12952 hpux10.20* | hpux11*)
12953 lt_cv_file_magic_cmd=/usr/bin/file
12954 case $host_cpu in
12955 ia64*)
12956 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12957 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12959 hppa*64*)
12960 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]'
12961 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12965 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12967 esac
12970 interix[3-9]*)
12971 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12975 irix5* | irix6* | nonstopux*)
12976 case $LD in
12977 *-32|*"-32 ") libmagic=32-bit;;
12978 *-n32|*"-n32 ") libmagic=N32;;
12979 *-64|*"-64 ") libmagic=64-bit;;
12980 *) libmagic=never-match;;
12981 esac
12982 lt_cv_deplibs_check_method=pass_all
12985 # This must be Linux ELF.
12986 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12987 lt_cv_deplibs_check_method=pass_all
12990 netbsd*)
12991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12993 else
12994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12998 newos6*)
12999 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13000 lt_cv_file_magic_cmd=/usr/bin/file
13001 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13004 *nto* | *qnx*)
13005 lt_cv_deplibs_check_method=pass_all
13008 openbsd*)
13009 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13011 else
13012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13016 osf3* | osf4* | osf5*)
13017 lt_cv_deplibs_check_method=pass_all
13020 rdos*)
13021 lt_cv_deplibs_check_method=pass_all
13024 solaris*)
13025 lt_cv_deplibs_check_method=pass_all
13028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13029 lt_cv_deplibs_check_method=pass_all
13032 sysv4 | sysv4.3*)
13033 case $host_vendor in
13034 motorola)
13035 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]'
13036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13038 ncr)
13039 lt_cv_deplibs_check_method=pass_all
13041 sequent)
13042 lt_cv_file_magic_cmd='/bin/file'
13043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13045 sni)
13046 lt_cv_file_magic_cmd='/bin/file'
13047 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13048 lt_cv_file_magic_test_file=/lib/libc.so
13050 siemens)
13051 lt_cv_deplibs_check_method=pass_all
13054 lt_cv_deplibs_check_method=pass_all
13056 esac
13059 tpf*)
13060 lt_cv_deplibs_check_method=pass_all
13062 esac
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13066 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13067 file_magic_cmd=$lt_cv_file_magic_cmd
13068 deplibs_check_method=$lt_cv_deplibs_check_method
13069 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13082 if test -n "$ac_tool_prefix"; then
13083 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13084 set dummy ${ac_tool_prefix}ar; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if test "${ac_cv_prog_AR+set}" = set; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 if test -n "$AR"; then
13091 ac_cv_prog_AR="$AR" # Let the user override the test.
13092 else
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13096 IFS=$as_save_IFS
13097 test -z "$as_dir" && as_dir=.
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13100 ac_cv_prog_AR="${ac_tool_prefix}ar"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 break 2
13104 done
13105 done
13106 IFS=$as_save_IFS
13110 AR=$ac_cv_prog_AR
13111 if test -n "$AR"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13113 $as_echo "$AR" >&6; }
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13121 if test -z "$ac_cv_prog_AR"; then
13122 ac_ct_AR=$AR
13123 # Extract the first word of "ar", so it can be a program name with args.
13124 set dummy ar; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 if test -n "$ac_ct_AR"; then
13131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13132 else
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13140 ac_cv_prog_ac_ct_AR="ar"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 break 2
13144 done
13145 done
13146 IFS=$as_save_IFS
13150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13151 if test -n "$ac_ct_AR"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13153 $as_echo "$ac_ct_AR" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13159 if test "x$ac_ct_AR" = x; then
13160 AR="false"
13161 else
13162 case $cross_compiling:$ac_tool_warned in
13163 yes:)
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13166 ac_tool_warned=yes ;;
13167 esac
13168 AR=$ac_ct_AR
13170 else
13171 AR="$ac_cv_prog_AR"
13174 test -z "$AR" && AR=ar
13175 test -z "$AR_FLAGS" && AR_FLAGS=cru
13187 if test -n "$ac_tool_prefix"; then
13188 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13189 set dummy ${ac_tool_prefix}strip; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if test "${ac_cv_prog_STRIP+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 if test -n "$STRIP"; then
13196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13197 else
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13205 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13209 done
13210 done
13211 IFS=$as_save_IFS
13215 STRIP=$ac_cv_prog_STRIP
13216 if test -n "$STRIP"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13218 $as_echo "$STRIP" >&6; }
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13226 if test -z "$ac_cv_prog_STRIP"; then
13227 ac_ct_STRIP=$STRIP
13228 # Extract the first word of "strip", so it can be a program name with args.
13229 set dummy strip; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if test -n "$ac_ct_STRIP"; then
13236 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13237 else
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_ac_ct_STRIP="strip"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 break 2
13249 done
13250 done
13251 IFS=$as_save_IFS
13255 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13256 if test -n "$ac_ct_STRIP"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13258 $as_echo "$ac_ct_STRIP" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13264 if test "x$ac_ct_STRIP" = x; then
13265 STRIP=":"
13266 else
13267 case $cross_compiling:$ac_tool_warned in
13268 yes:)
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13271 ac_tool_warned=yes ;;
13272 esac
13273 STRIP=$ac_ct_STRIP
13275 else
13276 STRIP="$ac_cv_prog_STRIP"
13279 test -z "$STRIP" && STRIP=:
13286 if test -n "$ac_tool_prefix"; then
13287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290 $as_echo_n "checking for $ac_word... " >&6; }
13291 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 if test -n "$RANLIB"; then
13295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13296 else
13297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298 for as_dir in $PATH
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
13303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13308 done
13309 done
13310 IFS=$as_save_IFS
13314 RANLIB=$ac_cv_prog_RANLIB
13315 if test -n "$RANLIB"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13317 $as_echo "$RANLIB" >&6; }
13318 else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320 $as_echo "no" >&6; }
13325 if test -z "$ac_cv_prog_RANLIB"; then
13326 ac_ct_RANLIB=$RANLIB
13327 # Extract the first word of "ranlib", so it can be a program name with args.
13328 set dummy ranlib; ac_word=$2
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 $as_echo_n "checking for $ac_word... " >&6; }
13331 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 if test -n "$ac_ct_RANLIB"; then
13335 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13336 else
13337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338 for as_dir in $PATH
13340 IFS=$as_save_IFS
13341 test -z "$as_dir" && as_dir=.
13342 for ac_exec_ext in '' $ac_executable_extensions; do
13343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13344 ac_cv_prog_ac_ct_RANLIB="ranlib"
13345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 break 2
13348 done
13349 done
13350 IFS=$as_save_IFS
13354 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13355 if test -n "$ac_ct_RANLIB"; then
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13357 $as_echo "$ac_ct_RANLIB" >&6; }
13358 else
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13363 if test "x$ac_ct_RANLIB" = x; then
13364 RANLIB=":"
13365 else
13366 case $cross_compiling:$ac_tool_warned in
13367 yes:)
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13370 ac_tool_warned=yes ;;
13371 esac
13372 RANLIB=$ac_ct_RANLIB
13374 else
13375 RANLIB="$ac_cv_prog_RANLIB"
13378 test -z "$RANLIB" && RANLIB=:
13385 # Determine commands to create old-style static archives.
13386 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13387 old_postinstall_cmds='chmod 644 $oldlib'
13388 old_postuninstall_cmds=
13390 if test -n "$RANLIB"; then
13391 case $host_os in
13392 openbsd*)
13393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13398 esac
13399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13402 case $host_os in
13403 darwin*)
13404 lock_old_archive_extraction=yes ;;
13406 lock_old_archive_extraction=no ;;
13407 esac
13447 # If no C compiler was specified, use CC.
13448 LTCC=${LTCC-"$CC"}
13450 # If no C compiler flags were specified, use CFLAGS.
13451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13453 # Allow CC to be a program name with arguments.
13454 compiler=$CC
13457 # Check for command to grab the raw symbol name followed by C symbol from nm.
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13459 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13460 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13464 # These are sane defaults that work on at least a few old systems.
13465 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13467 # Character class describing NM global symbol codes.
13468 symcode='[BCDEGRST]'
13470 # Regexp to match symbols that can be accessed directly from C.
13471 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13473 # Define system-specific variables.
13474 case $host_os in
13475 aix*)
13476 symcode='[BCDT]'
13478 cygwin* | mingw* | pw32* | cegcc*)
13479 symcode='[ABCDGISTW]'
13481 hpux*)
13482 if test "$host_cpu" = ia64; then
13483 symcode='[ABCDEGRST]'
13486 irix* | nonstopux*)
13487 symcode='[BCDEGRST]'
13489 osf*)
13490 symcode='[BCDEGQRST]'
13492 solaris*)
13493 symcode='[BDRT]'
13495 sco3.2v5*)
13496 symcode='[DT]'
13498 sysv4.2uw2*)
13499 symcode='[DT]'
13501 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13502 symcode='[ABDT]'
13504 sysv4)
13505 symcode='[DFNSTU]'
13507 esac
13509 # If we're using GNU nm, then use its standard symbol codes.
13510 case `$NM -V 2>&1` in
13511 *GNU* | *'with BFD'*)
13512 symcode='[ABCDGIRSTW]' ;;
13513 esac
13515 # Transform an extracted symbol line into a proper C declaration.
13516 # Some systems (esp. on ia64) link data and code symbols differently,
13517 # so use this general approach.
13518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13520 # Transform an extracted symbol line into symbol name and symbol address
13521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13522 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'"
13524 # Handle CRLF in mingw tool chain
13525 opt_cr=
13526 case $build_os in
13527 mingw*)
13528 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13530 esac
13532 # Try without a prefix underscore, then with it.
13533 for ac_symprfx in "" "_"; do
13535 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13536 symxfrm="\\1 $ac_symprfx\\2 \\2"
13538 # Write the raw and C identifiers.
13539 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13540 # Fake it for dumpbin and say T for any non-static function
13541 # and D for any global variable.
13542 # Also find C++ and __fastcall symbols from MSVC++,
13543 # which start with @ or ?.
13544 lt_cv_sys_global_symbol_pipe="$AWK '"\
13545 " {last_section=section; section=\$ 3};"\
13546 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13547 " \$ 0!~/External *\|/{next};"\
13548 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13549 " {if(hide[section]) next};"\
13550 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13551 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13552 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13553 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13554 " ' prfx=^$ac_symprfx"
13555 else
13556 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13559 # Check to see that the pipe works correctly.
13560 pipe_works=no
13562 rm -f conftest*
13563 cat > conftest.$ac_ext <<_LT_EOF
13564 #ifdef __cplusplus
13565 extern "C" {
13566 #endif
13567 char nm_test_var;
13568 void nm_test_func(void);
13569 void nm_test_func(void){}
13570 #ifdef __cplusplus
13572 #endif
13573 int main(){nm_test_var='a';nm_test_func();return(0);}
13574 _LT_EOF
13576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13577 (eval $ac_compile) 2>&5
13578 ac_status=$?
13579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13580 test $ac_status = 0; }; then
13581 # Now try to grab the symbols.
13582 nlist=conftest.nm
13583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13584 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13585 ac_status=$?
13586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13587 test $ac_status = 0; } && test -s "$nlist"; then
13588 # Try sorting and uniquifying the output.
13589 if sort "$nlist" | uniq > "$nlist"T; then
13590 mv -f "$nlist"T "$nlist"
13591 else
13592 rm -f "$nlist"T
13595 # Make sure that we snagged all the symbols we need.
13596 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13597 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13598 cat <<_LT_EOF > conftest.$ac_ext
13599 #ifdef __cplusplus
13600 extern "C" {
13601 #endif
13603 _LT_EOF
13604 # Now generate the symbol file.
13605 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13607 cat <<_LT_EOF >> conftest.$ac_ext
13609 /* The mapping between symbol names and symbols. */
13610 const struct {
13611 const char *name;
13612 void *address;
13614 lt__PROGRAM__LTX_preloaded_symbols[] =
13616 { "@PROGRAM@", (void *) 0 },
13617 _LT_EOF
13618 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13619 cat <<\_LT_EOF >> conftest.$ac_ext
13620 {0, (void *) 0}
13623 /* This works around a problem in FreeBSD linker */
13624 #ifdef FREEBSD_WORKAROUND
13625 static const void *lt_preloaded_setup() {
13626 return lt__PROGRAM__LTX_preloaded_symbols;
13628 #endif
13630 #ifdef __cplusplus
13632 #endif
13633 _LT_EOF
13634 # Now try linking the two files.
13635 mv conftest.$ac_objext conftstm.$ac_objext
13636 lt_save_LIBS="$LIBS"
13637 lt_save_CFLAGS="$CFLAGS"
13638 LIBS="conftstm.$ac_objext"
13639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13641 (eval $ac_link) 2>&5
13642 ac_status=$?
13643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13644 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13645 pipe_works=yes
13647 LIBS="$lt_save_LIBS"
13648 CFLAGS="$lt_save_CFLAGS"
13649 else
13650 echo "cannot find nm_test_func in $nlist" >&5
13652 else
13653 echo "cannot find nm_test_var in $nlist" >&5
13655 else
13656 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13658 else
13659 echo "$progname: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13662 rm -rf conftest* conftst*
13664 # Do not use the global_symbol_pipe unless it works.
13665 if test "$pipe_works" = yes; then
13666 break
13667 else
13668 lt_cv_sys_global_symbol_pipe=
13670 done
13674 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13675 lt_cv_sys_global_symbol_to_cdecl=
13677 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13679 $as_echo "failed" >&6; }
13680 else
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13682 $as_echo "ok" >&6; }
13706 # Check whether --enable-libtool-lock was given.
13707 if test "${enable_libtool_lock+set}" = set; then :
13708 enableval=$enable_libtool_lock;
13711 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13713 # Some flags need to be propagated to the compiler or linker for good
13714 # libtool support.
13715 case $host in
13716 ia64-*-hpux*)
13717 # Find out which ABI we are using.
13718 echo 'int i;' > conftest.$ac_ext
13719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13720 (eval $ac_compile) 2>&5
13721 ac_status=$?
13722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13723 test $ac_status = 0; }; then
13724 case `/usr/bin/file conftest.$ac_objext` in
13725 *ELF-32*)
13726 HPUX_IA64_MODE="32"
13728 *ELF-64*)
13729 HPUX_IA64_MODE="64"
13731 esac
13733 rm -rf conftest*
13735 *-*-irix6*)
13736 # Find out which ABI we are using.
13737 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13739 (eval $ac_compile) 2>&5
13740 ac_status=$?
13741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13742 test $ac_status = 0; }; then
13743 if test "$lt_cv_prog_gnu_ld" = yes; then
13744 case `/usr/bin/file conftest.$ac_objext` in
13745 *32-bit*)
13746 LD="${LD-ld} -melf32bsmip"
13748 *N32*)
13749 LD="${LD-ld} -melf32bmipn32"
13751 *64-bit*)
13752 LD="${LD-ld} -melf64bmip"
13754 esac
13755 else
13756 case `/usr/bin/file conftest.$ac_objext` in
13757 *32-bit*)
13758 LD="${LD-ld} -32"
13760 *N32*)
13761 LD="${LD-ld} -n32"
13763 *64-bit*)
13764 LD="${LD-ld} -64"
13766 esac
13769 rm -rf conftest*
13772 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13773 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13774 # Find out which ABI we are using.
13775 echo 'int i;' > conftest.$ac_ext
13776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13777 (eval $ac_compile) 2>&5
13778 ac_status=$?
13779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13780 test $ac_status = 0; }; then
13781 case `/usr/bin/file conftest.o` in
13782 *32-bit*)
13783 case $host in
13784 x86_64-*kfreebsd*-gnu)
13785 LD="${LD-ld} -m elf_i386_fbsd"
13787 x86_64-*linux*)
13788 case `/usr/bin/file conftest.o` in
13789 *x86-64*)
13790 LD="${LD-ld} -m elf32_x86_64"
13793 LD="${LD-ld} -m elf_i386"
13795 esac
13797 powerpc64le-*linux*)
13798 LD="${LD-ld} -m elf32lppclinux"
13800 powerpc64-*linux*)
13801 LD="${LD-ld} -m elf32ppclinux"
13803 s390x-*linux*)
13804 LD="${LD-ld} -m elf_s390"
13806 sparc64-*linux*)
13807 LD="${LD-ld} -m elf32_sparc"
13809 esac
13811 *64-bit*)
13812 case $host in
13813 x86_64-*kfreebsd*-gnu)
13814 LD="${LD-ld} -m elf_x86_64_fbsd"
13816 x86_64-*linux*)
13817 LD="${LD-ld} -m elf_x86_64"
13819 powerpcle-*linux*)
13820 LD="${LD-ld} -m elf64lppc"
13822 powerpc-*linux*)
13823 LD="${LD-ld} -m elf64ppc"
13825 s390*-*linux*|s390*-*tpf*)
13826 LD="${LD-ld} -m elf64_s390"
13828 sparc*-*linux*)
13829 LD="${LD-ld} -m elf64_sparc"
13831 esac
13833 esac
13835 rm -rf conftest*
13838 *-*-sco3.2v5*)
13839 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13840 SAVE_CFLAGS="$CFLAGS"
13841 CFLAGS="$CFLAGS -belf"
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13843 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13844 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 ac_ext=c
13848 ac_cpp='$CPP $CPPFLAGS'
13849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13857 main ()
13861 return 0;
13863 _ACEOF
13864 if ac_fn_c_try_link "$LINENO"; then :
13865 lt_cv_cc_needs_belf=yes
13866 else
13867 lt_cv_cc_needs_belf=no
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 ac_ext=c
13872 ac_cpp='$CPP $CPPFLAGS'
13873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13879 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13880 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13882 CFLAGS="$SAVE_CFLAGS"
13885 sparc*-*solaris*)
13886 # Find out which ABI we are using.
13887 echo 'int i;' > conftest.$ac_ext
13888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13889 (eval $ac_compile) 2>&5
13890 ac_status=$?
13891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13892 test $ac_status = 0; }; then
13893 case `/usr/bin/file conftest.o` in
13894 *64-bit*)
13895 case $lt_cv_prog_gnu_ld in
13896 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13898 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13899 LD="${LD-ld} -64"
13902 esac
13904 esac
13906 rm -rf conftest*
13908 esac
13910 need_locks="$enable_libtool_lock"
13913 case $host_os in
13914 rhapsody* | darwin*)
13915 if test -n "$ac_tool_prefix"; then
13916 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13917 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13919 $as_echo_n "checking for $ac_word... " >&6; }
13920 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 if test -n "$DSYMUTIL"; then
13924 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13925 else
13926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13927 for as_dir in $PATH
13929 IFS=$as_save_IFS
13930 test -z "$as_dir" && as_dir=.
13931 for ac_exec_ext in '' $ac_executable_extensions; do
13932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13933 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13935 break 2
13937 done
13938 done
13939 IFS=$as_save_IFS
13943 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13944 if test -n "$DSYMUTIL"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13946 $as_echo "$DSYMUTIL" >&6; }
13947 else
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 $as_echo "no" >&6; }
13954 if test -z "$ac_cv_prog_DSYMUTIL"; then
13955 ac_ct_DSYMUTIL=$DSYMUTIL
13956 # Extract the first word of "dsymutil", so it can be a program name with args.
13957 set dummy dsymutil; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959 $as_echo_n "checking for $ac_word... " >&6; }
13960 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13961 $as_echo_n "(cached) " >&6
13962 else
13963 if test -n "$ac_ct_DSYMUTIL"; then
13964 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13965 else
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13969 IFS=$as_save_IFS
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13973 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975 break 2
13977 done
13978 done
13979 IFS=$as_save_IFS
13983 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13984 if test -n "$ac_ct_DSYMUTIL"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13986 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13987 else
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
13992 if test "x$ac_ct_DSYMUTIL" = x; then
13993 DSYMUTIL=":"
13994 else
13995 case $cross_compiling:$ac_tool_warned in
13996 yes:)
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13999 ac_tool_warned=yes ;;
14000 esac
14001 DSYMUTIL=$ac_ct_DSYMUTIL
14003 else
14004 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14007 if test -n "$ac_tool_prefix"; then
14008 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14009 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14011 $as_echo_n "checking for $ac_word... " >&6; }
14012 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 if test -n "$NMEDIT"; then
14016 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14017 else
14018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019 for as_dir in $PATH
14021 IFS=$as_save_IFS
14022 test -z "$as_dir" && as_dir=.
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14025 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14027 break 2
14029 done
14030 done
14031 IFS=$as_save_IFS
14035 NMEDIT=$ac_cv_prog_NMEDIT
14036 if test -n "$NMEDIT"; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14038 $as_echo "$NMEDIT" >&6; }
14039 else
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041 $as_echo "no" >&6; }
14046 if test -z "$ac_cv_prog_NMEDIT"; then
14047 ac_ct_NMEDIT=$NMEDIT
14048 # Extract the first word of "nmedit", so it can be a program name with args.
14049 set dummy nmedit; ac_word=$2
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14051 $as_echo_n "checking for $ac_word... " >&6; }
14052 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 if test -n "$ac_ct_NMEDIT"; then
14056 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14057 else
14058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059 for as_dir in $PATH
14061 IFS=$as_save_IFS
14062 test -z "$as_dir" && as_dir=.
14063 for ac_exec_ext in '' $ac_executable_extensions; do
14064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14065 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 break 2
14069 done
14070 done
14071 IFS=$as_save_IFS
14075 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14076 if test -n "$ac_ct_NMEDIT"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14078 $as_echo "$ac_ct_NMEDIT" >&6; }
14079 else
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14084 if test "x$ac_ct_NMEDIT" = x; then
14085 NMEDIT=":"
14086 else
14087 case $cross_compiling:$ac_tool_warned in
14088 yes:)
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14091 ac_tool_warned=yes ;;
14092 esac
14093 NMEDIT=$ac_ct_NMEDIT
14095 else
14096 NMEDIT="$ac_cv_prog_NMEDIT"
14099 if test -n "$ac_tool_prefix"; then
14100 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14101 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if test "${ac_cv_prog_LIPO+set}" = set; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 if test -n "$LIPO"; then
14108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14109 else
14110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14111 for as_dir in $PATH
14113 IFS=$as_save_IFS
14114 test -z "$as_dir" && as_dir=.
14115 for ac_exec_ext in '' $ac_executable_extensions; do
14116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14117 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14119 break 2
14121 done
14122 done
14123 IFS=$as_save_IFS
14127 LIPO=$ac_cv_prog_LIPO
14128 if test -n "$LIPO"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14130 $as_echo "$LIPO" >&6; }
14131 else
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14138 if test -z "$ac_cv_prog_LIPO"; then
14139 ac_ct_LIPO=$LIPO
14140 # Extract the first word of "lipo", so it can be a program name with args.
14141 set dummy lipo; ac_word=$2
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14143 $as_echo_n "checking for $ac_word... " >&6; }
14144 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14147 if test -n "$ac_ct_LIPO"; then
14148 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14149 else
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH
14153 IFS=$as_save_IFS
14154 test -z "$as_dir" && as_dir=.
14155 for ac_exec_ext in '' $ac_executable_extensions; do
14156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14157 ac_cv_prog_ac_ct_LIPO="lipo"
14158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 break 2
14161 done
14162 done
14163 IFS=$as_save_IFS
14167 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14168 if test -n "$ac_ct_LIPO"; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14170 $as_echo "$ac_ct_LIPO" >&6; }
14171 else
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173 $as_echo "no" >&6; }
14176 if test "x$ac_ct_LIPO" = x; then
14177 LIPO=":"
14178 else
14179 case $cross_compiling:$ac_tool_warned in
14180 yes:)
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14183 ac_tool_warned=yes ;;
14184 esac
14185 LIPO=$ac_ct_LIPO
14187 else
14188 LIPO="$ac_cv_prog_LIPO"
14191 if test -n "$ac_tool_prefix"; then
14192 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14193 set dummy ${ac_tool_prefix}otool; ac_word=$2
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14195 $as_echo_n "checking for $ac_word... " >&6; }
14196 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14197 $as_echo_n "(cached) " >&6
14198 else
14199 if test -n "$OTOOL"; then
14200 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14201 else
14202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14203 for as_dir in $PATH
14205 IFS=$as_save_IFS
14206 test -z "$as_dir" && as_dir=.
14207 for ac_exec_ext in '' $ac_executable_extensions; do
14208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14209 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14211 break 2
14213 done
14214 done
14215 IFS=$as_save_IFS
14219 OTOOL=$ac_cv_prog_OTOOL
14220 if test -n "$OTOOL"; then
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14222 $as_echo "$OTOOL" >&6; }
14223 else
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14230 if test -z "$ac_cv_prog_OTOOL"; then
14231 ac_ct_OTOOL=$OTOOL
14232 # Extract the first word of "otool", so it can be a program name with args.
14233 set dummy otool; ac_word=$2
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14235 $as_echo_n "checking for $ac_word... " >&6; }
14236 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 if test -n "$ac_ct_OTOOL"; then
14240 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14241 else
14242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14243 for as_dir in $PATH
14245 IFS=$as_save_IFS
14246 test -z "$as_dir" && as_dir=.
14247 for ac_exec_ext in '' $ac_executable_extensions; do
14248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14249 ac_cv_prog_ac_ct_OTOOL="otool"
14250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14251 break 2
14253 done
14254 done
14255 IFS=$as_save_IFS
14259 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14260 if test -n "$ac_ct_OTOOL"; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14262 $as_echo "$ac_ct_OTOOL" >&6; }
14263 else
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14268 if test "x$ac_ct_OTOOL" = x; then
14269 OTOOL=":"
14270 else
14271 case $cross_compiling:$ac_tool_warned in
14272 yes:)
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14275 ac_tool_warned=yes ;;
14276 esac
14277 OTOOL=$ac_ct_OTOOL
14279 else
14280 OTOOL="$ac_cv_prog_OTOOL"
14283 if test -n "$ac_tool_prefix"; then
14284 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14285 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14287 $as_echo_n "checking for $ac_word... " >&6; }
14288 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 if test -n "$OTOOL64"; then
14292 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14293 else
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14297 IFS=$as_save_IFS
14298 test -z "$as_dir" && as_dir=.
14299 for ac_exec_ext in '' $ac_executable_extensions; do
14300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14301 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14303 break 2
14305 done
14306 done
14307 IFS=$as_save_IFS
14311 OTOOL64=$ac_cv_prog_OTOOL64
14312 if test -n "$OTOOL64"; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14314 $as_echo "$OTOOL64" >&6; }
14315 else
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317 $as_echo "no" >&6; }
14322 if test -z "$ac_cv_prog_OTOOL64"; then
14323 ac_ct_OTOOL64=$OTOOL64
14324 # Extract the first word of "otool64", so it can be a program name with args.
14325 set dummy otool64; ac_word=$2
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14327 $as_echo_n "checking for $ac_word... " >&6; }
14328 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 if test -n "$ac_ct_OTOOL64"; then
14332 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14333 else
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_prog_ac_ct_OTOOL64="otool64"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14345 done
14346 done
14347 IFS=$as_save_IFS
14351 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14352 if test -n "$ac_ct_OTOOL64"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14354 $as_echo "$ac_ct_OTOOL64" >&6; }
14355 else
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14360 if test "x$ac_ct_OTOOL64" = x; then
14361 OTOOL64=":"
14362 else
14363 case $cross_compiling:$ac_tool_warned in
14364 yes:)
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14367 ac_tool_warned=yes ;;
14368 esac
14369 OTOOL64=$ac_ct_OTOOL64
14371 else
14372 OTOOL64="$ac_cv_prog_OTOOL64"
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14402 $as_echo_n "checking for -single_module linker flag... " >&6; }
14403 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 lt_cv_apple_cc_single_mod=no
14407 if test -z "${LT_MULTI_MODULE}"; then
14408 # By default we will add the -single_module flag. You can override
14409 # by either setting the environment variable LT_MULTI_MODULE
14410 # non-empty at configure time, or by adding -multi_module to the
14411 # link flags.
14412 rm -rf libconftest.dylib*
14413 echo "int foo(void){return 1;}" > conftest.c
14414 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14415 -dynamiclib -Wl,-single_module conftest.c" >&5
14416 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14417 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14418 _lt_result=$?
14419 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14420 lt_cv_apple_cc_single_mod=yes
14421 else
14422 cat conftest.err >&5
14424 rm -rf libconftest.dylib*
14425 rm -f conftest.*
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14429 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14431 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14432 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14434 else
14435 lt_cv_ld_exported_symbols_list=no
14436 save_LDFLAGS=$LDFLAGS
14437 echo "_main" > conftest.sym
14438 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14443 main ()
14447 return 0;
14449 _ACEOF
14450 if ac_fn_c_try_link "$LINENO"; then :
14451 lt_cv_ld_exported_symbols_list=yes
14452 else
14453 lt_cv_ld_exported_symbols_list=no
14455 rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14457 LDFLAGS="$save_LDFLAGS"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14461 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14463 $as_echo_n "checking for -force_load linker flag... " >&6; }
14464 if test "${lt_cv_ld_force_load+set}" = set; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 lt_cv_ld_force_load=no
14468 cat > conftest.c << _LT_EOF
14469 int forced_loaded() { return 2;}
14470 _LT_EOF
14471 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14472 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14473 echo "$AR cru libconftest.a conftest.o" >&5
14474 $AR cru libconftest.a conftest.o 2>&5
14475 cat > conftest.c << _LT_EOF
14476 int main() { return 0;}
14477 _LT_EOF
14478 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14479 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14480 _lt_result=$?
14481 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14482 lt_cv_ld_force_load=yes
14483 else
14484 cat conftest.err >&5
14486 rm -f conftest.err libconftest.a conftest conftest.c
14487 rm -rf conftest.dSYM
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14491 $as_echo "$lt_cv_ld_force_load" >&6; }
14492 case $host_os in
14493 rhapsody* | darwin1.[012])
14494 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14495 darwin1.*)
14496 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14497 darwin*) # darwin 5.x on
14498 # if running on 10.5 or later, the deployment target defaults
14499 # to the OS version, if on x86, and 10.4, the deployment
14500 # target defaults to 10.4. Don't you love it?
14501 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14502 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14503 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14504 10.[012]*)
14505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14506 10.*)
14507 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14508 esac
14510 esac
14511 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14512 _lt_dar_single_mod='$single_module'
14514 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14515 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14516 else
14517 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14519 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14520 _lt_dsymutil='~$DSYMUTIL $lib || :'
14521 else
14522 _lt_dsymutil=
14525 esac
14527 for ac_header in dlfcn.h
14528 do :
14529 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14530 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14531 cat >>confdefs.h <<_ACEOF
14532 #define HAVE_DLFCN_H 1
14533 _ACEOF
14536 done
14542 # Set options
14546 enable_dlopen=no
14549 enable_win32_dll=no
14552 # Check whether --enable-shared was given.
14553 if test "${enable_shared+set}" = set; then :
14554 enableval=$enable_shared; p=${PACKAGE-default}
14555 case $enableval in
14556 yes) enable_shared=yes ;;
14557 no) enable_shared=no ;;
14559 enable_shared=no
14560 # Look at the argument we got. We use all the common list separators.
14561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14562 for pkg in $enableval; do
14563 IFS="$lt_save_ifs"
14564 if test "X$pkg" = "X$p"; then
14565 enable_shared=yes
14567 done
14568 IFS="$lt_save_ifs"
14570 esac
14571 else
14572 enable_shared=yes
14583 # Check whether --enable-static was given.
14584 if test "${enable_static+set}" = set; then :
14585 enableval=$enable_static; p=${PACKAGE-default}
14586 case $enableval in
14587 yes) enable_static=yes ;;
14588 no) enable_static=no ;;
14590 enable_static=no
14591 # Look at the argument we got. We use all the common list separators.
14592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14593 for pkg in $enableval; do
14594 IFS="$lt_save_ifs"
14595 if test "X$pkg" = "X$p"; then
14596 enable_static=yes
14598 done
14599 IFS="$lt_save_ifs"
14601 esac
14602 else
14603 enable_static=yes
14615 # Check whether --with-pic was given.
14616 if test "${with_pic+set}" = set; then :
14617 withval=$with_pic; pic_mode="$withval"
14618 else
14619 pic_mode=default
14623 test -z "$pic_mode" && pic_mode=default
14631 # Check whether --enable-fast-install was given.
14632 if test "${enable_fast_install+set}" = set; then :
14633 enableval=$enable_fast_install; p=${PACKAGE-default}
14634 case $enableval in
14635 yes) enable_fast_install=yes ;;
14636 no) enable_fast_install=no ;;
14638 enable_fast_install=no
14639 # Look at the argument we got. We use all the common list separators.
14640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14641 for pkg in $enableval; do
14642 IFS="$lt_save_ifs"
14643 if test "X$pkg" = "X$p"; then
14644 enable_fast_install=yes
14646 done
14647 IFS="$lt_save_ifs"
14649 esac
14650 else
14651 enable_fast_install=yes
14664 # This can be used to rebuild libtool when needed
14665 LIBTOOL_DEPS="$ltmain"
14667 # Always use our own libtool.
14668 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14695 test -z "$LN_S" && LN_S="ln -s"
14710 if test -n "${ZSH_VERSION+set}" ; then
14711 setopt NO_GLOB_SUBST
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14715 $as_echo_n "checking for objdir... " >&6; }
14716 if test "${lt_cv_objdir+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 rm -f .libs 2>/dev/null
14720 mkdir .libs 2>/dev/null
14721 if test -d .libs; then
14722 lt_cv_objdir=.libs
14723 else
14724 # MS-DOS does not allow filenames that begin with a dot.
14725 lt_cv_objdir=_libs
14727 rmdir .libs 2>/dev/null
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14730 $as_echo "$lt_cv_objdir" >&6; }
14731 objdir=$lt_cv_objdir
14737 cat >>confdefs.h <<_ACEOF
14738 #define LT_OBJDIR "$lt_cv_objdir/"
14739 _ACEOF
14744 case $host_os in
14745 aix3*)
14746 # AIX sometimes has problems with the GCC collect2 program. For some
14747 # reason, if we set the COLLECT_NAMES environment variable, the problems
14748 # vanish in a puff of smoke.
14749 if test "X${COLLECT_NAMES+set}" != Xset; then
14750 COLLECT_NAMES=
14751 export COLLECT_NAMES
14754 esac
14756 # Global variables:
14757 ofile=libtool
14758 can_build_shared=yes
14760 # All known linkers require a `.a' archive for static linking (except MSVC,
14761 # which needs '.lib').
14762 libext=a
14764 with_gnu_ld="$lt_cv_prog_gnu_ld"
14766 old_CC="$CC"
14767 old_CFLAGS="$CFLAGS"
14769 # Set sane defaults for various variables
14770 test -z "$CC" && CC=cc
14771 test -z "$LTCC" && LTCC=$CC
14772 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14773 test -z "$LD" && LD=ld
14774 test -z "$ac_objext" && ac_objext=o
14776 for cc_temp in $compiler""; do
14777 case $cc_temp in
14778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14780 \-*) ;;
14781 *) break;;
14782 esac
14783 done
14784 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14787 # Only perform the check for file, if the check method requires it
14788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14789 case $deplibs_check_method in
14790 file_magic*)
14791 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14793 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14794 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 case $MAGIC_CMD in
14798 [\\/*] | ?:[\\/]*)
14799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14802 lt_save_MAGIC_CMD="$MAGIC_CMD"
14803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14805 for ac_dir in $ac_dummy; do
14806 IFS="$lt_save_ifs"
14807 test -z "$ac_dir" && ac_dir=.
14808 if test -f $ac_dir/${ac_tool_prefix}file; then
14809 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14810 if test -n "$file_magic_test_file"; then
14811 case $deplibs_check_method in
14812 "file_magic "*)
14813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14816 $EGREP "$file_magic_regex" > /dev/null; then
14818 else
14819 cat <<_LT_EOF 1>&2
14821 *** Warning: the command libtool uses to detect shared libraries,
14822 *** $file_magic_cmd, produces output that libtool cannot recognize.
14823 *** The result is that libtool may fail to recognize shared libraries
14824 *** as such. This will affect the creation of libtool libraries that
14825 *** depend on shared libraries, but programs linked with such libtool
14826 *** libraries will work regardless of this problem. Nevertheless, you
14827 *** may want to report the problem to your system manager and/or to
14828 *** bug-libtool@gnu.org
14830 _LT_EOF
14831 fi ;;
14832 esac
14834 break
14836 done
14837 IFS="$lt_save_ifs"
14838 MAGIC_CMD="$lt_save_MAGIC_CMD"
14840 esac
14843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14844 if test -n "$MAGIC_CMD"; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14846 $as_echo "$MAGIC_CMD" >&6; }
14847 else
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14856 if test -z "$lt_cv_path_MAGIC_CMD"; then
14857 if test -n "$ac_tool_prefix"; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14859 $as_echo_n "checking for file... " >&6; }
14860 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 case $MAGIC_CMD in
14864 [\\/*] | ?:[\\/]*)
14865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14868 lt_save_MAGIC_CMD="$MAGIC_CMD"
14869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14871 for ac_dir in $ac_dummy; do
14872 IFS="$lt_save_ifs"
14873 test -z "$ac_dir" && ac_dir=.
14874 if test -f $ac_dir/file; then
14875 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14876 if test -n "$file_magic_test_file"; then
14877 case $deplibs_check_method in
14878 "file_magic "*)
14879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14882 $EGREP "$file_magic_regex" > /dev/null; then
14884 else
14885 cat <<_LT_EOF 1>&2
14887 *** Warning: the command libtool uses to detect shared libraries,
14888 *** $file_magic_cmd, produces output that libtool cannot recognize.
14889 *** The result is that libtool may fail to recognize shared libraries
14890 *** as such. This will affect the creation of libtool libraries that
14891 *** depend on shared libraries, but programs linked with such libtool
14892 *** libraries will work regardless of this problem. Nevertheless, you
14893 *** may want to report the problem to your system manager and/or to
14894 *** bug-libtool@gnu.org
14896 _LT_EOF
14897 fi ;;
14898 esac
14900 break
14902 done
14903 IFS="$lt_save_ifs"
14904 MAGIC_CMD="$lt_save_MAGIC_CMD"
14906 esac
14909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14910 if test -n "$MAGIC_CMD"; then
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14912 $as_echo "$MAGIC_CMD" >&6; }
14913 else
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14915 $as_echo "no" >&6; }
14919 else
14920 MAGIC_CMD=:
14926 esac
14928 # Use C for the default configuration in the libtool script
14930 lt_save_CC="$CC"
14931 ac_ext=c
14932 ac_cpp='$CPP $CPPFLAGS'
14933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14938 # Source file extension for C test sources.
14939 ac_ext=c
14941 # Object file extension for compiled C test sources.
14942 objext=o
14943 objext=$objext
14945 # Code to be used in simple compile tests
14946 lt_simple_compile_test_code="int some_variable = 0;"
14948 # Code to be used in simple link tests
14949 lt_simple_link_test_code='int main(){return(0);}'
14957 # If no C compiler was specified, use CC.
14958 LTCC=${LTCC-"$CC"}
14960 # If no C compiler flags were specified, use CFLAGS.
14961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14963 # Allow CC to be a program name with arguments.
14964 compiler=$CC
14966 # Save the default compiler, since it gets overwritten when the other
14967 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14968 compiler_DEFAULT=$CC
14970 # save warnings/boilerplate of simple test code
14971 ac_outfile=conftest.$ac_objext
14972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14974 _lt_compiler_boilerplate=`cat conftest.err`
14975 $RM conftest*
14977 ac_outfile=conftest.$ac_objext
14978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14980 _lt_linker_boilerplate=`cat conftest.err`
14981 $RM -r conftest*
14984 ## CAVEAT EMPTOR:
14985 ## There is no encapsulation within the following macros, do not change
14986 ## the running order or otherwise move them around unless you know exactly
14987 ## what you are doing...
14988 if test -n "$compiler"; then
14990 lt_prog_compiler_no_builtin_flag=
14992 if test "$GCC" = yes; then
14993 case $cc_basename in
14994 nvcc*)
14995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14998 esac
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15001 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15002 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 lt_cv_prog_compiler_rtti_exceptions=no
15006 ac_outfile=conftest.$ac_objext
15007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15008 lt_compiler_flag="-fno-rtti -fno-exceptions"
15009 # Insert the option either (1) after the last *FLAGS variable, or
15010 # (2) before a word containing "conftest.", or (3) at the end.
15011 # Note that $ac_compile itself does not contain backslashes and begins
15012 # with a dollar sign (not a hyphen), so the echo should work correctly.
15013 # The option is referenced via a variable to avoid confusing sed.
15014 lt_compile=`echo "$ac_compile" | $SED \
15015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15017 -e 's:$: $lt_compiler_flag:'`
15018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15019 (eval "$lt_compile" 2>conftest.err)
15020 ac_status=$?
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 if (exit $ac_status) && test -s "$ac_outfile"; then
15024 # The compiler can only warn and ignore the option if not recognized
15025 # So say no if there are warnings other than the usual output.
15026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15029 lt_cv_prog_compiler_rtti_exceptions=yes
15032 $RM conftest*
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15036 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15038 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15040 else
15051 lt_prog_compiler_wl=
15052 lt_prog_compiler_pic=
15053 lt_prog_compiler_static=
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15056 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15058 if test "$GCC" = yes; then
15059 lt_prog_compiler_wl='-Wl,'
15060 lt_prog_compiler_static='-static'
15062 case $host_os in
15063 aix*)
15064 # All AIX code is PIC.
15065 if test "$host_cpu" = ia64; then
15066 # AIX 5 now supports IA64 processor
15067 lt_prog_compiler_static='-Bstatic'
15069 lt_prog_compiler_pic='-fPIC'
15072 amigaos*)
15073 case $host_cpu in
15074 powerpc)
15075 # see comment about AmigaOS4 .so support
15076 lt_prog_compiler_pic='-fPIC'
15078 m68k)
15079 # FIXME: we need at least 68020 code to build shared libraries, but
15080 # adding the `-m68020' flag to GCC prevents building anything better,
15081 # like `-m68040'.
15082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15084 esac
15087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15088 # PIC is the default for these OSes.
15091 mingw* | cygwin* | pw32* | os2* | cegcc*)
15092 # This hack is so that the source file can tell whether it is being
15093 # built for inclusion in a dll (and should export symbols for example).
15094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15095 # (--disable-auto-import) libraries
15096 lt_prog_compiler_pic='-DDLL_EXPORT'
15099 darwin* | rhapsody*)
15100 # PIC is the default on this platform
15101 # Common symbols not allowed in MH_DYLIB files
15102 lt_prog_compiler_pic='-fno-common'
15105 haiku*)
15106 # PIC is the default for Haiku.
15107 # The "-static" flag exists, but is broken.
15108 lt_prog_compiler_static=
15111 hpux*)
15112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15114 # sets the default TLS model and affects inlining.
15115 case $host_cpu in
15116 hppa*64*)
15117 # +Z the default
15120 lt_prog_compiler_pic='-fPIC'
15122 esac
15125 interix[3-9]*)
15126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15127 # Instead, we relocate shared libraries at runtime.
15130 msdosdjgpp*)
15131 # Just because we use GCC doesn't mean we suddenly get shared libraries
15132 # on systems that don't support them.
15133 lt_prog_compiler_can_build_shared=no
15134 enable_shared=no
15137 *nto* | *qnx*)
15138 # QNX uses GNU C++, but need to define -shared option too, otherwise
15139 # it will coredump.
15140 lt_prog_compiler_pic='-fPIC -shared'
15143 sysv4*MP*)
15144 if test -d /usr/nec; then
15145 lt_prog_compiler_pic=-Kconform_pic
15150 lt_prog_compiler_pic='-fPIC'
15152 esac
15154 case $cc_basename in
15155 nvcc*) # Cuda Compiler Driver 2.2
15156 lt_prog_compiler_wl='-Xlinker '
15157 lt_prog_compiler_pic='-Xcompiler -fPIC'
15159 esac
15160 else
15161 # PORTME Check for flag to pass linker flags through the system compiler.
15162 case $host_os in
15163 aix*)
15164 lt_prog_compiler_wl='-Wl,'
15165 if test "$host_cpu" = ia64; then
15166 # AIX 5 now supports IA64 processor
15167 lt_prog_compiler_static='-Bstatic'
15168 else
15169 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15173 mingw* | cygwin* | pw32* | os2* | cegcc*)
15174 # This hack is so that the source file can tell whether it is being
15175 # built for inclusion in a dll (and should export symbols for example).
15176 lt_prog_compiler_pic='-DDLL_EXPORT'
15179 hpux9* | hpux10* | hpux11*)
15180 lt_prog_compiler_wl='-Wl,'
15181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15182 # not for PA HP-UX.
15183 case $host_cpu in
15184 hppa*64*|ia64*)
15185 # +Z the default
15188 lt_prog_compiler_pic='+Z'
15190 esac
15191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15192 lt_prog_compiler_static='${wl}-a ${wl}archive'
15195 irix5* | irix6* | nonstopux*)
15196 lt_prog_compiler_wl='-Wl,'
15197 # PIC (with -KPIC) is the default.
15198 lt_prog_compiler_static='-non_shared'
15201 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15202 case $cc_basename in
15203 # old Intel for x86_64 which still supported -KPIC.
15204 ecc*)
15205 lt_prog_compiler_wl='-Wl,'
15206 lt_prog_compiler_pic='-KPIC'
15207 lt_prog_compiler_static='-static'
15209 # icc used to be incompatible with GCC.
15210 # ICC 10 doesn't accept -KPIC any more.
15211 icc* | ifort*)
15212 lt_prog_compiler_wl='-Wl,'
15213 lt_prog_compiler_pic='-fPIC'
15214 lt_prog_compiler_static='-static'
15216 # Lahey Fortran 8.1.
15217 lf95*)
15218 lt_prog_compiler_wl='-Wl,'
15219 lt_prog_compiler_pic='--shared'
15220 lt_prog_compiler_static='--static'
15222 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15223 # Portland Group compilers (*not* the Pentium gcc compiler,
15224 # which looks to be a dead project)
15225 lt_prog_compiler_wl='-Wl,'
15226 lt_prog_compiler_pic='-fpic'
15227 lt_prog_compiler_static='-Bstatic'
15229 ccc*)
15230 lt_prog_compiler_wl='-Wl,'
15231 # All Alpha code is PIC.
15232 lt_prog_compiler_static='-non_shared'
15234 xl* | bgxl* | bgf* | mpixl*)
15235 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15236 lt_prog_compiler_wl='-Wl,'
15237 lt_prog_compiler_pic='-qpic'
15238 lt_prog_compiler_static='-qstaticlink'
15241 case `$CC -V 2>&1 | sed 5q` in
15242 *Sun\ F* | *Sun*Fortran*)
15243 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15244 lt_prog_compiler_pic='-KPIC'
15245 lt_prog_compiler_static='-Bstatic'
15246 lt_prog_compiler_wl=''
15248 *Sun\ C*)
15249 # Sun C 5.9
15250 lt_prog_compiler_pic='-KPIC'
15251 lt_prog_compiler_static='-Bstatic'
15252 lt_prog_compiler_wl='-Wl,'
15254 esac
15256 esac
15259 newsos6)
15260 lt_prog_compiler_pic='-KPIC'
15261 lt_prog_compiler_static='-Bstatic'
15264 *nto* | *qnx*)
15265 # QNX uses GNU C++, but need to define -shared option too, otherwise
15266 # it will coredump.
15267 lt_prog_compiler_pic='-fPIC -shared'
15270 osf3* | osf4* | osf5*)
15271 lt_prog_compiler_wl='-Wl,'
15272 # All OSF/1 code is PIC.
15273 lt_prog_compiler_static='-non_shared'
15276 rdos*)
15277 lt_prog_compiler_static='-non_shared'
15280 solaris*)
15281 lt_prog_compiler_pic='-KPIC'
15282 lt_prog_compiler_static='-Bstatic'
15283 case $cc_basename in
15284 f77* | f90* | f95*)
15285 lt_prog_compiler_wl='-Qoption ld ';;
15287 lt_prog_compiler_wl='-Wl,';;
15288 esac
15291 sunos4*)
15292 lt_prog_compiler_wl='-Qoption ld '
15293 lt_prog_compiler_pic='-PIC'
15294 lt_prog_compiler_static='-Bstatic'
15297 sysv4 | sysv4.2uw2* | sysv4.3*)
15298 lt_prog_compiler_wl='-Wl,'
15299 lt_prog_compiler_pic='-KPIC'
15300 lt_prog_compiler_static='-Bstatic'
15303 sysv4*MP*)
15304 if test -d /usr/nec ;then
15305 lt_prog_compiler_pic='-Kconform_pic'
15306 lt_prog_compiler_static='-Bstatic'
15310 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15311 lt_prog_compiler_wl='-Wl,'
15312 lt_prog_compiler_pic='-KPIC'
15313 lt_prog_compiler_static='-Bstatic'
15316 unicos*)
15317 lt_prog_compiler_wl='-Wl,'
15318 lt_prog_compiler_can_build_shared=no
15321 uts4*)
15322 lt_prog_compiler_pic='-pic'
15323 lt_prog_compiler_static='-Bstatic'
15327 lt_prog_compiler_can_build_shared=no
15329 esac
15332 case $host_os in
15333 # For platforms which do not support PIC, -DPIC is meaningless:
15334 *djgpp*)
15335 lt_prog_compiler_pic=
15338 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15340 esac
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15342 $as_echo "$lt_prog_compiler_pic" >&6; }
15350 # Check to make sure the PIC flag actually works.
15352 if test -n "$lt_prog_compiler_pic"; then
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15354 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15355 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15356 $as_echo_n "(cached) " >&6
15357 else
15358 lt_cv_prog_compiler_pic_works=no
15359 ac_outfile=conftest.$ac_objext
15360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15361 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15362 # Insert the option either (1) after the last *FLAGS variable, or
15363 # (2) before a word containing "conftest.", or (3) at the end.
15364 # Note that $ac_compile itself does not contain backslashes and begins
15365 # with a dollar sign (not a hyphen), so the echo should work correctly.
15366 # The option is referenced via a variable to avoid confusing sed.
15367 lt_compile=`echo "$ac_compile" | $SED \
15368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15370 -e 's:$: $lt_compiler_flag:'`
15371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15372 (eval "$lt_compile" 2>conftest.err)
15373 ac_status=$?
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 if (exit $ac_status) && test -s "$ac_outfile"; then
15377 # The compiler can only warn and ignore the option if not recognized
15378 # So say no if there are warnings other than the usual output.
15379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15382 lt_cv_prog_compiler_pic_works=yes
15385 $RM conftest*
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15389 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15391 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15392 case $lt_prog_compiler_pic in
15393 "" | " "*) ;;
15394 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15395 esac
15396 else
15397 lt_prog_compiler_pic=
15398 lt_prog_compiler_can_build_shared=no
15409 # Check to make sure the static flag actually works.
15411 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15413 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15414 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 lt_cv_prog_compiler_static_works=no
15418 save_LDFLAGS="$LDFLAGS"
15419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15422 # The linker can only warn and ignore the option if not recognized
15423 # So say no if there are warnings
15424 if test -s conftest.err; then
15425 # Append any errors to the config.log.
15426 cat conftest.err 1>&5
15427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15429 if diff conftest.exp conftest.er2 >/dev/null; then
15430 lt_cv_prog_compiler_static_works=yes
15432 else
15433 lt_cv_prog_compiler_static_works=yes
15436 $RM -r conftest*
15437 LDFLAGS="$save_LDFLAGS"
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15441 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15443 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15445 else
15446 lt_prog_compiler_static=
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15457 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15458 $as_echo_n "(cached) " >&6
15459 else
15460 lt_cv_prog_compiler_c_o=no
15461 $RM -r conftest 2>/dev/null
15462 mkdir conftest
15463 cd conftest
15464 mkdir out
15465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15467 lt_compiler_flag="-o out/conftest2.$ac_objext"
15468 # Insert the option either (1) after the last *FLAGS variable, or
15469 # (2) before a word containing "conftest.", or (3) at the end.
15470 # Note that $ac_compile itself does not contain backslashes and begins
15471 # with a dollar sign (not a hyphen), so the echo should work correctly.
15472 lt_compile=`echo "$ac_compile" | $SED \
15473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15475 -e 's:$: $lt_compiler_flag:'`
15476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15477 (eval "$lt_compile" 2>out/conftest.err)
15478 ac_status=$?
15479 cat out/conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15482 then
15483 # The compiler can only warn and ignore the option if not recognized
15484 # So say no if there are warnings
15485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15488 lt_cv_prog_compiler_c_o=yes
15491 chmod u+w . 2>&5
15492 $RM conftest*
15493 # SGI C++ compiler will create directory out/ii_files/ for
15494 # template instantiation
15495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15496 $RM out/* && rmdir out
15497 cd ..
15498 $RM -r conftest
15499 $RM conftest*
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15503 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15513 $as_echo_n "(cached) " >&6
15514 else
15515 lt_cv_prog_compiler_c_o=no
15516 $RM -r conftest 2>/dev/null
15517 mkdir conftest
15518 cd conftest
15519 mkdir out
15520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15522 lt_compiler_flag="-o out/conftest2.$ac_objext"
15523 # Insert the option either (1) after the last *FLAGS variable, or
15524 # (2) before a word containing "conftest.", or (3) at the end.
15525 # Note that $ac_compile itself does not contain backslashes and begins
15526 # with a dollar sign (not a hyphen), so the echo should work correctly.
15527 lt_compile=`echo "$ac_compile" | $SED \
15528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15530 -e 's:$: $lt_compiler_flag:'`
15531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15532 (eval "$lt_compile" 2>out/conftest.err)
15533 ac_status=$?
15534 cat out/conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15537 then
15538 # The compiler can only warn and ignore the option if not recognized
15539 # So say no if there are warnings
15540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15543 lt_cv_prog_compiler_c_o=yes
15546 chmod u+w . 2>&5
15547 $RM conftest*
15548 # SGI C++ compiler will create directory out/ii_files/ for
15549 # template instantiation
15550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15551 $RM out/* && rmdir out
15552 cd ..
15553 $RM -r conftest
15554 $RM conftest*
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15563 hard_links="nottested"
15564 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15565 # do not overwrite the value of need_locks provided by the user
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15567 $as_echo_n "checking if we can lock with hard links... " >&6; }
15568 hard_links=yes
15569 $RM conftest*
15570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15571 touch conftest.a
15572 ln conftest.a conftest.b 2>&5 || hard_links=no
15573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15575 $as_echo "$hard_links" >&6; }
15576 if test "$hard_links" = no; then
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15578 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15579 need_locks=warn
15581 else
15582 need_locks=no
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15591 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15593 runpath_var=
15594 allow_undefined_flag=
15595 always_export_symbols=no
15596 archive_cmds=
15597 archive_expsym_cmds=
15598 compiler_needs_object=no
15599 enable_shared_with_static_runtimes=no
15600 export_dynamic_flag_spec=
15601 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15602 hardcode_automatic=no
15603 hardcode_direct=no
15604 hardcode_direct_absolute=no
15605 hardcode_libdir_flag_spec=
15606 hardcode_libdir_flag_spec_ld=
15607 hardcode_libdir_separator=
15608 hardcode_minus_L=no
15609 hardcode_shlibpath_var=unsupported
15610 inherit_rpath=no
15611 link_all_deplibs=unknown
15612 module_cmds=
15613 module_expsym_cmds=
15614 old_archive_from_new_cmds=
15615 old_archive_from_expsyms_cmds=
15616 thread_safe_flag_spec=
15617 whole_archive_flag_spec=
15618 # include_expsyms should be a list of space-separated symbols to be *always*
15619 # included in the symbol list
15620 include_expsyms=
15621 # exclude_expsyms can be an extended regexp of symbols to exclude
15622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15624 # as well as any symbol that contains `d'.
15625 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15627 # platforms (ab)use it in PIC code, but their linkers get confused if
15628 # the symbol is explicitly referenced. Since portable code cannot
15629 # rely on this symbol name, it's probably fine to never include it in
15630 # preloaded symbol tables.
15631 # Exclude shared library initialization/finalization symbols.
15632 extract_expsyms_cmds=
15634 case $host_os in
15635 cygwin* | mingw* | pw32* | cegcc*)
15636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15637 # When not using gcc, we currently assume that we are using
15638 # Microsoft Visual C++.
15639 if test "$GCC" != yes; then
15640 with_gnu_ld=no
15643 interix*)
15644 # we just hope/assume this is gcc and not c89 (= MSVC++)
15645 with_gnu_ld=yes
15647 openbsd*)
15648 with_gnu_ld=no
15650 esac
15652 ld_shlibs=yes
15654 # On some targets, GNU ld is compatible enough with the native linker
15655 # that we're better off using the native interface for both.
15656 lt_use_gnu_ld_interface=no
15657 if test "$with_gnu_ld" = yes; then
15658 case $host_os in
15659 aix*)
15660 # The AIX port of GNU ld has always aspired to compatibility
15661 # with the native linker. However, as the warning in the GNU ld
15662 # block says, versions before 2.19.5* couldn't really create working
15663 # shared libraries, regardless of the interface used.
15664 case `$LD -v 2>&1` in
15665 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15666 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15667 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15669 lt_use_gnu_ld_interface=yes
15671 esac
15674 lt_use_gnu_ld_interface=yes
15676 esac
15679 if test "$lt_use_gnu_ld_interface" = yes; then
15680 # If archive_cmds runs LD, not CC, wlarc should be empty
15681 wlarc='${wl}'
15683 # Set some defaults for GNU ld with shared library support. These
15684 # are reset later if shared libraries are not supported. Putting them
15685 # here allows them to be overridden if necessary.
15686 runpath_var=LD_RUN_PATH
15687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15688 export_dynamic_flag_spec='${wl}--export-dynamic'
15689 # ancient GNU ld didn't support --whole-archive et. al.
15690 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15691 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15692 else
15693 whole_archive_flag_spec=
15695 supports_anon_versioning=no
15696 case `$LD -v 2>&1` in
15697 *GNU\ gold*) supports_anon_versioning=yes ;;
15698 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15699 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15700 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15701 *\ 2.11.*) ;; # other 2.11 versions
15702 *) supports_anon_versioning=yes ;;
15703 esac
15705 # See if GNU ld supports shared libraries.
15706 case $host_os in
15707 aix[3-9]*)
15708 # On AIX/PPC, the GNU linker is very broken
15709 if test "$host_cpu" != ia64; then
15710 ld_shlibs=no
15711 cat <<_LT_EOF 1>&2
15713 *** Warning: the GNU linker, at least up to release 2.19, is reported
15714 *** to be unable to reliably create shared libraries on AIX.
15715 *** Therefore, libtool is disabling shared libraries support. If you
15716 *** really care for shared libraries, you may want to install binutils
15717 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15718 *** You will then need to restart the configuration process.
15720 _LT_EOF
15724 amigaos*)
15725 case $host_cpu in
15726 powerpc)
15727 # see comment about AmigaOS4 .so support
15728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15729 archive_expsym_cmds=''
15731 m68k)
15732 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)'
15733 hardcode_libdir_flag_spec='-L$libdir'
15734 hardcode_minus_L=yes
15736 esac
15739 beos*)
15740 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15741 allow_undefined_flag=unsupported
15742 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15743 # support --undefined. This deserves some investigation. FIXME
15744 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15745 else
15746 ld_shlibs=no
15750 cygwin* | mingw* | pw32* | cegcc*)
15751 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15752 # as there is no search path for DLLs.
15753 hardcode_libdir_flag_spec='-L$libdir'
15754 export_dynamic_flag_spec='${wl}--export-all-symbols'
15755 allow_undefined_flag=unsupported
15756 always_export_symbols=no
15757 enable_shared_with_static_runtimes=yes
15758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15760 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15762 # If the export-symbols file already is a .def file (1st line
15763 # is EXPORTS), use it as is; otherwise, prepend...
15764 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15765 cp $export_symbols $output_objdir/$soname.def;
15766 else
15767 echo EXPORTS > $output_objdir/$soname.def;
15768 cat $export_symbols >> $output_objdir/$soname.def;
15770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15771 else
15772 ld_shlibs=no
15776 haiku*)
15777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15778 link_all_deplibs=yes
15781 interix[3-9]*)
15782 hardcode_direct=no
15783 hardcode_shlibpath_var=no
15784 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15785 export_dynamic_flag_spec='${wl}-E'
15786 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15787 # Instead, shared libraries are loaded at an image base (0x10000000 by
15788 # default) and relocated if they conflict, which is a slow very memory
15789 # consuming and fragmenting process. To avoid this, we pick a random,
15790 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15791 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15793 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'
15796 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15797 tmp_diet=no
15798 if test "$host_os" = linux-dietlibc; then
15799 case $cc_basename in
15800 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15801 esac
15803 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15804 && test "$tmp_diet" = no
15805 then
15806 tmp_addflag=
15807 tmp_sharedflag='-shared'
15808 case $cc_basename,$host_cpu in
15809 pgcc*) # Portland Group C compiler
15810 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'
15811 tmp_addflag=' $pic_flag'
15813 pgf77* | pgf90* | pgf95* | pgfortran*)
15814 # Portland Group f77 and f90 compilers
15815 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'
15816 tmp_addflag=' $pic_flag -Mnomain' ;;
15817 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15818 tmp_addflag=' -i_dynamic' ;;
15819 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15820 tmp_addflag=' -i_dynamic -nofor_main' ;;
15821 ifc* | ifort*) # Intel Fortran compiler
15822 tmp_addflag=' -nofor_main' ;;
15823 lf95*) # Lahey Fortran 8.1
15824 whole_archive_flag_spec=
15825 tmp_sharedflag='--shared' ;;
15826 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15827 tmp_sharedflag='-qmkshrobj'
15828 tmp_addflag= ;;
15829 nvcc*) # Cuda Compiler Driver 2.2
15830 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'
15831 compiler_needs_object=yes
15833 esac
15834 case `$CC -V 2>&1 | sed 5q` in
15835 *Sun\ C*) # Sun C 5.9
15836 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'
15837 compiler_needs_object=yes
15838 tmp_sharedflag='-G' ;;
15839 *Sun\ F*) # Sun Fortran 8.3
15840 tmp_sharedflag='-G' ;;
15841 esac
15842 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15844 if test "x$supports_anon_versioning" = xyes; then
15845 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15847 echo "local: *; };" >> $output_objdir/$libname.ver~
15848 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15851 case $cc_basename in
15852 xlf* | bgf* | bgxlf* | mpixlf*)
15853 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15854 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15855 hardcode_libdir_flag_spec=
15856 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15857 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15858 if test "x$supports_anon_versioning" = xyes; then
15859 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15860 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15861 echo "local: *; };" >> $output_objdir/$libname.ver~
15862 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15865 esac
15866 else
15867 ld_shlibs=no
15871 netbsd*)
15872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15873 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15874 wlarc=
15875 else
15876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15881 solaris*)
15882 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15883 ld_shlibs=no
15884 cat <<_LT_EOF 1>&2
15886 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15887 *** create shared libraries on Solaris systems. Therefore, libtool
15888 *** is disabling shared libraries support. We urge you to upgrade GNU
15889 *** binutils to release 2.9.1 or newer. Another option is to modify
15890 *** your PATH or compiler configuration so that the native linker is
15891 *** used, and then restart.
15893 _LT_EOF
15894 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15897 else
15898 ld_shlibs=no
15902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15903 case `$LD -v 2>&1` in
15904 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15905 ld_shlibs=no
15906 cat <<_LT_EOF 1>&2
15908 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15909 *** reliably create shared libraries on SCO systems. Therefore, libtool
15910 *** is disabling shared libraries support. We urge you to upgrade GNU
15911 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15912 *** your PATH or compiler configuration so that the native linker is
15913 *** used, and then restart.
15915 _LT_EOF
15918 # For security reasons, it is highly recommended that you always
15919 # use absolute paths for naming shared libraries, and exclude the
15920 # DT_RUNPATH tag from executables and libraries. But doing so
15921 # requires that you compile everything twice, which is a pain.
15922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15926 else
15927 ld_shlibs=no
15930 esac
15933 sunos4*)
15934 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15935 wlarc=
15936 hardcode_direct=yes
15937 hardcode_shlibpath_var=no
15941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15943 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15944 else
15945 ld_shlibs=no
15948 esac
15950 if test "$ld_shlibs" = no; then
15951 runpath_var=
15952 hardcode_libdir_flag_spec=
15953 export_dynamic_flag_spec=
15954 whole_archive_flag_spec=
15956 else
15957 # PORTME fill in a description of your system's linker (not GNU ld)
15958 case $host_os in
15959 aix3*)
15960 allow_undefined_flag=unsupported
15961 always_export_symbols=yes
15962 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'
15963 # Note: this linker hardcodes the directories in LIBPATH if there
15964 # are no directories specified by -L.
15965 hardcode_minus_L=yes
15966 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15967 # Neither direct hardcoding nor static linking is supported with a
15968 # broken collect2.
15969 hardcode_direct=unsupported
15973 aix[4-9]*)
15974 if test "$host_cpu" = ia64; then
15975 # On IA64, the linker does run time linking by default, so we don't
15976 # have to do anything special.
15977 aix_use_runtimelinking=no
15978 exp_sym_flag='-Bexport'
15979 no_entry_flag=""
15980 else
15981 # If we're using GNU nm, then we don't want the "-C" option.
15982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15983 # Also, AIX nm treats weak defined symbols like other global
15984 # defined symbols, whereas GNU nm marks them as "W".
15985 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15986 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'
15987 else
15988 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'
15990 aix_use_runtimelinking=no
15992 # Test if we are trying to use run time linking or normal
15993 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15994 # need to do runtime linking.
15995 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15996 for ld_flag in $LDFLAGS; do
15997 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15998 aix_use_runtimelinking=yes
15999 break
16001 done
16003 esac
16005 exp_sym_flag='-bexport'
16006 no_entry_flag='-bnoentry'
16009 # When large executables or shared objects are built, AIX ld can
16010 # have problems creating the table of contents. If linking a library
16011 # or program results in "error TOC overflow" add -mminimal-toc to
16012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16015 archive_cmds=''
16016 hardcode_direct=yes
16017 hardcode_direct_absolute=yes
16018 hardcode_libdir_separator=':'
16019 link_all_deplibs=yes
16020 file_list_spec='${wl}-f,'
16022 if test "$GCC" = yes; then
16023 case $host_os in aix4.[012]|aix4.[012].*)
16024 # We only want to do this on AIX 4.2 and lower, the check
16025 # below for broken collect2 doesn't work under 4.3+
16026 collect2name=`${CC} -print-prog-name=collect2`
16027 if test -f "$collect2name" &&
16028 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16029 then
16030 # We have reworked collect2
16032 else
16033 # We have old collect2
16034 hardcode_direct=unsupported
16035 # It fails to find uninstalled libraries when the uninstalled
16036 # path is not listed in the libpath. Setting hardcode_minus_L
16037 # to unsupported forces relinking
16038 hardcode_minus_L=yes
16039 hardcode_libdir_flag_spec='-L$libdir'
16040 hardcode_libdir_separator=
16043 esac
16044 shared_flag='-shared'
16045 if test "$aix_use_runtimelinking" = yes; then
16046 shared_flag="$shared_flag "'${wl}-G'
16048 else
16049 # not using gcc
16050 if test "$host_cpu" = ia64; then
16051 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16052 # chokes on -Wl,-G. The following line is correct:
16053 shared_flag='-G'
16054 else
16055 if test "$aix_use_runtimelinking" = yes; then
16056 shared_flag='${wl}-G'
16057 else
16058 shared_flag='${wl}-bM:SRE'
16063 export_dynamic_flag_spec='${wl}-bexpall'
16064 # It seems that -bexpall does not export symbols beginning with
16065 # underscore (_), so it is better to generate a list of symbols to export.
16066 always_export_symbols=yes
16067 if test "$aix_use_runtimelinking" = yes; then
16068 # Warning - without using the other runtime loading flags (-brtl),
16069 # -berok will link without error, but may produce a broken library.
16070 allow_undefined_flag='-berok'
16071 # Determine the default libpath from the value encoded in an
16072 # empty executable.
16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16074 /* end confdefs.h. */
16077 main ()
16081 return 0;
16083 _ACEOF
16084 if ac_fn_c_try_link "$LINENO"; then :
16086 lt_aix_libpath_sed='
16087 /Import File Strings/,/^$/ {
16088 /^0/ {
16089 s/^0 *\(.*\)$/\1/
16093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16094 # Check for a 64-bit object if we didn't find anything.
16095 if test -z "$aix_libpath"; then
16096 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16099 rm -f core conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
16101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16104 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"
16105 else
16106 if test "$host_cpu" = ia64; then
16107 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16108 allow_undefined_flag="-z nodefs"
16109 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"
16110 else
16111 # Determine the default libpath from the value encoded in an
16112 # empty executable.
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16117 main ()
16121 return 0;
16123 _ACEOF
16124 if ac_fn_c_try_link "$LINENO"; then :
16126 lt_aix_libpath_sed='
16127 /Import File Strings/,/^$/ {
16128 /^0/ {
16129 s/^0 *\(.*\)$/\1/
16133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16134 # Check for a 64-bit object if we didn't find anything.
16135 if test -z "$aix_libpath"; then
16136 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16144 # Warning - without using the other run time loading flags,
16145 # -berok will link without error, but may produce a broken library.
16146 no_undefined_flag=' ${wl}-bernotok'
16147 allow_undefined_flag=' ${wl}-berok'
16148 if test "$with_gnu_ld" = yes; then
16149 # We only use this code for GNU lds that support --whole-archive.
16150 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16151 else
16152 # Exported symbols can be pulled into shared objects from archives
16153 whole_archive_flag_spec='$convenience'
16155 archive_cmds_need_lc=yes
16156 # This is similar to how AIX traditionally builds its shared libraries.
16157 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'
16162 amigaos*)
16163 case $host_cpu in
16164 powerpc)
16165 # see comment about AmigaOS4 .so support
16166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16167 archive_expsym_cmds=''
16169 m68k)
16170 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)'
16171 hardcode_libdir_flag_spec='-L$libdir'
16172 hardcode_minus_L=yes
16174 esac
16177 bsdi[45]*)
16178 export_dynamic_flag_spec=-rdynamic
16181 cygwin* | mingw* | pw32* | cegcc*)
16182 # When not using gcc, we currently assume that we are using
16183 # Microsoft Visual C++.
16184 # hardcode_libdir_flag_spec is actually meaningless, as there is
16185 # no search path for DLLs.
16186 hardcode_libdir_flag_spec=' '
16187 allow_undefined_flag=unsupported
16188 # Tell ltmain to make .lib files, not .a files.
16189 libext=lib
16190 # Tell ltmain to make .dll files, not .so files.
16191 shrext_cmds=".dll"
16192 # FIXME: Setting linknames here is a bad hack.
16193 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16194 # The linker will automatically build a .lib file if we build a DLL.
16195 old_archive_from_new_cmds='true'
16196 # FIXME: Should let the user specify the lib program.
16197 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16198 fix_srcfile_path='`cygpath -w "$srcfile"`'
16199 enable_shared_with_static_runtimes=yes
16202 darwin* | rhapsody*)
16205 archive_cmds_need_lc=no
16206 hardcode_direct=no
16207 hardcode_automatic=yes
16208 hardcode_shlibpath_var=unsupported
16209 if test "$lt_cv_ld_force_load" = "yes"; then
16210 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\"`'
16211 else
16212 whole_archive_flag_spec=''
16214 link_all_deplibs=yes
16215 allow_undefined_flag="$_lt_dar_allow_undefined"
16216 case $cc_basename in
16217 ifort*) _lt_dar_can_shared=yes ;;
16218 *) _lt_dar_can_shared=$GCC ;;
16219 esac
16220 if test "$_lt_dar_can_shared" = "yes"; then
16221 output_verbose_link_cmd=func_echo_all
16222 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16223 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16224 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}"
16225 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}"
16227 else
16228 ld_shlibs=no
16233 dgux*)
16234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16235 hardcode_libdir_flag_spec='-L$libdir'
16236 hardcode_shlibpath_var=no
16239 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16240 # support. Future versions do this automatically, but an explicit c++rt0.o
16241 # does not break anything, and helps significantly (at the cost of a little
16242 # extra space).
16243 freebsd2.2*)
16244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16245 hardcode_libdir_flag_spec='-R$libdir'
16246 hardcode_direct=yes
16247 hardcode_shlibpath_var=no
16250 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16251 freebsd2.*)
16252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16253 hardcode_direct=yes
16254 hardcode_minus_L=yes
16255 hardcode_shlibpath_var=no
16258 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16259 freebsd* | dragonfly*)
16260 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16261 hardcode_libdir_flag_spec='-R$libdir'
16262 hardcode_direct=yes
16263 hardcode_shlibpath_var=no
16266 hpux9*)
16267 if test "$GCC" = yes; then
16268 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'
16269 else
16270 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'
16272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16273 hardcode_libdir_separator=:
16274 hardcode_direct=yes
16276 # hardcode_minus_L: Not really in the search PATH,
16277 # but as the default location of the library.
16278 hardcode_minus_L=yes
16279 export_dynamic_flag_spec='${wl}-E'
16282 hpux10*)
16283 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16284 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16285 else
16286 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16288 if test "$with_gnu_ld" = no; then
16289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16290 hardcode_libdir_flag_spec_ld='+b $libdir'
16291 hardcode_libdir_separator=:
16292 hardcode_direct=yes
16293 hardcode_direct_absolute=yes
16294 export_dynamic_flag_spec='${wl}-E'
16295 # hardcode_minus_L: Not really in the search PATH,
16296 # but as the default location of the library.
16297 hardcode_minus_L=yes
16301 hpux11*)
16302 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16303 case $host_cpu in
16304 hppa*64*)
16305 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16307 ia64*)
16308 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16311 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16313 esac
16314 else
16315 case $host_cpu in
16316 hppa*64*)
16317 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16319 ia64*)
16320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16324 # Older versions of the 11.00 compiler do not understand -b yet
16325 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16327 $as_echo_n "checking if $CC understands -b... " >&6; }
16328 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16331 lt_cv_prog_compiler__b=no
16332 save_LDFLAGS="$LDFLAGS"
16333 LDFLAGS="$LDFLAGS -b"
16334 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16336 # The linker can only warn and ignore the option if not recognized
16337 # So say no if there are warnings
16338 if test -s conftest.err; then
16339 # Append any errors to the config.log.
16340 cat conftest.err 1>&5
16341 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16343 if diff conftest.exp conftest.er2 >/dev/null; then
16344 lt_cv_prog_compiler__b=yes
16346 else
16347 lt_cv_prog_compiler__b=yes
16350 $RM -r conftest*
16351 LDFLAGS="$save_LDFLAGS"
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16355 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16357 if test x"$lt_cv_prog_compiler__b" = xyes; then
16358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16359 else
16360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16364 esac
16366 if test "$with_gnu_ld" = no; then
16367 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16368 hardcode_libdir_separator=:
16370 case $host_cpu in
16371 hppa*64*|ia64*)
16372 hardcode_direct=no
16373 hardcode_shlibpath_var=no
16376 hardcode_direct=yes
16377 hardcode_direct_absolute=yes
16378 export_dynamic_flag_spec='${wl}-E'
16380 # hardcode_minus_L: Not really in the search PATH,
16381 # but as the default location of the library.
16382 hardcode_minus_L=yes
16384 esac
16388 irix5* | irix6* | nonstopux*)
16389 if test "$GCC" = yes; then
16390 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'
16391 # Try to use the -exported_symbol ld option, if it does not
16392 # work, assume that -exports_file does not work either and
16393 # implicitly export all symbols.
16394 save_LDFLAGS="$LDFLAGS"
16395 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 int foo(void) {}
16399 _ACEOF
16400 if ac_fn_c_try_link "$LINENO"; then :
16401 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'
16404 rm -f core conftest.err conftest.$ac_objext \
16405 conftest$ac_exeext conftest.$ac_ext
16406 LDFLAGS="$save_LDFLAGS"
16407 else
16408 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'
16409 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'
16411 archive_cmds_need_lc='no'
16412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16413 hardcode_libdir_separator=:
16414 inherit_rpath=yes
16415 link_all_deplibs=yes
16418 netbsd*)
16419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16421 else
16422 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16424 hardcode_libdir_flag_spec='-R$libdir'
16425 hardcode_direct=yes
16426 hardcode_shlibpath_var=no
16429 newsos6)
16430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16431 hardcode_direct=yes
16432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16433 hardcode_libdir_separator=:
16434 hardcode_shlibpath_var=no
16437 *nto* | *qnx*)
16440 openbsd*)
16441 if test -f /usr/libexec/ld.so; then
16442 hardcode_direct=yes
16443 hardcode_shlibpath_var=no
16444 hardcode_direct_absolute=yes
16445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16447 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16449 export_dynamic_flag_spec='${wl}-E'
16450 else
16451 case $host_os in
16452 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16454 hardcode_libdir_flag_spec='-R$libdir'
16457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16460 esac
16462 else
16463 ld_shlibs=no
16467 os2*)
16468 hardcode_libdir_flag_spec='-L$libdir'
16469 hardcode_minus_L=yes
16470 allow_undefined_flag=unsupported
16471 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'
16472 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16475 osf3*)
16476 if test "$GCC" = yes; then
16477 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16478 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'
16479 else
16480 allow_undefined_flag=' -expect_unresolved \*'
16481 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'
16483 archive_cmds_need_lc='no'
16484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16485 hardcode_libdir_separator=:
16488 osf4* | osf5*) # as osf3* with the addition of -msym flag
16489 if test "$GCC" = yes; then
16490 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16491 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'
16492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16493 else
16494 allow_undefined_flag=' -expect_unresolved \*'
16495 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'
16496 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~
16497 $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'
16499 # Both c and cxx compiler support -rpath directly
16500 hardcode_libdir_flag_spec='-rpath $libdir'
16502 archive_cmds_need_lc='no'
16503 hardcode_libdir_separator=:
16506 solaris*)
16507 no_undefined_flag=' -z defs'
16508 if test "$GCC" = yes; then
16509 wlarc='${wl}'
16510 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16512 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16513 else
16514 case `$CC -V 2>&1` in
16515 *"Compilers 5.0"*)
16516 wlarc=''
16517 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16522 wlarc='${wl}'
16523 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16525 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16527 esac
16529 hardcode_libdir_flag_spec='-R$libdir'
16530 hardcode_shlibpath_var=no
16531 case $host_os in
16532 solaris2.[0-5] | solaris2.[0-5].*) ;;
16534 # The compiler driver will combine and reorder linker options,
16535 # but understands `-z linker_flag'. GCC discards it without `$wl',
16536 # but is careful enough not to reorder.
16537 # Supported since Solaris 2.6 (maybe 2.5.1?)
16538 if test "$GCC" = yes; then
16539 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16540 else
16541 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16544 esac
16545 link_all_deplibs=yes
16548 sunos4*)
16549 if test "x$host_vendor" = xsequent; then
16550 # Use $CC to link under sequent, because it throws in some extra .o
16551 # files that make .init and .fini sections work.
16552 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16553 else
16554 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_libdir_flag_spec='-L$libdir'
16557 hardcode_direct=yes
16558 hardcode_minus_L=yes
16559 hardcode_shlibpath_var=no
16562 sysv4)
16563 case $host_vendor in
16564 sni)
16565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_direct=yes # is this really true???
16568 siemens)
16569 ## LD is ld it makes a PLAMLIB
16570 ## CC just makes a GrossModule.
16571 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16572 reload_cmds='$CC -r -o $output$reload_objs'
16573 hardcode_direct=no
16575 motorola)
16576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16577 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16579 esac
16580 runpath_var='LD_RUN_PATH'
16581 hardcode_shlibpath_var=no
16584 sysv4.3*)
16585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586 hardcode_shlibpath_var=no
16587 export_dynamic_flag_spec='-Bexport'
16590 sysv4*MP*)
16591 if test -d /usr/nec; then
16592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16593 hardcode_shlibpath_var=no
16594 runpath_var=LD_RUN_PATH
16595 hardcode_runpath_var=yes
16596 ld_shlibs=yes
16600 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16601 no_undefined_flag='${wl}-z,text'
16602 archive_cmds_need_lc=no
16603 hardcode_shlibpath_var=no
16604 runpath_var='LD_RUN_PATH'
16606 if test "$GCC" = yes; then
16607 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16609 else
16610 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16615 sysv5* | sco3.2v5* | sco5v6*)
16616 # Note: We can NOT use -z defs as we might desire, because we do not
16617 # link with -lc, and that would cause any symbols used from libc to
16618 # always be unresolved, which means just about no library would
16619 # ever link correctly. If we're not using GNU ld we use -z text
16620 # though, which does catch some bad symbols but isn't as heavy-handed
16621 # as -z defs.
16622 no_undefined_flag='${wl}-z,text'
16623 allow_undefined_flag='${wl}-z,nodefs'
16624 archive_cmds_need_lc=no
16625 hardcode_shlibpath_var=no
16626 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16627 hardcode_libdir_separator=':'
16628 link_all_deplibs=yes
16629 export_dynamic_flag_spec='${wl}-Bexport'
16630 runpath_var='LD_RUN_PATH'
16632 if test "$GCC" = yes; then
16633 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16634 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16635 else
16636 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16637 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16641 uts4*)
16642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16643 hardcode_libdir_flag_spec='-L$libdir'
16644 hardcode_shlibpath_var=no
16648 ld_shlibs=no
16650 esac
16652 if test x$host_vendor = xsni; then
16653 case $host in
16654 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16655 export_dynamic_flag_spec='${wl}-Blargedynsym'
16657 esac
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16662 $as_echo "$ld_shlibs" >&6; }
16663 test "$ld_shlibs" = no && can_build_shared=no
16665 with_gnu_ld=$with_gnu_ld
16682 # Do we need to explicitly link libc?
16684 case "x$archive_cmds_need_lc" in
16685 x|xyes)
16686 # Assume -lc should be added
16687 archive_cmds_need_lc=yes
16689 if test "$enable_shared" = yes && test "$GCC" = yes; then
16690 case $archive_cmds in
16691 *'~'*)
16692 # FIXME: we may have to deal with multi-command sequences.
16694 '$CC '*)
16695 # Test whether the compiler implicitly links with -lc since on some
16696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16697 # to ld, don't add -lc before -lgcc.
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16699 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16700 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 $RM conftest*
16704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16707 (eval $ac_compile) 2>&5
16708 ac_status=$?
16709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16710 test $ac_status = 0; } 2>conftest.err; then
16711 soname=conftest
16712 lib=conftest
16713 libobjs=conftest.$ac_objext
16714 deplibs=
16715 wl=$lt_prog_compiler_wl
16716 pic_flag=$lt_prog_compiler_pic
16717 compiler_flags=-v
16718 linker_flags=-v
16719 verstring=
16720 output_objdir=.
16721 libname=conftest
16722 lt_save_allow_undefined_flag=$allow_undefined_flag
16723 allow_undefined_flag=
16724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16725 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16726 ac_status=$?
16727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16728 test $ac_status = 0; }
16729 then
16730 lt_cv_archive_cmds_need_lc=no
16731 else
16732 lt_cv_archive_cmds_need_lc=yes
16734 allow_undefined_flag=$lt_save_allow_undefined_flag
16735 else
16736 cat conftest.err 1>&5
16738 $RM conftest*
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16742 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16743 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16745 esac
16748 esac
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16907 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16909 if test "$GCC" = yes; then
16910 case $host_os in
16911 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16912 *) lt_awk_arg="/^libraries:/" ;;
16913 esac
16914 case $host_os in
16915 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16916 *) lt_sed_strip_eq="s,=/,/,g" ;;
16917 esac
16918 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16919 case $lt_search_path_spec in
16920 *\;*)
16921 # if the path contains ";" then we assume it to be the separator
16922 # otherwise default to the standard path separator (i.e. ":") - it is
16923 # assumed that no part of a normal pathname contains ";" but that should
16924 # okay in the real world where ";" in dirpaths is itself problematic.
16925 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16928 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16930 esac
16931 # Ok, now we have the path, separated by spaces, we can step through it
16932 # and add multilib dir if necessary.
16933 lt_tmp_lt_search_path_spec=
16934 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16935 for lt_sys_path in $lt_search_path_spec; do
16936 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16937 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16938 else
16939 test -d "$lt_sys_path" && \
16940 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16942 done
16943 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16944 BEGIN {RS=" "; FS="/|\n";} {
16945 lt_foo="";
16946 lt_count=0;
16947 for (lt_i = NF; lt_i > 0; lt_i--) {
16948 if ($lt_i != "" && $lt_i != ".") {
16949 if ($lt_i == "..") {
16950 lt_count++;
16951 } else {
16952 if (lt_count == 0) {
16953 lt_foo="/" $lt_i lt_foo;
16954 } else {
16955 lt_count--;
16960 if (lt_foo != "") { lt_freq[lt_foo]++; }
16961 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16963 # AWK program above erroneously prepends '/' to C:/dos/paths
16964 # for these hosts.
16965 case $host_os in
16966 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16967 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16968 esac
16969 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16970 else
16971 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16973 library_names_spec=
16974 libname_spec='lib$name'
16975 soname_spec=
16976 shrext_cmds=".so"
16977 postinstall_cmds=
16978 postuninstall_cmds=
16979 finish_cmds=
16980 finish_eval=
16981 shlibpath_var=
16982 shlibpath_overrides_runpath=unknown
16983 version_type=none
16984 dynamic_linker="$host_os ld.so"
16985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16986 need_lib_prefix=unknown
16987 hardcode_into_libs=no
16989 # when you set need_version to no, make sure it does not cause -set_version
16990 # flags to be left without arguments
16991 need_version=unknown
16993 case $host_os in
16994 aix3*)
16995 version_type=linux
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16997 shlibpath_var=LIBPATH
16999 # AIX 3 has no versioning support, so we append a major version to the name.
17000 soname_spec='${libname}${release}${shared_ext}$major'
17003 aix[4-9]*)
17004 version_type=linux
17005 need_lib_prefix=no
17006 need_version=no
17007 hardcode_into_libs=yes
17008 if test "$host_cpu" = ia64; then
17009 # AIX 5 supports IA64
17010 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 else
17013 # With GCC up to 2.95.x, collect2 would create an import file
17014 # for dependence libraries. The import file would start with
17015 # the line `#! .'. This would cause the generated library to
17016 # depend on `.', always an invalid library. This was fixed in
17017 # development snapshots of GCC prior to 3.0.
17018 case $host_os in
17019 aix4 | aix4.[01] | aix4.[01].*)
17020 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17021 echo ' yes '
17022 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17024 else
17025 can_build_shared=no
17028 esac
17029 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17030 # soname into executable. Probably we can add versioning support to
17031 # collect2, so additional links can be useful in future.
17032 if test "$aix_use_runtimelinking" = yes; then
17033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17034 # instead of lib<name>.a to let people know that these are not
17035 # typical AIX shared libraries.
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17037 else
17038 # We preserve .a as extension for shared libraries through AIX4.2
17039 # and later when we are not doing run time linking.
17040 library_names_spec='${libname}${release}.a $libname.a'
17041 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LIBPATH
17047 amigaos*)
17048 case $host_cpu in
17049 powerpc)
17050 # Since July 2007 AmigaOS4 officially supports .so libraries.
17051 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054 m68k)
17055 library_names_spec='$libname.ixlibrary $libname.a'
17056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17057 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'
17059 esac
17062 beos*)
17063 library_names_spec='${libname}${shared_ext}'
17064 dynamic_linker="$host_os ld.so"
17065 shlibpath_var=LIBRARY_PATH
17068 bsdi[45]*)
17069 version_type=linux
17070 need_version=no
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17074 shlibpath_var=LD_LIBRARY_PATH
17075 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17076 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17077 # the default ld.so.conf also contains /usr/contrib/lib and
17078 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17079 # libtool to hard-code these into programs
17082 cygwin* | mingw* | pw32* | cegcc*)
17083 version_type=windows
17084 shrext_cmds=".dll"
17085 need_version=no
17086 need_lib_prefix=no
17088 case $GCC,$host_os in
17089 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17090 library_names_spec='$libname.dll.a'
17091 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17092 postinstall_cmds='base_file=`basename \${file}`~
17093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17094 dldir=$destdir/`dirname \$dlpath`~
17095 test -d \$dldir || mkdir -p \$dldir~
17096 $install_prog $dir/$dlname \$dldir/$dlname~
17097 chmod a+x \$dldir/$dlname~
17098 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17099 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17102 dlpath=$dir/\$dldll~
17103 $RM \$dlpath'
17104 shlibpath_overrides_runpath=yes
17106 case $host_os in
17107 cygwin*)
17108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17111 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17113 mingw* | cegcc*)
17114 # MinGW DLLs use traditional 'lib' prefix
17115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17117 pw32*)
17118 # pw32 DLLs use 'pw' prefix rather than 'lib'
17119 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17121 esac
17125 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17127 esac
17128 dynamic_linker='Win32 ld.exe'
17129 # FIXME: first we should search . and the directory the executable is in
17130 shlibpath_var=PATH
17133 darwin* | rhapsody*)
17134 dynamic_linker="$host_os dyld"
17135 version_type=darwin
17136 need_lib_prefix=no
17137 need_version=no
17138 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17139 soname_spec='${libname}${release}${major}$shared_ext'
17140 shlibpath_overrides_runpath=yes
17141 shlibpath_var=DYLD_LIBRARY_PATH
17142 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17144 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17145 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17148 dgux*)
17149 version_type=linux
17150 need_lib_prefix=no
17151 need_version=no
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17157 freebsd* | dragonfly*)
17158 # DragonFly does not have aout. When/if they implement a new
17159 # versioning mechanism, adjust this.
17160 if test -x /usr/bin/objformat; then
17161 objformat=`/usr/bin/objformat`
17162 else
17163 case $host_os in
17164 freebsd[23].*) objformat=aout ;;
17165 *) objformat=elf ;;
17166 esac
17168 version_type=freebsd-$objformat
17169 case $version_type in
17170 freebsd-elf*)
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17172 need_version=no
17173 need_lib_prefix=no
17175 freebsd-*)
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17177 need_version=yes
17179 esac
17180 shlibpath_var=LD_LIBRARY_PATH
17181 case $host_os in
17182 freebsd2.*)
17183 shlibpath_overrides_runpath=yes
17185 freebsd3.[01]* | freebsdelf3.[01]*)
17186 shlibpath_overrides_runpath=yes
17187 hardcode_into_libs=yes
17189 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17190 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17191 shlibpath_overrides_runpath=no
17192 hardcode_into_libs=yes
17194 *) # from 4.6 on, and DragonFly
17195 shlibpath_overrides_runpath=yes
17196 hardcode_into_libs=yes
17198 esac
17201 gnu*)
17202 version_type=linux
17203 need_lib_prefix=no
17204 need_version=no
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 hardcode_into_libs=yes
17211 haiku*)
17212 version_type=linux
17213 need_lib_prefix=no
17214 need_version=no
17215 dynamic_linker="$host_os runtime_loader"
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17217 soname_spec='${libname}${release}${shared_ext}$major'
17218 shlibpath_var=LIBRARY_PATH
17219 shlibpath_overrides_runpath=yes
17220 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17221 hardcode_into_libs=yes
17224 hpux9* | hpux10* | hpux11*)
17225 # Give a soname corresponding to the major version so that dld.sl refuses to
17226 # link against other versions.
17227 version_type=sunos
17228 need_lib_prefix=no
17229 need_version=no
17230 case $host_cpu in
17231 ia64*)
17232 shrext_cmds='.so'
17233 hardcode_into_libs=yes
17234 dynamic_linker="$host_os dld.so"
17235 shlibpath_var=LD_LIBRARY_PATH
17236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238 soname_spec='${libname}${release}${shared_ext}$major'
17239 if test "X$HPUX_IA64_MODE" = X32; then
17240 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17241 else
17242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17246 hppa*64*)
17247 shrext_cmds='.sl'
17248 hardcode_into_libs=yes
17249 dynamic_linker="$host_os dld.sl"
17250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17258 shrext_cmds='.sl'
17259 dynamic_linker="$host_os dld.sl"
17260 shlibpath_var=SHLIB_PATH
17261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17265 esac
17266 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17267 postinstall_cmds='chmod 555 $lib'
17268 # or fails outright, so override atomically:
17269 install_override_mode=555
17272 interix[3-9]*)
17273 version_type=linux
17274 need_lib_prefix=no
17275 need_version=no
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=no
17281 hardcode_into_libs=yes
17284 irix5* | irix6* | nonstopux*)
17285 case $host_os in
17286 nonstopux*) version_type=nonstopux ;;
17288 if test "$lt_cv_prog_gnu_ld" = yes; then
17289 version_type=linux
17290 else
17291 version_type=irix
17292 fi ;;
17293 esac
17294 need_lib_prefix=no
17295 need_version=no
17296 soname_spec='${libname}${release}${shared_ext}$major'
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17298 case $host_os in
17299 irix5* | nonstopux*)
17300 libsuff= shlibsuff=
17303 case $LD in # libtool.m4 will add one of these switches to LD
17304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17305 libsuff= shlibsuff= libmagic=32-bit;;
17306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17307 libsuff=32 shlibsuff=N32 libmagic=N32;;
17308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17310 *) libsuff= shlibsuff= libmagic=never-match;;
17311 esac
17313 esac
17314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17315 shlibpath_overrides_runpath=no
17316 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17317 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17318 hardcode_into_libs=yes
17321 # No shared lib support for Linux oldld, aout, or coff.
17322 linux*oldld* | linux*aout* | linux*coff*)
17323 dynamic_linker=no
17326 # This must be Linux ELF.
17327 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17328 version_type=linux
17329 need_lib_prefix=no
17330 need_version=no
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17334 shlibpath_var=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath=no
17337 # Some binutils ld are patched to set DT_RUNPATH
17338 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17339 $as_echo_n "(cached) " >&6
17340 else
17341 lt_cv_shlibpath_overrides_runpath=no
17342 save_LDFLAGS=$LDFLAGS
17343 save_libdir=$libdir
17344 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17345 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h. */
17350 main ()
17354 return 0;
17356 _ACEOF
17357 if ac_fn_c_try_link "$LINENO"; then :
17358 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17359 lt_cv_shlibpath_overrides_runpath=yes
17362 rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17364 LDFLAGS=$save_LDFLAGS
17365 libdir=$save_libdir
17369 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17371 # This implies no fast_install, which is unacceptable.
17372 # Some rework will be needed to allow for fast_install
17373 # before this can be enabled.
17374 hardcode_into_libs=yes
17376 # Append ld.so.conf contents to the search path
17377 if test -f /etc/ld.so.conf; then
17378 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' ' '`
17379 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17382 # We used to test for /lib/ld.so.1 and disable shared libraries on
17383 # powerpc, because MkLinux only supported shared libraries with the
17384 # GNU dynamic linker. Since this was broken with cross compilers,
17385 # most powerpc-linux boxes support dynamic linking these days and
17386 # people can always --disable-shared, the test was removed, and we
17387 # assume the GNU/Linux dynamic linker is in use.
17388 dynamic_linker='GNU/Linux ld.so'
17391 netbsd*)
17392 version_type=sunos
17393 need_lib_prefix=no
17394 need_version=no
17395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17398 dynamic_linker='NetBSD (a.out) ld.so'
17399 else
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 dynamic_linker='NetBSD ld.elf_so'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 shlibpath_overrides_runpath=yes
17406 hardcode_into_libs=yes
17409 newsos6)
17410 version_type=linux
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath=yes
17416 *nto* | *qnx*)
17417 version_type=qnx
17418 need_lib_prefix=no
17419 need_version=no
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421 soname_spec='${libname}${release}${shared_ext}$major'
17422 shlibpath_var=LD_LIBRARY_PATH
17423 shlibpath_overrides_runpath=no
17424 hardcode_into_libs=yes
17425 dynamic_linker='ldqnx.so'
17428 openbsd*)
17429 version_type=sunos
17430 sys_lib_dlsearch_path_spec="/usr/lib"
17431 need_lib_prefix=no
17432 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17433 case $host_os in
17434 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17435 *) need_version=no ;;
17436 esac
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17439 shlibpath_var=LD_LIBRARY_PATH
17440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17441 case $host_os in
17442 openbsd2.[89] | openbsd2.[89].*)
17443 shlibpath_overrides_runpath=no
17446 shlibpath_overrides_runpath=yes
17448 esac
17449 else
17450 shlibpath_overrides_runpath=yes
17454 os2*)
17455 libname_spec='$name'
17456 shrext_cmds=".dll"
17457 need_lib_prefix=no
17458 library_names_spec='$libname${shared_ext} $libname.a'
17459 dynamic_linker='OS/2 ld.exe'
17460 shlibpath_var=LIBPATH
17463 osf3* | osf4* | osf5*)
17464 version_type=osf
17465 need_lib_prefix=no
17466 need_version=no
17467 soname_spec='${libname}${release}${shared_ext}$major'
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17469 shlibpath_var=LD_LIBRARY_PATH
17470 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17471 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17474 rdos*)
17475 dynamic_linker=no
17478 solaris*)
17479 version_type=linux
17480 need_lib_prefix=no
17481 need_version=no
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483 soname_spec='${libname}${release}${shared_ext}$major'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 shlibpath_overrides_runpath=yes
17486 hardcode_into_libs=yes
17487 # ldd complains unless libraries are executable
17488 postinstall_cmds='chmod +x $lib'
17491 sunos4*)
17492 version_type=sunos
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17494 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=yes
17497 if test "$with_gnu_ld" = yes; then
17498 need_lib_prefix=no
17500 need_version=yes
17503 sysv4 | sysv4.3*)
17504 version_type=linux
17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506 soname_spec='${libname}${release}${shared_ext}$major'
17507 shlibpath_var=LD_LIBRARY_PATH
17508 case $host_vendor in
17509 sni)
17510 shlibpath_overrides_runpath=no
17511 need_lib_prefix=no
17512 runpath_var=LD_RUN_PATH
17514 siemens)
17515 need_lib_prefix=no
17517 motorola)
17518 need_lib_prefix=no
17519 need_version=no
17520 shlibpath_overrides_runpath=no
17521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17523 esac
17526 sysv4*MP*)
17527 if test -d /usr/nec ;then
17528 version_type=linux
17529 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17530 soname_spec='$libname${shared_ext}.$major'
17531 shlibpath_var=LD_LIBRARY_PATH
17535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17536 version_type=freebsd-elf
17537 need_lib_prefix=no
17538 need_version=no
17539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17540 soname_spec='${libname}${release}${shared_ext}$major'
17541 shlibpath_var=LD_LIBRARY_PATH
17542 shlibpath_overrides_runpath=yes
17543 hardcode_into_libs=yes
17544 if test "$with_gnu_ld" = yes; then
17545 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17546 else
17547 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17548 case $host_os in
17549 sco3.2v5*)
17550 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17552 esac
17554 sys_lib_dlsearch_path_spec='/usr/lib'
17557 tpf*)
17558 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17559 version_type=linux
17560 need_lib_prefix=no
17561 need_version=no
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 shlibpath_overrides_runpath=no
17565 hardcode_into_libs=yes
17568 uts4*)
17569 version_type=linux
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17571 soname_spec='${libname}${release}${shared_ext}$major'
17572 shlibpath_var=LD_LIBRARY_PATH
17576 dynamic_linker=no
17578 esac
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17580 $as_echo "$dynamic_linker" >&6; }
17581 test "$dynamic_linker" = no && can_build_shared=no
17583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17584 if test "$GCC" = yes; then
17585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17588 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17589 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17591 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17592 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17687 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17688 hardcode_action=
17689 if test -n "$hardcode_libdir_flag_spec" ||
17690 test -n "$runpath_var" ||
17691 test "X$hardcode_automatic" = "Xyes" ; then
17693 # We can hardcode non-existent directories.
17694 if test "$hardcode_direct" != no &&
17695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17696 # have to relink, otherwise we might link with an installed library
17697 # when we should be linking with a yet-to-be-installed one
17698 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17699 test "$hardcode_minus_L" != no; then
17700 # Linking always hardcodes the temporary library directory.
17701 hardcode_action=relink
17702 else
17703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17704 hardcode_action=immediate
17706 else
17707 # We cannot hardcode anything, or else we can only hardcode existing
17708 # directories.
17709 hardcode_action=unsupported
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17712 $as_echo "$hardcode_action" >&6; }
17714 if test "$hardcode_action" = relink ||
17715 test "$inherit_rpath" = yes; then
17716 # Fast installation is not supported
17717 enable_fast_install=no
17718 elif test "$shlibpath_overrides_runpath" = yes ||
17719 test "$enable_shared" = no; then
17720 # Fast installation is not necessary
17721 enable_fast_install=needless
17729 if test "x$enable_dlopen" != xyes; then
17730 enable_dlopen=unknown
17731 enable_dlopen_self=unknown
17732 enable_dlopen_self_static=unknown
17733 else
17734 lt_cv_dlopen=no
17735 lt_cv_dlopen_libs=
17737 case $host_os in
17738 beos*)
17739 lt_cv_dlopen="load_add_on"
17740 lt_cv_dlopen_libs=
17741 lt_cv_dlopen_self=yes
17744 mingw* | pw32* | cegcc*)
17745 lt_cv_dlopen="LoadLibrary"
17746 lt_cv_dlopen_libs=
17749 cygwin*)
17750 lt_cv_dlopen="dlopen"
17751 lt_cv_dlopen_libs=
17754 darwin*)
17755 # if libdl is installed we need to link against it
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17757 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17759 $as_echo_n "(cached) " >&6
17760 else
17761 ac_check_lib_save_LIBS=$LIBS
17762 LIBS="-ldl $LIBS"
17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h. */
17766 /* Override any GCC internal prototype to avoid an error.
17767 Use char because int might match the return type of a GCC
17768 builtin and then its argument prototype would still apply. */
17769 #ifdef __cplusplus
17770 extern "C"
17771 #endif
17772 char dlopen ();
17774 main ()
17776 return dlopen ();
17778 return 0;
17780 _ACEOF
17781 if ac_fn_c_try_link "$LINENO"; then :
17782 ac_cv_lib_dl_dlopen=yes
17783 else
17784 ac_cv_lib_dl_dlopen=no
17786 rm -f core conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
17788 LIBS=$ac_check_lib_save_LIBS
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17791 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17792 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17794 else
17796 lt_cv_dlopen="dyld"
17797 lt_cv_dlopen_libs=
17798 lt_cv_dlopen_self=yes
17805 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17806 if test "x$ac_cv_func_shl_load" = x""yes; then :
17807 lt_cv_dlopen="shl_load"
17808 else
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17810 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17811 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17812 $as_echo_n "(cached) " >&6
17813 else
17814 ac_check_lib_save_LIBS=$LIBS
17815 LIBS="-ldld $LIBS"
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17819 /* Override any GCC internal prototype to avoid an error.
17820 Use char because int might match the return type of a GCC
17821 builtin and then its argument prototype would still apply. */
17822 #ifdef __cplusplus
17823 extern "C"
17824 #endif
17825 char shl_load ();
17827 main ()
17829 return shl_load ();
17831 return 0;
17833 _ACEOF
17834 if ac_fn_c_try_link "$LINENO"; then :
17835 ac_cv_lib_dld_shl_load=yes
17836 else
17837 ac_cv_lib_dld_shl_load=no
17839 rm -f core conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17844 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17845 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17846 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17847 else
17848 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17849 if test "x$ac_cv_func_dlopen" = x""yes; then :
17850 lt_cv_dlopen="dlopen"
17851 else
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17853 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17854 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17855 $as_echo_n "(cached) " >&6
17856 else
17857 ac_check_lib_save_LIBS=$LIBS
17858 LIBS="-ldl $LIBS"
17859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860 /* end confdefs.h. */
17862 /* Override any GCC internal prototype to avoid an error.
17863 Use char because int might match the return type of a GCC
17864 builtin and then its argument prototype would still apply. */
17865 #ifdef __cplusplus
17866 extern "C"
17867 #endif
17868 char dlopen ();
17870 main ()
17872 return dlopen ();
17874 return 0;
17876 _ACEOF
17877 if ac_fn_c_try_link "$LINENO"; then :
17878 ac_cv_lib_dl_dlopen=yes
17879 else
17880 ac_cv_lib_dl_dlopen=no
17882 rm -f core conftest.err conftest.$ac_objext \
17883 conftest$ac_exeext conftest.$ac_ext
17884 LIBS=$ac_check_lib_save_LIBS
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17887 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17888 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17890 else
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17892 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17893 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17894 $as_echo_n "(cached) " >&6
17895 else
17896 ac_check_lib_save_LIBS=$LIBS
17897 LIBS="-lsvld $LIBS"
17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17901 /* Override any GCC internal prototype to avoid an error.
17902 Use char because int might match the return type of a GCC
17903 builtin and then its argument prototype would still apply. */
17904 #ifdef __cplusplus
17905 extern "C"
17906 #endif
17907 char dlopen ();
17909 main ()
17911 return dlopen ();
17913 return 0;
17915 _ACEOF
17916 if ac_fn_c_try_link "$LINENO"; then :
17917 ac_cv_lib_svld_dlopen=yes
17918 else
17919 ac_cv_lib_svld_dlopen=no
17921 rm -f core conftest.err conftest.$ac_objext \
17922 conftest$ac_exeext conftest.$ac_ext
17923 LIBS=$ac_check_lib_save_LIBS
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17926 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17927 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17929 else
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17931 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17932 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17933 $as_echo_n "(cached) " >&6
17934 else
17935 ac_check_lib_save_LIBS=$LIBS
17936 LIBS="-ldld $LIBS"
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17940 /* Override any GCC internal prototype to avoid an error.
17941 Use char because int might match the return type of a GCC
17942 builtin and then its argument prototype would still apply. */
17943 #ifdef __cplusplus
17944 extern "C"
17945 #endif
17946 char dld_link ();
17948 main ()
17950 return dld_link ();
17952 return 0;
17954 _ACEOF
17955 if ac_fn_c_try_link "$LINENO"; then :
17956 ac_cv_lib_dld_dld_link=yes
17957 else
17958 ac_cv_lib_dld_dld_link=no
17960 rm -f core conftest.err conftest.$ac_objext \
17961 conftest$ac_exeext conftest.$ac_ext
17962 LIBS=$ac_check_lib_save_LIBS
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17965 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17966 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17967 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17986 esac
17988 if test "x$lt_cv_dlopen" != xno; then
17989 enable_dlopen=yes
17990 else
17991 enable_dlopen=no
17994 case $lt_cv_dlopen in
17995 dlopen)
17996 save_CPPFLAGS="$CPPFLAGS"
17997 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17999 save_LDFLAGS="$LDFLAGS"
18000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18002 save_LIBS="$LIBS"
18003 LIBS="$lt_cv_dlopen_libs $LIBS"
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18006 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18007 if test "${lt_cv_dlopen_self+set}" = set; then :
18008 $as_echo_n "(cached) " >&6
18009 else
18010 if test "$cross_compiling" = yes; then :
18011 lt_cv_dlopen_self=cross
18012 else
18013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18014 lt_status=$lt_dlunknown
18015 cat > conftest.$ac_ext <<_LT_EOF
18016 #line 18016 "configure"
18017 #include "confdefs.h"
18019 #if HAVE_DLFCN_H
18020 #include <dlfcn.h>
18021 #endif
18023 #include <stdio.h>
18025 #ifdef RTLD_GLOBAL
18026 # define LT_DLGLOBAL RTLD_GLOBAL
18027 #else
18028 # ifdef DL_GLOBAL
18029 # define LT_DLGLOBAL DL_GLOBAL
18030 # else
18031 # define LT_DLGLOBAL 0
18032 # endif
18033 #endif
18035 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18036 find out it does not work in some platform. */
18037 #ifndef LT_DLLAZY_OR_NOW
18038 # ifdef RTLD_LAZY
18039 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18040 # else
18041 # ifdef DL_LAZY
18042 # define LT_DLLAZY_OR_NOW DL_LAZY
18043 # else
18044 # ifdef RTLD_NOW
18045 # define LT_DLLAZY_OR_NOW RTLD_NOW
18046 # else
18047 # ifdef DL_NOW
18048 # define LT_DLLAZY_OR_NOW DL_NOW
18049 # else
18050 # define LT_DLLAZY_OR_NOW 0
18051 # endif
18052 # endif
18053 # endif
18054 # endif
18055 #endif
18057 /* When -fvisbility=hidden is used, assume the code has been annotated
18058 correspondingly for the symbols needed. */
18059 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18060 void fnord () __attribute__((visibility("default")));
18061 #endif
18063 void fnord () { int i=42; }
18064 int main ()
18066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18067 int status = $lt_dlunknown;
18069 if (self)
18071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18072 else
18074 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18075 else puts (dlerror ());
18077 /* dlclose (self); */
18079 else
18080 puts (dlerror ());
18082 return status;
18084 _LT_EOF
18085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18086 (eval $ac_link) 2>&5
18087 ac_status=$?
18088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18089 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18090 (./conftest; exit; ) >&5 2>/dev/null
18091 lt_status=$?
18092 case x$lt_status in
18093 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18094 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18095 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18096 esac
18097 else :
18098 # compilation failed
18099 lt_cv_dlopen_self=no
18102 rm -fr conftest*
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18107 $as_echo "$lt_cv_dlopen_self" >&6; }
18109 if test "x$lt_cv_dlopen_self" = xyes; then
18110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18112 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18113 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18114 $as_echo_n "(cached) " >&6
18115 else
18116 if test "$cross_compiling" = yes; then :
18117 lt_cv_dlopen_self_static=cross
18118 else
18119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18120 lt_status=$lt_dlunknown
18121 cat > conftest.$ac_ext <<_LT_EOF
18122 #line 18122 "configure"
18123 #include "confdefs.h"
18125 #if HAVE_DLFCN_H
18126 #include <dlfcn.h>
18127 #endif
18129 #include <stdio.h>
18131 #ifdef RTLD_GLOBAL
18132 # define LT_DLGLOBAL RTLD_GLOBAL
18133 #else
18134 # ifdef DL_GLOBAL
18135 # define LT_DLGLOBAL DL_GLOBAL
18136 # else
18137 # define LT_DLGLOBAL 0
18138 # endif
18139 #endif
18141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18142 find out it does not work in some platform. */
18143 #ifndef LT_DLLAZY_OR_NOW
18144 # ifdef RTLD_LAZY
18145 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18146 # else
18147 # ifdef DL_LAZY
18148 # define LT_DLLAZY_OR_NOW DL_LAZY
18149 # else
18150 # ifdef RTLD_NOW
18151 # define LT_DLLAZY_OR_NOW RTLD_NOW
18152 # else
18153 # ifdef DL_NOW
18154 # define LT_DLLAZY_OR_NOW DL_NOW
18155 # else
18156 # define LT_DLLAZY_OR_NOW 0
18157 # endif
18158 # endif
18159 # endif
18160 # endif
18161 #endif
18163 /* When -fvisbility=hidden is used, assume the code has been annotated
18164 correspondingly for the symbols needed. */
18165 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18166 void fnord () __attribute__((visibility("default")));
18167 #endif
18169 void fnord () { int i=42; }
18170 int main ()
18172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18173 int status = $lt_dlunknown;
18175 if (self)
18177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18178 else
18180 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18181 else puts (dlerror ());
18183 /* dlclose (self); */
18185 else
18186 puts (dlerror ());
18188 return status;
18190 _LT_EOF
18191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18192 (eval $ac_link) 2>&5
18193 ac_status=$?
18194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18195 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18196 (./conftest; exit; ) >&5 2>/dev/null
18197 lt_status=$?
18198 case x$lt_status in
18199 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18200 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18201 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18202 esac
18203 else :
18204 # compilation failed
18205 lt_cv_dlopen_self_static=no
18208 rm -fr conftest*
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18213 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18216 CPPFLAGS="$save_CPPFLAGS"
18217 LDFLAGS="$save_LDFLAGS"
18218 LIBS="$save_LIBS"
18220 esac
18222 case $lt_cv_dlopen_self in
18223 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18224 *) enable_dlopen_self=unknown ;;
18225 esac
18227 case $lt_cv_dlopen_self_static in
18228 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18229 *) enable_dlopen_self_static=unknown ;;
18230 esac
18249 striplib=
18250 old_striplib=
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18252 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18253 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18254 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18255 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18257 $as_echo "yes" >&6; }
18258 else
18259 # FIXME - insert some real tests, host_os isn't really good enough
18260 case $host_os in
18261 darwin*)
18262 if test -n "$STRIP" ; then
18263 striplib="$STRIP -x"
18264 old_striplib="$STRIP -S"
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18266 $as_echo "yes" >&6; }
18267 else
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18269 $as_echo "no" >&6; }
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274 $as_echo "no" >&6; }
18276 esac
18290 # Report which library types will actually be built
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18292 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18294 $as_echo "$can_build_shared" >&6; }
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18297 $as_echo_n "checking whether to build shared libraries... " >&6; }
18298 test "$can_build_shared" = "no" && enable_shared=no
18300 # On AIX, shared libraries and static libraries use the same namespace, and
18301 # are all built from PIC.
18302 case $host_os in
18303 aix3*)
18304 test "$enable_shared" = yes && enable_static=no
18305 if test -n "$RANLIB"; then
18306 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18307 postinstall_cmds='$RANLIB $lib'
18311 aix[4-9]*)
18312 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18313 test "$enable_shared" = yes && enable_static=no
18316 esac
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18318 $as_echo "$enable_shared" >&6; }
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18321 $as_echo_n "checking whether to build static libraries... " >&6; }
18322 # Make sure either enable_shared or enable_static is yes.
18323 test "$enable_shared" = yes || enable_static=yes
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18325 $as_echo "$enable_static" >&6; }
18331 ac_ext=c
18332 ac_cpp='$CPP $CPPFLAGS'
18333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18337 CC="$lt_save_CC"
18339 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18340 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18341 (test "X$CXX" != "Xg++"))) ; then
18342 ac_ext=cpp
18343 ac_cpp='$CXXCPP $CPPFLAGS'
18344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18348 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18349 if test -z "$CXXCPP"; then
18350 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18351 $as_echo_n "(cached) " >&6
18352 else
18353 # Double quotes because CXXCPP needs to be expanded
18354 for CXXCPP in "$CXX -E" "/lib/cpp"
18356 ac_preproc_ok=false
18357 for ac_cxx_preproc_warn_flag in '' yes
18359 # Use a header file that comes with gcc, so configuring glibc
18360 # with a fresh cross-compiler works.
18361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18362 # <limits.h> exists even on freestanding compilers.
18363 # On the NeXT, cc -E runs the code through the compiler's parser,
18364 # not just through cpp. "Syntax error" is here to catch this case.
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18367 #ifdef __STDC__
18368 # include <limits.h>
18369 #else
18370 # include <assert.h>
18371 #endif
18372 Syntax error
18373 _ACEOF
18374 if ac_fn_cxx_try_cpp "$LINENO"; then :
18376 else
18377 # Broken: fails on valid input.
18378 continue
18380 rm -f conftest.err conftest.$ac_ext
18382 # OK, works on sane cases. Now check whether nonexistent headers
18383 # can be detected and how.
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #include <ac_nonexistent.h>
18387 _ACEOF
18388 if ac_fn_cxx_try_cpp "$LINENO"; then :
18389 # Broken: success on invalid input.
18390 continue
18391 else
18392 # Passes both tests.
18393 ac_preproc_ok=:
18394 break
18396 rm -f conftest.err conftest.$ac_ext
18398 done
18399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18400 rm -f conftest.err conftest.$ac_ext
18401 if $ac_preproc_ok; then :
18402 break
18405 done
18406 ac_cv_prog_CXXCPP=$CXXCPP
18409 CXXCPP=$ac_cv_prog_CXXCPP
18410 else
18411 ac_cv_prog_CXXCPP=$CXXCPP
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18414 $as_echo "$CXXCPP" >&6; }
18415 ac_preproc_ok=false
18416 for ac_cxx_preproc_warn_flag in '' yes
18418 # Use a header file that comes with gcc, so configuring glibc
18419 # with a fresh cross-compiler works.
18420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421 # <limits.h> exists even on freestanding compilers.
18422 # On the NeXT, cc -E runs the code through the compiler's parser,
18423 # not just through cpp. "Syntax error" is here to catch this case.
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18426 #ifdef __STDC__
18427 # include <limits.h>
18428 #else
18429 # include <assert.h>
18430 #endif
18431 Syntax error
18432 _ACEOF
18433 if ac_fn_cxx_try_cpp "$LINENO"; then :
18435 else
18436 # Broken: fails on valid input.
18437 continue
18439 rm -f conftest.err conftest.$ac_ext
18441 # OK, works on sane cases. Now check whether nonexistent headers
18442 # can be detected and how.
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18445 #include <ac_nonexistent.h>
18446 _ACEOF
18447 if ac_fn_cxx_try_cpp "$LINENO"; then :
18448 # Broken: success on invalid input.
18449 continue
18450 else
18451 # Passes both tests.
18452 ac_preproc_ok=:
18453 break
18455 rm -f conftest.err conftest.$ac_ext
18457 done
18458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18459 rm -f conftest.err conftest.$ac_ext
18460 if $ac_preproc_ok; then :
18462 else
18463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18465 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18466 See \`config.log' for more details." "$LINENO" 5; }
18469 ac_ext=c
18470 ac_cpp='$CPP $CPPFLAGS'
18471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18475 else
18476 _lt_caught_CXX_error=yes
18479 ac_ext=cpp
18480 ac_cpp='$CXXCPP $CPPFLAGS'
18481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18485 archive_cmds_need_lc_CXX=no
18486 allow_undefined_flag_CXX=
18487 always_export_symbols_CXX=no
18488 archive_expsym_cmds_CXX=
18489 compiler_needs_object_CXX=no
18490 export_dynamic_flag_spec_CXX=
18491 hardcode_direct_CXX=no
18492 hardcode_direct_absolute_CXX=no
18493 hardcode_libdir_flag_spec_CXX=
18494 hardcode_libdir_flag_spec_ld_CXX=
18495 hardcode_libdir_separator_CXX=
18496 hardcode_minus_L_CXX=no
18497 hardcode_shlibpath_var_CXX=unsupported
18498 hardcode_automatic_CXX=no
18499 inherit_rpath_CXX=no
18500 module_cmds_CXX=
18501 module_expsym_cmds_CXX=
18502 link_all_deplibs_CXX=unknown
18503 old_archive_cmds_CXX=$old_archive_cmds
18504 reload_flag_CXX=$reload_flag
18505 reload_cmds_CXX=$reload_cmds
18506 no_undefined_flag_CXX=
18507 whole_archive_flag_spec_CXX=
18508 enable_shared_with_static_runtimes_CXX=no
18510 # Source file extension for C++ test sources.
18511 ac_ext=cpp
18513 # Object file extension for compiled C++ test sources.
18514 objext=o
18515 objext_CXX=$objext
18517 # No sense in running all these tests if we already determined that
18518 # the CXX compiler isn't working. Some variables (like enable_shared)
18519 # are currently assumed to apply to all compilers on this platform,
18520 # and will be corrupted by setting them based on a non-working compiler.
18521 if test "$_lt_caught_CXX_error" != yes; then
18522 # Code to be used in simple compile tests
18523 lt_simple_compile_test_code="int some_variable = 0;"
18525 # Code to be used in simple link tests
18526 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18528 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18535 # If no C compiler was specified, use CC.
18536 LTCC=${LTCC-"$CC"}
18538 # If no C compiler flags were specified, use CFLAGS.
18539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18541 # Allow CC to be a program name with arguments.
18542 compiler=$CC
18545 # save warnings/boilerplate of simple test code
18546 ac_outfile=conftest.$ac_objext
18547 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18548 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18549 _lt_compiler_boilerplate=`cat conftest.err`
18550 $RM conftest*
18552 ac_outfile=conftest.$ac_objext
18553 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18554 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18555 _lt_linker_boilerplate=`cat conftest.err`
18556 $RM -r conftest*
18559 # Allow CC to be a program name with arguments.
18560 lt_save_CC=$CC
18561 lt_save_LD=$LD
18562 lt_save_GCC=$GCC
18563 GCC=$GXX
18564 lt_save_with_gnu_ld=$with_gnu_ld
18565 lt_save_path_LD=$lt_cv_path_LD
18566 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18567 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18568 else
18569 $as_unset lt_cv_prog_gnu_ld
18571 if test -n "${lt_cv_path_LDCXX+set}"; then
18572 lt_cv_path_LD=$lt_cv_path_LDCXX
18573 else
18574 $as_unset lt_cv_path_LD
18576 test -z "${LDCXX+set}" || LD=$LDCXX
18577 CC=${CXX-"c++"}
18578 compiler=$CC
18579 compiler_CXX=$CC
18580 for cc_temp in $compiler""; do
18581 case $cc_temp in
18582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18584 \-*) ;;
18585 *) break;;
18586 esac
18587 done
18588 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18591 if test -n "$compiler"; then
18592 # We don't want -fno-exception when compiling C++ code, so set the
18593 # no_builtin_flag separately
18594 if test "$GXX" = yes; then
18595 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18596 else
18597 lt_prog_compiler_no_builtin_flag_CXX=
18600 if test "$GXX" = yes; then
18601 # Set up default GNU C++ configuration
18605 # Check whether --with-gnu-ld was given.
18606 if test "${with_gnu_ld+set}" = set; then :
18607 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18608 else
18609 with_gnu_ld=no
18612 ac_prog=ld
18613 if test "$GCC" = yes; then
18614 # Check if gcc -print-prog-name=ld gives a path.
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18616 $as_echo_n "checking for ld used by $CC... " >&6; }
18617 case $host in
18618 *-*-mingw*)
18619 # gcc leaves a trailing carriage return which upsets mingw
18620 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18622 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18623 esac
18624 case $ac_prog in
18625 # Accept absolute paths.
18626 [\\/]* | ?:[\\/]*)
18627 re_direlt='/[^/][^/]*/\.\./'
18628 # Canonicalize the pathname of ld
18629 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18630 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18631 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18632 done
18633 test -z "$LD" && LD="$ac_prog"
18636 # If it fails, then pretend we aren't using GCC.
18637 ac_prog=ld
18640 # If it is relative, then search for the first ld in PATH.
18641 with_gnu_ld=unknown
18643 esac
18644 elif test "$with_gnu_ld" = yes; then
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18646 $as_echo_n "checking for GNU ld... " >&6; }
18647 else
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18649 $as_echo_n "checking for non-GNU ld... " >&6; }
18651 if test "${lt_cv_path_LD+set}" = set; then :
18652 $as_echo_n "(cached) " >&6
18653 else
18654 if test -z "$LD"; then
18655 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18656 for ac_dir in $PATH; do
18657 IFS="$lt_save_ifs"
18658 test -z "$ac_dir" && ac_dir=.
18659 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18660 lt_cv_path_LD="$ac_dir/$ac_prog"
18661 # Check to see if the program is GNU ld. I'd rather use --version,
18662 # but apparently some variants of GNU ld only accept -v.
18663 # Break only if it was the GNU/non-GNU ld that we prefer.
18664 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18665 *GNU* | *'with BFD'*)
18666 test "$with_gnu_ld" != no && break
18669 test "$with_gnu_ld" != yes && break
18671 esac
18673 done
18674 IFS="$lt_save_ifs"
18675 else
18676 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18680 LD="$lt_cv_path_LD"
18681 if test -n "$LD"; then
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18683 $as_echo "$LD" >&6; }
18684 else
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18686 $as_echo "no" >&6; }
18688 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18690 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18691 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18692 $as_echo_n "(cached) " >&6
18693 else
18694 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18695 case `$LD -v 2>&1 </dev/null` in
18696 *GNU* | *'with BFD'*)
18697 lt_cv_prog_gnu_ld=yes
18700 lt_cv_prog_gnu_ld=no
18702 esac
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18705 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18706 with_gnu_ld=$lt_cv_prog_gnu_ld
18714 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18715 # archiving commands below assume that GNU ld is being used.
18716 if test "$with_gnu_ld" = yes; then
18717 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18718 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'
18720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18723 # If archive_cmds runs LD, not CC, wlarc should be empty
18724 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18725 # investigate it a little bit more. (MM)
18726 wlarc='${wl}'
18728 # ancient GNU ld didn't support --whole-archive et. al.
18729 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18730 $GREP 'no-whole-archive' > /dev/null; then
18731 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18732 else
18733 whole_archive_flag_spec_CXX=
18735 else
18736 with_gnu_ld=no
18737 wlarc=
18739 # A generic and very simple default shared library creation
18740 # command for GNU C++ for the case where it uses the native
18741 # linker, instead of GNU ld. If possible, this setting should
18742 # overridden to take advantage of the native linker features on
18743 # the platform it is being used on.
18744 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18747 # Commands to make compiler produce verbose output that lists
18748 # what "hidden" libraries, object files and flags are used when
18749 # linking a shared library.
18750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18752 else
18753 GXX=no
18754 with_gnu_ld=no
18755 wlarc=
18758 # PORTME: fill in a description of your system's C++ link characteristics
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18760 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18761 ld_shlibs_CXX=yes
18762 case $host_os in
18763 aix3*)
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18767 aix[4-9]*)
18768 if test "$host_cpu" = ia64; then
18769 # On IA64, the linker does run time linking by default, so we don't
18770 # have to do anything special.
18771 aix_use_runtimelinking=no
18772 exp_sym_flag='-Bexport'
18773 no_entry_flag=""
18774 else
18775 aix_use_runtimelinking=no
18777 # Test if we are trying to use run time linking or normal
18778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18779 # need to do runtime linking.
18780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18781 for ld_flag in $LDFLAGS; do
18782 case $ld_flag in
18783 *-brtl*)
18784 aix_use_runtimelinking=yes
18785 break
18787 esac
18788 done
18790 esac
18792 exp_sym_flag='-bexport'
18793 no_entry_flag='-bnoentry'
18796 # When large executables or shared objects are built, AIX ld can
18797 # have problems creating the table of contents. If linking a library
18798 # or program results in "error TOC overflow" add -mminimal-toc to
18799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18802 archive_cmds_CXX=''
18803 hardcode_direct_CXX=yes
18804 hardcode_direct_absolute_CXX=yes
18805 hardcode_libdir_separator_CXX=':'
18806 link_all_deplibs_CXX=yes
18807 file_list_spec_CXX='${wl}-f,'
18809 if test "$GXX" = yes; then
18810 case $host_os in aix4.[012]|aix4.[012].*)
18811 # We only want to do this on AIX 4.2 and lower, the check
18812 # below for broken collect2 doesn't work under 4.3+
18813 collect2name=`${CC} -print-prog-name=collect2`
18814 if test -f "$collect2name" &&
18815 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18816 then
18817 # We have reworked collect2
18819 else
18820 # We have old collect2
18821 hardcode_direct_CXX=unsupported
18822 # It fails to find uninstalled libraries when the uninstalled
18823 # path is not listed in the libpath. Setting hardcode_minus_L
18824 # to unsupported forces relinking
18825 hardcode_minus_L_CXX=yes
18826 hardcode_libdir_flag_spec_CXX='-L$libdir'
18827 hardcode_libdir_separator_CXX=
18829 esac
18830 shared_flag='-shared'
18831 if test "$aix_use_runtimelinking" = yes; then
18832 shared_flag="$shared_flag "'${wl}-G'
18834 else
18835 # not using gcc
18836 if test "$host_cpu" = ia64; then
18837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18838 # chokes on -Wl,-G. The following line is correct:
18839 shared_flag='-G'
18840 else
18841 if test "$aix_use_runtimelinking" = yes; then
18842 shared_flag='${wl}-G'
18843 else
18844 shared_flag='${wl}-bM:SRE'
18849 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18850 # It seems that -bexpall does not export symbols beginning with
18851 # underscore (_), so it is better to generate a list of symbols to
18852 # export.
18853 always_export_symbols_CXX=yes
18854 if test "$aix_use_runtimelinking" = yes; then
18855 # Warning - without using the other runtime loading flags (-brtl),
18856 # -berok will link without error, but may produce a broken library.
18857 allow_undefined_flag_CXX='-berok'
18858 # Determine the default libpath from the value encoded in an empty
18859 # executable.
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h. */
18864 main ()
18868 return 0;
18870 _ACEOF
18871 if ac_fn_cxx_try_link "$LINENO"; then :
18873 lt_aix_libpath_sed='
18874 /Import File Strings/,/^$/ {
18875 /^0/ {
18876 s/^0 *\(.*\)$/\1/
18880 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18881 # Check for a 64-bit object if we didn't find anything.
18882 if test -z "$aix_libpath"; then
18883 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18886 rm -f core conftest.err conftest.$ac_objext \
18887 conftest$ac_exeext conftest.$ac_ext
18888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18890 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18892 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"
18893 else
18894 if test "$host_cpu" = ia64; then
18895 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18896 allow_undefined_flag_CXX="-z nodefs"
18897 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"
18898 else
18899 # Determine the default libpath from the value encoded in an
18900 # empty executable.
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18905 main ()
18909 return 0;
18911 _ACEOF
18912 if ac_fn_cxx_try_link "$LINENO"; then :
18914 lt_aix_libpath_sed='
18915 /Import File Strings/,/^$/ {
18916 /^0/ {
18917 s/^0 *\(.*\)$/\1/
18921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18922 # Check for a 64-bit object if we didn't find anything.
18923 if test -z "$aix_libpath"; then
18924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18927 rm -f core conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18931 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18932 # Warning - without using the other run time loading flags,
18933 # -berok will link without error, but may produce a broken library.
18934 no_undefined_flag_CXX=' ${wl}-bernotok'
18935 allow_undefined_flag_CXX=' ${wl}-berok'
18936 if test "$with_gnu_ld" = yes; then
18937 # We only use this code for GNU lds that support --whole-archive.
18938 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18939 else
18940 # Exported symbols can be pulled into shared objects from archives
18941 whole_archive_flag_spec_CXX='$convenience'
18943 archive_cmds_need_lc_CXX=yes
18944 # This is similar to how AIX traditionally builds its shared
18945 # libraries.
18946 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'
18951 beos*)
18952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18953 allow_undefined_flag_CXX=unsupported
18954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18955 # support --undefined. This deserves some investigation. FIXME
18956 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18957 else
18958 ld_shlibs_CXX=no
18962 chorus*)
18963 case $cc_basename in
18965 # FIXME: insert proper C++ library support
18966 ld_shlibs_CXX=no
18968 esac
18971 cygwin* | mingw* | pw32* | cegcc*)
18972 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18973 # as there is no search path for DLLs.
18974 hardcode_libdir_flag_spec_CXX='-L$libdir'
18975 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18976 allow_undefined_flag_CXX=unsupported
18977 always_export_symbols_CXX=no
18978 enable_shared_with_static_runtimes_CXX=yes
18980 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18981 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'
18982 # If the export-symbols file already is a .def file (1st line
18983 # is EXPORTS), use it as is; otherwise, prepend...
18984 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18985 cp $export_symbols $output_objdir/$soname.def;
18986 else
18987 echo EXPORTS > $output_objdir/$soname.def;
18988 cat $export_symbols >> $output_objdir/$soname.def;
18990 $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'
18991 else
18992 ld_shlibs_CXX=no
18995 darwin* | rhapsody*)
18998 archive_cmds_need_lc_CXX=no
18999 hardcode_direct_CXX=no
19000 hardcode_automatic_CXX=yes
19001 hardcode_shlibpath_var_CXX=unsupported
19002 if test "$lt_cv_ld_force_load" = "yes"; then
19003 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\"`'
19004 else
19005 whole_archive_flag_spec_CXX=''
19007 link_all_deplibs_CXX=yes
19008 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19009 case $cc_basename in
19010 ifort*) _lt_dar_can_shared=yes ;;
19011 *) _lt_dar_can_shared=$GCC ;;
19012 esac
19013 if test "$_lt_dar_can_shared" = "yes"; then
19014 output_verbose_link_cmd=func_echo_all
19015 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}"
19016 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19017 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}"
19018 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}"
19019 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19020 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}"
19021 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}"
19024 else
19025 ld_shlibs_CXX=no
19030 dgux*)
19031 case $cc_basename in
19032 ec++*)
19033 # FIXME: insert proper C++ library support
19034 ld_shlibs_CXX=no
19036 ghcx*)
19037 # Green Hills C++ Compiler
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19045 esac
19048 freebsd2.*)
19049 # C++ shared libraries reported to be fairly broken before
19050 # switch to ELF
19051 ld_shlibs_CXX=no
19054 freebsd-elf*)
19055 archive_cmds_need_lc_CXX=no
19058 freebsd* | dragonfly*)
19059 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19060 # conventions
19061 ld_shlibs_CXX=yes
19064 gnu*)
19067 haiku*)
19068 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19069 link_all_deplibs_CXX=yes
19072 hpux9*)
19073 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19074 hardcode_libdir_separator_CXX=:
19075 export_dynamic_flag_spec_CXX='${wl}-E'
19076 hardcode_direct_CXX=yes
19077 hardcode_minus_L_CXX=yes # Not in the search PATH,
19078 # but as the default
19079 # location of the library.
19081 case $cc_basename in
19082 CC*)
19083 # FIXME: insert proper C++ library support
19084 ld_shlibs_CXX=no
19086 aCC*)
19087 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'
19088 # Commands to make compiler produce verbose output that lists
19089 # what "hidden" libraries, object files and flags are used when
19090 # linking a shared library.
19092 # There doesn't appear to be a way to prevent this compiler from
19093 # explicitly linking system object files so we need to strip them
19094 # from the output so that they don't get included in the library
19095 # dependencies.
19096 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"'
19099 if test "$GXX" = yes; then
19100 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'
19101 else
19102 # FIXME: insert proper C++ library support
19103 ld_shlibs_CXX=no
19106 esac
19109 hpux10*|hpux11*)
19110 if test $with_gnu_ld = no; then
19111 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19112 hardcode_libdir_separator_CXX=:
19114 case $host_cpu in
19115 hppa*64*|ia64*)
19118 export_dynamic_flag_spec_CXX='${wl}-E'
19120 esac
19122 case $host_cpu in
19123 hppa*64*|ia64*)
19124 hardcode_direct_CXX=no
19125 hardcode_shlibpath_var_CXX=no
19128 hardcode_direct_CXX=yes
19129 hardcode_direct_absolute_CXX=yes
19130 hardcode_minus_L_CXX=yes # Not in the search PATH,
19131 # but as the default
19132 # location of the library.
19134 esac
19136 case $cc_basename in
19137 CC*)
19138 # FIXME: insert proper C++ library support
19139 ld_shlibs_CXX=no
19141 aCC*)
19142 case $host_cpu in
19143 hppa*64*)
19144 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19146 ia64*)
19147 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19150 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19152 esac
19153 # Commands to make compiler produce verbose output that lists
19154 # what "hidden" libraries, object files and flags are used when
19155 # linking a shared library.
19157 # There doesn't appear to be a way to prevent this compiler from
19158 # explicitly linking system object files so we need to strip them
19159 # from the output so that they don't get included in the library
19160 # dependencies.
19161 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"'
19164 if test "$GXX" = yes; then
19165 if test $with_gnu_ld = no; then
19166 case $host_cpu in
19167 hppa*64*)
19168 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19170 ia64*)
19171 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19174 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'
19176 esac
19178 else
19179 # FIXME: insert proper C++ library support
19180 ld_shlibs_CXX=no
19183 esac
19186 interix[3-9]*)
19187 hardcode_direct_CXX=no
19188 hardcode_shlibpath_var_CXX=no
19189 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19190 export_dynamic_flag_spec_CXX='${wl}-E'
19191 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19192 # Instead, shared libraries are loaded at an image base (0x10000000 by
19193 # default) and relocated if they conflict, which is a slow very memory
19194 # consuming and fragmenting process. To avoid this, we pick a random,
19195 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19196 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19197 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'
19198 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'
19200 irix5* | irix6*)
19201 case $cc_basename in
19202 CC*)
19203 # SGI C++
19204 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'
19206 # Archives containing C++ object files must be created using
19207 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19208 # necessary to make sure instantiated templates are included
19209 # in the archive.
19210 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19213 if test "$GXX" = yes; then
19214 if test "$with_gnu_ld" = no; then
19215 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'
19216 else
19217 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'
19220 link_all_deplibs_CXX=yes
19222 esac
19223 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19224 hardcode_libdir_separator_CXX=:
19225 inherit_rpath_CXX=yes
19228 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19229 case $cc_basename in
19230 KCC*)
19231 # Kuck and Associates, Inc. (KAI) C++ Compiler
19233 # KCC will only create a shared library if the output file
19234 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19235 # to its proper name (with version) after linking.
19236 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'
19237 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'
19238 # Commands to make compiler produce verbose output that lists
19239 # what "hidden" libraries, object files and flags are used when
19240 # linking a shared library.
19242 # There doesn't appear to be a way to prevent this compiler from
19243 # explicitly linking system object files so we need to strip them
19244 # from the output so that they don't get included in the library
19245 # dependencies.
19246 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"'
19248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19249 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19251 # Archives containing C++ object files must be created using
19252 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19253 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19255 icpc* | ecpc* )
19256 # Intel C++
19257 with_gnu_ld=yes
19258 # version 8.0 and above of icpc choke on multiply defined symbols
19259 # if we add $predep_objects and $postdep_objects, however 7.1 and
19260 # earlier do not add the objects themselves.
19261 case `$CC -V 2>&1` in
19262 *"Version 7."*)
19263 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19264 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'
19266 *) # Version 8.0 or newer
19267 tmp_idyn=
19268 case $host_cpu in
19269 ia64*) tmp_idyn=' -i_dynamic';;
19270 esac
19271 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19272 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'
19274 esac
19275 archive_cmds_need_lc_CXX=no
19276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19277 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19278 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19280 pgCC* | pgcpp*)
19281 # Portland Group C++ compiler
19282 case `$CC -V` in
19283 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19284 prelink_cmds_CXX='tpldir=Template.dir~
19285 rm -rf $tpldir~
19286 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19287 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19288 old_archive_cmds_CXX='tpldir=Template.dir~
19289 rm -rf $tpldir~
19290 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19291 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19292 $RANLIB $oldlib'
19293 archive_cmds_CXX='tpldir=Template.dir~
19294 rm -rf $tpldir~
19295 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19296 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19297 archive_expsym_cmds_CXX='tpldir=Template.dir~
19298 rm -rf $tpldir~
19299 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19300 $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'
19302 *) # Version 6 and above use weak symbols
19303 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19304 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'
19306 esac
19308 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19310 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'
19312 cxx*)
19313 # Compaq C++
19314 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19315 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'
19317 runpath_var=LD_RUN_PATH
19318 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19319 hardcode_libdir_separator_CXX=:
19321 # Commands to make compiler produce verbose output that lists
19322 # what "hidden" libraries, object files and flags are used when
19323 # linking a shared library.
19325 # There doesn't appear to be a way to prevent this compiler from
19326 # explicitly linking system object files so we need to strip them
19327 # from the output so that they don't get included in the library
19328 # dependencies.
19329 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'
19331 xl* | mpixl* | bgxl*)
19332 # IBM XL 8.0 on PPC, with GNU ld
19333 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19334 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19335 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19336 if test "x$supports_anon_versioning" = xyes; then
19337 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19339 echo "local: *; };" >> $output_objdir/$libname.ver~
19340 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19344 case `$CC -V 2>&1 | sed 5q` in
19345 *Sun\ C*)
19346 # Sun C++ 5.9
19347 no_undefined_flag_CXX=' -zdefs'
19348 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19349 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'
19350 hardcode_libdir_flag_spec_CXX='-R$libdir'
19351 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'
19352 compiler_needs_object_CXX=yes
19354 # Not sure whether something based on
19355 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19356 # would be better.
19357 output_verbose_link_cmd='func_echo_all'
19359 # Archives containing C++ object files must be created using
19360 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19361 # necessary to make sure instantiated templates are included
19362 # in the archive.
19363 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19365 esac
19367 esac
19370 lynxos*)
19371 # FIXME: insert proper C++ library support
19372 ld_shlibs_CXX=no
19375 m88k*)
19376 # FIXME: insert proper C++ library support
19377 ld_shlibs_CXX=no
19380 mvs*)
19381 case $cc_basename in
19382 cxx*)
19383 # FIXME: insert proper C++ library support
19384 ld_shlibs_CXX=no
19387 # FIXME: insert proper C++ library support
19388 ld_shlibs_CXX=no
19390 esac
19393 netbsd*)
19394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19395 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19396 wlarc=
19397 hardcode_libdir_flag_spec_CXX='-R$libdir'
19398 hardcode_direct_CXX=yes
19399 hardcode_shlibpath_var_CXX=no
19401 # Workaround some broken pre-1.5 toolchains
19402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19405 *nto* | *qnx*)
19406 ld_shlibs_CXX=yes
19409 openbsd2*)
19410 # C++ shared libraries are fairly broken
19411 ld_shlibs_CXX=no
19414 openbsd*)
19415 if test -f /usr/libexec/ld.so; then
19416 hardcode_direct_CXX=yes
19417 hardcode_shlibpath_var_CXX=no
19418 hardcode_direct_absolute_CXX=yes
19419 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19422 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19423 export_dynamic_flag_spec_CXX='${wl}-E'
19424 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19426 output_verbose_link_cmd=func_echo_all
19427 else
19428 ld_shlibs_CXX=no
19432 osf3* | osf4* | osf5*)
19433 case $cc_basename in
19434 KCC*)
19435 # Kuck and Associates, Inc. (KAI) C++ Compiler
19437 # KCC will only create a shared library if the output file
19438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19439 # to its proper name (with version) after linking.
19440 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'
19442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19443 hardcode_libdir_separator_CXX=:
19445 # Archives containing C++ object files must be created using
19446 # the KAI C++ compiler.
19447 case $host in
19448 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19449 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19450 esac
19452 RCC*)
19453 # Rational C++ 2.4.1
19454 # FIXME: insert proper C++ library support
19455 ld_shlibs_CXX=no
19457 cxx*)
19458 case $host in
19459 osf3*)
19460 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19461 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'
19462 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19465 allow_undefined_flag_CXX=' -expect_unresolved \*'
19466 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'
19467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19468 echo "-hidden">> $lib.exp~
19469 $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~
19470 $RM $lib.exp'
19471 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19473 esac
19475 hardcode_libdir_separator_CXX=:
19477 # Commands to make compiler produce verbose output that lists
19478 # what "hidden" libraries, object files and flags are used when
19479 # linking a shared library.
19481 # There doesn't appear to be a way to prevent this compiler from
19482 # explicitly linking system object files so we need to strip them
19483 # from the output so that they don't get included in the library
19484 # dependencies.
19485 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"'
19488 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19489 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19490 case $host in
19491 osf3*)
19492 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'
19495 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'
19497 esac
19499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19500 hardcode_libdir_separator_CXX=:
19502 # Commands to make compiler produce verbose output that lists
19503 # what "hidden" libraries, object files and flags are used when
19504 # linking a shared library.
19505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19507 else
19508 # FIXME: insert proper C++ library support
19509 ld_shlibs_CXX=no
19512 esac
19515 psos*)
19516 # FIXME: insert proper C++ library support
19517 ld_shlibs_CXX=no
19520 sunos4*)
19521 case $cc_basename in
19522 CC*)
19523 # Sun C++ 4.x
19524 # FIXME: insert proper C++ library support
19525 ld_shlibs_CXX=no
19527 lcc*)
19528 # Lucid
19529 # FIXME: insert proper C++ library support
19530 ld_shlibs_CXX=no
19533 # FIXME: insert proper C++ library support
19534 ld_shlibs_CXX=no
19536 esac
19539 solaris*)
19540 case $cc_basename in
19541 CC*)
19542 # Sun C++ 4.2, 5.x and Centerline C++
19543 archive_cmds_need_lc_CXX=yes
19544 no_undefined_flag_CXX=' -zdefs'
19545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19546 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19547 $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'
19549 hardcode_libdir_flag_spec_CXX='-R$libdir'
19550 hardcode_shlibpath_var_CXX=no
19551 case $host_os in
19552 solaris2.[0-5] | solaris2.[0-5].*) ;;
19554 # The compiler driver will combine and reorder linker options,
19555 # but understands `-z linker_flag'.
19556 # Supported since Solaris 2.6 (maybe 2.5.1?)
19557 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19559 esac
19560 link_all_deplibs_CXX=yes
19562 output_verbose_link_cmd='func_echo_all'
19564 # Archives containing C++ object files must be created using
19565 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19566 # necessary to make sure instantiated templates are included
19567 # in the archive.
19568 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19570 gcx*)
19571 # Green Hills C++ Compiler
19572 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19574 # The C++ compiler must be used to create the archive.
19575 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19578 # GNU C++ compiler with Solaris linker
19579 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19580 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19581 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19582 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19583 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19584 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19586 # Commands to make compiler produce verbose output that lists
19587 # what "hidden" libraries, object files and flags are used when
19588 # linking a shared library.
19589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19590 else
19591 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19592 # platform.
19593 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19594 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19595 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19597 # Commands to make compiler produce verbose output that lists
19598 # what "hidden" libraries, object files and flags are used when
19599 # linking a shared library.
19600 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19603 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19604 case $host_os in
19605 solaris2.[0-5] | solaris2.[0-5].*) ;;
19607 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19609 esac
19612 esac
19615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19616 no_undefined_flag_CXX='${wl}-z,text'
19617 archive_cmds_need_lc_CXX=no
19618 hardcode_shlibpath_var_CXX=no
19619 runpath_var='LD_RUN_PATH'
19621 case $cc_basename in
19622 CC*)
19623 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19624 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19627 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19628 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19630 esac
19633 sysv5* | sco3.2v5* | sco5v6*)
19634 # Note: We can NOT use -z defs as we might desire, because we do not
19635 # link with -lc, and that would cause any symbols used from libc to
19636 # always be unresolved, which means just about no library would
19637 # ever link correctly. If we're not using GNU ld we use -z text
19638 # though, which does catch some bad symbols but isn't as heavy-handed
19639 # as -z defs.
19640 no_undefined_flag_CXX='${wl}-z,text'
19641 allow_undefined_flag_CXX='${wl}-z,nodefs'
19642 archive_cmds_need_lc_CXX=no
19643 hardcode_shlibpath_var_CXX=no
19644 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19645 hardcode_libdir_separator_CXX=':'
19646 link_all_deplibs_CXX=yes
19647 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19648 runpath_var='LD_RUN_PATH'
19650 case $cc_basename in
19651 CC*)
19652 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19653 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19654 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19655 '"$old_archive_cmds_CXX"
19656 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19657 '"$reload_cmds_CXX"
19660 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19661 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 esac
19666 tandem*)
19667 case $cc_basename in
19668 NCC*)
19669 # NonStop-UX NCC 3.20
19670 # FIXME: insert proper C++ library support
19671 ld_shlibs_CXX=no
19674 # FIXME: insert proper C++ library support
19675 ld_shlibs_CXX=no
19677 esac
19680 vxworks*)
19681 # FIXME: insert proper C++ library support
19682 ld_shlibs_CXX=no
19686 # FIXME: insert proper C++ library support
19687 ld_shlibs_CXX=no
19689 esac
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19692 $as_echo "$ld_shlibs_CXX" >&6; }
19693 test "$ld_shlibs_CXX" = no && can_build_shared=no
19695 GCC_CXX="$GXX"
19696 LD_CXX="$LD"
19698 ## CAVEAT EMPTOR:
19699 ## There is no encapsulation within the following macros, do not change
19700 ## the running order or otherwise move them around unless you know exactly
19701 ## what you are doing...
19702 # Dependencies to place before and after the object being linked:
19703 predep_objects_CXX=
19704 postdep_objects_CXX=
19705 predeps_CXX=
19706 postdeps_CXX=
19707 compiler_lib_search_path_CXX=
19709 cat > conftest.$ac_ext <<_LT_EOF
19710 class Foo
19712 public:
19713 Foo (void) { a = 0; }
19714 private:
19715 int a;
19717 _LT_EOF
19719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19720 (eval $ac_compile) 2>&5
19721 ac_status=$?
19722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19723 test $ac_status = 0; }; then
19724 # Parse the compiler output and extract the necessary
19725 # objects, libraries and library flags.
19727 # Sentinel used to keep track of whether or not we are before
19728 # the conftest object file.
19729 pre_test_object_deps_done=no
19731 for p in `eval "$output_verbose_link_cmd"`; do
19732 case $p in
19734 -L* | -R* | -l*)
19735 # Some compilers place space between "-{L,R}" and the path.
19736 # Remove the space.
19737 if test $p = "-L" ||
19738 test $p = "-R"; then
19739 prev=$p
19740 continue
19741 else
19742 prev=
19745 if test "$pre_test_object_deps_done" = no; then
19746 case $p in
19747 -L* | -R*)
19748 # Internal compiler library paths should come after those
19749 # provided the user. The postdeps already come after the
19750 # user supplied libs so there is no need to process them.
19751 if test -z "$compiler_lib_search_path_CXX"; then
19752 compiler_lib_search_path_CXX="${prev}${p}"
19753 else
19754 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19757 # The "-l" case would never come before the object being
19758 # linked, so don't bother handling this case.
19759 esac
19760 else
19761 if test -z "$postdeps_CXX"; then
19762 postdeps_CXX="${prev}${p}"
19763 else
19764 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19769 *.$objext)
19770 # This assumes that the test object file only shows up
19771 # once in the compiler output.
19772 if test "$p" = "conftest.$objext"; then
19773 pre_test_object_deps_done=yes
19774 continue
19777 if test "$pre_test_object_deps_done" = no; then
19778 if test -z "$predep_objects_CXX"; then
19779 predep_objects_CXX="$p"
19780 else
19781 predep_objects_CXX="$predep_objects_CXX $p"
19783 else
19784 if test -z "$postdep_objects_CXX"; then
19785 postdep_objects_CXX="$p"
19786 else
19787 postdep_objects_CXX="$postdep_objects_CXX $p"
19792 *) ;; # Ignore the rest.
19794 esac
19795 done
19797 # Clean up.
19798 rm -f a.out a.exe
19799 else
19800 echo "libtool.m4: error: problem compiling CXX test program"
19803 $RM -f confest.$objext
19805 # PORTME: override above test on systems where it is broken
19806 case $host_os in
19807 interix[3-9]*)
19808 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19809 # hack all around it, let's just trust "g++" to DTRT.
19810 predep_objects_CXX=
19811 postdep_objects_CXX=
19812 postdeps_CXX=
19815 linux*)
19816 case `$CC -V 2>&1 | sed 5q` in
19817 *Sun\ C*)
19818 # Sun C++ 5.9
19820 # The more standards-conforming stlport4 library is
19821 # incompatible with the Cstd library. Avoid specifying
19822 # it if it's in CXXFLAGS. Ignore libCrun as
19823 # -library=stlport4 depends on it.
19824 case " $CXX $CXXFLAGS " in
19825 *" -library=stlport4 "*)
19826 solaris_use_stlport4=yes
19828 esac
19830 if test "$solaris_use_stlport4" != yes; then
19831 postdeps_CXX='-library=Cstd -library=Crun'
19834 esac
19837 solaris*)
19838 case $cc_basename in
19839 CC*)
19840 # The more standards-conforming stlport4 library is
19841 # incompatible with the Cstd library. Avoid specifying
19842 # it if it's in CXXFLAGS. Ignore libCrun as
19843 # -library=stlport4 depends on it.
19844 case " $CXX $CXXFLAGS " in
19845 *" -library=stlport4 "*)
19846 solaris_use_stlport4=yes
19848 esac
19850 # Adding this requires a known-good setup of shared libraries for
19851 # Sun compiler versions before 5.6, else PIC objects from an old
19852 # archive will be linked into the output, leading to subtle bugs.
19853 if test "$solaris_use_stlport4" != yes; then
19854 postdeps_CXX='-library=Cstd -library=Crun'
19857 esac
19859 esac
19862 case " $postdeps_CXX " in
19863 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19864 esac
19865 compiler_lib_search_dirs_CXX=
19866 if test -n "${compiler_lib_search_path_CXX}"; then
19867 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19900 lt_prog_compiler_wl_CXX=
19901 lt_prog_compiler_pic_CXX=
19902 lt_prog_compiler_static_CXX=
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19905 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19907 # C++ specific cases for pic, static, wl, etc.
19908 if test "$GXX" = yes; then
19909 lt_prog_compiler_wl_CXX='-Wl,'
19910 lt_prog_compiler_static_CXX='-static'
19912 case $host_os in
19913 aix*)
19914 # All AIX code is PIC.
19915 if test "$host_cpu" = ia64; then
19916 # AIX 5 now supports IA64 processor
19917 lt_prog_compiler_static_CXX='-Bstatic'
19919 lt_prog_compiler_pic_CXX='-fPIC'
19922 amigaos*)
19923 case $host_cpu in
19924 powerpc)
19925 # see comment about AmigaOS4 .so support
19926 lt_prog_compiler_pic_CXX='-fPIC'
19928 m68k)
19929 # FIXME: we need at least 68020 code to build shared libraries, but
19930 # adding the `-m68020' flag to GCC prevents building anything better,
19931 # like `-m68040'.
19932 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19934 esac
19937 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19938 # PIC is the default for these OSes.
19940 mingw* | cygwin* | os2* | pw32* | cegcc*)
19941 # This hack is so that the source file can tell whether it is being
19942 # built for inclusion in a dll (and should export symbols for example).
19943 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19944 # (--disable-auto-import) libraries
19945 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19947 darwin* | rhapsody*)
19948 # PIC is the default on this platform
19949 # Common symbols not allowed in MH_DYLIB files
19950 lt_prog_compiler_pic_CXX='-fno-common'
19952 *djgpp*)
19953 # DJGPP does not support shared libraries at all
19954 lt_prog_compiler_pic_CXX=
19956 haiku*)
19957 # PIC is the default for Haiku.
19958 # The "-static" flag exists, but is broken.
19959 lt_prog_compiler_static_CXX=
19961 interix[3-9]*)
19962 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19963 # Instead, we relocate shared libraries at runtime.
19965 sysv4*MP*)
19966 if test -d /usr/nec; then
19967 lt_prog_compiler_pic_CXX=-Kconform_pic
19970 hpux*)
19971 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19972 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19973 # sets the default TLS model and affects inlining.
19974 case $host_cpu in
19975 hppa*64*)
19978 lt_prog_compiler_pic_CXX='-fPIC'
19980 esac
19982 *qnx* | *nto*)
19983 # QNX uses GNU C++, but need to define -shared option too, otherwise
19984 # it will coredump.
19985 lt_prog_compiler_pic_CXX='-fPIC -shared'
19988 lt_prog_compiler_pic_CXX='-fPIC'
19990 esac
19991 else
19992 case $host_os in
19993 aix[4-9]*)
19994 # All AIX code is PIC.
19995 if test "$host_cpu" = ia64; then
19996 # AIX 5 now supports IA64 processor
19997 lt_prog_compiler_static_CXX='-Bstatic'
19998 else
19999 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20002 chorus*)
20003 case $cc_basename in
20004 cxch68*)
20005 # Green Hills C++ Compiler
20006 # _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"
20008 esac
20010 dgux*)
20011 case $cc_basename in
20012 ec++*)
20013 lt_prog_compiler_pic_CXX='-KPIC'
20015 ghcx*)
20016 # Green Hills C++ Compiler
20017 lt_prog_compiler_pic_CXX='-pic'
20021 esac
20023 freebsd* | dragonfly*)
20024 # FreeBSD uses GNU C++
20026 hpux9* | hpux10* | hpux11*)
20027 case $cc_basename in
20028 CC*)
20029 lt_prog_compiler_wl_CXX='-Wl,'
20030 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20031 if test "$host_cpu" != ia64; then
20032 lt_prog_compiler_pic_CXX='+Z'
20035 aCC*)
20036 lt_prog_compiler_wl_CXX='-Wl,'
20037 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20038 case $host_cpu in
20039 hppa*64*|ia64*)
20040 # +Z the default
20043 lt_prog_compiler_pic_CXX='+Z'
20045 esac
20049 esac
20051 interix*)
20052 # This is c89, which is MS Visual C++ (no shared libs)
20053 # Anyone wants to do a port?
20055 irix5* | irix6* | nonstopux*)
20056 case $cc_basename in
20057 CC*)
20058 lt_prog_compiler_wl_CXX='-Wl,'
20059 lt_prog_compiler_static_CXX='-non_shared'
20060 # CC pic flag -KPIC is the default.
20064 esac
20066 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20067 case $cc_basename in
20068 KCC*)
20069 # KAI C++ Compiler
20070 lt_prog_compiler_wl_CXX='--backend -Wl,'
20071 lt_prog_compiler_pic_CXX='-fPIC'
20073 ecpc* )
20074 # old Intel C++ for x86_64 which still supported -KPIC.
20075 lt_prog_compiler_wl_CXX='-Wl,'
20076 lt_prog_compiler_pic_CXX='-KPIC'
20077 lt_prog_compiler_static_CXX='-static'
20079 icpc* )
20080 # Intel C++, used to be incompatible with GCC.
20081 # ICC 10 doesn't accept -KPIC any more.
20082 lt_prog_compiler_wl_CXX='-Wl,'
20083 lt_prog_compiler_pic_CXX='-fPIC'
20084 lt_prog_compiler_static_CXX='-static'
20086 pgCC* | pgcpp*)
20087 # Portland Group C++ compiler
20088 lt_prog_compiler_wl_CXX='-Wl,'
20089 lt_prog_compiler_pic_CXX='-fpic'
20090 lt_prog_compiler_static_CXX='-Bstatic'
20092 cxx*)
20093 # Compaq C++
20094 # Make sure the PIC flag is empty. It appears that all Alpha
20095 # Linux and Compaq Tru64 Unix objects are PIC.
20096 lt_prog_compiler_pic_CXX=
20097 lt_prog_compiler_static_CXX='-non_shared'
20099 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20100 # IBM XL 8.0, 9.0 on PPC and BlueGene
20101 lt_prog_compiler_wl_CXX='-Wl,'
20102 lt_prog_compiler_pic_CXX='-qpic'
20103 lt_prog_compiler_static_CXX='-qstaticlink'
20106 case `$CC -V 2>&1 | sed 5q` in
20107 *Sun\ C*)
20108 # Sun C++ 5.9
20109 lt_prog_compiler_pic_CXX='-KPIC'
20110 lt_prog_compiler_static_CXX='-Bstatic'
20111 lt_prog_compiler_wl_CXX='-Qoption ld '
20113 esac
20115 esac
20117 lynxos*)
20119 m88k*)
20121 mvs*)
20122 case $cc_basename in
20123 cxx*)
20124 lt_prog_compiler_pic_CXX='-W c,exportall'
20128 esac
20130 netbsd*)
20132 *qnx* | *nto*)
20133 # QNX uses GNU C++, but need to define -shared option too, otherwise
20134 # it will coredump.
20135 lt_prog_compiler_pic_CXX='-fPIC -shared'
20137 osf3* | osf4* | osf5*)
20138 case $cc_basename in
20139 KCC*)
20140 lt_prog_compiler_wl_CXX='--backend -Wl,'
20142 RCC*)
20143 # Rational C++ 2.4.1
20144 lt_prog_compiler_pic_CXX='-pic'
20146 cxx*)
20147 # Digital/Compaq C++
20148 lt_prog_compiler_wl_CXX='-Wl,'
20149 # Make sure the PIC flag is empty. It appears that all Alpha
20150 # Linux and Compaq Tru64 Unix objects are PIC.
20151 lt_prog_compiler_pic_CXX=
20152 lt_prog_compiler_static_CXX='-non_shared'
20156 esac
20158 psos*)
20160 solaris*)
20161 case $cc_basename in
20162 CC*)
20163 # Sun C++ 4.2, 5.x and Centerline C++
20164 lt_prog_compiler_pic_CXX='-KPIC'
20165 lt_prog_compiler_static_CXX='-Bstatic'
20166 lt_prog_compiler_wl_CXX='-Qoption ld '
20168 gcx*)
20169 # Green Hills C++ Compiler
20170 lt_prog_compiler_pic_CXX='-PIC'
20174 esac
20176 sunos4*)
20177 case $cc_basename in
20178 CC*)
20179 # Sun C++ 4.x
20180 lt_prog_compiler_pic_CXX='-pic'
20181 lt_prog_compiler_static_CXX='-Bstatic'
20183 lcc*)
20184 # Lucid
20185 lt_prog_compiler_pic_CXX='-pic'
20189 esac
20191 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20192 case $cc_basename in
20193 CC*)
20194 lt_prog_compiler_wl_CXX='-Wl,'
20195 lt_prog_compiler_pic_CXX='-KPIC'
20196 lt_prog_compiler_static_CXX='-Bstatic'
20198 esac
20200 tandem*)
20201 case $cc_basename in
20202 NCC*)
20203 # NonStop-UX NCC 3.20
20204 lt_prog_compiler_pic_CXX='-KPIC'
20208 esac
20210 vxworks*)
20213 lt_prog_compiler_can_build_shared_CXX=no
20215 esac
20218 case $host_os in
20219 # For platforms which do not support PIC, -DPIC is meaningless:
20220 *djgpp*)
20221 lt_prog_compiler_pic_CXX=
20224 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20226 esac
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20228 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20233 # Check to make sure the PIC flag actually works.
20235 if test -n "$lt_prog_compiler_pic_CXX"; then
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20238 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20239 $as_echo_n "(cached) " >&6
20240 else
20241 lt_cv_prog_compiler_pic_works_CXX=no
20242 ac_outfile=conftest.$ac_objext
20243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20244 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20245 # Insert the option either (1) after the last *FLAGS variable, or
20246 # (2) before a word containing "conftest.", or (3) at the end.
20247 # Note that $ac_compile itself does not contain backslashes and begins
20248 # with a dollar sign (not a hyphen), so the echo should work correctly.
20249 # The option is referenced via a variable to avoid confusing sed.
20250 lt_compile=`echo "$ac_compile" | $SED \
20251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20253 -e 's:$: $lt_compiler_flag:'`
20254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20255 (eval "$lt_compile" 2>conftest.err)
20256 ac_status=$?
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 if (exit $ac_status) && test -s "$ac_outfile"; then
20260 # The compiler can only warn and ignore the option if not recognized
20261 # So say no if there are warnings other than the usual output.
20262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20265 lt_cv_prog_compiler_pic_works_CXX=yes
20268 $RM conftest*
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20272 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20274 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20275 case $lt_prog_compiler_pic_CXX in
20276 "" | " "*) ;;
20277 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20278 esac
20279 else
20280 lt_prog_compiler_pic_CXX=
20281 lt_prog_compiler_can_build_shared_CXX=no
20289 # Check to make sure the static flag actually works.
20291 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20293 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20294 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20295 $as_echo_n "(cached) " >&6
20296 else
20297 lt_cv_prog_compiler_static_works_CXX=no
20298 save_LDFLAGS="$LDFLAGS"
20299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20302 # The linker can only warn and ignore the option if not recognized
20303 # So say no if there are warnings
20304 if test -s conftest.err; then
20305 # Append any errors to the config.log.
20306 cat conftest.err 1>&5
20307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20309 if diff conftest.exp conftest.er2 >/dev/null; then
20310 lt_cv_prog_compiler_static_works_CXX=yes
20312 else
20313 lt_cv_prog_compiler_static_works_CXX=yes
20316 $RM -r conftest*
20317 LDFLAGS="$save_LDFLAGS"
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20321 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20323 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20325 else
20326 lt_prog_compiler_static_CXX=
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20334 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20335 $as_echo_n "(cached) " >&6
20336 else
20337 lt_cv_prog_compiler_c_o_CXX=no
20338 $RM -r conftest 2>/dev/null
20339 mkdir conftest
20340 cd conftest
20341 mkdir out
20342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20344 lt_compiler_flag="-o out/conftest2.$ac_objext"
20345 # Insert the option either (1) after the last *FLAGS variable, or
20346 # (2) before a word containing "conftest.", or (3) at the end.
20347 # Note that $ac_compile itself does not contain backslashes and begins
20348 # with a dollar sign (not a hyphen), so the echo should work correctly.
20349 lt_compile=`echo "$ac_compile" | $SED \
20350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20352 -e 's:$: $lt_compiler_flag:'`
20353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20354 (eval "$lt_compile" 2>out/conftest.err)
20355 ac_status=$?
20356 cat out/conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20359 then
20360 # The compiler can only warn and ignore the option if not recognized
20361 # So say no if there are warnings
20362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20365 lt_cv_prog_compiler_c_o_CXX=yes
20368 chmod u+w . 2>&5
20369 $RM conftest*
20370 # SGI C++ compiler will create directory out/ii_files/ for
20371 # template instantiation
20372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20373 $RM out/* && rmdir out
20374 cd ..
20375 $RM -r conftest
20376 $RM conftest*
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20380 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20386 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20387 $as_echo_n "(cached) " >&6
20388 else
20389 lt_cv_prog_compiler_c_o_CXX=no
20390 $RM -r conftest 2>/dev/null
20391 mkdir conftest
20392 cd conftest
20393 mkdir out
20394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20396 lt_compiler_flag="-o out/conftest2.$ac_objext"
20397 # Insert the option either (1) after the last *FLAGS variable, or
20398 # (2) before a word containing "conftest.", or (3) at the end.
20399 # Note that $ac_compile itself does not contain backslashes and begins
20400 # with a dollar sign (not a hyphen), so the echo should work correctly.
20401 lt_compile=`echo "$ac_compile" | $SED \
20402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20404 -e 's:$: $lt_compiler_flag:'`
20405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20406 (eval "$lt_compile" 2>out/conftest.err)
20407 ac_status=$?
20408 cat out/conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20411 then
20412 # The compiler can only warn and ignore the option if not recognized
20413 # So say no if there are warnings
20414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20417 lt_cv_prog_compiler_c_o_CXX=yes
20420 chmod u+w . 2>&5
20421 $RM conftest*
20422 # SGI C++ compiler will create directory out/ii_files/ for
20423 # template instantiation
20424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20425 $RM out/* && rmdir out
20426 cd ..
20427 $RM -r conftest
20428 $RM conftest*
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20432 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20437 hard_links="nottested"
20438 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20439 # do not overwrite the value of need_locks provided by the user
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20441 $as_echo_n "checking if we can lock with hard links... " >&6; }
20442 hard_links=yes
20443 $RM conftest*
20444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20445 touch conftest.a
20446 ln conftest.a conftest.b 2>&5 || hard_links=no
20447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20449 $as_echo "$hard_links" >&6; }
20450 if test "$hard_links" = no; then
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20452 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20453 need_locks=warn
20455 else
20456 need_locks=no
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20462 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20464 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20465 case $host_os in
20466 aix[4-9]*)
20467 # If we're using GNU nm, then we don't want the "-C" option.
20468 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20469 # Also, AIX nm treats weak defined symbols like other global defined
20470 # symbols, whereas GNU nm marks them as "W".
20471 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20472 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'
20473 else
20474 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'
20477 pw32*)
20478 export_symbols_cmds_CXX="$ltdll_cmds"
20480 cygwin* | mingw* | cegcc*)
20481 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'
20484 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20486 esac
20487 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20490 $as_echo "$ld_shlibs_CXX" >&6; }
20491 test "$ld_shlibs_CXX" = no && can_build_shared=no
20493 with_gnu_ld_CXX=$with_gnu_ld
20501 # Do we need to explicitly link libc?
20503 case "x$archive_cmds_need_lc_CXX" in
20504 x|xyes)
20505 # Assume -lc should be added
20506 archive_cmds_need_lc_CXX=yes
20508 if test "$enable_shared" = yes && test "$GCC" = yes; then
20509 case $archive_cmds_CXX in
20510 *'~'*)
20511 # FIXME: we may have to deal with multi-command sequences.
20513 '$CC '*)
20514 # Test whether the compiler implicitly links with -lc since on some
20515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20516 # to ld, don't add -lc before -lgcc.
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20518 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20519 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20520 $as_echo_n "(cached) " >&6
20521 else
20522 $RM conftest*
20523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20526 (eval $ac_compile) 2>&5
20527 ac_status=$?
20528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20529 test $ac_status = 0; } 2>conftest.err; then
20530 soname=conftest
20531 lib=conftest
20532 libobjs=conftest.$ac_objext
20533 deplibs=
20534 wl=$lt_prog_compiler_wl_CXX
20535 pic_flag=$lt_prog_compiler_pic_CXX
20536 compiler_flags=-v
20537 linker_flags=-v
20538 verstring=
20539 output_objdir=.
20540 libname=conftest
20541 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20542 allow_undefined_flag_CXX=
20543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20544 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20545 ac_status=$?
20546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20547 test $ac_status = 0; }
20548 then
20549 lt_cv_archive_cmds_need_lc_CXX=no
20550 else
20551 lt_cv_archive_cmds_need_lc_CXX=yes
20553 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20554 else
20555 cat conftest.err 1>&5
20557 $RM conftest*
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20561 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20562 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20564 esac
20567 esac
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20633 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20635 library_names_spec=
20636 libname_spec='lib$name'
20637 soname_spec=
20638 shrext_cmds=".so"
20639 postinstall_cmds=
20640 postuninstall_cmds=
20641 finish_cmds=
20642 finish_eval=
20643 shlibpath_var=
20644 shlibpath_overrides_runpath=unknown
20645 version_type=none
20646 dynamic_linker="$host_os ld.so"
20647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20648 need_lib_prefix=unknown
20649 hardcode_into_libs=no
20651 # when you set need_version to no, make sure it does not cause -set_version
20652 # flags to be left without arguments
20653 need_version=unknown
20655 case $host_os in
20656 aix3*)
20657 version_type=linux
20658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20659 shlibpath_var=LIBPATH
20661 # AIX 3 has no versioning support, so we append a major version to the name.
20662 soname_spec='${libname}${release}${shared_ext}$major'
20665 aix[4-9]*)
20666 version_type=linux
20667 need_lib_prefix=no
20668 need_version=no
20669 hardcode_into_libs=yes
20670 if test "$host_cpu" = ia64; then
20671 # AIX 5 supports IA64
20672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 else
20675 # With GCC up to 2.95.x, collect2 would create an import file
20676 # for dependence libraries. The import file would start with
20677 # the line `#! .'. This would cause the generated library to
20678 # depend on `.', always an invalid library. This was fixed in
20679 # development snapshots of GCC prior to 3.0.
20680 case $host_os in
20681 aix4 | aix4.[01] | aix4.[01].*)
20682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20683 echo ' yes '
20684 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20686 else
20687 can_build_shared=no
20690 esac
20691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20692 # soname into executable. Probably we can add versioning support to
20693 # collect2, so additional links can be useful in future.
20694 if test "$aix_use_runtimelinking" = yes; then
20695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20696 # instead of lib<name>.a to let people know that these are not
20697 # typical AIX shared libraries.
20698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20699 else
20700 # We preserve .a as extension for shared libraries through AIX4.2
20701 # and later when we are not doing run time linking.
20702 library_names_spec='${libname}${release}.a $libname.a'
20703 soname_spec='${libname}${release}${shared_ext}$major'
20705 shlibpath_var=LIBPATH
20709 amigaos*)
20710 case $host_cpu in
20711 powerpc)
20712 # Since July 2007 AmigaOS4 officially supports .so libraries.
20713 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20716 m68k)
20717 library_names_spec='$libname.ixlibrary $libname.a'
20718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20719 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'
20721 esac
20724 beos*)
20725 library_names_spec='${libname}${shared_ext}'
20726 dynamic_linker="$host_os ld.so"
20727 shlibpath_var=LIBRARY_PATH
20730 bsdi[45]*)
20731 version_type=linux
20732 need_version=no
20733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20734 soname_spec='${libname}${release}${shared_ext}$major'
20735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20736 shlibpath_var=LD_LIBRARY_PATH
20737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20739 # the default ld.so.conf also contains /usr/contrib/lib and
20740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20741 # libtool to hard-code these into programs
20744 cygwin* | mingw* | pw32* | cegcc*)
20745 version_type=windows
20746 shrext_cmds=".dll"
20747 need_version=no
20748 need_lib_prefix=no
20750 case $GCC,$host_os in
20751 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20752 library_names_spec='$libname.dll.a'
20753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20754 postinstall_cmds='base_file=`basename \${file}`~
20755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20756 dldir=$destdir/`dirname \$dlpath`~
20757 test -d \$dldir || mkdir -p \$dldir~
20758 $install_prog $dir/$dlname \$dldir/$dlname~
20759 chmod a+x \$dldir/$dlname~
20760 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20761 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20764 dlpath=$dir/\$dldll~
20765 $RM \$dlpath'
20766 shlibpath_overrides_runpath=yes
20768 case $host_os in
20769 cygwin*)
20770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20771 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20774 mingw* | cegcc*)
20775 # MinGW DLLs use traditional 'lib' prefix
20776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20778 pw32*)
20779 # pw32 DLLs use 'pw' prefix rather than 'lib'
20780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20782 esac
20786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20788 esac
20789 dynamic_linker='Win32 ld.exe'
20790 # FIXME: first we should search . and the directory the executable is in
20791 shlibpath_var=PATH
20794 darwin* | rhapsody*)
20795 dynamic_linker="$host_os dyld"
20796 version_type=darwin
20797 need_lib_prefix=no
20798 need_version=no
20799 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20800 soname_spec='${libname}${release}${major}$shared_ext'
20801 shlibpath_overrides_runpath=yes
20802 shlibpath_var=DYLD_LIBRARY_PATH
20803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20808 dgux*)
20809 version_type=linux
20810 need_lib_prefix=no
20811 need_version=no
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20813 soname_spec='${libname}${release}${shared_ext}$major'
20814 shlibpath_var=LD_LIBRARY_PATH
20817 freebsd* | dragonfly*)
20818 # DragonFly does not have aout. When/if they implement a new
20819 # versioning mechanism, adjust this.
20820 if test -x /usr/bin/objformat; then
20821 objformat=`/usr/bin/objformat`
20822 else
20823 case $host_os in
20824 freebsd[23].*) objformat=aout ;;
20825 *) objformat=elf ;;
20826 esac
20828 version_type=freebsd-$objformat
20829 case $version_type in
20830 freebsd-elf*)
20831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20832 need_version=no
20833 need_lib_prefix=no
20835 freebsd-*)
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20837 need_version=yes
20839 esac
20840 shlibpath_var=LD_LIBRARY_PATH
20841 case $host_os in
20842 freebsd2.*)
20843 shlibpath_overrides_runpath=yes
20845 freebsd3.[01]* | freebsdelf3.[01]*)
20846 shlibpath_overrides_runpath=yes
20847 hardcode_into_libs=yes
20849 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20850 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20851 shlibpath_overrides_runpath=no
20852 hardcode_into_libs=yes
20854 *) # from 4.6 on, and DragonFly
20855 shlibpath_overrides_runpath=yes
20856 hardcode_into_libs=yes
20858 esac
20861 gnu*)
20862 version_type=linux
20863 need_lib_prefix=no
20864 need_version=no
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 hardcode_into_libs=yes
20871 haiku*)
20872 version_type=linux
20873 need_lib_prefix=no
20874 need_version=no
20875 dynamic_linker="$host_os runtime_loader"
20876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20877 soname_spec='${libname}${release}${shared_ext}$major'
20878 shlibpath_var=LIBRARY_PATH
20879 shlibpath_overrides_runpath=yes
20880 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20881 hardcode_into_libs=yes
20884 hpux9* | hpux10* | hpux11*)
20885 # Give a soname corresponding to the major version so that dld.sl refuses to
20886 # link against other versions.
20887 version_type=sunos
20888 need_lib_prefix=no
20889 need_version=no
20890 case $host_cpu in
20891 ia64*)
20892 shrext_cmds='.so'
20893 hardcode_into_libs=yes
20894 dynamic_linker="$host_os dld.so"
20895 shlibpath_var=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 if test "X$HPUX_IA64_MODE" = X32; then
20900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20901 else
20902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20906 hppa*64*)
20907 shrext_cmds='.sl'
20908 hardcode_into_libs=yes
20909 dynamic_linker="$host_os dld.sl"
20910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20913 soname_spec='${libname}${release}${shared_ext}$major'
20914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20918 shrext_cmds='.sl'
20919 dynamic_linker="$host_os dld.sl"
20920 shlibpath_var=SHLIB_PATH
20921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923 soname_spec='${libname}${release}${shared_ext}$major'
20925 esac
20926 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20927 postinstall_cmds='chmod 555 $lib'
20928 # or fails outright, so override atomically:
20929 install_override_mode=555
20932 interix[3-9]*)
20933 version_type=linux
20934 need_lib_prefix=no
20935 need_version=no
20936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20937 soname_spec='${libname}${release}${shared_ext}$major'
20938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20939 shlibpath_var=LD_LIBRARY_PATH
20940 shlibpath_overrides_runpath=no
20941 hardcode_into_libs=yes
20944 irix5* | irix6* | nonstopux*)
20945 case $host_os in
20946 nonstopux*) version_type=nonstopux ;;
20948 if test "$lt_cv_prog_gnu_ld" = yes; then
20949 version_type=linux
20950 else
20951 version_type=irix
20952 fi ;;
20953 esac
20954 need_lib_prefix=no
20955 need_version=no
20956 soname_spec='${libname}${release}${shared_ext}$major'
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20958 case $host_os in
20959 irix5* | nonstopux*)
20960 libsuff= shlibsuff=
20963 case $LD in # libtool.m4 will add one of these switches to LD
20964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20965 libsuff= shlibsuff= libmagic=32-bit;;
20966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20967 libsuff=32 shlibsuff=N32 libmagic=N32;;
20968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20970 *) libsuff= shlibsuff= libmagic=never-match;;
20971 esac
20973 esac
20974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20975 shlibpath_overrides_runpath=no
20976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20978 hardcode_into_libs=yes
20981 # No shared lib support for Linux oldld, aout, or coff.
20982 linux*oldld* | linux*aout* | linux*coff*)
20983 dynamic_linker=no
20986 # This must be Linux ELF.
20987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20988 version_type=linux
20989 need_lib_prefix=no
20990 need_version=no
20991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20992 soname_spec='${libname}${release}${shared_ext}$major'
20993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20994 shlibpath_var=LD_LIBRARY_PATH
20995 shlibpath_overrides_runpath=no
20997 # Some binutils ld are patched to set DT_RUNPATH
20998 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21001 lt_cv_shlibpath_overrides_runpath=no
21002 save_LDFLAGS=$LDFLAGS
21003 save_libdir=$libdir
21004 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21005 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h. */
21010 main ()
21014 return 0;
21016 _ACEOF
21017 if ac_fn_cxx_try_link "$LINENO"; then :
21018 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21019 lt_cv_shlibpath_overrides_runpath=yes
21022 rm -f core conftest.err conftest.$ac_objext \
21023 conftest$ac_exeext conftest.$ac_ext
21024 LDFLAGS=$save_LDFLAGS
21025 libdir=$save_libdir
21029 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21031 # This implies no fast_install, which is unacceptable.
21032 # Some rework will be needed to allow for fast_install
21033 # before this can be enabled.
21034 hardcode_into_libs=yes
21036 # Append ld.so.conf contents to the search path
21037 if test -f /etc/ld.so.conf; then
21038 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' ' '`
21039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21042 # We used to test for /lib/ld.so.1 and disable shared libraries on
21043 # powerpc, because MkLinux only supported shared libraries with the
21044 # GNU dynamic linker. Since this was broken with cross compilers,
21045 # most powerpc-linux boxes support dynamic linking these days and
21046 # people can always --disable-shared, the test was removed, and we
21047 # assume the GNU/Linux dynamic linker is in use.
21048 dynamic_linker='GNU/Linux ld.so'
21051 netbsd*)
21052 version_type=sunos
21053 need_lib_prefix=no
21054 need_version=no
21055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21058 dynamic_linker='NetBSD (a.out) ld.so'
21059 else
21060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21061 soname_spec='${libname}${release}${shared_ext}$major'
21062 dynamic_linker='NetBSD ld.elf_so'
21064 shlibpath_var=LD_LIBRARY_PATH
21065 shlibpath_overrides_runpath=yes
21066 hardcode_into_libs=yes
21069 newsos6)
21070 version_type=linux
21071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21072 shlibpath_var=LD_LIBRARY_PATH
21073 shlibpath_overrides_runpath=yes
21076 *nto* | *qnx*)
21077 version_type=qnx
21078 need_lib_prefix=no
21079 need_version=no
21080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21081 soname_spec='${libname}${release}${shared_ext}$major'
21082 shlibpath_var=LD_LIBRARY_PATH
21083 shlibpath_overrides_runpath=no
21084 hardcode_into_libs=yes
21085 dynamic_linker='ldqnx.so'
21088 openbsd*)
21089 version_type=sunos
21090 sys_lib_dlsearch_path_spec="/usr/lib"
21091 need_lib_prefix=no
21092 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21093 case $host_os in
21094 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21095 *) need_version=no ;;
21096 esac
21097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21099 shlibpath_var=LD_LIBRARY_PATH
21100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21101 case $host_os in
21102 openbsd2.[89] | openbsd2.[89].*)
21103 shlibpath_overrides_runpath=no
21106 shlibpath_overrides_runpath=yes
21108 esac
21109 else
21110 shlibpath_overrides_runpath=yes
21114 os2*)
21115 libname_spec='$name'
21116 shrext_cmds=".dll"
21117 need_lib_prefix=no
21118 library_names_spec='$libname${shared_ext} $libname.a'
21119 dynamic_linker='OS/2 ld.exe'
21120 shlibpath_var=LIBPATH
21123 osf3* | osf4* | osf5*)
21124 version_type=osf
21125 need_lib_prefix=no
21126 need_version=no
21127 soname_spec='${libname}${release}${shared_ext}$major'
21128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21129 shlibpath_var=LD_LIBRARY_PATH
21130 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21131 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21134 rdos*)
21135 dynamic_linker=no
21138 solaris*)
21139 version_type=linux
21140 need_lib_prefix=no
21141 need_version=no
21142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21143 soname_spec='${libname}${release}${shared_ext}$major'
21144 shlibpath_var=LD_LIBRARY_PATH
21145 shlibpath_overrides_runpath=yes
21146 hardcode_into_libs=yes
21147 # ldd complains unless libraries are executable
21148 postinstall_cmds='chmod +x $lib'
21151 sunos4*)
21152 version_type=sunos
21153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21154 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21155 shlibpath_var=LD_LIBRARY_PATH
21156 shlibpath_overrides_runpath=yes
21157 if test "$with_gnu_ld" = yes; then
21158 need_lib_prefix=no
21160 need_version=yes
21163 sysv4 | sysv4.3*)
21164 version_type=linux
21165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21166 soname_spec='${libname}${release}${shared_ext}$major'
21167 shlibpath_var=LD_LIBRARY_PATH
21168 case $host_vendor in
21169 sni)
21170 shlibpath_overrides_runpath=no
21171 need_lib_prefix=no
21172 runpath_var=LD_RUN_PATH
21174 siemens)
21175 need_lib_prefix=no
21177 motorola)
21178 need_lib_prefix=no
21179 need_version=no
21180 shlibpath_overrides_runpath=no
21181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21183 esac
21186 sysv4*MP*)
21187 if test -d /usr/nec ;then
21188 version_type=linux
21189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21190 soname_spec='$libname${shared_ext}.$major'
21191 shlibpath_var=LD_LIBRARY_PATH
21195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21196 version_type=freebsd-elf
21197 need_lib_prefix=no
21198 need_version=no
21199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21200 soname_spec='${libname}${release}${shared_ext}$major'
21201 shlibpath_var=LD_LIBRARY_PATH
21202 shlibpath_overrides_runpath=yes
21203 hardcode_into_libs=yes
21204 if test "$with_gnu_ld" = yes; then
21205 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21206 else
21207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21208 case $host_os in
21209 sco3.2v5*)
21210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21212 esac
21214 sys_lib_dlsearch_path_spec='/usr/lib'
21217 tpf*)
21218 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21219 version_type=linux
21220 need_lib_prefix=no
21221 need_version=no
21222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21223 shlibpath_var=LD_LIBRARY_PATH
21224 shlibpath_overrides_runpath=no
21225 hardcode_into_libs=yes
21228 uts4*)
21229 version_type=linux
21230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21231 soname_spec='${libname}${release}${shared_ext}$major'
21232 shlibpath_var=LD_LIBRARY_PATH
21236 dynamic_linker=no
21238 esac
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21240 $as_echo "$dynamic_linker" >&6; }
21241 test "$dynamic_linker" = no && can_build_shared=no
21243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21244 if test "$GCC" = yes; then
21245 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21248 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21249 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21251 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21252 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21294 hardcode_action_CXX=
21295 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21296 test -n "$runpath_var_CXX" ||
21297 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21299 # We can hardcode non-existent directories.
21300 if test "$hardcode_direct_CXX" != no &&
21301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21302 # have to relink, otherwise we might link with an installed library
21303 # when we should be linking with a yet-to-be-installed one
21304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21305 test "$hardcode_minus_L_CXX" != no; then
21306 # Linking always hardcodes the temporary library directory.
21307 hardcode_action_CXX=relink
21308 else
21309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21310 hardcode_action_CXX=immediate
21312 else
21313 # We cannot hardcode anything, or else we can only hardcode existing
21314 # directories.
21315 hardcode_action_CXX=unsupported
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21318 $as_echo "$hardcode_action_CXX" >&6; }
21320 if test "$hardcode_action_CXX" = relink ||
21321 test "$inherit_rpath_CXX" = yes; then
21322 # Fast installation is not supported
21323 enable_fast_install=no
21324 elif test "$shlibpath_overrides_runpath" = yes ||
21325 test "$enable_shared" = no; then
21326 # Fast installation is not necessary
21327 enable_fast_install=needless
21336 fi # test -n "$compiler"
21338 CC=$lt_save_CC
21339 LDCXX=$LD
21340 LD=$lt_save_LD
21341 GCC=$lt_save_GCC
21342 with_gnu_ld=$lt_save_with_gnu_ld
21343 lt_cv_path_LDCXX=$lt_cv_path_LD
21344 lt_cv_path_LD=$lt_save_path_LD
21345 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21346 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21347 fi # test "$_lt_caught_CXX_error" != yes
21349 ac_ext=c
21350 ac_cpp='$CPP $CPPFLAGS'
21351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21370 # Only expand once:
21376 # Identify the assembler which will work hand-in-glove with the newly
21377 # built GCC, so that we can examine its features. This is the assembler
21378 # which will be driven by the driver program.
21380 # If build != host, and we aren't building gas in-tree, we identify a
21381 # build->target assembler and hope that it will have the same features
21382 # as the host->target assembler we'll be using.
21383 gcc_cv_gas_major_version=
21384 gcc_cv_gas_minor_version=
21385 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21387 if test "${gcc_cv_as+set}" = set; then :
21389 else
21391 if test -x "$DEFAULT_ASSEMBLER"; then
21392 gcc_cv_as="$DEFAULT_ASSEMBLER"
21393 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21394 && test -f ../gas/Makefile \
21395 && test x$build = x$host; then
21396 gcc_cv_as=../gas/as-new$build_exeext
21397 elif test -x as$build_exeext; then
21398 # Build using assembler in the current directory.
21399 gcc_cv_as=./as$build_exeext
21400 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21401 gcc_cv_as="$AS_FOR_TARGET"
21402 else
21403 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21404 set dummy $AS_FOR_TARGET; ac_word=$2
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21406 $as_echo_n "checking for $ac_word... " >&6; }
21407 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21408 $as_echo_n "(cached) " >&6
21409 else
21410 case $gcc_cv_as in
21411 [\\/]* | ?:[\\/]*)
21412 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21416 for as_dir in $PATH
21418 IFS=$as_save_IFS
21419 test -z "$as_dir" && as_dir=.
21420 for ac_exec_ext in '' $ac_executable_extensions; do
21421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21422 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21424 break 2
21426 done
21427 done
21428 IFS=$as_save_IFS
21431 esac
21433 gcc_cv_as=$ac_cv_path_gcc_cv_as
21434 if test -n "$gcc_cv_as"; then
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21436 $as_echo "$gcc_cv_as" >&6; }
21437 else
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21439 $as_echo "no" >&6; }
21446 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21448 case "$ORIGINAL_AS_FOR_TARGET" in
21449 ./as | ./as$build_exeext) ;;
21450 *) ac_config_files="$ac_config_files as:exec-tool.in"
21452 esac
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21455 $as_echo_n "checking what assembler to use... " >&6; }
21456 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21457 # Single tree build which includes gas. We want to prefer it
21458 # over whatever linker top-level may have detected, since
21459 # we'll use what we're building after installation anyway.
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21461 $as_echo "newly built gas" >&6; }
21462 in_tree_gas=yes
21463 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21464 for f in $gcc_cv_as_bfd_srcdir/configure \
21465 $gcc_cv_as_gas_srcdir/configure \
21466 $gcc_cv_as_gas_srcdir/configure.in \
21467 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21468 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21469 if test x$gcc_cv_gas_version != x; then
21470 break
21472 done
21473 case $gcc_cv_gas_version in
21474 VERSION=[0-9]*) ;;
21475 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21476 esac
21477 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21478 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21479 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21480 case $gcc_cv_gas_patch_version in
21481 "") gcc_cv_gas_patch_version="0" ;;
21482 esac
21483 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21484 + $gcc_cv_gas_minor_version \) \* 1000 \
21485 + $gcc_cv_gas_patch_version`
21487 in_tree_gas_is_elf=no
21488 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21489 || (grep 'obj_format = multi' ../gas/Makefile \
21490 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21491 then
21492 in_tree_gas_is_elf=yes
21494 else
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21496 $as_echo "$gcc_cv_as" >&6; }
21497 in_tree_gas=no
21500 default_ld=
21501 # Check whether --enable-ld was given.
21502 if test "${enable_ld+set}" = set; then :
21503 enableval=$enable_ld; case "${enableval}" in
21505 default_ld=ld.gold
21507 esac
21511 # Check whether --enable-gold was given.
21512 if test "${enable_gold+set}" = set; then :
21513 enableval=$enable_gold; case "${enableval}" in
21514 default)
21515 install_gold_as_default=yes
21517 yes)
21518 if test x${default_ld} != x; then
21519 install_gold_as_default=yes
21525 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21527 esac
21528 else
21529 install_gold_as_default=no
21533 # Identify the linker which will work hand-in-glove with the newly
21534 # built GCC, so that we can examine its features. This is the linker
21535 # which will be driven by the driver program.
21537 # If build != host, and we aren't building gas in-tree, we identify a
21538 # build->target linker and hope that it will have the same features
21539 # as the host->target linker we'll be using.
21540 gcc_cv_gld_major_version=
21541 gcc_cv_gld_minor_version=
21542 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21543 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21544 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21546 if test "${gcc_cv_ld+set}" = set; then :
21548 else
21550 if test -x "$DEFAULT_LINKER"; then
21551 gcc_cv_ld="$DEFAULT_LINKER"
21552 elif test $install_gold_as_default = yes \
21553 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21554 && test -f ../gold/Makefile \
21555 && test x$build = x$host; then
21556 gcc_cv_ld=../gold/ld-new$build_exeext
21557 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21558 && test -f ../ld/Makefile \
21559 && test x$build = x$host; then
21560 gcc_cv_ld=../ld/ld-new$build_exeext
21561 elif test -x collect-ld$build_exeext; then
21562 # Build using linker in the current directory.
21563 gcc_cv_ld=./collect-ld$build_exeext
21564 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21565 gcc_cv_ld="$LD_FOR_TARGET"
21566 else
21567 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21568 set dummy $LD_FOR_TARGET; ac_word=$2
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21570 $as_echo_n "checking for $ac_word... " >&6; }
21571 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21572 $as_echo_n "(cached) " >&6
21573 else
21574 case $gcc_cv_ld in
21575 [\\/]* | ?:[\\/]*)
21576 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21580 for as_dir in $PATH
21582 IFS=$as_save_IFS
21583 test -z "$as_dir" && as_dir=.
21584 for ac_exec_ext in '' $ac_executable_extensions; do
21585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21586 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21588 break 2
21590 done
21591 done
21592 IFS=$as_save_IFS
21595 esac
21597 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21598 if test -n "$gcc_cv_ld"; then
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21600 $as_echo "$gcc_cv_ld" >&6; }
21601 else
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21603 $as_echo "no" >&6; }
21610 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21611 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21612 # if the PLUGIN_LD is set ld-new, just have it as ld
21613 # as that is the installed named.
21614 if test x$PLUGIN_LD_SUFFIX = xld-new \
21615 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21616 PLUGIN_LD_SUFFIX=ld
21619 # Check whether --with-plugin-ld was given.
21620 if test "${with_plugin_ld+set}" = set; then :
21621 withval=$with_plugin_ld; if test x"$withval" != x; then
21622 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21623 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21629 cat >>confdefs.h <<_ACEOF
21630 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21631 _ACEOF
21634 # Check to see if we are using gold instead of ld
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21636 $as_echo_n "checking whether we are using gold... " >&6; }
21637 ld_is_gold=no
21638 if test x$gcc_cv_ld != x; then
21639 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21640 | grep "GNU gold" > /dev/null; then
21641 ld_is_gold=yes
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21645 $as_echo "$ld_is_gold" >&6; }
21647 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21649 case "$ORIGINAL_LD_FOR_TARGET" in
21650 ./collect-ld | ./collect-ld$build_exeext) ;;
21651 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21653 esac
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21656 $as_echo_n "checking what linker to use... " >&6; }
21657 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21658 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21659 # Single tree build which includes ld. We want to prefer it
21660 # over whatever linker top-level may have detected, since
21661 # we'll use what we're building after installation anyway.
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21663 $as_echo "newly built ld" >&6; }
21664 in_tree_ld=yes
21665 in_tree_ld_is_elf=no
21666 if (grep 'EMUL = .*elf' ../ld/Makefile \
21667 || grep 'EMUL = .*linux' ../ld/Makefile \
21668 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21669 in_tree_ld_is_elf=yes
21670 elif test "$ld_is_gold" = yes; then
21671 in_tree_ld_is_elf=yes
21673 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
21675 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21676 if test x$gcc_cv_gld_version != x; then
21677 break
21679 done
21680 case $gcc_cv_gld_version in
21681 VERSION=[0-9]*) ;;
21682 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21683 esac
21684 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21685 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21686 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21687 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21688 else
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21690 $as_echo "$gcc_cv_ld" >&6; }
21691 in_tree_ld=no
21692 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21693 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21694 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21700 # Figure out what nm we will be using.
21701 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21702 if test "${gcc_cv_nm+set}" = set; then :
21704 else
21706 if test -f $gcc_cv_binutils_srcdir/configure.in \
21707 && test -f ../binutils/Makefile \
21708 && test x$build = x$host; then
21709 gcc_cv_nm=../binutils/nm-new$build_exeext
21710 elif test -x nm$build_exeext; then
21711 gcc_cv_nm=./nm$build_exeext
21712 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21713 gcc_cv_nm="$NM_FOR_TARGET"
21714 else
21715 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21716 set dummy $NM_FOR_TARGET; ac_word=$2
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21718 $as_echo_n "checking for $ac_word... " >&6; }
21719 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 case $gcc_cv_nm in
21723 [\\/]* | ?:[\\/]*)
21724 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21728 for as_dir in $PATH
21730 IFS=$as_save_IFS
21731 test -z "$as_dir" && as_dir=.
21732 for ac_exec_ext in '' $ac_executable_extensions; do
21733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21734 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21736 break 2
21738 done
21739 done
21740 IFS=$as_save_IFS
21743 esac
21745 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21746 if test -n "$gcc_cv_nm"; then
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21748 $as_echo "$gcc_cv_nm" >&6; }
21749 else
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751 $as_echo "no" >&6; }
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21759 $as_echo_n "checking what nm to use... " >&6; }
21760 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21761 # Single tree build which includes binutils.
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21763 $as_echo "newly built nm" >&6; }
21764 in_tree_nm=yes
21765 else
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21767 $as_echo "$gcc_cv_nm" >&6; }
21768 in_tree_nm=no
21771 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21773 case "$ORIGINAL_NM_FOR_TARGET" in
21774 ./nm | ./nm$build_exeext) ;;
21775 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21777 esac
21780 # Figure out what objdump we will be using.
21781 if test "${gcc_cv_objdump+set}" = set; then :
21783 else
21785 if test -f $gcc_cv_binutils_srcdir/configure.in \
21786 && test -f ../binutils/Makefile \
21787 && test x$build = x$host; then
21788 # Single tree build which includes binutils.
21789 gcc_cv_objdump=../binutils/objdump$build_exeext
21790 elif test -x objdump$build_exeext; then
21791 gcc_cv_objdump=./objdump$build_exeext
21792 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21793 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21794 else
21795 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21796 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21798 $as_echo_n "checking for $ac_word... " >&6; }
21799 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21800 $as_echo_n "(cached) " >&6
21801 else
21802 case $gcc_cv_objdump in
21803 [\\/]* | ?:[\\/]*)
21804 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21808 for as_dir in $PATH
21810 IFS=$as_save_IFS
21811 test -z "$as_dir" && as_dir=.
21812 for ac_exec_ext in '' $ac_executable_extensions; do
21813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21814 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21816 break 2
21818 done
21819 done
21820 IFS=$as_save_IFS
21823 esac
21825 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21826 if test -n "$gcc_cv_objdump"; then
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21828 $as_echo "$gcc_cv_objdump" >&6; }
21829 else
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21831 $as_echo "no" >&6; }
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21839 $as_echo_n "checking what objdump to use... " >&6; }
21840 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21841 # Single tree build which includes binutils.
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21843 $as_echo "newly built objdump" >&6; }
21844 elif test x$gcc_cv_objdump = x; then
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21846 $as_echo "not found" >&6; }
21847 else
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21849 $as_echo "$gcc_cv_objdump" >&6; }
21852 # Figure out what readelf we will be using.
21853 if test "${gcc_cv_readelf+set}" = set; then :
21855 else
21857 if test -f $gcc_cv_binutils_srcdir/configure.in \
21858 && test -f ../binutils/Makefile \
21859 && test x$build = x$host; then
21860 # Single tree build which includes binutils.
21861 gcc_cv_readelf=../binutils/readelf$build_exeext
21862 elif test -x readelf$build_exeext; then
21863 gcc_cv_readelf=./readelf$build_exeext
21864 else
21865 # Extract the first word of "readelf", so it can be a program name with args.
21866 set dummy readelf; ac_word=$2
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21868 $as_echo_n "checking for $ac_word... " >&6; }
21869 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21870 $as_echo_n "(cached) " >&6
21871 else
21872 case $gcc_cv_readelf in
21873 [\\/]* | ?:[\\/]*)
21874 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21878 for as_dir in $PATH
21880 IFS=$as_save_IFS
21881 test -z "$as_dir" && as_dir=.
21882 for ac_exec_ext in '' $ac_executable_extensions; do
21883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21884 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21886 break 2
21888 done
21889 done
21890 IFS=$as_save_IFS
21893 esac
21895 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21896 if test -n "$gcc_cv_readelf"; then
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21898 $as_echo "$gcc_cv_readelf" >&6; }
21899 else
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21901 $as_echo "no" >&6; }
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21909 $as_echo_n "checking what readelf to use... " >&6; }
21910 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21911 # Single tree build which includes binutils.
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21913 $as_echo "newly built readelf" >&6; }
21914 elif test x$gcc_cv_readelf = x; then
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21916 $as_echo "not found" >&6; }
21917 else
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21919 $as_echo "$gcc_cv_readelf" >&6; }
21922 # Figure out what assembler alignment features are present.
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21924 $as_echo_n "checking assembler flags... " >&6; }
21925 if test "${gcc_cv_as_flags+set}" = set; then :
21926 $as_echo_n "(cached) " >&6
21927 else
21928 case "$target" in
21929 i[34567]86-*-linux*)
21930 gcc_cv_as_flags=--32
21932 x86_64-*-linux-gnux32)
21933 gcc_cv_as_flags=--x32
21935 x86_64-*-linux*)
21936 gcc_cv_as_flags=--64
21938 powerpc*-*-darwin*)
21939 gcc_cv_as_flags="-arch ppc"
21942 gcc_cv_as_flags=" "
21944 esac
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21947 $as_echo "$gcc_cv_as_flags" >&6; }
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21950 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21951 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21952 $as_echo_n "(cached) " >&6
21953 else
21954 gcc_cv_as_balign_and_p2align=no
21955 if test $in_tree_gas = yes; then
21956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21957 then gcc_cv_as_balign_and_p2align=yes
21959 elif test x$gcc_cv_as != x; then
21960 $as_echo '.balign 4
21961 .p2align 2' > conftest.s
21962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21967 test $ac_status = 0; }; }
21968 then
21969 gcc_cv_as_balign_and_p2align=yes
21970 else
21971 echo "configure: failed program was" >&5
21972 cat conftest.s >&5
21974 rm -f conftest.o conftest.s
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21978 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21979 if test $gcc_cv_as_balign_and_p2align = yes; then
21981 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21986 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21987 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21988 $as_echo_n "(cached) " >&6
21989 else
21990 gcc_cv_as_max_skip_p2align=no
21991 if test $in_tree_gas = yes; then
21992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21993 then gcc_cv_as_max_skip_p2align=yes
21995 elif test x$gcc_cv_as != x; then
21996 $as_echo '.p2align 4,,7' > conftest.s
21997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21999 (eval $ac_try) 2>&5
22000 ac_status=$?
22001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002 test $ac_status = 0; }; }
22003 then
22004 gcc_cv_as_max_skip_p2align=yes
22005 else
22006 echo "configure: failed program was" >&5
22007 cat conftest.s >&5
22009 rm -f conftest.o conftest.s
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22013 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22014 if test $gcc_cv_as_max_skip_p2align = yes; then
22016 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22021 $as_echo_n "checking assembler for .literal16... " >&6; }
22022 if test "${gcc_cv_as_literal16+set}" = set; then :
22023 $as_echo_n "(cached) " >&6
22024 else
22025 gcc_cv_as_literal16=no
22026 if test $in_tree_gas = yes; then
22027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22028 then gcc_cv_as_literal16=yes
22030 elif test x$gcc_cv_as != x; then
22031 $as_echo '.literal16' > conftest.s
22032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22034 (eval $ac_try) 2>&5
22035 ac_status=$?
22036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22037 test $ac_status = 0; }; }
22038 then
22039 gcc_cv_as_literal16=yes
22040 else
22041 echo "configure: failed program was" >&5
22042 cat conftest.s >&5
22044 rm -f conftest.o conftest.s
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22048 $as_echo "$gcc_cv_as_literal16" >&6; }
22049 if test $gcc_cv_as_literal16 = yes; then
22051 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22056 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22057 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22058 $as_echo_n "(cached) " >&6
22059 else
22060 gcc_cv_as_subsection_m1=no
22061 if test $in_tree_gas = yes; then
22062 if test $in_tree_gas_is_elf = yes \
22063 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22064 then gcc_cv_as_subsection_m1=yes
22066 elif test x$gcc_cv_as != x; then
22067 $as_echo 'conftest_label1: .word 0
22068 .subsection -1
22069 conftest_label2: .word 0
22070 .previous' > conftest.s
22071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22076 test $ac_status = 0; }; }
22077 then
22078 if test x$gcc_cv_nm != x; then
22079 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22080 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22081 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22082 then :
22083 else gcc_cv_as_subsection_m1=yes
22085 rm -f conftest.nm1 conftest.nm2
22087 else
22088 echo "configure: failed program was" >&5
22089 cat conftest.s >&5
22091 rm -f conftest.o conftest.s
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22095 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22096 if test $gcc_cv_as_subsection_m1 = yes; then
22098 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22103 $as_echo_n "checking assembler for .weak... " >&6; }
22104 if test "${gcc_cv_as_weak+set}" = set; then :
22105 $as_echo_n "(cached) " >&6
22106 else
22107 gcc_cv_as_weak=no
22108 if test $in_tree_gas = yes; then
22109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22110 then gcc_cv_as_weak=yes
22112 elif test x$gcc_cv_as != x; then
22113 $as_echo ' .weak foobar' > conftest.s
22114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22119 test $ac_status = 0; }; }
22120 then
22121 gcc_cv_as_weak=yes
22122 else
22123 echo "configure: failed program was" >&5
22124 cat conftest.s >&5
22126 rm -f conftest.o conftest.s
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22130 $as_echo "$gcc_cv_as_weak" >&6; }
22131 if test $gcc_cv_as_weak = yes; then
22133 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22138 $as_echo_n "checking assembler for .weakref... " >&6; }
22139 if test "${gcc_cv_as_weakref+set}" = set; then :
22140 $as_echo_n "(cached) " >&6
22141 else
22142 gcc_cv_as_weakref=no
22143 if test $in_tree_gas = yes; then
22144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22145 then gcc_cv_as_weakref=yes
22147 elif test x$gcc_cv_as != x; then
22148 $as_echo ' .weakref foobar, barfnot' > conftest.s
22149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22151 (eval $ac_try) 2>&5
22152 ac_status=$?
22153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22154 test $ac_status = 0; }; }
22155 then
22156 gcc_cv_as_weakref=yes
22157 else
22158 echo "configure: failed program was" >&5
22159 cat conftest.s >&5
22161 rm -f conftest.o conftest.s
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22165 $as_echo "$gcc_cv_as_weakref" >&6; }
22166 if test $gcc_cv_as_weakref = yes; then
22168 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22173 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22174 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22175 $as_echo_n "(cached) " >&6
22176 else
22177 gcc_cv_as_nsubspa_comdat=no
22178 if test $in_tree_gas = yes; then
22179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22180 then gcc_cv_as_nsubspa_comdat=yes
22182 elif test x$gcc_cv_as != x; then
22183 $as_echo ' .SPACE $TEXT$
22184 .NSUBSPA $CODE$,COMDAT' > conftest.s
22185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22187 (eval $ac_try) 2>&5
22188 ac_status=$?
22189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22190 test $ac_status = 0; }; }
22191 then
22192 gcc_cv_as_nsubspa_comdat=yes
22193 else
22194 echo "configure: failed program was" >&5
22195 cat conftest.s >&5
22197 rm -f conftest.o conftest.s
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22201 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22202 if test $gcc_cv_as_nsubspa_comdat = yes; then
22204 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22208 # .hidden needs to be supported in both the assembler and the linker,
22209 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22210 # This is irritatingly difficult to feature test for; we have to check the
22211 # date string after the version number. If we've got an in-tree
22212 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22213 # to be safe.
22214 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22216 $as_echo_n "checking assembler for .hidden... " >&6; }
22217 if test "${gcc_cv_as_hidden+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 gcc_cv_as_hidden=no
22221 if test $in_tree_gas = yes; then
22222 if test $in_tree_gas_is_elf = yes \
22223 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22224 then gcc_cv_as_hidden=yes
22226 elif test x$gcc_cv_as != x; then
22227 $as_echo ' .hidden foobar
22228 foobar:' > 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
22237 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22238 # STV_HIDDEN, so disable .hidden support if so.
22239 case "${target}" in
22240 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22241 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22242 cat > conftest.s <<EOF
22243 .globl hidden
22244 .hidden hidden
22245 hidden:
22246 .globl default
22247 .set default,hidden
22249 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22250 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22251 grep '\.hidden default' > /dev/null; then
22252 gcc_cv_as_hidden=no
22253 else
22254 gcc_cv_as_hidden=yes
22256 else
22257 # Assume bug is present if objdump is missing.
22258 gcc_cv_as_hidden=no
22262 gcc_cv_as_hidden=yes
22264 esac
22265 else
22266 echo "configure: failed program was" >&5
22267 cat conftest.s >&5
22269 rm -f conftest.o conftest.s
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22273 $as_echo "$gcc_cv_as_hidden" >&6; }
22275 case "${target}" in
22276 *-*-darwin*)
22277 # Darwin as has some visibility support, though with a different syntax.
22278 gcc_cv_as_hidden=yes
22280 esac
22282 # gnu_indirect_function type is an extension proposed at
22283 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22284 # selection of function implementation
22285 # Check whether --enable-gnu-indirect-function was given.
22286 if test "${enable_gnu_indirect_function+set}" = set; then :
22287 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22288 yes | no) ;;
22289 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22290 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22291 esac
22292 else
22293 enable_gnu_indirect_function="$default_gnu_indirect_function"
22297 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22299 cat >>confdefs.h <<_ACEOF
22300 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22301 _ACEOF
22305 if test $in_tree_ld != yes ; then
22306 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22307 if echo "$ld_ver" | grep GNU > /dev/null; then
22308 if test x"$ld_is_gold" = xyes; then
22309 # GNU gold --version looks like this:
22311 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22313 # We extract the binutils version which is more familiar and specific
22314 # than the gold version.
22315 ld_vers=`echo $ld_ver | sed -n \
22316 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22317 else
22318 # GNU ld --version looks like this:
22320 # GNU ld (GNU Binutils) 2.21.51.20110225
22321 ld_vers=`echo $ld_ver | sed -n \
22322 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22324 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'`
22325 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22326 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22327 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22328 else
22329 case "${target}" in
22330 *-*-solaris2*)
22331 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22332 # format.
22334 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22335 # /usr/ccs/bin/ld has been configured.
22336 ld_ver=`$gcc_cv_ld -V 2>&1`
22337 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22338 ld_vers=`echo $ld_ver | sed -n \
22339 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22340 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22341 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22344 esac
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22349 $as_echo_n "checking linker for .hidden support... " >&6; }
22350 if test "${gcc_cv_ld_hidden+set}" = set; then :
22351 $as_echo_n "(cached) " >&6
22352 else
22353 if test $in_tree_ld = yes ; then
22354 gcc_cv_ld_hidden=no
22355 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 \
22356 && test $in_tree_ld_is_elf = yes; then
22357 gcc_cv_ld_hidden=yes
22359 else
22360 gcc_cv_ld_hidden=yes
22361 if test x"$ld_is_gold" = xyes; then
22363 elif echo "$ld_ver" | grep GNU > /dev/null; then
22364 case "${target}" in
22365 mmix-knuth-mmixware)
22366 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22367 gcc_cv_ld_hidden=no
22369 esac
22370 if test 0"$ld_date" -lt 20020404; then
22371 if test -n "$ld_date"; then
22372 # If there was date string, but was earlier than 2002-04-04, fail
22373 gcc_cv_ld_hidden=no
22374 elif test -z "$ld_vers"; then
22375 # If there was no date string nor ld version number, something is wrong
22376 gcc_cv_ld_hidden=no
22377 else
22378 test -z "$ld_vers_patch" && ld_vers_patch=0
22379 if test "$ld_vers_major" -lt 2; then
22380 gcc_cv_ld_hidden=no
22381 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22382 gcc_cv_ld_hidden="no"
22383 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22384 gcc_cv_ld_hidden=no
22388 else
22389 case "${target}" in
22390 *-*-darwin*)
22391 # Darwin ld has some visibility support.
22392 gcc_cv_ld_hidden=yes
22394 hppa64*-*-hpux* | ia64*-*-hpux*)
22395 gcc_cv_ld_hidden=yes
22397 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22398 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22399 # .symbolic was only added in Solaris 9 12/02.
22400 gcc_cv_ld_hidden=yes
22403 gcc_cv_ld_hidden=no
22405 esac
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22410 $as_echo "$gcc_cv_ld_hidden" >&6; }
22411 libgcc_visibility=no
22414 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22415 libgcc_visibility=yes
22417 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22422 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22423 gcc_cv_ld_ro_rw_mix=unknown
22424 if test $in_tree_ld = yes ; then
22425 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 \
22426 && test $in_tree_ld_is_elf = yes; then
22427 gcc_cv_ld_ro_rw_mix=read-write
22429 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22430 echo '.section myfoosect, "a"' > conftest1.s
22431 echo '.section myfoosect, "aw"' > conftest2.s
22432 echo '.byte 1' >> conftest2.s
22433 echo '.section myfoosect, "a"' > conftest3.s
22434 echo '.byte 0' >> conftest3.s
22435 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22436 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22437 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22438 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22439 conftest2.o conftest3.o > /dev/null 2>&1; then
22440 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22441 | sed -e '/myfoosect/!d' -e N`
22442 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22443 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22444 gcc_cv_ld_ro_rw_mix=read-only
22445 else
22446 gcc_cv_ld_ro_rw_mix=read-write
22450 rm -f conftest.* conftest[123].*
22452 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22454 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22458 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22460 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22461 case "${target}" in
22462 *-*-solaris2*)
22464 # Solaris 2 ld -V output looks like this for a regular version:
22466 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22468 # but test versions add stuff at the end:
22470 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22472 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22473 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22474 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22475 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22476 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22477 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22480 esac
22483 # Check whether --enable-initfini-array was given.
22484 if test "${enable_initfini_array+set}" = set; then :
22485 enableval=$enable_initfini_array;
22486 else
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22489 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22490 if test "${gcc_cv_initfini_array+set}" = set; then :
22491 $as_echo_n "(cached) " >&6
22492 else
22493 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22494 case "${target}" in
22495 ia64-*)
22496 if test "$cross_compiling" = yes; then :
22497 gcc_cv_initfini_array=no
22498 else
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h. */
22502 #ifndef __ELF__
22503 #error Not an ELF OS
22504 #endif
22505 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22506 if it can be used. */
22507 static int x = -1;
22508 int main (void) { return x; }
22509 int foo (void) { x = 0; }
22510 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22512 _ACEOF
22513 if ac_fn_c_try_run "$LINENO"; then :
22514 gcc_cv_initfini_array=yes
22515 else
22516 gcc_cv_initfini_array=no
22518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22519 conftest.$ac_objext conftest.beam conftest.$ac_ext
22523 gcc_cv_initfini_array=no
22524 if test $in_tree_ld = yes ; then
22525 if test "$gcc_cv_gld_major_version" -eq 2 \
22526 -a "$gcc_cv_gld_minor_version" -ge 22 \
22527 -o "$gcc_cv_gld_major_version" -gt 2 \
22528 && test $in_tree_ld_is_elf = yes; then
22529 gcc_cv_initfini_array=yes
22531 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22532 cat > conftest.s <<\EOF
22533 .section .dtors,"a",%progbits
22534 .balign 4
22535 .byte 'A', 'A', 'A', 'A'
22536 .section .ctors,"a",%progbits
22537 .balign 4
22538 .byte 'B', 'B', 'B', 'B'
22539 .section .fini_array.65530,"a",%progbits
22540 .balign 4
22541 .byte 'C', 'C', 'C', 'C'
22542 .section .init_array.65530,"a",%progbits
22543 .balign 4
22544 .byte 'D', 'D', 'D', 'D'
22545 .section .dtors.64528,"a",%progbits
22546 .balign 4
22547 .byte 'E', 'E', 'E', 'E'
22548 .section .ctors.64528,"a",%progbits
22549 .balign 4
22550 .byte 'F', 'F', 'F', 'F'
22551 .section .fini_array.01005,"a",%progbits
22552 .balign 4
22553 .byte 'G', 'G', 'G', 'G'
22554 .section .init_array.01005,"a",%progbits
22555 .balign 4
22556 .byte 'H', 'H', 'H', 'H'
22557 .text
22558 .globl _start
22559 _start:
22561 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22562 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22563 && $gcc_cv_objdump -s -j .init_array conftest \
22564 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22565 && $gcc_cv_objdump -s -j .fini_array conftest \
22566 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22567 gcc_cv_initfini_array=yes
22569 rm -f conftest conftest.*
22571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572 /* end confdefs.h. */
22574 #ifndef __ELF__
22575 # error Not an ELF OS
22576 #endif
22577 #include <stdlib.h>
22578 #if defined __GLIBC_PREREQ
22579 # if __GLIBC_PREREQ (2, 4)
22580 # else
22581 # error GLIBC 2.4 required
22582 # endif
22583 #else
22584 # if defined __sun__ && defined __svr4__
22585 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22586 # else
22587 # error The C library not known to support .init_array/.fini_array
22588 # endif
22589 #endif
22591 _ACEOF
22592 if ac_fn_c_try_cpp "$LINENO"; then :
22594 else
22595 gcc_cv_initfini_array=no
22597 rm -f conftest.err conftest.$ac_ext;;
22598 esac
22599 else
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22601 $as_echo_n "checking cross compile... guessing... " >&6; }
22602 gcc_cv_initfini_array=no
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22606 $as_echo "$gcc_cv_initfini_array" >&6; }
22607 enable_initfini_array=$gcc_cv_initfini_array
22611 if test $enable_initfini_array = yes; then
22613 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22617 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22619 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22620 if test "${gcc_cv_as_leb128+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22622 else
22623 gcc_cv_as_leb128=no
22624 if test $in_tree_gas = yes; then
22625 if test $in_tree_gas_is_elf = yes \
22626 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22627 then gcc_cv_as_leb128=yes
22629 elif test x$gcc_cv_as != x; then
22630 $as_echo ' .data
22631 .uleb128 L2 - L1
22633 .uleb128 1280
22634 .sleb128 -1010
22635 L2:' > conftest.s
22636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22638 (eval $ac_try) 2>&5
22639 ac_status=$?
22640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22641 test $ac_status = 0; }; }
22642 then
22643 # GAS versions before 2.11 do not support uleb128,
22644 # despite appearing to.
22645 # ??? There exists an elf-specific test that will crash
22646 # the assembler. Perhaps it's better to figure out whether
22647 # arbitrary sections are supported and try the test.
22648 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22649 if echo "$as_ver" | grep GNU > /dev/null; then
22650 as_vers=`echo $as_ver | sed -n \
22651 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22652 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22653 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22654 if test $as_major -eq 2 && test $as_minor -lt 11
22655 then :
22656 else gcc_cv_as_leb128=yes
22659 else
22660 echo "configure: failed program was" >&5
22661 cat conftest.s >&5
22663 rm -f conftest.o conftest.s
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22667 $as_echo "$gcc_cv_as_leb128" >&6; }
22668 if test $gcc_cv_as_leb128 = yes; then
22670 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22674 # Check if we have assembler support for unwind directives.
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22676 $as_echo_n "checking assembler for cfi directives... " >&6; }
22677 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22678 $as_echo_n "(cached) " >&6
22679 else
22680 gcc_cv_as_cfi_directive=no
22681 if test x$gcc_cv_as != x; then
22682 $as_echo ' .text
22683 .cfi_startproc
22684 .cfi_offset 0, 0
22685 .cfi_same_value 1
22686 .cfi_def_cfa 1, 2
22687 .cfi_escape 1, 2, 3, 4, 5
22688 .cfi_endproc' > conftest.s
22689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22694 test $ac_status = 0; }; }
22695 then
22696 case "$target" in
22697 *-*-solaris*)
22698 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22699 # read-only and read-write sections, we need to make sure that the
22700 # assembler used emits read-write .eh_frame sections.
22701 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22702 if test "x$gcc_cv_objdump" != x; then
22703 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22704 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22705 gcc_cv_as_cfi_directive=no
22706 else
22707 case "$target" in
22708 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22709 # On Solaris/x86, make sure that GCC and gas agree on using
22710 # read-only .eh_frame sections for 64-bit.
22711 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22712 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22713 sed -e /.eh_frame/!d -e N | \
22714 grep READONLY > /dev/null; then
22715 gcc_cv_as_cfi_directive=yes
22716 else
22717 gcc_cv_as_cfi_directive=no
22721 gcc_cv_as_cfi_directive=yes
22723 esac
22725 else
22726 # no objdump, err on the side of caution
22727 gcc_cv_as_cfi_directive=no
22729 else
22730 gcc_cv_as_cfi_directive=yes
22733 *-*-*)
22734 gcc_cv_as_cfi_directive=yes
22736 esac
22737 else
22738 echo "configure: failed program was" >&5
22739 cat conftest.s >&5
22741 rm -f conftest.o conftest.s
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22745 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22747 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22749 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22750 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22751 $as_echo_n "(cached) " >&6
22752 else
22753 gcc_cv_as_cfi_advance_working=no
22754 if test x$gcc_cv_as != x; then
22755 $as_echo ' .text
22756 .cfi_startproc
22757 .cfi_adjust_cfa_offset 64
22758 .skip 75040, 0
22759 .cfi_adjust_cfa_offset 128
22760 .cfi_endproc' > conftest.s
22761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22763 (eval $ac_try) 2>&5
22764 ac_status=$?
22765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22766 test $ac_status = 0; }; }
22767 then
22769 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22770 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22771 gcc_cv_as_cfi_advance_working=yes
22774 else
22775 echo "configure: failed program was" >&5
22776 cat conftest.s >&5
22778 rm -f conftest.o conftest.s
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22782 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22784 else
22785 # no objdump, err on the side of caution
22786 gcc_cv_as_cfi_advance_working=no
22790 cat >>confdefs.h <<_ACEOF
22791 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22792 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22793 _ACEOF
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22798 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22799 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22800 $as_echo_n "(cached) " >&6
22801 else
22802 gcc_cv_as_cfi_personality_directive=no
22803 if test x$gcc_cv_as != x; then
22804 $as_echo ' .text
22805 .cfi_startproc
22806 .cfi_personality 0, symbol
22807 .cfi_endproc' > conftest.s
22808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813 test $ac_status = 0; }; }
22814 then
22815 gcc_cv_as_cfi_personality_directive=yes
22816 else
22817 echo "configure: failed program was" >&5
22818 cat conftest.s >&5
22820 rm -f conftest.o conftest.s
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22824 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22827 cat >>confdefs.h <<_ACEOF
22828 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22829 then echo 1; else echo 0; fi`
22830 _ACEOF
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22834 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22835 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22836 $as_echo_n "(cached) " >&6
22837 else
22838 gcc_cv_as_cfi_sections_directive=no
22839 if test x$gcc_cv_as != x; then
22840 $as_echo ' .text
22841 .cfi_sections .debug_frame, .eh_frame
22842 .cfi_startproc
22843 .cfi_endproc' > conftest.s
22844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22849 test $ac_status = 0; }; }
22850 then
22851 case $target_os in
22852 win32 | pe | cygwin* | mingw32* | uwin*)
22853 # Need to check that we generated the correct relocation for the
22854 # .debug_frame section. This was fixed for binutils 2.21.
22855 gcc_cv_as_cfi_sections_directive=no
22856 if test "x$gcc_cv_objdump" != x; then
22857 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22858 grep secrel > /dev/null; then
22859 gcc_cv_as_cfi_sections_directive=yes
22864 gcc_cv_as_cfi_sections_directive=yes
22866 esac
22867 else
22868 echo "configure: failed program was" >&5
22869 cat conftest.s >&5
22871 rm -f conftest.o conftest.s
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22875 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22879 cat >>confdefs.h <<_ACEOF
22880 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22881 then echo 1; else echo 0; fi`
22882 _ACEOF
22885 # GAS versions up to and including 2.11.0 may mis-optimize
22886 # .eh_frame data.
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22888 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22889 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22890 $as_echo_n "(cached) " >&6
22891 else
22892 gcc_cv_as_eh_frame=no
22893 if test $in_tree_gas = yes; then
22894 if test $in_tree_gas_is_elf = yes \
22895 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22896 then gcc_cv_as_eh_frame=yes
22898 elif test x$gcc_cv_as != x; then
22899 $as_echo ' .text
22900 .LFB1:
22901 .4byte 0
22902 .L1:
22903 .4byte 0
22904 .LFE1:
22905 .section .eh_frame,"aw",@progbits
22906 __FRAME_BEGIN__:
22907 .4byte .LECIE1-.LSCIE1
22908 .LSCIE1:
22909 .4byte 0x0
22910 .byte 0x1
22911 .ascii "z\0"
22912 .byte 0x1
22913 .byte 0x78
22914 .byte 0x1a
22915 .byte 0x0
22916 .byte 0x4
22917 .4byte 1
22918 .p2align 1
22919 .LECIE1:
22920 .LSFDE1:
22921 .4byte .LEFDE1-.LASFDE1
22922 .LASFDE1:
22923 .4byte .LASFDE1-__FRAME_BEGIN__
22924 .4byte .LFB1
22925 .4byte .LFE1-.LFB1
22926 .byte 0x4
22927 .4byte .LFE1-.LFB1
22928 .byte 0x4
22929 .4byte .L1-.LFB1
22930 .LEFDE1:' > conftest.s
22931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22933 (eval $ac_try) 2>&5
22934 ac_status=$?
22935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936 test $ac_status = 0; }; }
22937 then
22938 cat > conftest.lit <<EOF
22939 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22940 0010 01000000 12000000 18000000 00000000 ................
22941 0020 08000000 04080000 0044 .........D
22943 cat > conftest.big <<EOF
22944 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22945 0010 00000001 00000012 00000018 00000000 ................
22946 0020 00000008 04000000 0844 .........D
22948 # If the assembler didn't choke, and we can objdump,
22949 # and we got the correct data, then succeed.
22950 # The text in the here-document typically retains its unix-style line
22951 # endings, while the output of objdump will use host line endings.
22952 # Therefore, use diff -b for the comparisons.
22953 if test x$gcc_cv_objdump != x \
22954 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22955 | tail -3 > conftest.got \
22956 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22957 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22958 then
22959 gcc_cv_as_eh_frame=yes
22960 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22962 (eval $ac_try) 2>&5
22963 ac_status=$?
22964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22965 test $ac_status = 0; }; }; then
22966 gcc_cv_as_eh_frame=buggy
22967 else
22968 # Uh oh, what do we do now?
22969 gcc_cv_as_eh_frame=no
22971 else
22972 echo "configure: failed program was" >&5
22973 cat conftest.s >&5
22975 rm -f conftest.o conftest.s
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22979 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22982 if test $gcc_cv_as_eh_frame = buggy; then
22984 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22989 $as_echo_n "checking assembler for section merging support... " >&6; }
22990 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 gcc_cv_as_shf_merge=no
22994 if test $in_tree_gas = yes; then
22995 if test $in_tree_gas_is_elf = yes \
22996 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22997 then gcc_cv_as_shf_merge=yes
22999 elif test x$gcc_cv_as != x; then
23000 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23003 (eval $ac_try) 2>&5
23004 ac_status=$?
23005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23006 test $ac_status = 0; }; }
23007 then
23008 gcc_cv_as_shf_merge=yes
23009 else
23010 echo "configure: failed program was" >&5
23011 cat conftest.s >&5
23013 rm -f conftest.o conftest.s
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23017 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23019 if test $gcc_cv_as_shf_merge = no; then
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23021 $as_echo_n "checking assembler for section merging support... " >&6; }
23022 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23023 $as_echo_n "(cached) " >&6
23024 else
23025 gcc_cv_as_shf_merge=no
23026 if test $in_tree_gas = yes; then
23027 if test $in_tree_gas_is_elf = yes \
23028 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23029 then gcc_cv_as_shf_merge=yes
23031 elif test x$gcc_cv_as != x; then
23032 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23035 (eval $ac_try) 2>&5
23036 ac_status=$?
23037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23038 test $ac_status = 0; }; }
23039 then
23040 gcc_cv_as_shf_merge=yes
23041 else
23042 echo "configure: failed program was" >&5
23043 cat conftest.s >&5
23045 rm -f conftest.o conftest.s
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23049 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23053 cat >>confdefs.h <<_ACEOF
23054 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23055 _ACEOF
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23059 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23060 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23061 $as_echo_n "(cached) " >&6
23062 else
23063 gcc_cv_as_comdat_group=no
23064 if test $in_tree_gas = yes; then
23065 if test $in_tree_gas_is_elf = yes \
23066 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23067 then gcc_cv_as_comdat_group=yes
23069 elif test x$gcc_cv_as != x; then
23070 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23073 (eval $ac_try) 2>&5
23074 ac_status=$?
23075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23076 test $ac_status = 0; }; }
23077 then
23078 gcc_cv_as_comdat_group=yes
23079 else
23080 echo "configure: failed program was" >&5
23081 cat conftest.s >&5
23083 rm -f conftest.o conftest.s
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23087 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23089 if test $gcc_cv_as_comdat_group = yes; then
23090 gcc_cv_as_comdat_group_percent=no
23091 gcc_cv_as_comdat_group_group=no
23092 else
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23094 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23095 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23096 $as_echo_n "(cached) " >&6
23097 else
23098 gcc_cv_as_comdat_group_percent=no
23099 if test $in_tree_gas = yes; then
23100 if test $in_tree_gas_is_elf = yes \
23101 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23102 then gcc_cv_as_comdat_group_percent=yes
23104 elif test x$gcc_cv_as != x; then
23105 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23108 (eval $ac_try) 2>&5
23109 ac_status=$?
23110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23111 test $ac_status = 0; }; }
23112 then
23113 gcc_cv_as_comdat_group_percent=yes
23114 else
23115 echo "configure: failed program was" >&5
23116 cat conftest.s >&5
23118 rm -f conftest.o conftest.s
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23122 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23124 if test $gcc_cv_as_comdat_group_percent = yes; then
23125 gcc_cv_as_comdat_group_group=no
23126 else
23127 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23128 gcc_cv_as_comdat_group_group=no
23130 case "${target}" in
23131 # Sun as uses a completely different syntax.
23132 *-*-solaris2*)
23133 case "${target}" in
23134 sparc*-*-solaris2*)
23135 conftest_s='
23136 .group foo,".text%foo",#comdat
23137 .section ".text%foo", #alloc,#execinstr,#progbits
23138 .globl foo
23139 foo:
23142 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23143 conftest_s='
23144 .group foo,.text%foo,#comdat
23145 .section .text%foo, "ax", @progbits
23146 .globl foo
23147 foo:
23150 esac
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23152 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23153 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23154 $as_echo_n "(cached) " >&6
23155 else
23156 gcc_cv_as_comdat_group_group=no
23157 if test x$gcc_cv_as != x; then
23158 $as_echo "$conftest_s" > conftest.s
23159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23164 test $ac_status = 0; }; }
23165 then
23166 gcc_cv_as_comdat_group_group=yes
23167 else
23168 echo "configure: failed program was" >&5
23169 cat conftest.s >&5
23171 rm -f conftest.o conftest.s
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23175 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23178 esac
23181 if test x"$ld_is_gold" = xyes; then
23182 comdat_group=yes
23183 elif test $in_tree_ld = yes ; then
23184 comdat_group=no
23185 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 \
23186 && test $in_tree_ld_is_elf = yes; then
23187 comdat_group=yes
23189 elif echo "$ld_ver" | grep GNU > /dev/null; then
23190 comdat_group=yes
23191 if test 0"$ld_date" -lt 20050308; then
23192 if test -n "$ld_date"; then
23193 # If there was date string, but was earlier than 2005-03-08, fail
23194 comdat_group=no
23195 elif test "$ld_vers_major" -lt 2; then
23196 comdat_group=no
23197 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23198 comdat_group=no
23201 else
23202 case "${target}" in
23203 *-*-solaris2.1[1-9]*)
23204 comdat_group=no
23205 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23206 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23207 # version 1.688.
23209 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23210 # least ld version 1.2267.
23211 if test "$ld_vers_major" -gt 1; then
23212 comdat_group=yes
23213 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23214 comdat_group=yes
23215 elif test "$ld_vers_minor" -ge 2267; then
23216 comdat_group=yes
23220 # Assume linkers other than GNU ld don't support COMDAT group.
23221 comdat_group=no
23223 esac
23225 # Allow overriding the automatic COMDAT group tests above.
23226 # Check whether --enable-comdat was given.
23227 if test "${enable_comdat+set}" = set; then :
23228 enableval=$enable_comdat; comdat_group="$enable_comdat"
23231 if test $comdat_group = no; then
23232 gcc_cv_as_comdat_group=no
23233 gcc_cv_as_comdat_group_percent=no
23234 gcc_cv_as_comdat_group_group=no
23237 cat >>confdefs.h <<_ACEOF
23238 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23239 || test $gcc_cv_as_comdat_group_percent = yes \
23240 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23241 _ACEOF
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23245 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23246 if test "${gcc_cv_as_discriminator+set}" = set; then :
23247 $as_echo_n "(cached) " >&6
23248 else
23249 gcc_cv_as_discriminator=no
23250 if test $in_tree_gas = yes; then
23251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23252 then gcc_cv_as_discriminator=yes
23254 elif test x$gcc_cv_as != x; then
23255 $as_echo ' .text
23256 .file 1 "conf.c"
23257 .loc 1 1 0 discriminator 1' > conftest.s
23258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23260 (eval $ac_try) 2>&5
23261 ac_status=$?
23262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23263 test $ac_status = 0; }; }
23264 then
23265 gcc_cv_as_discriminator=yes
23266 else
23267 echo "configure: failed program was" >&5
23268 cat conftest.s >&5
23270 rm -f conftest.o conftest.s
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23274 $as_echo "$gcc_cv_as_discriminator" >&6; }
23275 if test $gcc_cv_as_discriminator = yes; then
23277 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23281 # Thread-local storage - the check is heavily parameterized.
23282 conftest_s=
23283 tls_first_major=
23284 tls_first_minor=
23285 tls_as_opt=
23286 case "$target" in
23287 alpha*-*-*)
23288 conftest_s='
23289 .section ".tdata","awT",@progbits
23290 foo: .long 25
23291 .text
23292 ldq $27,__tls_get_addr($29) !literal!1
23293 lda $16,foo($29) !tlsgd!1
23294 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23295 ldq $27,__tls_get_addr($29) !literal!2
23296 lda $16,foo($29) !tlsldm!2
23297 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23298 ldq $1,foo($29) !gotdtprel
23299 ldah $2,foo($29) !dtprelhi
23300 lda $3,foo($2) !dtprello
23301 lda $4,foo($29) !dtprel
23302 ldq $1,foo($29) !gottprel
23303 ldah $2,foo($29) !tprelhi
23304 lda $3,foo($2) !tprello
23305 lda $4,foo($29) !tprel'
23306 tls_first_major=2
23307 tls_first_minor=13
23308 tls_as_opt=--fatal-warnings
23310 cris-*-*|crisv32-*-*)
23311 conftest_s='
23312 .section ".tdata","awT",@progbits
23313 x: .long 25
23314 .text
23315 move.d x:IE,$r10
23316 nop'
23317 tls_first_major=2
23318 tls_first_minor=20
23319 tls_as_opt=--fatal-warnings
23321 frv*-*-*)
23322 conftest_s='
23323 .section ".tdata","awT",@progbits
23324 x: .long 25
23325 .text
23326 call #gettlsoff(x)'
23327 tls_first_major=2
23328 tls_first_minor=14
23330 hppa*-*-linux*)
23331 conftest_s='
23332 t1: .reg %r20
23333 t2: .reg %r21
23334 gp: .reg %r19
23335 .section ".tdata","awT",@progbits
23336 foo: .long 25
23337 .text
23338 .align 4
23339 addil LT%foo-$tls_gdidx$,gp
23340 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23341 b __tls_get_addr
23343 addil LT%foo-$tls_ldidx$,gp
23344 b __tls_get_addr
23345 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23346 addil LR%foo-$tls_dtpoff$,%ret0
23347 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23348 mfctl %cr27,%t1
23349 addil LT%foo-$tls_ieoff$,gp
23350 ldw RT%foo-$tls_ieoff$(%r1),%t2
23351 add %t1,%t2,%t3
23352 mfctl %cr27,%t1
23353 addil LR%foo-$tls_leoff$,%t1
23354 ldo RR%foo-$tls_leoff$(%r1),%t2'
23355 tls_first_major=2
23356 tls_first_minor=15
23357 tls_as_opt=--fatal-warnings
23359 arm*-*-*)
23360 conftest_s='
23361 .section ".tdata","awT",%progbits
23362 foo: .long 25
23363 .text
23364 .word foo(gottpoff)
23365 .word foo(tpoff)
23366 .word foo(tlsgd)
23367 .word foo(tlsldm)
23368 .word foo(tlsldo)'
23369 tls_first_major=2
23370 tls_first_minor=17
23372 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23373 case "$target" in
23374 i[34567]86-*-solaris2.*)
23375 on_solaris=yes
23376 tga_func=___tls_get_addr
23378 x86_64-*-solaris2.1[0-9]*)
23379 on_solaris=yes
23380 tga_func=__tls_get_addr
23383 on_solaris=no
23385 esac
23386 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23387 conftest_s='
23388 .section .tdata,"awt",@progbits'
23389 tls_first_major=0
23390 tls_first_minor=0
23392 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23394 else
23395 conftest_s='
23396 .section ".tdata","awT",@progbits'
23397 tls_first_major=2
23398 tls_first_minor=14
23399 tls_as_opt="--fatal-warnings"
23401 conftest_s="$conftest_s
23402 foo: .long 25
23403 .text
23404 movl %gs:0, %eax
23405 leal foo@tlsgd(,%ebx,1), %eax
23406 leal foo@tlsldm(%ebx), %eax
23407 leal foo@dtpoff(%eax), %edx
23408 movl foo@gottpoff(%ebx), %eax
23409 subl foo@gottpoff(%ebx), %eax
23410 addl foo@gotntpoff(%ebx), %eax
23411 movl foo@indntpoff, %eax
23412 movl \$foo@tpoff, %eax
23413 subl \$foo@tpoff, %eax
23414 leal foo@ntpoff(%ecx), %eax"
23416 x86_64-*-*)
23417 conftest_s='
23418 .section ".tdata","awT",@progbits
23419 foo: .long 25
23420 .text
23421 movq %fs:0, %rax
23422 leaq foo@TLSGD(%rip), %rdi
23423 leaq foo@TLSLD(%rip), %rdi
23424 leaq foo@DTPOFF(%rax), %rdx
23425 movq foo@GOTTPOFF(%rip), %rax
23426 movq $foo@TPOFF, %rax'
23427 tls_first_major=2
23428 tls_first_minor=14
23429 tls_as_opt=--fatal-warnings
23431 ia64-*-*)
23432 conftest_s='
23433 .section ".tdata","awT",@progbits
23434 foo: data8 25
23435 .text
23436 addl r16 = @ltoff(@dtpmod(foo#)), gp
23437 addl r17 = @ltoff(@dtprel(foo#)), gp
23438 addl r18 = @ltoff(@tprel(foo#)), gp
23439 addl r19 = @dtprel(foo#), gp
23440 adds r21 = @dtprel(foo#), r13
23441 movl r23 = @dtprel(foo#)
23442 addl r20 = @tprel(foo#), gp
23443 adds r22 = @tprel(foo#), r13
23444 movl r24 = @tprel(foo#)'
23445 tls_first_major=2
23446 tls_first_minor=13
23447 tls_as_opt=--fatal-warnings
23449 microblaze*-*-*)
23450 conftest_s='
23451 .section .tdata,"awT",@progbits
23453 .word 2
23454 .text
23455 addik r5,r20,x@TLSGD
23456 addik r5,r20,x@TLSLDM'
23457 tls_first_major=2
23458 tls_first_minor=20
23459 tls_as_opt='--fatal-warnings'
23461 mips*-*-*)
23462 conftest_s='
23463 .section .tdata,"awT",@progbits
23465 .word 2
23466 .text
23467 addiu $4, $28, %tlsgd(x)
23468 addiu $4, $28, %tlsldm(x)
23469 lui $4, %dtprel_hi(x)
23470 addiu $4, $4, %dtprel_lo(x)
23471 lw $4, %gottprel(x)($28)
23472 lui $4, %tprel_hi(x)
23473 addiu $4, $4, %tprel_lo(x)'
23474 tls_first_major=2
23475 tls_first_minor=16
23476 tls_as_opt='-32 --fatal-warnings'
23478 m68k-*-*)
23479 conftest_s='
23480 .section .tdata,"awT",@progbits
23482 .word 2
23483 .text
23484 foo:
23485 move.l x@TLSGD(%a5),%a0
23486 move.l x@TLSLDM(%a5),%a0
23487 move.l x@TLSLDO(%a5),%a0
23488 move.l x@TLSIE(%a5),%a0
23489 move.l x@TLSLE(%a5),%a0'
23490 tls_first_major=2
23491 tls_first_minor=19
23492 tls_as_opt='--fatal-warnings'
23494 nios2-*-*)
23495 conftest_s='
23496 .section ".tdata","awT",@progbits'
23497 tls_first_major=2
23498 tls_first_minor=23
23499 tls_as_opt="--fatal-warnings"
23501 aarch64*-*-*)
23502 conftest_s='
23503 .section ".tdata","awT",%progbits
23504 foo: .long 25
23505 .text
23506 adrp x0, :tlsgd:x
23507 add x0, x0, #:tlsgd_lo12:x
23508 bl __tls_get_addr
23509 nop'
23510 tls_first_major=2
23511 tls_first_minor=20
23512 tls_as_opt='--fatal-warnings'
23514 powerpc-ibm-aix*)
23515 conftest_s='
23516 .extern __get_tpointer
23517 .toc
23518 LC..1:
23519 .tc a[TC],a[TL]@le
23520 .csect .text[PR]
23521 .tlstest:
23522 lwz 9,LC..1(2)
23523 bla __get_tpointer
23524 lwzx 3,9,3
23525 .globl a
23526 .csect a[TL],4
23528 .space 4'
23529 tls_first_major=0
23530 tls_first_minor=0
23532 powerpc64*-*-*)
23533 conftest_s='
23534 .section ".tdata","awT",@progbits
23535 .align 3
23536 ld0: .space 8
23537 ld1: .space 8
23538 x1: .space 8
23539 x2: .space 8
23540 x3: .space 8
23541 .text
23542 addi 3,2,ld0@got@tlsgd
23543 bl .__tls_get_addr
23545 addi 3,2,ld1@toc
23546 bl .__tls_get_addr
23548 addi 3,2,x1@got@tlsld
23549 bl .__tls_get_addr
23551 addi 9,3,x1@dtprel
23552 bl .__tls_get_addr
23554 addis 9,3,x2@dtprel@ha
23555 addi 9,9,x2@dtprel@l
23556 bl .__tls_get_addr
23558 ld 9,x3@got@dtprel(2)
23559 add 9,9,3
23560 bl .__tls_get_addr
23561 nop'
23562 tls_first_major=2
23563 tls_first_minor=14
23564 tls_as_opt="-a64 --fatal-warnings"
23566 powerpc*-*-*)
23567 conftest_s='
23568 .section ".tdata","awT",@progbits
23569 .align 2
23570 ld0: .space 4
23571 ld1: .space 4
23572 x1: .space 4
23573 x2: .space 4
23574 x3: .space 4
23575 .text
23576 addi 3,31,ld0@got@tlsgd
23577 bl __tls_get_addr
23578 addi 3,31,x1@got@tlsld
23579 bl __tls_get_addr
23580 addi 9,3,x1@dtprel
23581 addis 9,3,x2@dtprel@ha
23582 addi 9,9,x2@dtprel@l
23583 lwz 9,x3@got@tprel(31)
23584 add 9,9,x@tls
23585 addi 9,2,x1@tprel
23586 addis 9,2,x2@tprel@ha
23587 addi 9,9,x2@tprel@l'
23588 tls_first_major=2
23589 tls_first_minor=14
23590 tls_as_opt="-a32 --fatal-warnings"
23592 s390-*-*)
23593 conftest_s='
23594 .section ".tdata","awT",@progbits
23595 foo: .long 25
23596 .text
23597 .long foo@TLSGD
23598 .long foo@TLSLDM
23599 .long foo@DTPOFF
23600 .long foo@NTPOFF
23601 .long foo@GOTNTPOFF
23602 .long foo@INDNTPOFF
23603 l %r1,foo@GOTNTPOFF(%r12)
23604 l %r1,0(%r1):tls_load:foo
23605 bas %r14,0(%r1,%r13):tls_gdcall:foo
23606 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23607 tls_first_major=2
23608 tls_first_minor=14
23609 tls_as_opt="-m31 --fatal-warnings"
23611 s390x-*-*)
23612 conftest_s='
23613 .section ".tdata","awT",@progbits
23614 foo: .long 25
23615 .text
23616 .quad foo@TLSGD
23617 .quad foo@TLSLDM
23618 .quad foo@DTPOFF
23619 .quad foo@NTPOFF
23620 .quad foo@GOTNTPOFF
23621 lg %r1,foo@GOTNTPOFF(%r12)
23622 larl %r1,foo@INDNTPOFF
23623 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23624 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23625 tls_first_major=2
23626 tls_first_minor=14
23627 tls_as_opt="-m64 -Aesame --fatal-warnings"
23629 sh-*-* | sh[34]-*-*)
23630 conftest_s='
23631 .section ".tdata","awT",@progbits
23632 foo: .long 25
23633 .text
23634 .long foo@TLSGD
23635 .long foo@TLSLDM
23636 .long foo@DTPOFF
23637 .long foo@GOTTPOFF
23638 .long foo@TPOFF'
23639 tls_first_major=2
23640 tls_first_minor=13
23641 tls_as_opt=--fatal-warnings
23643 sparc*-*-*)
23644 case "$target" in
23645 sparc*-sun-solaris2.*)
23646 on_solaris=yes
23647 tga_func=__tls_get_addr
23650 on_solaris=no
23652 esac
23653 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23654 conftest_s='
23655 .section ".tdata",#alloc,#write,#tls'
23656 tls_first_major=0
23657 tls_first_minor=0
23658 else
23659 conftest_s='
23660 .section ".tdata","awT",@progbits'
23661 tls_first_major=2
23662 tls_first_minor=14
23663 tls_as_opt="-32 --fatal-warnings"
23665 conftest_s="$conftest_s
23666 foo: .long 25
23667 .text
23668 sethi %tgd_hi22(foo), %o0
23669 add %o0, %tgd_lo10(foo), %o1
23670 add %l7, %o1, %o0, %tgd_add(foo)
23671 call __tls_get_addr, %tgd_call(foo)
23672 sethi %tldm_hi22(foo), %l1
23673 add %l1, %tldm_lo10(foo), %l2
23674 add %l7, %l2, %o0, %tldm_add(foo)
23675 call __tls_get_addr, %tldm_call(foo)
23676 sethi %tldo_hix22(foo), %l3
23677 xor %l3, %tldo_lox10(foo), %l4
23678 add %o0, %l4, %l5, %tldo_add(foo)
23679 sethi %tie_hi22(foo), %o3
23680 add %o3, %tie_lo10(foo), %o3
23681 ld [%l7 + %o3], %o2, %tie_ld(foo)
23682 add %g7, %o2, %o4, %tie_add(foo)
23683 sethi %tle_hix22(foo), %l1
23684 xor %l1, %tle_lox10(foo), %o5
23685 ld [%g7 + %o5], %o1"
23687 tilepro*-*-*)
23688 conftest_s='
23689 .section ".tdata","awT",@progbits
23690 foo: .long 25
23691 .text
23692 addli r0, zero, tls_gd(foo)
23693 auli r0, zero, tls_gd_ha16(foo)
23694 addli r0, r0, tls_gd_lo16(foo)
23695 jal __tls_get_addr
23696 addli r0, zero, tls_ie(foo)
23697 auli r0, r0, tls_ie_ha16(foo)
23698 addli r0, r0, tls_ie_lo16(foo)'
23699 tls_first_major=2
23700 tls_first_minor=22
23701 tls_as_opt="--fatal-warnings"
23703 tilegx*-*-*)
23704 conftest_s='
23705 .section ".tdata","awT",@progbits
23706 foo: .long 25
23707 .text
23708 shl16insli r0, zero, hw0_last_tls_gd(foo)
23709 shl16insli r0, zero, hw1_last_tls_gd(foo)
23710 shl16insli r0, r0, hw0_tls_gd(foo)
23711 jal __tls_get_addr
23712 shl16insli r0, zero, hw1_last_tls_ie(foo)
23713 shl16insli r0, r0, hw0_tls_ie(foo)'
23714 tls_first_major=2
23715 tls_first_minor=22
23716 tls_as_opt="--fatal-warnings"
23718 xtensa*-*-*)
23719 conftest_s='
23720 .section ".tdata","awT",@progbits
23721 foo: .long 25
23722 .text
23723 movi a8, foo@TLSFUNC
23724 movi a10, foo@TLSARG
23725 callx8.tls a8, foo@TLSCALL'
23726 tls_first_major=2
23727 tls_first_minor=19
23729 esac
23730 set_have_as_tls=no
23731 if test "x$enable_tls" = xno ; then
23732 : # TLS explicitly disabled.
23733 elif test "x$enable_tls" = xyes ; then
23734 set_have_as_tls=yes # TLS explicitly enabled.
23735 elif test -z "$tls_first_major"; then
23736 : # If we don't have a check, assume no support.
23737 else
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23739 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23740 if test "${gcc_cv_as_tls+set}" = set; then :
23741 $as_echo_n "(cached) " >&6
23742 else
23743 gcc_cv_as_tls=no
23744 if test $in_tree_gas = yes; then
23745 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23746 then gcc_cv_as_tls=yes
23748 elif test x$gcc_cv_as != x; then
23749 $as_echo "$conftest_s" > conftest.s
23750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23752 (eval $ac_try) 2>&5
23753 ac_status=$?
23754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23755 test $ac_status = 0; }; }
23756 then
23757 gcc_cv_as_tls=yes
23758 else
23759 echo "configure: failed program was" >&5
23760 cat conftest.s >&5
23762 rm -f conftest.o conftest.s
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23766 $as_echo "$gcc_cv_as_tls" >&6; }
23767 if test $gcc_cv_as_tls = yes; then
23768 set_have_as_tls=yes
23771 case "$target" in
23772 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23773 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23774 # Sun style that Sun ld and GCC don't support any longer.
23775 *-*-solaris2.*)
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23777 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23778 ld_tls_support=no
23779 # Check ld and ld.so.1 TLS support.
23780 if echo "$ld_ver" | grep GNU > /dev/null; then
23781 # Assume all interesting versions of GNU ld have TLS support.
23782 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23783 ld_tls_support=yes
23784 else
23785 case "$target" in
23786 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23787 i?86-*-solaris2.9)
23788 min_tls_ld_vers_minor=374
23790 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23791 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23792 min_tls_ld_vers_minor=343
23794 esac
23795 if test "$ld_vers_major" -gt 1 || \
23796 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23797 ld_tls_support=yes
23798 else
23799 set_have_as_tls=no
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23803 $as_echo "$ld_tls_support" >&6; }
23805 save_LIBS="$LIBS"
23806 save_LDFLAGS="$LDFLAGS"
23807 LIBS=
23808 LDFLAGS=
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23811 $as_echo_n "checking library containing $tga_func... " >&6; }
23812 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23813 # (32-bit x86) only lived in libthread, so check for that. Keep
23814 # set_have_as_tls if found, disable if not.
23815 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23817 $as_echo_n "checking for library containing $tga_func... " >&6; }
23818 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23819 $as_echo_n "(cached) " >&6
23820 else
23821 ac_func_search_save_LIBS=$LIBS
23822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h. */
23825 /* Override any GCC internal prototype to avoid an error.
23826 Use char because int might match the return type of a GCC
23827 builtin and then its argument prototype would still apply. */
23828 #ifdef __cplusplus
23829 extern "C"
23830 #endif
23831 char $tga_func ();
23833 main ()
23835 return $tga_func ();
23837 return 0;
23839 _ACEOF
23840 for ac_lib in '' thread; do
23841 if test -z "$ac_lib"; then
23842 ac_res="none required"
23843 else
23844 ac_res=-l$ac_lib
23845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23847 if ac_fn_c_try_link "$LINENO"; then :
23848 eval "$as_ac_Search=\$ac_res"
23850 rm -f core conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext
23852 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23853 break
23855 done
23856 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23858 else
23859 eval "$as_ac_Search=no"
23861 rm conftest.$ac_ext
23862 LIBS=$ac_func_search_save_LIBS
23864 eval ac_res=\$$as_ac_Search
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23866 $as_echo "$ac_res" >&6; }
23867 eval ac_res=\$$as_ac_Search
23868 if test "$ac_res" != no; then :
23869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23871 else
23872 set_have_as_tls=no
23875 # Clear LIBS if we cannot support TLS.
23876 if test $set_have_as_tls = no; then
23877 LIBS=
23879 # Always define LIB_TLS_SPEC, even without TLS support.
23881 cat >>confdefs.h <<_ACEOF
23882 #define LIB_TLS_SPEC "$LIBS"
23883 _ACEOF
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23886 $as_echo "$LIBS" >&6; }
23888 LIBS="$save_LIBS"
23889 LDFLAGS="$save_LDFLAGS"
23891 esac
23892 if test $set_have_as_tls = yes ; then
23894 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23898 # Target-specific assembler checks.
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23901 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23902 gcc_cv_ld_static_dynamic=no
23903 gcc_cv_ld_static_option='-Bstatic'
23904 gcc_cv_ld_dynamic_option='-Bdynamic'
23905 if test $in_tree_ld = yes ; then
23906 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
23907 gcc_cv_ld_static_dynamic=yes
23909 elif test x$gcc_cv_ld != x; then
23910 # Check if linker supports -Bstatic/-Bdynamic option
23911 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23912 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23913 gcc_cv_ld_static_dynamic=yes
23914 else
23915 case "$target" in
23916 # AIX ld uses -b flags
23917 *-*-aix4.[23]* | *-*-aix[5-9]*)
23918 gcc_cv_ld_static_dynamic=yes
23919 gcc_cv_ld_static_option="-bstatic"
23920 gcc_cv_ld_dynamic_option="-bdynamic"
23922 # HP-UX ld uses -a flags to select between shared and archive.
23923 *-*-hpux*)
23924 if test x"$gnu_ld" = xno; then
23925 gcc_cv_ld_static_dynamic=yes
23926 gcc_cv_ld_static_option="-aarchive_shared"
23927 gcc_cv_ld_dynamic_option="-adefault"
23930 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23931 *-*-solaris2*)
23932 gcc_cv_ld_static_dynamic=yes
23934 esac
23937 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23939 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23942 cat >>confdefs.h <<_ACEOF
23943 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23944 _ACEOF
23947 cat >>confdefs.h <<_ACEOF
23948 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23949 _ACEOF
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23953 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23955 if test x"$demangler_in_ld" = xyes; then
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23957 $as_echo_n "checking linker --demangle support... " >&6; }
23958 gcc_cv_ld_demangle=no
23959 if test $in_tree_ld = yes; then
23960 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 \
23961 gcc_cv_ld_demangle=yes
23963 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23964 # Check if the GNU linker supports --demangle option
23965 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23966 gcc_cv_ld_demangle=yes
23969 if test x"$gcc_cv_ld_demangle" = xyes; then
23971 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23975 $as_echo "$gcc_cv_ld_demangle" >&6; }
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23979 $as_echo_n "checking linker plugin support... " >&6; }
23980 gcc_cv_lto_plugin=0
23981 if test -f liblto_plugin.la; then
23982 save_ld_ver="$ld_ver"
23983 save_ld_vers_major="$ld_vers_major"
23984 save_ld_vers_minor="$ld_vers_minor"
23985 save_ld_is_gold="$ld_is_gold"
23987 ld_is_gold=no
23989 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23990 ld_ver="GNU ld"
23991 # FIXME: ld_is_gold?
23992 ld_vers_major="$gcc_cv_gld_major_version"
23993 ld_vers_minor="$gcc_cv_gld_minor_version"
23994 else
23995 # Determine plugin linker version.
23996 # FIXME: Partial duplicate from above, generalize.
23997 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23998 if echo "$ld_ver" | grep GNU > /dev/null; then
23999 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24000 ld_is_gold=yes
24001 ld_vers=`echo $ld_ver | sed -n \
24002 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24003 else
24004 ld_vers=`echo $ld_ver | sed -n \
24005 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24007 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24008 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24012 # Determine plugin support.
24013 if echo "$ld_ver" | grep GNU > /dev/null; then
24014 # Require GNU ld or gold 2.21+ for plugin support by default.
24015 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24016 gcc_cv_lto_plugin=2
24017 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24018 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24019 gcc_cv_lto_plugin=1
24023 ld_ver="$save_ld_ver"
24024 ld_vers_major="$save_ld_vers_major"
24025 ld_vers_minor="$save_ld_vers_minor"
24026 ld_is_gold="$save_ld_is_gold"
24029 cat >>confdefs.h <<_ACEOF
24030 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24031 _ACEOF
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24034 $as_echo "$gcc_cv_lto_plugin" >&6; }
24036 case "$target" in
24037 aarch64*-*-*)
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24039 $as_echo_n "checking assembler for -mabi option... " >&6; }
24040 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24041 $as_echo_n "(cached) " >&6
24042 else
24043 gcc_cv_as_aarch64_mabi=no
24044 if test x$gcc_cv_as != x; then
24045 $as_echo '.text' > conftest.s
24046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24048 (eval $ac_try) 2>&5
24049 ac_status=$?
24050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24051 test $ac_status = 0; }; }
24052 then
24053 gcc_cv_as_aarch64_mabi=yes
24054 else
24055 echo "configure: failed program was" >&5
24056 cat conftest.s >&5
24058 rm -f conftest.o conftest.s
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24062 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24064 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24066 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24068 else
24069 if test x$with_abi = xilp32; then
24070 as_fn_error "Assembler does not support -mabi=ilp32.\
24071 Upgrade the Assembler." "$LINENO" 5
24073 if test x"$with_multilib_list" = xdefault; then
24074 TM_MULTILIB_CONFIG=lp64
24075 else
24076 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24077 for aarch64_multilib in ${aarch64_multilibs}; do
24078 case ${aarch64_multilib} in
24079 ilp32)
24080 as_fn_error "Assembler does not support -mabi=ilp32.\
24081 Upgrade the Assembler." "$LINENO" 5
24085 esac
24086 done
24091 # All TARGET_ABI_OSF targets.
24092 alpha*-*-linux* | alpha*-*-*bsd*)
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24094 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24095 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24096 $as_echo_n "(cached) " >&6
24097 else
24098 gcc_cv_as_alpha_explicit_relocs=no
24099 if test $in_tree_gas = yes; then
24100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24101 then gcc_cv_as_alpha_explicit_relocs=yes
24103 elif test x$gcc_cv_as != x; then
24104 $as_echo ' .set nomacro
24105 .text
24106 extbl $3, $2, $3 !lituse_bytoff!1
24107 ldq $2, a($29) !literal!1
24108 ldq $4, b($29) !literal!2
24109 ldq_u $3, 0($2) !lituse_base!1
24110 ldq $27, f($29) !literal!5
24111 jsr $26, ($27), f !lituse_jsr!5
24112 ldah $29, 0($26) !gpdisp!3
24113 lda $0, c($29) !gprel
24114 ldah $1, d($29) !gprelhigh
24115 lda $1, d($1) !gprellow
24116 lda $29, 0($29) !gpdisp!3' > conftest.s
24117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24119 (eval $ac_try) 2>&5
24120 ac_status=$?
24121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24122 test $ac_status = 0; }; }
24123 then
24124 gcc_cv_as_alpha_explicit_relocs=yes
24125 else
24126 echo "configure: failed program was" >&5
24127 cat conftest.s >&5
24129 rm -f conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24133 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24134 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24136 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24140 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24141 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24142 $as_echo_n "(cached) " >&6
24143 else
24144 gcc_cv_as_alpha_jsrdirect_relocs=no
24145 if test $in_tree_gas = yes; then
24146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24147 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24149 elif test x$gcc_cv_as != x; then
24150 $as_echo ' .set nomacro
24151 .text
24152 ldq $27, a($29) !literal!1
24153 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24156 (eval $ac_try) 2>&5
24157 ac_status=$?
24158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24159 test $ac_status = 0; }; }
24160 then
24161 gcc_cv_as_alpha_jsrdirect_relocs=yes
24162 else
24163 echo "configure: failed program was" >&5
24164 cat conftest.s >&5
24166 rm -f conftest.o conftest.s
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24170 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24171 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24173 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24178 cris-*-*)
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24180 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24181 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24182 $as_echo_n "(cached) " >&6
24183 else
24184 gcc_cv_as_cris_no_mul_bug=no
24185 if test $in_tree_gas = yes; then
24186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24187 then gcc_cv_as_cris_no_mul_bug=yes
24189 elif test x$gcc_cv_as != x; then
24190 $as_echo '.text' > conftest.s
24191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24193 (eval $ac_try) 2>&5
24194 ac_status=$?
24195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24196 test $ac_status = 0; }; }
24197 then
24198 gcc_cv_as_cris_no_mul_bug=yes
24199 else
24200 echo "configure: failed program was" >&5
24201 cat conftest.s >&5
24203 rm -f conftest.o conftest.s
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24207 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24208 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24210 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24215 sparc*-*-*)
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24217 $as_echo_n "checking assembler for .register... " >&6; }
24218 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24219 $as_echo_n "(cached) " >&6
24220 else
24221 gcc_cv_as_sparc_register_op=no
24222 if test x$gcc_cv_as != x; then
24223 $as_echo '.register %g2, #scratch' > conftest.s
24224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24226 (eval $ac_try) 2>&5
24227 ac_status=$?
24228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24229 test $ac_status = 0; }; }
24230 then
24231 gcc_cv_as_sparc_register_op=yes
24232 else
24233 echo "configure: failed program was" >&5
24234 cat conftest.s >&5
24236 rm -f conftest.o conftest.s
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24240 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24241 if test $gcc_cv_as_sparc_register_op = yes; then
24243 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24248 $as_echo_n "checking assembler for #nobits... " >&6; }
24249 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24250 $as_echo_n "(cached) " >&6
24251 else
24252 gcc_cv_as_sparc_nobits=no
24253 if test x$gcc_cv_as != x; then
24254 $as_echo '.section "nobits",#alloc,#write,#nobits
24255 .section "progbits",#alloc,#write,#progbits' > conftest.s
24256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24258 (eval $ac_try) 2>&5
24259 ac_status=$?
24260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24261 test $ac_status = 0; }; }
24262 then
24263 gcc_cv_as_sparc_nobits=yes
24264 else
24265 echo "configure: failed program was" >&5
24266 cat conftest.s >&5
24268 rm -f conftest.o conftest.s
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24272 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24275 cat >>confdefs.h <<_ACEOF
24276 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24277 _ACEOF
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24281 $as_echo_n "checking assembler for -relax option... " >&6; }
24282 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24284 else
24285 gcc_cv_as_sparc_relax=no
24286 if test x$gcc_cv_as != x; then
24287 $as_echo '.text' > conftest.s
24288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24290 (eval $ac_try) 2>&5
24291 ac_status=$?
24292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24293 test $ac_status = 0; }; }
24294 then
24295 gcc_cv_as_sparc_relax=yes
24296 else
24297 echo "configure: failed program was" >&5
24298 cat conftest.s >&5
24300 rm -f conftest.o conftest.s
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24304 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24305 if test $gcc_cv_as_sparc_relax = yes; then
24307 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24312 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24313 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24315 else
24316 gcc_cv_as_sparc_gotdata_op=no
24317 if test x$gcc_cv_as != x; then
24318 $as_echo '.text
24319 .align 4
24320 foo:
24322 bar:
24323 sethi %gdop_hix22(foo), %g1
24324 xor %g1, %gdop_lox10(foo), %g1
24325 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24332 then
24333 if test x$gcc_cv_ld != x \
24334 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24335 if test x$gcc_cv_objdump != x; then
24336 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24337 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24338 gcc_cv_as_sparc_gotdata_op=no
24339 else
24340 gcc_cv_as_sparc_gotdata_op=yes
24344 rm -f conftest
24345 else
24346 echo "configure: failed program was" >&5
24347 cat conftest.s >&5
24349 rm -f conftest.o conftest.s
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24353 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24354 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24356 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24361 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24362 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24364 else
24365 gcc_cv_as_sparc_ua_pcrel=no
24366 if test x$gcc_cv_as != x; then
24367 $as_echo '.text
24368 foo:
24370 .data
24371 .align 4
24372 .byte 0
24373 .uaword %r_disp32(foo)' > conftest.s
24374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }
24380 then
24381 if test x$gcc_cv_ld != x \
24382 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24383 gcc_cv_as_sparc_ua_pcrel=yes
24385 rm -f conftest
24386 else
24387 echo "configure: failed program was" >&5
24388 cat conftest.s >&5
24390 rm -f conftest.o conftest.s
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24394 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24395 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24397 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24401 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24402 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24403 $as_echo_n "(cached) " >&6
24404 else
24405 gcc_cv_as_sparc_ua_pcrel_hidden=no
24406 if test x$gcc_cv_as != x; then
24407 $as_echo '.data
24408 .align 4
24409 .byte 0x31
24410 .uaword %r_disp32(foo)
24411 .byte 0x32, 0x33, 0x34
24412 .global foo
24413 .hidden foo
24414 foo:
24415 .skip 4' > conftest.s
24416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24418 (eval $ac_try) 2>&5
24419 ac_status=$?
24420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24421 test $ac_status = 0; }; }
24422 then
24423 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24424 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24425 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24426 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24427 if $gcc_cv_objdump -R conftest 2> /dev/null \
24428 | grep 'DISP32' > /dev/null 2>&1; then
24430 else
24431 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24434 rm -f conftest
24435 else
24436 echo "configure: failed program was" >&5
24437 cat conftest.s >&5
24439 rm -f conftest.o conftest.s
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24443 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24444 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24446 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24450 fi # unaligned pcrel relocs
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24453 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24454 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24456 else
24457 gcc_cv_as_sparc_offsetable_lo10=no
24458 if test x$gcc_cv_as != x; then
24459 $as_echo '.text
24460 or %g1, %lo(ab) + 12, %g1
24461 or %g1, %lo(ab + 12), %g1' > conftest.s
24462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24467 test $ac_status = 0; }; }
24468 then
24469 if test x$gcc_cv_objdump != x \
24470 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24471 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24472 gcc_cv_as_sparc_offsetable_lo10=yes
24474 else
24475 echo "configure: failed program was" >&5
24476 cat conftest.s >&5
24478 rm -f conftest.o conftest.s
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24482 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24483 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24485 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24490 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24491 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24493 else
24494 gcc_cv_as_sparc_fmaf=no
24495 if test x$gcc_cv_as != x; then
24496 $as_echo '.text
24497 .register %g2, #scratch
24498 .register %g3, #scratch
24499 .align 4
24500 fmaddd %f0, %f2, %f4, %f6
24501 addxccc %g1, %g2, %g3
24502 fsrl32 %f2, %f4, %f8
24503 fnaddd %f10, %f12, %f14' > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -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_fmaf=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_fmaf" >&5
24520 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24521 if test $gcc_cv_as_sparc_fmaf = yes; then
24523 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24528 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24529 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24530 $as_echo_n "(cached) " >&6
24531 else
24532 gcc_cv_as_sparc_sparc4=no
24533 if test x$gcc_cv_as != x; then
24534 $as_echo '.text
24535 .register %g2, #scratch
24536 .register %g3, #scratch
24537 .align 4
24538 cxbe %g2, %g3, 1f
24539 1: cwbneg %g2, %g3, 1f
24540 1: sha1
24542 aes_kexpand0 %f4, %f6, %f8
24543 des_round %f38, %f40, %f42, %f44
24544 camellia_f %f54, %f56, %f58, %f60
24545 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24552 then
24553 gcc_cv_as_sparc_sparc4=yes
24554 else
24555 echo "configure: failed program was" >&5
24556 cat conftest.s >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24562 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24563 if test $gcc_cv_as_sparc_sparc4 = yes; then
24565 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24570 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24571 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 gcc_cv_as_sparc_leon=no
24575 if test x$gcc_cv_as != x; then
24576 $as_echo '.text
24577 .register %g2, #scratch
24578 .register %g3, #scratch
24579 .align 4
24580 smac %g2, %g3, %g1
24581 umac %g2, %g3, %g1
24582 cas [%g2], %g3, %g1' > conftest.s
24583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24588 test $ac_status = 0; }; }
24589 then
24590 gcc_cv_as_sparc_leon=yes
24591 else
24592 echo "configure: failed program was" >&5
24593 cat conftest.s >&5
24595 rm -f conftest.o conftest.s
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24599 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24600 if test $gcc_cv_as_sparc_leon = yes; then
24602 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24607 i[34567]86-*-* | x86_64-*-*)
24608 case $target_os in
24609 cygwin*)
24610 # Full C++ conformance when using a shared libstdc++-v3 requires some
24611 # support from the Cygwin DLL, which in more recent versions exports
24612 # wrappers to aid in interposing and redirecting operators new, delete,
24613 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24614 # are configuring for a version of Cygwin that exports the wrappers.
24615 if test x$host = x$target && test x$host_cpu = xi686; then
24616 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24617 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24618 gcc_ac_cygwin_dll_wrappers=yes
24619 else
24620 gcc_ac_cygwin_dll_wrappers=no
24623 else
24624 # Can't check presence of libc functions during cross-compile, so
24625 # we just have to assume we're building for an up-to-date target.
24626 gcc_ac_cygwin_dll_wrappers=yes
24629 cat >>confdefs.h <<_ACEOF
24630 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24631 _ACEOF
24633 esac
24634 case $target_os in
24635 cygwin* | pe | mingw32* | interix*)
24636 # Recent binutils allows the three-operand form of ".comm" on PE. This
24637 # definition is used unconditionally to initialise the default state of
24638 # the target option variable that governs usage of the feature.
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24640 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24641 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24642 $as_echo_n "(cached) " >&6
24643 else
24644 gcc_cv_as_comm_has_align=no
24645 if test $in_tree_gas = yes; then
24646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24647 then gcc_cv_as_comm_has_align=yes
24649 elif test x$gcc_cv_as != x; then
24650 $as_echo '.comm foo,1,32' > conftest.s
24651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24653 (eval $ac_try) 2>&5
24654 ac_status=$?
24655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24656 test $ac_status = 0; }; }
24657 then
24658 gcc_cv_as_comm_has_align=yes
24659 else
24660 echo "configure: failed program was" >&5
24661 cat conftest.s >&5
24663 rm -f conftest.o conftest.s
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24667 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24670 cat >>confdefs.h <<_ACEOF
24671 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24672 _ACEOF
24674 # Used for DWARF 2 in PE
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24676 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24677 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24679 else
24680 gcc_cv_as_ix86_pe_secrel32=no
24681 if test $in_tree_gas = yes; then
24682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24683 then gcc_cv_as_ix86_pe_secrel32=yes
24685 elif test x$gcc_cv_as != x; then
24686 $as_echo '.text
24687 foo: nop
24688 .data
24689 .secrel32 foo' > conftest.s
24690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24695 test $ac_status = 0; }; }
24696 then
24697 if test x$gcc_cv_ld != x \
24698 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24699 gcc_cv_as_ix86_pe_secrel32=yes
24701 rm -f conftest
24702 else
24703 echo "configure: failed program was" >&5
24704 cat conftest.s >&5
24706 rm -f conftest.o conftest.s
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24710 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24711 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24713 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24716 # Test if the assembler supports the extended form of the .section
24717 # directive that specifies section alignment. LTO support uses this,
24718 # but normally only after installation, so we warn but don't fail the
24719 # configure if LTO is enabled but the assembler does not support it.
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24721 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24722 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 gcc_cv_as_section_has_align=no
24726 if test $in_tree_gas = yes; then
24727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24728 then gcc_cv_as_section_has_align=yes
24730 elif test x$gcc_cv_as != x; then
24731 $as_echo '.section lto_test,"dr0"' > conftest.s
24732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24734 (eval $ac_try) 2>&5
24735 ac_status=$?
24736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24737 test $ac_status = 0; }; }
24738 then
24739 gcc_cv_as_section_has_align=yes
24740 else
24741 echo "configure: failed program was" >&5
24742 cat conftest.s >&5
24744 rm -f conftest.o conftest.s
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24748 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24750 if test x$gcc_cv_as_section_has_align != xyes; then
24751 case ",$enable_languages," in
24752 *,lto,*)
24753 { $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
24754 $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;}
24756 esac
24758 # Test if the assembler supports the section flag 'e' for specifying
24759 # an excluded section.
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24761 $as_echo_n "checking assembler for .section with e... " >&6; }
24762 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24763 $as_echo_n "(cached) " >&6
24764 else
24765 gcc_cv_as_section_has_e=no
24766 if test $in_tree_gas = yes; then
24767 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24768 then gcc_cv_as_section_has_e=yes
24770 elif test x$gcc_cv_as != x; then
24771 $as_echo '.section foo1,"e"
24772 .byte 0,0,0,0' > conftest.s
24773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24775 (eval $ac_try) 2>&5
24776 ac_status=$?
24777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24778 test $ac_status = 0; }; }
24779 then
24780 gcc_cv_as_section_has_e=yes
24781 else
24782 echo "configure: failed program was" >&5
24783 cat conftest.s >&5
24785 rm -f conftest.o conftest.s
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24789 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24792 cat >>confdefs.h <<_ACEOF
24793 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24794 _ACEOF
24797 esac
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24800 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24801 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24802 $as_echo_n "(cached) " >&6
24803 else
24804 gcc_cv_as_ix86_filds=no
24805 if test x$gcc_cv_as != x; then
24806 $as_echo 'filds mem; fists mem' > conftest.s
24807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24812 test $ac_status = 0; }; }
24813 then
24814 gcc_cv_as_ix86_filds=yes
24815 else
24816 echo "configure: failed program was" >&5
24817 cat conftest.s >&5
24819 rm -f conftest.o conftest.s
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24823 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24824 if test $gcc_cv_as_ix86_filds = yes; then
24826 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24831 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24832 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24833 $as_echo_n "(cached) " >&6
24834 else
24835 gcc_cv_as_ix86_fildq=no
24836 if test x$gcc_cv_as != x; then
24837 $as_echo 'fildq mem; fistpq mem' > conftest.s
24838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24840 (eval $ac_try) 2>&5
24841 ac_status=$?
24842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24843 test $ac_status = 0; }; }
24844 then
24845 gcc_cv_as_ix86_fildq=yes
24846 else
24847 echo "configure: failed program was" >&5
24848 cat conftest.s >&5
24850 rm -f conftest.o conftest.s
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24854 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24855 if test $gcc_cv_as_ix86_fildq = yes; then
24857 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24862 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24863 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24864 $as_echo_n "(cached) " >&6
24865 else
24866 gcc_cv_as_ix86_cmov_sun_syntax=no
24867 if test x$gcc_cv_as != x; then
24868 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24871 (eval $ac_try) 2>&5
24872 ac_status=$?
24873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24874 test $ac_status = 0; }; }
24875 then
24876 gcc_cv_as_ix86_cmov_sun_syntax=yes
24877 else
24878 echo "configure: failed program was" >&5
24879 cat conftest.s >&5
24881 rm -f conftest.o conftest.s
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24885 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24886 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24888 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24893 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24894 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24896 else
24897 gcc_cv_as_ix86_ffreep=no
24898 if test x$gcc_cv_as != x; then
24899 $as_echo 'ffreep %st(1)' > conftest.s
24900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24902 (eval $ac_try) 2>&5
24903 ac_status=$?
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; }
24906 then
24907 gcc_cv_as_ix86_ffreep=yes
24908 else
24909 echo "configure: failed program was" >&5
24910 cat conftest.s >&5
24912 rm -f conftest.o conftest.s
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24916 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24917 if test $gcc_cv_as_ix86_ffreep = yes; then
24919 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24924 $as_echo_n "checking assembler for .quad directive... " >&6; }
24925 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24926 $as_echo_n "(cached) " >&6
24927 else
24928 gcc_cv_as_ix86_quad=no
24929 if test x$gcc_cv_as != x; then
24930 $as_echo '.quad 0' > conftest.s
24931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24933 (eval $ac_try) 2>&5
24934 ac_status=$?
24935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24936 test $ac_status = 0; }; }
24937 then
24938 gcc_cv_as_ix86_quad=yes
24939 else
24940 echo "configure: failed program was" >&5
24941 cat conftest.s >&5
24943 rm -f conftest.o conftest.s
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24947 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24948 if test $gcc_cv_as_ix86_quad = yes; then
24950 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24955 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24956 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24957 $as_echo_n "(cached) " >&6
24958 else
24959 gcc_cv_as_ix86_sahf=no
24960 if test x$gcc_cv_as != x; then
24961 $as_echo '.code64
24962 sahf' > conftest.s
24963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24965 (eval $ac_try) 2>&5
24966 ac_status=$?
24967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24968 test $ac_status = 0; }; }
24969 then
24970 gcc_cv_as_ix86_sahf=yes
24971 else
24972 echo "configure: failed program was" >&5
24973 cat conftest.s >&5
24975 rm -f conftest.o conftest.s
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24979 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24980 if test $gcc_cv_as_ix86_sahf = yes; then
24982 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24987 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24988 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24989 $as_echo_n "(cached) " >&6
24990 else
24991 gcc_cv_as_ix86_interunit_movq=no
24992 if test x$gcc_cv_as != x; then
24993 $as_echo '.code64
24994 movq %mm0, %rax
24995 movq %rax, %xmm0' > conftest.s
24996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25001 test $ac_status = 0; }; }
25002 then
25003 gcc_cv_as_ix86_interunit_movq=yes
25004 else
25005 echo "configure: failed program was" >&5
25006 cat conftest.s >&5
25008 rm -f conftest.o conftest.s
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25012 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25015 cat >>confdefs.h <<_ACEOF
25016 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25017 _ACEOF
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25021 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25022 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25024 else
25025 gcc_cv_as_ix86_hle=no
25026 if test x$gcc_cv_as != x; then
25027 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25031 ac_status=$?
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25034 then
25035 gcc_cv_as_ix86_hle=yes
25036 else
25037 echo "configure: failed program was" >&5
25038 cat conftest.s >&5
25040 rm -f conftest.o conftest.s
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25044 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25045 if test $gcc_cv_as_ix86_hle = yes; then
25047 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25052 $as_echo_n "checking assembler for swap suffix... " >&6; }
25053 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25055 else
25056 gcc_cv_as_ix86_swap=no
25057 if test x$gcc_cv_as != x; then
25058 $as_echo 'movl.s %esp, %ebp' > conftest.s
25059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25065 then
25066 gcc_cv_as_ix86_swap=yes
25067 else
25068 echo "configure: failed program was" >&5
25069 cat conftest.s >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25075 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25076 if test $gcc_cv_as_ix86_swap = yes; then
25078 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25083 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25084 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25085 $as_echo_n "(cached) " >&6
25086 else
25087 gcc_cv_as_ix86_diff_sect_delta=no
25088 if test x$gcc_cv_as != x; then
25089 $as_echo '.section .rodata
25090 .L1:
25091 .long .L2-.L1
25092 .long .L3-.L1
25093 .text
25094 .L3: nop
25095 .L2: nop' > conftest.s
25096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }
25102 then
25103 gcc_cv_as_ix86_diff_sect_delta=yes
25104 else
25105 echo "configure: failed program was" >&5
25106 cat conftest.s >&5
25108 rm -f conftest.o conftest.s
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25112 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25113 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25115 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25119 # These two are used unconditionally by i386.[ch]; it is to be defined
25120 # to 1 if the feature is present, 0 otherwise.
25121 as_ix86_gotoff_in_data_opt=
25122 if test x$gas = xyes; then
25123 as_ix86_gotoff_in_data_opt="--32"
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25126 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25127 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25128 $as_echo_n "(cached) " >&6
25129 else
25130 gcc_cv_as_ix86_gotoff_in_data=no
25131 if test $in_tree_gas = yes; then
25132 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25133 then gcc_cv_as_ix86_gotoff_in_data=yes
25135 elif test x$gcc_cv_as != x; then
25136 $as_echo ' .text
25137 .L0:
25139 .data
25140 .long .L0@GOTOFF' > conftest.s
25141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 then
25148 gcc_cv_as_ix86_gotoff_in_data=yes
25149 else
25150 echo "configure: failed program was" >&5
25151 cat conftest.s >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25157 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25160 cat >>confdefs.h <<_ACEOF
25161 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25162 _ACEOF
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25166 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25167 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25169 else
25170 gcc_cv_as_ix86_rep_lock_prefix=no
25171 if test x$gcc_cv_as != x; then
25172 $as_echo 'rep movsl
25173 rep ret
25174 rep nop
25175 rep bsf %ecx, %eax
25176 rep bsr %ecx, %eax
25177 lock addl %edi, (%eax,%esi)
25178 lock orl $0, (%esp)' > conftest.s
25179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25181 (eval $ac_try) 2>&5
25182 ac_status=$?
25183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25184 test $ac_status = 0; }; }
25185 then
25186 gcc_cv_as_ix86_rep_lock_prefix=yes
25187 else
25188 echo "configure: failed program was" >&5
25189 cat conftest.s >&5
25191 rm -f conftest.o conftest.s
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25195 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25196 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25198 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25203 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25204 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25205 $as_echo_n "(cached) " >&6
25206 else
25207 gcc_cv_as_ix86_ud2=no
25208 if test x$gcc_cv_as != x; then
25209 $as_echo 'ud2' > conftest.s
25210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25215 test $ac_status = 0; }; }
25216 then
25217 gcc_cv_as_ix86_ud2=yes
25218 else
25219 echo "configure: failed program was" >&5
25220 cat conftest.s >&5
25222 rm -f conftest.o conftest.s
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25226 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25227 if test $gcc_cv_as_ix86_ud2 = yes; then
25229 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25234 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25235 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25236 $as_echo_n "(cached) " >&6
25237 else
25238 gcc_cv_as_ix86_tlsgdplt=no
25239 if test x$gcc_cv_as != x; then
25240 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25246 test $ac_status = 0; }; }
25247 then
25248 if test x$gcc_cv_ld != x \
25249 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25250 gcc_cv_as_ix86_tlsgdplt=yes
25252 rm -f conftest
25253 else
25254 echo "configure: failed program was" >&5
25255 cat conftest.s >&5
25257 rm -f conftest.o conftest.s
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25261 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25262 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25264 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25269 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25270 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25272 else
25273 gcc_cv_as_ix86_tlsldmplt=no
25274 if test x$gcc_cv_as != x; then
25275 $as_echo 'tls_ld:
25276 call tls_ld@tlsldmplt' > conftest.s
25277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25279 (eval $ac_try) 2>&5
25280 ac_status=$?
25281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25282 test $ac_status = 0; }; }
25283 then
25284 if test x$gcc_cv_ld != x \
25285 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25286 gcc_cv_as_ix86_tlsldmplt=yes
25288 rm -f conftest
25289 else
25290 echo "configure: failed program was" >&5
25291 cat conftest.s >&5
25293 rm -f conftest.o conftest.s
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25297 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25298 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25300 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25306 ia64*-*-*)
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25308 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25309 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25310 $as_echo_n "(cached) " >&6
25311 else
25312 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25313 if test $in_tree_gas = yes; then
25314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25315 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25317 elif test x$gcc_cv_as != x; then
25318 $as_echo ' .text
25319 addl r15 = @ltoffx(x#), gp
25321 ld8.mov r16 = [r15], x#' > conftest.s
25322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }
25328 then
25329 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25330 else
25331 echo "configure: failed program was" >&5
25332 cat conftest.s >&5
25334 rm -f conftest.o conftest.s
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25338 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25339 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25341 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25347 powerpc*-*-*)
25348 case $target in
25349 *-*-aix*) conftest_s=' .machine "pwr5"
25350 .csect .text[PR]
25351 mfcr 3,128';;
25352 *-*-darwin*)
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25354 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25355 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25358 gcc_cv_as_machine_directive=no
25359 if test x$gcc_cv_as != x; then
25360 $as_echo ' .machine ppc7400' > conftest.s
25361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25363 (eval $ac_try) 2>&5
25364 ac_status=$?
25365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25366 test $ac_status = 0; }; }
25367 then
25368 gcc_cv_as_machine_directive=yes
25369 else
25370 echo "configure: failed program was" >&5
25371 cat conftest.s >&5
25373 rm -f conftest.o conftest.s
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25377 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25379 if test x$gcc_cv_as_machine_directive != xyes; then
25380 echo "*** This target requires an assembler supporting \".machine\"" >&2
25381 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25382 test x$build = x$target && exit 1
25384 conftest_s=' .text
25385 mfcr r3,128';;
25386 *) conftest_s=' .machine power4
25387 .text
25388 mfcr 3,128';;
25389 esac
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25392 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25393 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25394 $as_echo_n "(cached) " >&6
25395 else
25396 gcc_cv_as_powerpc_mfcrf=no
25397 if test $in_tree_gas = yes; then
25398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25399 then gcc_cv_as_powerpc_mfcrf=yes
25401 elif test x$gcc_cv_as != x; then
25402 $as_echo "$conftest_s" > conftest.s
25403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25408 test $ac_status = 0; }; }
25409 then
25410 gcc_cv_as_powerpc_mfcrf=yes
25411 else
25412 echo "configure: failed program was" >&5
25413 cat conftest.s >&5
25415 rm -f conftest.o conftest.s
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25419 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25420 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25422 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25426 case $target in
25427 *-*-aix*) conftest_s=' .machine "pwr5"
25428 .csect .text[PR]
25429 popcntb 3,3';;
25430 *) conftest_s=' .machine power5
25431 .text
25432 popcntb 3,3';;
25433 esac
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25436 $as_echo_n "checking assembler for popcntb support... " >&6; }
25437 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25438 $as_echo_n "(cached) " >&6
25439 else
25440 gcc_cv_as_powerpc_popcntb=no
25441 if test $in_tree_gas = yes; then
25442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25443 then gcc_cv_as_powerpc_popcntb=yes
25445 elif test x$gcc_cv_as != x; then
25446 $as_echo "$conftest_s" > conftest.s
25447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25449 (eval $ac_try) 2>&5
25450 ac_status=$?
25451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25452 test $ac_status = 0; }; }
25453 then
25454 gcc_cv_as_powerpc_popcntb=yes
25455 else
25456 echo "configure: failed program was" >&5
25457 cat conftest.s >&5
25459 rm -f conftest.o conftest.s
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25463 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25464 if test $gcc_cv_as_powerpc_popcntb = yes; then
25466 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25470 case $target in
25471 *-*-aix*) conftest_s=' .machine "pwr5x"
25472 .csect .text[PR]
25473 frin 1,1';;
25474 *) conftest_s=' .machine power5
25475 .text
25476 frin 1,1';;
25477 esac
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25480 $as_echo_n "checking assembler for fp round support... " >&6; }
25481 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25482 $as_echo_n "(cached) " >&6
25483 else
25484 gcc_cv_as_powerpc_fprnd=no
25485 if test $in_tree_gas = yes; then
25486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25487 then gcc_cv_as_powerpc_fprnd=yes
25489 elif test x$gcc_cv_as != x; then
25490 $as_echo "$conftest_s" > conftest.s
25491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; }
25497 then
25498 gcc_cv_as_powerpc_fprnd=yes
25499 else
25500 echo "configure: failed program was" >&5
25501 cat conftest.s >&5
25503 rm -f conftest.o conftest.s
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25507 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25508 if test $gcc_cv_as_powerpc_fprnd = yes; then
25510 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25514 case $target in
25515 *-*-aix*) conftest_s=' .machine "pwr6"
25516 .csect .text[PR]
25517 mffgpr 1,3';;
25518 *) conftest_s=' .machine power6
25519 .text
25520 mffgpr 1,3';;
25521 esac
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25524 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25525 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25526 $as_echo_n "(cached) " >&6
25527 else
25528 gcc_cv_as_powerpc_mfpgpr=no
25529 if test $in_tree_gas = yes; then
25530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25531 then gcc_cv_as_powerpc_mfpgpr=yes
25533 elif test x$gcc_cv_as != x; then
25534 $as_echo "$conftest_s" > conftest.s
25535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25537 (eval $ac_try) 2>&5
25538 ac_status=$?
25539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25540 test $ac_status = 0; }; }
25541 then
25542 gcc_cv_as_powerpc_mfpgpr=yes
25543 else
25544 echo "configure: failed program was" >&5
25545 cat conftest.s >&5
25547 rm -f conftest.o conftest.s
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25551 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25552 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25554 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25558 case $target in
25559 *-*-aix*) conftest_s=' .csect .text[PR]
25560 LCF..0:
25561 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25562 *-*-darwin*)
25563 conftest_s=' .text
25564 LCF0:
25565 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25566 *) conftest_s=' .text
25567 .LCF0:
25568 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25569 esac
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25572 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25573 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25574 $as_echo_n "(cached) " >&6
25575 else
25576 gcc_cv_as_powerpc_rel16=no
25577 if test $in_tree_gas = yes; then
25578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25579 then gcc_cv_as_powerpc_rel16=yes
25581 elif test x$gcc_cv_as != x; then
25582 $as_echo "$conftest_s" > conftest.s
25583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25588 test $ac_status = 0; }; }
25589 then
25590 gcc_cv_as_powerpc_rel16=yes
25591 else
25592 echo "configure: failed program was" >&5
25593 cat conftest.s >&5
25595 rm -f conftest.o conftest.s
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25599 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25600 if test $gcc_cv_as_powerpc_rel16 = yes; then
25602 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25606 case $target in
25607 *-*-aix*) conftest_s=' .machine "pwr6"
25608 .csect .text[PR]
25609 cmpb 3,4,5';;
25610 *) conftest_s=' .machine power6
25611 .text
25612 cmpb 3,4,5';;
25613 esac
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25616 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25617 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25620 gcc_cv_as_powerpc_cmpb=no
25621 if test $in_tree_gas = yes; then
25622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25623 then gcc_cv_as_powerpc_cmpb=yes
25625 elif test x$gcc_cv_as != x; then
25626 $as_echo "$conftest_s" > conftest.s
25627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25632 test $ac_status = 0; }; }
25633 then
25634 gcc_cv_as_powerpc_cmpb=yes
25635 else
25636 echo "configure: failed program was" >&5
25637 cat conftest.s >&5
25639 rm -f conftest.o conftest.s
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25643 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25644 if test $gcc_cv_as_powerpc_cmpb = yes; then
25646 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25650 case $target in
25651 *-*-aix*) conftest_s=' .machine "pwr6"
25652 .csect .text[PR]
25653 dadd 1,2,3';;
25654 *) conftest_s=' .machine power6
25655 .text
25656 dadd 1,2,3';;
25657 esac
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25660 $as_echo_n "checking assembler for decimal float support... " >&6; }
25661 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25662 $as_echo_n "(cached) " >&6
25663 else
25664 gcc_cv_as_powerpc_dfp=no
25665 if test $in_tree_gas = yes; then
25666 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25667 then gcc_cv_as_powerpc_dfp=yes
25669 elif test x$gcc_cv_as != x; then
25670 $as_echo "$conftest_s" > conftest.s
25671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25673 (eval $ac_try) 2>&5
25674 ac_status=$?
25675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25676 test $ac_status = 0; }; }
25677 then
25678 gcc_cv_as_powerpc_dfp=yes
25679 else
25680 echo "configure: failed program was" >&5
25681 cat conftest.s >&5
25683 rm -f conftest.o conftest.s
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25687 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25688 if test $gcc_cv_as_powerpc_dfp = yes; then
25690 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25694 case $target in
25695 *-*-aix*) conftest_s=' .machine "pwr7"
25696 .csect .text[PR]
25697 lxvd2x 1,2,3';;
25698 *) conftest_s=' .machine power7
25699 .text
25700 lxvd2x 1,2,3';;
25701 esac
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25704 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25705 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25706 $as_echo_n "(cached) " >&6
25707 else
25708 gcc_cv_as_powerpc_vsx=no
25709 if test $in_tree_gas = yes; then
25710 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25711 then gcc_cv_as_powerpc_vsx=yes
25713 elif test x$gcc_cv_as != x; then
25714 $as_echo "$conftest_s" > conftest.s
25715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25720 test $ac_status = 0; }; }
25721 then
25722 gcc_cv_as_powerpc_vsx=yes
25723 else
25724 echo "configure: failed program was" >&5
25725 cat conftest.s >&5
25727 rm -f conftest.o conftest.s
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25731 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25732 if test $gcc_cv_as_powerpc_vsx = yes; then
25734 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25738 case $target in
25739 *-*-aix*) conftest_s=' .machine "pwr7"
25740 .csect .text[PR]
25741 popcntd 3,3';;
25742 *) conftest_s=' .machine power7
25743 .text
25744 popcntd 3,3';;
25745 esac
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25748 $as_echo_n "checking assembler for popcntd support... " >&6; }
25749 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25750 $as_echo_n "(cached) " >&6
25751 else
25752 gcc_cv_as_powerpc_popcntd=no
25753 if test $in_tree_gas = yes; then
25754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25755 then gcc_cv_as_powerpc_popcntd=yes
25757 elif test x$gcc_cv_as != x; then
25758 $as_echo "$conftest_s" > conftest.s
25759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25764 test $ac_status = 0; }; }
25765 then
25766 gcc_cv_as_powerpc_popcntd=yes
25767 else
25768 echo "configure: failed program was" >&5
25769 cat conftest.s >&5
25771 rm -f conftest.o conftest.s
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25775 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25776 if test $gcc_cv_as_powerpc_popcntd = yes; then
25778 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25782 case $target in
25783 *-*-aix*) conftest_s=' .machine "pwr8"
25784 .csect .text[PR]';;
25785 *) conftest_s=' .machine power8
25786 .text';;
25787 esac
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25790 $as_echo_n "checking assembler for power8 support... " >&6; }
25791 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25792 $as_echo_n "(cached) " >&6
25793 else
25794 gcc_cv_as_powerpc_power8=no
25795 if test $in_tree_gas = yes; then
25796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25797 then gcc_cv_as_powerpc_power8=yes
25799 elif test x$gcc_cv_as != x; then
25800 $as_echo "$conftest_s" > conftest.s
25801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25803 (eval $ac_try) 2>&5
25804 ac_status=$?
25805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25806 test $ac_status = 0; }; }
25807 then
25808 gcc_cv_as_powerpc_power8=yes
25809 else
25810 echo "configure: failed program was" >&5
25811 cat conftest.s >&5
25813 rm -f conftest.o conftest.s
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25817 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25818 if test $gcc_cv_as_powerpc_power8 = yes; then
25820 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25824 case $target in
25825 *-*-aix*) conftest_s=' .csect .text[PR]
25826 lwsync';;
25827 *) conftest_s=' .text
25828 lwsync';;
25829 esac
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25832 $as_echo_n "checking assembler for lwsync support... " >&6; }
25833 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 gcc_cv_as_powerpc_lwsync=no
25837 if test $in_tree_gas = yes; then
25838 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25839 then gcc_cv_as_powerpc_lwsync=yes
25841 elif test x$gcc_cv_as != x; then
25842 $as_echo "$conftest_s" > conftest.s
25843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25845 (eval $ac_try) 2>&5
25846 ac_status=$?
25847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25848 test $ac_status = 0; }; }
25849 then
25850 gcc_cv_as_powerpc_lwsync=yes
25851 else
25852 echo "configure: failed program was" >&5
25853 cat conftest.s >&5
25855 rm -f conftest.o conftest.s
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25859 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25860 if test $gcc_cv_as_powerpc_lwsync = yes; then
25862 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25866 case $target in
25867 *-*-aix*) conftest_s=' .machine "476"
25868 .csect .text[PR]
25869 dci 0';;
25870 *) conftest_s=' .machine "476"
25871 .text
25872 dci 0';;
25873 esac
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25876 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25877 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25878 $as_echo_n "(cached) " >&6
25879 else
25880 gcc_cv_as_powerpc_dci=no
25881 if test $in_tree_gas = yes; then
25882 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25883 then gcc_cv_as_powerpc_dci=yes
25885 elif test x$gcc_cv_as != x; then
25886 $as_echo "$conftest_s" > conftest.s
25887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25889 (eval $ac_try) 2>&5
25890 ac_status=$?
25891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25892 test $ac_status = 0; }; }
25893 then
25894 gcc_cv_as_powerpc_dci=yes
25895 else
25896 echo "configure: failed program was" >&5
25897 cat conftest.s >&5
25899 rm -f conftest.o conftest.s
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25903 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25904 if test $gcc_cv_as_powerpc_dci = yes; then
25906 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25911 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25912 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25913 $as_echo_n "(cached) " >&6
25914 else
25915 gcc_cv_as_powerpc_gnu_attribute=no
25916 if test $in_tree_gas = yes; then
25917 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25918 then gcc_cv_as_powerpc_gnu_attribute=yes
25920 elif test x$gcc_cv_as != x; then
25921 $as_echo '.gnu_attribute 4,1' > conftest.s
25922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25924 (eval $ac_try) 2>&5
25925 ac_status=$?
25926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25927 test $ac_status = 0; }; }
25928 then
25929 gcc_cv_as_powerpc_gnu_attribute=yes
25930 else
25931 echo "configure: failed program was" >&5
25932 cat conftest.s >&5
25934 rm -f conftest.o conftest.s
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25938 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25939 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25941 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25946 $as_echo_n "checking assembler for tls marker support... " >&6; }
25947 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25948 $as_echo_n "(cached) " >&6
25949 else
25950 gcc_cv_as_powerpc_tls_markers=no
25951 if test $in_tree_gas = yes; then
25952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25953 then gcc_cv_as_powerpc_tls_markers=yes
25955 elif test x$gcc_cv_as != x; then
25956 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }
25963 then
25964 gcc_cv_as_powerpc_tls_markers=yes
25965 else
25966 echo "configure: failed program was" >&5
25967 cat conftest.s >&5
25969 rm -f conftest.o conftest.s
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25973 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25974 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25976 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25980 case $target in
25981 *-*-aix*)
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25983 $as_echo_n "checking assembler for .ref support... " >&6; }
25984 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25985 $as_echo_n "(cached) " >&6
25986 else
25987 gcc_cv_as_aix_ref=no
25988 if test $in_tree_gas = yes; then
25989 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25990 then gcc_cv_as_aix_ref=yes
25992 elif test x$gcc_cv_as != x; then
25993 $as_echo ' .csect stuff[rw]
25994 stuff:
25995 .long 1
25996 .extern sym
25997 .ref sym
25998 ' > conftest.s
25999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001 (eval $ac_try) 2>&5
26002 ac_status=$?
26003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }; }
26005 then
26006 gcc_cv_as_aix_ref=yes
26007 else
26008 echo "configure: failed program was" >&5
26009 cat conftest.s >&5
26011 rm -f conftest.o conftest.s
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26015 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26016 if test $gcc_cv_as_aix_ref = yes; then
26018 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26022 esac
26025 mips*-*-*)
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26027 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26028 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26029 $as_echo_n "(cached) " >&6
26030 else
26031 gcc_cv_as_mips_explicit_relocs=no
26032 if test $in_tree_gas = yes; then
26033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26034 then gcc_cv_as_mips_explicit_relocs=yes
26036 elif test x$gcc_cv_as != x; then
26037 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26040 (eval $ac_try) 2>&5
26041 ac_status=$?
26042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26043 test $ac_status = 0; }; }
26044 then
26045 gcc_cv_as_mips_explicit_relocs=yes
26046 else
26047 echo "configure: failed program was" >&5
26048 cat conftest.s >&5
26050 rm -f conftest.o conftest.s
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26054 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26055 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26056 if test x$target_cpu_default = x
26057 then target_cpu_default=MASK_EXPLICIT_RELOCS
26058 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26062 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26063 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26064 $as_echo_n "(cached) " >&6
26065 else
26066 gcc_cv_as_mips_no_shared=no
26067 if test $in_tree_gas = yes; then
26068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26069 then gcc_cv_as_mips_no_shared=yes
26071 elif test x$gcc_cv_as != x; then
26072 $as_echo 'nop' > conftest.s
26073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26075 (eval $ac_try) 2>&5
26076 ac_status=$?
26077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26078 test $ac_status = 0; }; }
26079 then
26080 gcc_cv_as_mips_no_shared=yes
26081 else
26082 echo "configure: failed program was" >&5
26083 cat conftest.s >&5
26085 rm -f conftest.o conftest.s
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26089 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26090 if test $gcc_cv_as_mips_no_shared = yes; then
26092 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26097 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26098 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26099 $as_echo_n "(cached) " >&6
26100 else
26101 gcc_cv_as_mips_gnu_attribute=no
26102 if test $in_tree_gas = yes; then
26103 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26104 then gcc_cv_as_mips_gnu_attribute=yes
26106 elif test x$gcc_cv_as != x; then
26107 $as_echo '.gnu_attribute 4,1' > conftest.s
26108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26113 test $ac_status = 0; }; }
26114 then
26115 gcc_cv_as_mips_gnu_attribute=yes
26116 else
26117 echo "configure: failed program was" >&5
26118 cat conftest.s >&5
26120 rm -f conftest.o conftest.s
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26124 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26125 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26127 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26132 $as_echo_n "checking assembler for .micromips support... " >&6; }
26133 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26134 $as_echo_n "(cached) " >&6
26135 else
26136 gcc_cv_as_micromips_support=no
26137 if test x$gcc_cv_as != x; then
26138 $as_echo '.set micromips' > conftest.s
26139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26144 test $ac_status = 0; }; }
26145 then
26146 gcc_cv_as_micromips_support=yes
26147 else
26148 echo "configure: failed program was" >&5
26149 cat conftest.s >&5
26151 rm -f conftest.o conftest.s
26154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26155 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26156 if test $gcc_cv_as_micromips_support = yes; then
26158 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26163 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26164 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26165 $as_echo_n "(cached) " >&6
26166 else
26167 gcc_cv_as_mips_dtprelword=no
26168 if test $in_tree_gas = yes; then
26169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26170 then gcc_cv_as_mips_dtprelword=yes
26172 elif test x$gcc_cv_as != x; then
26173 $as_echo '.section .tdata,"awT",@progbits
26175 .word 2
26176 .text
26177 .dtprelword x+0x8000' > conftest.s
26178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26180 (eval $ac_try) 2>&5
26181 ac_status=$?
26182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26183 test $ac_status = 0; }; }
26184 then
26185 gcc_cv_as_mips_dtprelword=yes
26186 else
26187 echo "configure: failed program was" >&5
26188 cat conftest.s >&5
26190 rm -f conftest.o conftest.s
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26194 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26195 if test $gcc_cv_as_mips_dtprelword = yes; then
26197 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26202 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26203 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26204 $as_echo_n "(cached) " >&6
26205 else
26206 gcc_cv_as_mips_dspr1_mult=no
26207 if test x$gcc_cv_as != x; then
26208 $as_echo ' .set mips32r2
26209 .set nodspr2
26210 .set dsp
26211 madd $ac3,$4,$5
26212 maddu $ac3,$4,$5
26213 msub $ac3,$4,$5
26214 msubu $ac3,$4,$5
26215 mult $ac3,$4,$5
26216 multu $ac3,$4,$5' > conftest.s
26217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26219 (eval $ac_try) 2>&5
26220 ac_status=$?
26221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26222 test $ac_status = 0; }; }
26223 then
26224 gcc_cv_as_mips_dspr1_mult=yes
26225 else
26226 echo "configure: failed program was" >&5
26227 cat conftest.s >&5
26229 rm -f conftest.o conftest.s
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26233 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26234 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26236 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26241 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26242 gcc_cv_as_ld_jalr_reloc=no
26243 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26244 if test $in_tree_ld = yes ; then
26245 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 \
26246 && test $in_tree_ld_is_elf = yes; then
26247 gcc_cv_as_ld_jalr_reloc=yes
26249 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26250 echo ' .ent x' > conftest.s
26251 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26252 echo ' ld $25,%call16(y)($28)' >> conftest.s
26253 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26254 echo '1: jalr $25' >> conftest.s
26255 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26256 echo '1: jalr $25' >> conftest.s
26257 echo ' .end x' >> conftest.s
26258 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26259 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26260 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26261 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26262 gcc_cv_as_ld_jalr_reloc=yes
26265 rm -f conftest.*
26268 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26269 if test x$target_cpu_default = x; then
26270 target_cpu_default=MASK_RELAX_PIC_CALLS
26271 else
26272 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26276 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26279 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26280 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26281 $as_echo_n "(cached) " >&6
26282 else
26283 gcc_cv_ld_mips_personality_relaxation=no
26284 if test $in_tree_ld = yes ; then
26285 if test "$gcc_cv_gld_major_version" -eq 2 \
26286 -a "$gcc_cv_gld_minor_version" -ge 21 \
26287 -o "$gcc_cv_gld_major_version" -gt 2; then
26288 gcc_cv_ld_mips_personality_relaxation=yes
26290 elif test x$gcc_cv_as != x \
26291 -a x$gcc_cv_ld != x \
26292 -a x$gcc_cv_readelf != x ; then
26293 cat > conftest.s <<EOF
26294 .cfi_startproc
26295 .cfi_personality 0x80,indirect_ptr
26296 .ent test
26297 test:
26299 .end test
26300 .cfi_endproc
26302 .section .data,"aw",@progbits
26303 indirect_ptr:
26304 .dc.a personality
26306 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26307 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26308 if $gcc_cv_readelf -d conftest 2>&1 \
26309 | grep TEXTREL > /dev/null 2>&1; then
26311 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26312 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26314 else
26315 gcc_cv_ld_mips_personality_relaxation=yes
26319 rm -f conftest.s conftest.o conftest
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26322 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26323 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26325 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26330 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26331 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26332 $as_echo_n "(cached) " >&6
26333 else
26334 gcc_cv_as_mips_nan=no
26335 if test x$gcc_cv_as != x; then
26336 $as_echo '' > conftest.s
26337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342 test $ac_status = 0; }; }
26343 then
26344 gcc_cv_as_mips_nan=yes
26345 else
26346 echo "configure: failed program was" >&5
26347 cat conftest.s >&5
26349 rm -f conftest.o conftest.s
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26353 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26354 if test $gcc_cv_as_mips_nan = yes; then
26356 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26359 if test x$gcc_cv_as_mips_nan = xno \
26360 && test x$with_nan != x; then
26361 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26364 esac
26366 # Mips and HP-UX need the GNU assembler.
26367 # Linux on IA64 might be able to use the Intel assembler.
26369 case "$target" in
26370 mips*-*-* | *-*-hpux* )
26371 if test x$gas_flag = xyes \
26372 || test x"$host" != x"$build" \
26373 || test ! -x "$gcc_cv_as" \
26374 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26376 else
26377 echo "*** This configuration requires the GNU assembler" >&2
26378 exit 1
26381 esac
26383 # ??? Not all targets support dwarf2 debug_line, even within a version
26384 # of gas. Moreover, we need to emit a valid instruction to trigger any
26385 # info to the output file. So, as supported targets are added to gas 2.11,
26386 # add some instruction here to (also) show we expect this might work.
26387 # ??? Once 2.11 is released, probably need to add first known working
26388 # version to the per-target configury.
26389 case "$cpu_type" in
26390 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26391 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26392 | xstormy16 | xtensa)
26393 insn="nop"
26395 ia64 | s390)
26396 insn="nop 0"
26398 mmix)
26399 insn="swym 0"
26401 esac
26402 if test x"$insn" != x; then
26403 conftest_s="\
26404 .file 1 \"conftest.s\"
26405 .loc 1 3 0
26406 $insn"
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26408 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26409 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26410 $as_echo_n "(cached) " >&6
26411 else
26412 gcc_cv_as_dwarf2_debug_line=no
26413 if test $in_tree_gas = yes; then
26414 if test $in_tree_gas_is_elf = yes \
26415 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26416 then gcc_cv_as_dwarf2_debug_line=yes
26418 elif test x$gcc_cv_as != x; then
26419 $as_echo "$conftest_s" > conftest.s
26420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26425 test $ac_status = 0; }; }
26426 then
26427 if test x$gcc_cv_objdump != x \
26428 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26429 | grep debug_line > /dev/null 2>&1; then
26430 gcc_cv_as_dwarf2_debug_line=yes
26432 else
26433 echo "configure: failed program was" >&5
26434 cat conftest.s >&5
26436 rm -f conftest.o conftest.s
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26440 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26443 # The .debug_line file table must be in the exact order that
26444 # we specified the files, since these indices are also used
26445 # by DW_AT_decl_file. Approximate this test by testing if
26446 # the assembler bitches if the same index is assigned twice.
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26448 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26449 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26450 $as_echo_n "(cached) " >&6
26451 else
26452 gcc_cv_as_dwarf2_file_buggy=no
26453 if test x$gcc_cv_as != x; then
26454 $as_echo ' .file 1 "foo.s"
26455 .file 1 "bar.s"' > conftest.s
26456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26458 (eval $ac_try) 2>&5
26459 ac_status=$?
26460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26461 test $ac_status = 0; }; }
26462 then
26463 gcc_cv_as_dwarf2_file_buggy=yes
26464 else
26465 echo "configure: failed program was" >&5
26466 cat conftest.s >&5
26468 rm -f conftest.o conftest.s
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26472 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26475 if test $gcc_cv_as_dwarf2_debug_line = yes \
26476 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26478 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26483 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26484 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26485 $as_echo_n "(cached) " >&6
26486 else
26487 gcc_cv_as_gdwarf2_flag=no
26488 if test $in_tree_gas = yes; then
26489 if test $in_tree_gas_is_elf = yes \
26490 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26491 then gcc_cv_as_gdwarf2_flag=yes
26493 elif test x$gcc_cv_as != x; then
26494 $as_echo "$insn" > conftest.s
26495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26500 test $ac_status = 0; }; }
26501 then
26502 gcc_cv_as_gdwarf2_flag=yes
26503 else
26504 echo "configure: failed program was" >&5
26505 cat conftest.s >&5
26507 rm -f conftest.o conftest.s
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26511 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26512 if test $gcc_cv_as_gdwarf2_flag = yes; then
26514 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26519 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26520 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26521 $as_echo_n "(cached) " >&6
26522 else
26523 gcc_cv_as_gstabs_flag=no
26524 if test $in_tree_gas = yes; then
26525 if test $in_tree_gas_is_elf = yes \
26526 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26527 then gcc_cv_as_gstabs_flag=yes
26529 elif test x$gcc_cv_as != x; then
26530 $as_echo "$insn" > conftest.s
26531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536 test $ac_status = 0; }; }
26537 then
26538 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26539 # and warns about it, but still exits successfully. So check for
26540 # this.
26541 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26543 (eval $ac_try) 2>&5
26544 ac_status=$?
26545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26546 test $ac_status = 0; }; }
26547 then :
26548 else gcc_cv_as_gstabs_flag=yes
26550 else
26551 echo "configure: failed program was" >&5
26552 cat conftest.s >&5
26554 rm -f conftest.o conftest.s
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26558 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26559 if test $gcc_cv_as_gstabs_flag = yes; then
26561 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26566 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26567 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26568 $as_echo_n "(cached) " >&6
26569 else
26570 gcc_cv_as_debug_prefix_map_flag=no
26571 if test $in_tree_gas = yes; then
26572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26573 then gcc_cv_as_debug_prefix_map_flag=yes
26575 elif test x$gcc_cv_as != x; then
26576 $as_echo "$insn" > conftest.s
26577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26579 (eval $ac_try) 2>&5
26580 ac_status=$?
26581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26582 test $ac_status = 0; }; }
26583 then
26584 gcc_cv_as_debug_prefix_map_flag=yes
26585 else
26586 echo "configure: failed program was" >&5
26587 cat conftest.s >&5
26589 rm -f conftest.o conftest.s
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26593 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26594 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26596 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26602 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26603 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26604 $as_echo_n "(cached) " >&6
26605 else
26606 gcc_cv_as_lcomm_with_alignment=no
26607 if test x$gcc_cv_as != x; then
26608 $as_echo '.lcomm bar,4,16' > conftest.s
26609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26614 test $ac_status = 0; }; }
26615 then
26616 gcc_cv_as_lcomm_with_alignment=yes
26617 else
26618 echo "configure: failed program was" >&5
26619 cat conftest.s >&5
26621 rm -f conftest.o conftest.s
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26625 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26626 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26628 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26632 if test x$with_sysroot = x && test x$host = x$target \
26633 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26634 && test "$prefix" != "NONE"; then
26636 cat >>confdefs.h <<_ACEOF
26637 #define PREFIX_INCLUDE_DIR "$prefix/include"
26638 _ACEOF
26642 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26643 if test "x$with_headers" != x; then
26644 target_header_dir=$with_headers
26645 elif test "x$with_sysroot" = x; then
26646 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26647 elif test "x$with_build_sysroot" != "x"; then
26648 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26649 elif test "x$with_sysroot" = xyes; then
26650 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26651 else
26652 target_header_dir="${with_sysroot}${native_system_header_dir}"
26654 else
26655 target_header_dir=${native_system_header_dir}
26658 # Determine the version of glibc, if any, used on the target.
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26660 $as_echo_n "checking for target glibc version... " >&6; }
26662 # Check whether --with-glibc-version was given.
26663 if test "${with_glibc_version+set}" = set; then :
26664 withval=$with_glibc_version;
26665 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26666 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26667 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26668 else
26669 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26671 else
26673 glibc_version_major=0
26674 glibc_version_minor=0
26675 if test -f $target_header_dir/features.h \
26676 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26677 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26678 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26679 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26684 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26686 # Check whether --enable-gnu-unique-object was given.
26687 if test "${enable_gnu_unique_object+set}" = set; then :
26688 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26689 yes | no) ;;
26690 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26691 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26692 esac
26693 else
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26695 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26696 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26697 $as_echo_n "(cached) " >&6
26698 else
26699 gcc_cv_as_gnu_unique_object=no
26700 if test $in_tree_gas = yes; then
26701 if test $in_tree_gas_is_elf = yes \
26702 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26703 then gcc_cv_as_gnu_unique_object=yes
26705 elif test x$gcc_cv_as != x; then
26706 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26709 (eval $ac_try) 2>&5
26710 ac_status=$?
26711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26712 test $ac_status = 0; }; }
26713 then
26714 gcc_cv_as_gnu_unique_object=yes
26715 else
26716 echo "configure: failed program was" >&5
26717 cat conftest.s >&5
26719 rm -f conftest.o conftest.s
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26723 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26724 if test $gcc_cv_as_gnu_unique_object = yes; then
26725 # We need to unquote above to to use the definition from config.gcc.
26726 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26728 if test $glibc_version_major -gt 2 \
26729 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26730 enable_gnu_unique_object=yes
26736 if test x$enable_gnu_unique_object = xyes; then
26738 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26743 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26744 if test "${gcc_cv_as_line_zero+set}" = set; then :
26745 $as_echo_n "(cached) " >&6
26746 else
26747 gcc_cv_as_line_zero=no
26748 if test $in_tree_gas = yes; then
26749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26750 then gcc_cv_as_line_zero=yes
26752 elif test "x$gcc_cv_as" != x; then
26753 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26754 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26759 test $ac_status = 0; }; } &&
26760 test "x`cat conftest.out`" = x
26761 then
26762 gcc_cv_as_line_zero=yes
26763 else
26764 echo "configure: failed program was" >&5
26765 cat conftest.s >&5
26766 echo "configure: error output was" >&5
26767 cat conftest.out >&5
26769 rm -f conftest.o conftest.s conftest.out
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26773 $as_echo "$gcc_cv_as_line_zero" >&6; }
26774 if test "x$gcc_cv_as_line_zero" = xyes; then
26776 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26781 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26782 gcc_cv_ld_eh_frame_hdr=no
26783 if test $in_tree_ld = yes ; then
26784 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 \
26785 && test $in_tree_ld_is_elf = yes; then
26786 gcc_cv_ld_eh_frame_hdr=yes
26788 elif test x$gcc_cv_ld != x; then
26789 if echo "$ld_ver" | grep GNU > /dev/null; then
26790 # Check if linker supports --eh-frame-hdr option
26791 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26792 gcc_cv_ld_eh_frame_hdr=yes
26794 else
26795 case "$target" in
26796 *-*-solaris2*)
26797 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26798 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26799 gcc_cv_ld_eh_frame_hdr=yes
26802 esac
26806 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26808 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26812 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26815 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26816 gcc_cv_ld_eh_frame_ciev3=no
26817 if test $in_tree_ld = yes ; then
26818 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 \
26819 && test $in_tree_ld_is_elf = yes; then
26820 gcc_cv_ld_eh_frame_ciev3=yes
26822 elif test x$gcc_cv_ld != x; then
26823 if echo "$ld_ver" | grep GNU > /dev/null; then
26824 gcc_cv_ld_eh_frame_ciev3=yes
26825 if test 0"$ld_date" -lt 20040513; then
26826 if test -n "$ld_date"; then
26827 # If there was date string, but was earlier than 2004-05-13, fail
26828 gcc_cv_ld_eh_frame_ciev3=no
26829 elif test "$ld_vers_major" -lt 2; then
26830 gcc_cv_ld_eh_frame_ciev3=no
26831 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26832 gcc_cv_ld_eh_frame_ciev3=no
26835 else
26836 case "$target" in
26837 *-*-solaris2*)
26838 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26839 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26840 gcc_cv_ld_eh_frame_ciev3=yes
26843 esac
26847 cat >>confdefs.h <<_ACEOF
26848 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26849 _ACEOF
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26852 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26855 $as_echo_n "checking linker position independent executable support... " >&6; }
26856 gcc_cv_ld_pie=no
26857 if test $in_tree_ld = yes ; then
26858 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 \
26859 && test $in_tree_ld_is_elf = yes; then
26860 gcc_cv_ld_pie=yes
26862 elif test x$gcc_cv_ld != x; then
26863 # Check if linker supports -pie option
26864 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26865 gcc_cv_ld_pie=yes
26868 if test x"$gcc_cv_ld_pie" = xyes; then
26870 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26874 $as_echo "$gcc_cv_ld_pie" >&6; }
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26877 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26878 gcc_cv_ld_eh_gc_sections=no
26879 if test $in_tree_ld = yes ; then
26880 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 \
26881 && test $in_tree_ld_is_elf = yes; then
26882 gcc_cv_ld_eh_gc_sections=yes
26884 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26885 cat > conftest.s <<EOF
26886 .section .text
26887 .globl _start
26888 .type _start, @function
26889 _start:
26890 .long foo
26891 .size _start, .-_start
26892 .section .text.foo,"ax",@progbits
26893 .type foo, @function
26894 foo:
26895 .long 0
26896 .size foo, .-foo
26897 .section .gcc_except_table.foo,"a",@progbits
26898 .L0:
26899 .long 0
26900 .section .eh_frame,"a",@progbits
26901 .long .L0
26903 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26904 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26905 | grep "gc-sections option ignored" > /dev/null; then
26906 gcc_cv_ld_eh_gc_sections=no
26907 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26908 | grep gcc_except_table > /dev/null; then
26909 gcc_cv_ld_eh_gc_sections=yes
26910 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26911 if test x$gcc_cv_as_comdat_group != xyes; then
26912 gcc_cv_ld_eh_gc_sections=no
26913 cat > conftest.s <<EOF
26914 .section .text
26915 .globl _start
26916 .type _start, @function
26917 _start:
26918 .long foo
26919 .size _start, .-_start
26920 .section .gnu.linkonce.t.foo,"ax",@progbits
26921 .type foo, @function
26922 foo:
26923 .long 0
26924 .size foo, .-foo
26925 .section .gcc_except_table.foo,"a",@progbits
26926 .L0:
26927 .long 0
26928 .section .eh_frame,"a",@progbits
26929 .long .L0
26931 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26932 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26933 | grep "gc-sections option ignored" > /dev/null; then
26934 gcc_cv_ld_eh_gc_sections=no
26935 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26936 | grep gcc_except_table > /dev/null; then
26937 gcc_cv_ld_eh_gc_sections=yes
26943 rm -f conftest.s conftest.o conftest
26945 case "$target" in
26946 hppa*-*-linux*)
26947 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26948 gcc_cv_ld_eh_gc_sections=no
26950 esac
26951 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26953 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26957 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26960 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26961 gcc_cv_ld_eh_gc_sections_bug=no
26962 if test $in_tree_ld = yes ; then
26963 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 \
26964 && test $in_tree_ld_is_elf = yes; then
26965 gcc_cv_ld_eh_gc_sections_bug=yes
26967 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
26968 gcc_cv_ld_eh_gc_sections_bug=yes
26969 cat > conftest.s <<EOF
26970 .section .text
26971 .globl _start
26972 .type _start, @function
26973 _start:
26974 .long foo
26975 .size _start, .-_start
26976 .section .text.startup.foo,"ax",@progbits
26977 .type foo, @function
26978 foo:
26979 .long 0
26980 .size foo, .-foo
26981 .section .gcc_except_table.foo,"a",@progbits
26982 .L0:
26983 .long 0
26984 .section .eh_frame,"a",@progbits
26985 .long .L0
26987 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26988 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26989 | grep "gc-sections option ignored" > /dev/null; then
26991 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26992 | grep gcc_except_table > /dev/null; then
26993 gcc_cv_ld_eh_gc_sections_bug=no
26996 rm -f conftest.s conftest.o conftest
26998 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27000 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27004 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27006 # --------
27007 # UNSORTED
27008 # --------
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27011 $as_echo_n "checking linker --as-needed support... " >&6; }
27012 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27013 $as_echo_n "(cached) " >&6
27014 else
27015 gcc_cv_ld_as_needed=no
27016 gcc_cv_ld_as_needed_option='--as-needed'
27017 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27018 if test $in_tree_ld = yes ; then
27019 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 \
27020 && test $in_tree_ld_is_elf = yes; then
27021 gcc_cv_ld_as_needed=yes
27023 elif test x$gcc_cv_ld != x; then
27024 # Check if linker supports --as-needed and --no-as-needed options
27025 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27026 gcc_cv_ld_as_needed=yes
27027 else
27028 case "$target" in
27029 # Solaris 2 ld always supports -z ignore/-z record.
27030 *-*-solaris2*)
27031 gcc_cv_ld_as_needed=yes
27032 gcc_cv_ld_as_needed_option="-z ignore"
27033 gcc_cv_ld_no_as_needed_option="-z record"
27035 esac
27038 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27039 # dl_iterate_phdr, i.e. since Solaris 11.
27040 case "$target" in
27041 *-*-solaris2.1[1-9]*)
27042 case "$target" in
27043 i?86-*-* | x86_64-*-*)
27044 if echo "$ld_ver" | grep GNU > /dev/null; then
27045 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27046 gcc_cv_ld_as_needed=no
27049 esac
27051 *-*-solaris2*)
27052 gcc_cv_ld_as_needed=no
27054 esac
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27058 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27059 if test x"$gcc_cv_ld_as_needed" = xyes; then
27061 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27064 cat >>confdefs.h <<_ACEOF
27065 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27066 _ACEOF
27069 cat >>confdefs.h <<_ACEOF
27070 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27071 _ACEOF
27075 case "$target:$tm_file" in
27076 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27077 case "$target" in
27078 *le-*-linux*)
27079 emul_name="-melf64lppc"
27081 *-*-linux*)
27082 emul_name="-melf64ppc"
27084 *-*-freebsd*)
27085 emul_name="-melf64ppc_fbsd"
27087 esac
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27089 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27090 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27091 $as_echo_n "(cached) " >&6
27092 else
27093 gcc_cv_ld_no_dot_syms=no
27094 if test x"$ld_is_gold" = xyes; then
27095 gcc_cv_ld_no_dot_syms=yes
27096 elif test $in_tree_ld = yes ; then
27097 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
27098 gcc_cv_ld_no_dot_syms=yes
27100 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27101 cat > conftest1.s <<EOF
27102 .text
27103 bl .foo
27105 cat > conftest2.s <<EOF
27106 .section ".opd","aw"
27107 .align 3
27108 .globl foo
27109 .type foo,@function
27110 foo:
27111 .quad .LEfoo,.TOC.@tocbase,0
27112 .text
27113 .LEfoo:
27115 .size foo,.-.LEfoo
27117 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27118 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27119 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27120 gcc_cv_ld_no_dot_syms=yes
27122 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27127 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27128 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27130 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27135 $as_echo_n "checking linker large toc support... " >&6; }
27136 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27137 $as_echo_n "(cached) " >&6
27138 else
27139 gcc_cv_ld_large_toc=no
27140 if test x"$ld_is_gold" = xyes; then
27141 gcc_cv_ld_large_toc=yes
27142 elif test $in_tree_ld = yes ; then
27143 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
27144 gcc_cv_ld_large_toc=yes
27146 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27147 cat > conftest.s <<EOF
27148 .section ".tbss","awT",@nobits
27149 .align 3
27150 ie0: .space 8
27151 .global _start
27152 .text
27153 _start:
27154 addis 9,13,ie0@got@tprel@ha
27155 ld 9,ie0@got@tprel@l(9)
27157 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27158 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27159 gcc_cv_ld_large_toc=yes
27161 rm -f conftest conftest.o conftest.s
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27166 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27167 if test x"$gcc_cv_ld_large_toc" = xyes; then
27169 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27173 esac
27175 case "$target" in
27176 *-*-aix*)
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27178 $as_echo_n "checking linker large toc support... " >&6; }
27179 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27180 $as_echo_n "(cached) " >&6
27181 else
27182 gcc_cv_ld_large_toc=no
27183 if test x$gcc_cv_as != x ; then
27184 cat > conftest.s <<EOF
27185 .toc
27186 LC..1:
27187 .tc a[TC],a[RW]
27188 .extern a[RW]
27189 .csect .text[PR]
27190 .largetoctest:
27191 addis 9,LC..1@u(2)
27192 ld 3,LC..1@l(9)
27194 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27195 gcc_cv_ld_large_toc=yes
27197 rm -f conftest conftest.o conftest.s
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27202 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27203 if test x"$gcc_cv_ld_large_toc" = xyes; then
27205 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27209 esac
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27212 $as_echo_n "checking linker --build-id support... " >&6; }
27213 if test "${gcc_cv_ld_buildid+set}" = set; then :
27214 $as_echo_n "(cached) " >&6
27215 else
27216 gcc_cv_ld_buildid=no
27217 if test $in_tree_ld = yes ; then
27218 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27219 "$gcc_cv_gld_minor_version" -ge 18 -o \
27220 "$gcc_cv_gld_major_version" -gt 2 \
27221 && test $in_tree_ld_is_elf = yes; then
27222 gcc_cv_ld_buildid=yes
27224 elif test x$gcc_cv_ld != x; then
27225 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27226 gcc_cv_ld_buildid=yes
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27231 $as_echo "$gcc_cv_ld_buildid" >&6; }
27232 if test x"$gcc_cv_ld_buildid" = xyes; then
27234 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27238 # Check whether --enable-linker-build-id was given.
27239 if test "${enable_linker_build_id+set}" = set; then :
27240 enableval=$enable_linker_build_id;
27241 else
27242 enable_linker_build_id=no
27246 if test x"$enable_linker_build_id" = xyes; then
27247 if test x"$gcc_cv_ld_buildid" = xyes; then
27249 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27251 else
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27253 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27257 # In binutils 2.21, GNU ld gained support for new emulations fully
27258 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27260 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27261 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27262 $as_echo_n "(cached) " >&6
27263 else
27264 gcc_cv_ld_sol2_emulation=no
27265 if test $in_tree_ld = yes ; then
27266 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27267 "$gcc_cv_gld_minor_version" -ge 21 -o \
27268 "$gcc_cv_gld_major_version" -gt 2 \
27269 && test $in_tree_ld_is_elf = yes; then
27270 gcc_cv_ld_sol2_emulation=yes
27272 elif test x$gcc_cv_ld != x; then
27273 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27274 grep _sol2 > /dev/null; then
27275 gcc_cv_ld_sol2_emulation=yes
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27280 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27281 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27283 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27288 $as_echo_n "checking linker --sysroot support... " >&6; }
27289 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27290 $as_echo_n "(cached) " >&6
27291 else
27292 gcc_cv_ld_sysroot=no
27293 if test $in_tree_ld = yes ; then
27294 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
27295 gcc_cv_ld_sysroot=yes
27297 elif test x$gcc_cv_ld != x; then
27298 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27299 gcc_cv_ld_sysroot=yes
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27304 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27305 if test x"$gcc_cv_ld_sysroot" = xyes; then
27307 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27311 # Test for stack protector support in target C library.
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27313 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27314 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27315 $as_echo_n "(cached) " >&6
27316 else
27317 gcc_cv_libc_provides_ssp=no
27318 case "$target" in
27319 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27320 # glibc 2.4 and later provides __stack_chk_fail and
27321 # either __stack_chk_guard, or TLS access to stack guard canary.
27323 if test $glibc_version_major -gt 2 \
27324 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27325 gcc_cv_libc_provides_ssp=yes
27326 else
27328 if test -f $target_header_dir/features.h \
27329 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27330 $target_header_dir/features.h > /dev/null; then
27331 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27332 $target_header_dir/features.h > /dev/null && \
27333 test -f $target_header_dir/bits/uClibc_config.h && \
27334 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27335 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27336 gcc_cv_libc_provides_ssp=yes
27338 # all versions of Bionic support stack protector
27339 elif test -f $target_header_dir/sys/cdefs.h \
27340 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27341 $target_header_dir/sys/cdefs.h > /dev/null; then
27342 gcc_cv_libc_provides_ssp=yes
27346 *-*-gnu*)
27347 # Avoid complicated tests (see
27348 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27349 # simply assert that glibc does provide this, which is true for all
27350 # realistically usable GNU/Hurd configurations.
27351 gcc_cv_libc_provides_ssp=yes;;
27352 *-*-darwin* | *-*-freebsd*)
27353 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27354 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27355 gcc_cv_libc_provides_ssp=yes
27356 else
27357 echo "no __stack_chk_fail on this target"
27361 *) gcc_cv_libc_provides_ssp=no ;;
27362 esac
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27365 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27367 if test x$gcc_cv_libc_provides_ssp = xyes; then
27369 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27373 # Test for <sys/sdt.h> on the target.
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27376 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27377 have_sys_sdt_h=no
27378 if test -f $target_header_dir/sys/sdt.h; then
27379 have_sys_sdt_h=yes
27381 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27385 $as_echo "$have_sys_sdt_h" >&6; }
27387 # Check if TFmode long double should be used by default or not.
27388 # Some glibc targets used DFmode long double, but with glibc 2.4
27389 # and later they can use TFmode.
27390 case "$target" in
27391 powerpc*-*-linux* | \
27392 sparc*-*-linux* | \
27393 s390*-*-linux* | \
27394 alpha*-*-linux*)
27396 # Check whether --with-long-double-128 was given.
27397 if test "${with_long_double_128+set}" = set; then :
27398 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27399 else
27401 if test $glibc_version_major -gt 2 \
27402 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27403 gcc_cv_target_ldbl128=yes
27404 else
27406 gcc_cv_target_ldbl128=no
27407 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27408 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27409 && gcc_cv_target_ldbl128=yes
27415 esac
27416 if test x$gcc_cv_target_ldbl128 = xyes; then
27418 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27423 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27424 gcc_cv_target_dl_iterate_phdr=unknown
27425 case "$target" in
27426 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27427 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27428 # libdl there, both complicating its use and breaking compatibility
27429 # between Solaris 10 updates.
27430 *-*-solaris2.1[1-9]*)
27431 # <link.h> needs both a dl_iterate_phdr declaration and support for
27432 # compilation with largefile support.
27433 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27434 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27435 gcc_cv_target_dl_iterate_phdr=yes
27436 else
27437 gcc_cv_target_dl_iterate_phdr=no
27440 esac
27442 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27444 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27448 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27450 # We no longer support different GC mechanisms. Emit an error if
27451 # the user configures with --with-gc.
27453 # Check whether --with-gc was given.
27454 if test "${with_gc+set}" = set; then :
27455 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27459 # Libraries to use on the host. This will normally be set by the top
27460 # level Makefile. Here we simply capture the value for our Makefile.
27461 if test -z "${HOST_LIBS+set}"; then
27462 HOST_LIBS=
27466 # Use the system's zlib library.
27467 zlibdir=-L../zlib
27468 zlibinc="-I\$(srcdir)/../zlib"
27470 # Check whether --with-system-zlib was given.
27471 if test "${with_system_zlib+set}" = set; then :
27472 withval=$with_system_zlib; zlibdir=
27473 zlibinc=
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27483 # Check whether --enable-maintainer-mode was given.
27484 if test "${enable_maintainer_mode+set}" = set; then :
27485 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27486 else
27487 maintainer_mode=no
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27492 $as_echo "$maintainer_mode" >&6; }
27494 if test "$maintainer_mode" = "yes"; then
27495 MAINT=''
27496 else
27497 MAINT='#'
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27502 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27503 # Check whether --enable-link-mutex was given.
27504 if test "${enable_link_mutex+set}" = set; then :
27505 enableval=$enable_link_mutex; do_link_mutex=$enableval
27506 else
27507 do_link_mutex=no
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27511 $as_echo "$do_link_mutex" >&6; }
27513 if test "$do_link_mutex" = "yes"; then
27514 DO_LINK_MUTEX=true
27515 else
27516 DO_LINK_MUTEX=false
27520 # --------------
27521 # Language hooks
27522 # --------------
27524 # Make empty files to contain the specs and options for each language.
27525 # Then add #include lines to for a compiler that has specs and/or options.
27527 subdirs=
27528 lang_opt_files=
27529 lang_specs_files=
27530 lang_tree_files=
27531 # These (without "all_") are set in each config-lang.in.
27532 # `language' must be a single word so is spelled singularly.
27533 all_languages=
27534 all_compilers=
27535 all_outputs='Makefile'
27536 # List of language makefile fragments.
27537 all_lang_makefrags=
27538 # Additional files for gengtype
27539 all_gtfiles="$target_gtfiles"
27541 # These are the languages that are set in --enable-languages,
27542 # and are available in the GCC tree.
27543 all_selected_languages=
27545 # Add the language fragments.
27546 # Languages are added via two mechanisms. Some information must be
27547 # recorded in makefile variables, these are defined in config-lang.in.
27548 # We accumulate them and plug them into the main Makefile.
27549 # The other mechanism is a set of hooks for each of the main targets
27550 # like `clean', `install', etc.
27552 language_hooks="Make-hooks"
27554 for lang in ${srcdir}/*/config-lang.in
27556 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27558 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27559 if test "x$lang_alias" = x
27560 then
27561 echo "$lang doesn't set \$language." 1>&2
27562 exit 1
27564 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27565 subdirs="$subdirs $subdir"
27567 # $gcc_subdir is where the gcc integration files are to be found
27568 # for a language, both for internal compiler purposes (compiler
27569 # sources implementing front-end to GCC tree converters), and for
27570 # build infrastructure purposes (Make-lang.in, etc.)
27572 # This will be <subdir> (relative to $srcdir) if a line like
27573 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27574 # is found in <langdir>/config-lang.in, and will remain <langdir>
27575 # otherwise.
27577 # Except for the language alias (fetched above), the regular
27578 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27579 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27580 # only this and the language alias.
27582 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27583 if [ "$gcc_subdir" = "" ]; then
27584 gcc_subdir="$subdir"
27587 case ",$enable_languages," in
27588 *,$lang_alias,*)
27589 all_selected_languages="$all_selected_languages $lang_alias"
27590 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27591 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27594 esac
27596 language=
27597 boot_language=
27598 compilers=
27599 outputs=
27600 gtfiles=
27601 subdir_requires=
27602 . ${srcdir}/$gcc_subdir/config-lang.in
27603 if test "x$language" = x
27604 then
27605 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27606 exit 1
27609 ok=:
27610 case ",$enable_languages," in
27611 *,$lang_alias,*) ;;
27613 for i in $subdir_requires; do
27614 test -f "${srcdir}/$i/config-lang.in" && continue
27615 ok=false
27616 break
27617 done
27619 esac
27620 $ok || continue
27622 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27623 if test -f $srcdir/$gcc_subdir/lang.opt; then
27624 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27625 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27627 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27628 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27630 all_languages="$all_languages $language"
27631 all_compilers="$all_compilers $compilers"
27632 all_outputs="$all_outputs $outputs"
27633 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27634 case ",$enable_languages," in
27635 *,lto,*)
27637 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27639 enable_lto=yes
27642 *) ;;
27643 esac
27644 done
27646 check_languages=
27647 for language in $all_selected_languages
27649 check_languages="$check_languages check-$language"
27650 done
27652 # We link each language in with a set of hooks, reached indirectly via
27653 # lang.${target}. Only do so for selected languages.
27655 rm -f Make-hooks
27656 touch Make-hooks
27657 target_list="all.cross start.encap rest.encap tags \
27658 install-common install-man install-info install-pdf install-html dvi \
27659 pdf html uninstall info man srcextra srcman srcinfo \
27660 mostlyclean clean distclean maintainer-clean install-plugin"
27662 for t in $target_list
27665 for lang in $all_selected_languages
27667 x="$x $lang.$t"
27668 done
27669 echo "lang.$t: $x" >> Make-hooks
27670 done
27672 # --------
27673 # Option include files
27674 # --------
27676 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27677 option_includes="option-includes.mk"
27680 # --------
27681 # UNSORTED
27682 # --------
27684 # Create .gdbinit.
27686 echo "dir ." > .gdbinit
27687 echo "dir ${srcdir}" >> .gdbinit
27688 if test x$gdb_needs_out_file_path = xyes
27689 then
27690 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27692 if test "x$subdirs" != x; then
27693 for s in $subdirs
27695 echo "dir ${srcdir}/$s" >> .gdbinit
27696 done
27698 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27699 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27701 # Put a breakpoint on __asan_report_error to help with debugging buffer
27702 # overflow.
27703 case "$CFLAGS" in
27704 *-fsanitize=address*)
27705 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27707 esac
27709 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27713 # Find a directory in which to install a shared libgcc.
27715 # Check whether --enable-version-specific-runtime-libs was given.
27716 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27717 enableval=$enable_version_specific_runtime_libs;
27721 # Substitute configuration variables
27787 # Echo link setup.
27788 if test x${build} = x${host} ; then
27789 if test x${host} = x${target} ; then
27790 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27791 else
27792 echo "Links are now set up to build a cross-compiler" 1>&2
27793 echo " from ${host} to ${target}." 1>&2
27795 else
27796 if test x${host} = x${target} ; then
27797 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27798 echo " for ${target}." 1>&2
27799 else
27800 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27801 echo " from ${host} to ${target}." 1>&2
27813 if test "x${CLOOGLIBS}" != "x" ; then
27815 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27819 # Check for plugin support
27820 # Check whether --enable-plugin was given.
27821 if test "${enable_plugin+set}" = set; then :
27822 enableval=$enable_plugin; enable_plugin=$enableval
27823 else
27824 enable_plugin=yes; default_plugin=yes
27828 pluginlibs=
27830 case "${host}" in
27831 *-*-darwin*)
27832 if test x$build = x$host; then
27833 export_sym_check="nm${exeext} -g"
27834 elif test x$host = x$target; then
27835 export_sym_check="$gcc_cv_nm -g"
27836 else
27837 export_sym_check=
27841 if test x$build = x$host; then
27842 export_sym_check="objdump${exeext} -T"
27843 elif test x$host = x$target; then
27844 export_sym_check="$gcc_cv_objdump -T"
27845 else
27846 export_sym_check=
27849 esac
27851 if test x"$enable_plugin" = x"yes"; then
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27854 $as_echo_n "checking for exported symbols... " >&6; }
27855 if test "x$export_sym_check" != x; then
27856 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27857 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27858 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27859 : # No need to use a flag
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27861 $as_echo "yes" >&6; }
27862 else
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27864 $as_echo "yes" >&6; }
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27866 $as_echo_n "checking for -rdynamic... " >&6; }
27867 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27868 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27869 plugin_rdynamic=yes
27870 pluginlibs="-rdynamic"
27871 else
27872 plugin_rdynamic=no
27873 enable_plugin=no
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27876 $as_echo "$plugin_rdynamic" >&6; }
27878 else
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27880 $as_echo "unable to check" >&6; }
27883 # Check -ldl
27884 saved_LIBS="$LIBS"
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27886 $as_echo_n "checking for library containing dlopen... " >&6; }
27887 if test "${ac_cv_search_dlopen+set}" = set; then :
27888 $as_echo_n "(cached) " >&6
27889 else
27890 ac_func_search_save_LIBS=$LIBS
27891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27892 /* end confdefs.h. */
27894 /* Override any GCC internal prototype to avoid an error.
27895 Use char because int might match the return type of a GCC
27896 builtin and then its argument prototype would still apply. */
27897 #ifdef __cplusplus
27898 extern "C"
27899 #endif
27900 char dlopen ();
27902 main ()
27904 return dlopen ();
27906 return 0;
27908 _ACEOF
27909 for ac_lib in '' dl; do
27910 if test -z "$ac_lib"; then
27911 ac_res="none required"
27912 else
27913 ac_res=-l$ac_lib
27914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27916 if ac_fn_c_try_link "$LINENO"; then :
27917 ac_cv_search_dlopen=$ac_res
27919 rm -f core conftest.err conftest.$ac_objext \
27920 conftest$ac_exeext
27921 if test "${ac_cv_search_dlopen+set}" = set; then :
27922 break
27924 done
27925 if test "${ac_cv_search_dlopen+set}" = set; then :
27927 else
27928 ac_cv_search_dlopen=no
27930 rm conftest.$ac_ext
27931 LIBS=$ac_func_search_save_LIBS
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27934 $as_echo "$ac_cv_search_dlopen" >&6; }
27935 ac_res=$ac_cv_search_dlopen
27936 if test "$ac_res" != no; then :
27937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27941 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27942 pluginlibs="$pluginlibs -ldl"
27944 LIBS="$saved_LIBS"
27946 # Check that we can build shared objects with -fPIC -shared
27947 saved_LDFLAGS="$LDFLAGS"
27948 saved_CFLAGS="$CFLAGS"
27949 case "${host}" in
27950 *-*-darwin*)
27951 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27952 CFLAGS="$CFLAGS -fPIC"
27953 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27956 CFLAGS="$CFLAGS -fPIC"
27957 LDFLAGS="$LDFLAGS -fPIC -shared"
27959 esac
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27961 $as_echo_n "checking for -fPIC -shared... " >&6; }
27962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27963 /* end confdefs.h. */
27964 extern int X;
27966 main ()
27968 return X == 0;
27970 return 0;
27972 _ACEOF
27973 if ac_fn_c_try_link "$LINENO"; then :
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27975 $as_echo "yes" >&6; }; have_pic_shared=yes
27976 else
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27978 $as_echo "no" >&6; }; have_pic_shared=no
27980 rm -f core conftest.err conftest.$ac_objext \
27981 conftest$ac_exeext conftest.$ac_ext
27982 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27983 pluginlibs=
27984 enable_plugin=no
27986 LDFLAGS="$saved_LDFLAGS"
27987 CFLAGS="$saved_CFLAGS"
27989 # If plugin support had been requested but not available, fail.
27990 if test x"$enable_plugin" = x"no" ; then
27991 if test x"$default_plugin" != x"yes"; then
27992 as_fn_error "
27993 Building GCC with plugin support requires a host that supports
27994 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28001 if test x"$enable_plugin" = x"yes"; then
28003 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28008 # Enable --enable-host-shared
28009 # Check whether --enable-host-shared was given.
28010 if test "${enable_host_shared+set}" = set; then :
28011 enableval=$enable_host_shared; PICFLAG=-fPIC
28012 else
28013 PICFLAG=
28020 # Check whether --enable-libquadmath-support was given.
28021 if test "${enable_libquadmath_support+set}" = set; then :
28022 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28023 else
28024 ENABLE_LIBQUADMATH_SUPPORT=yes
28027 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28029 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28034 # Specify what hash style to use by default.
28036 # Check whether --with-linker-hash-style was given.
28037 if test "${with_linker_hash_style+set}" = set; then :
28038 withval=$with_linker_hash_style; case x"$withval" in
28039 xsysv)
28040 LINKER_HASH_STYLE=sysv
28042 xgnu)
28043 LINKER_HASH_STYLE=gnu
28045 xboth)
28046 LINKER_HASH_STYLE=both
28049 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28051 esac
28052 else
28053 LINKER_HASH_STYLE=''
28056 if test x"${LINKER_HASH_STYLE}" != x; then
28058 cat >>confdefs.h <<_ACEOF
28059 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28060 _ACEOF
28064 # Configure the subdirectories
28065 # AC_CONFIG_SUBDIRS($subdirs)
28067 # Create the Makefile
28068 # and configure language subdirectories
28069 ac_config_files="$ac_config_files $all_outputs"
28072 ac_config_commands="$ac_config_commands default"
28074 cat >confcache <<\_ACEOF
28075 # This file is a shell script that caches the results of configure
28076 # tests run on this system so they can be shared between configure
28077 # scripts and configure runs, see configure's option --config-cache.
28078 # It is not useful on other systems. If it contains results you don't
28079 # want to keep, you may remove or edit it.
28081 # config.status only pays attention to the cache file if you give it
28082 # the --recheck option to rerun configure.
28084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28086 # following values.
28088 _ACEOF
28090 # The following way of writing the cache mishandles newlines in values,
28091 # but we know of no workaround that is simple, portable, and efficient.
28092 # So, we kill variables containing newlines.
28093 # Ultrix sh set writes to stderr and can't be redirected directly,
28094 # and sets the high bit in the cache file unless we assign to the vars.
28096 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28097 eval ac_val=\$$ac_var
28098 case $ac_val in #(
28099 *${as_nl}*)
28100 case $ac_var in #(
28101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28103 esac
28104 case $ac_var in #(
28105 _ | IFS | as_nl) ;; #(
28106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28107 *) { eval $ac_var=; unset $ac_var;} ;;
28108 esac ;;
28109 esac
28110 done
28112 (set) 2>&1 |
28113 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28114 *${as_nl}ac_space=\ *)
28115 # `set' does not quote correctly, so add quotes: double-quote
28116 # substitution turns \\\\ into \\, and sed turns \\ into \.
28117 sed -n \
28118 "s/'/'\\\\''/g;
28119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28120 ;; #(
28122 # `set' quotes correctly as required by POSIX, so do not add quotes.
28123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28125 esac |
28126 sort
28128 sed '
28129 /^ac_cv_env_/b end
28130 t clear
28131 :clear
28132 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28133 t end
28134 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28135 :end' >>confcache
28136 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28137 if test -w "$cache_file"; then
28138 test "x$cache_file" != "x/dev/null" &&
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28140 $as_echo "$as_me: updating cache $cache_file" >&6;}
28141 cat confcache >$cache_file
28142 else
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28144 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28147 rm -f confcache
28149 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28150 # Let make expand exec_prefix.
28151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28153 DEFS=-DHAVE_CONFIG_H
28155 ac_libobjs=
28156 ac_ltlibobjs=
28157 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28158 # 1. Remove the extension, and $U if already installed.
28159 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28160 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28161 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28162 # will be set to the directory where LIBOBJS objects are built.
28163 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28164 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28165 done
28166 LIBOBJS=$ac_libobjs
28168 LTLIBOBJS=$ac_ltlibobjs
28173 : ${CONFIG_STATUS=./config.status}
28174 ac_write_fail=0
28175 ac_clean_files_save=$ac_clean_files
28176 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28178 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28179 as_write_fail=0
28180 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28181 #! $SHELL
28182 # Generated by $as_me.
28183 # Run this file to recreate the current configuration.
28184 # Compiler output produced by configure, useful for debugging
28185 # configure, is in config.log if it exists.
28187 debug=false
28188 ac_cs_recheck=false
28189 ac_cs_silent=false
28191 SHELL=\${CONFIG_SHELL-$SHELL}
28192 export SHELL
28193 _ASEOF
28194 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28195 ## -------------------- ##
28196 ## M4sh Initialization. ##
28197 ## -------------------- ##
28199 # Be more Bourne compatible
28200 DUALCASE=1; export DUALCASE # for MKS sh
28201 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28202 emulate sh
28203 NULLCMD=:
28204 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28205 # is contrary to our usage. Disable this feature.
28206 alias -g '${1+"$@"}'='"$@"'
28207 setopt NO_GLOB_SUBST
28208 else
28209 case `(set -o) 2>/dev/null` in #(
28210 *posix*) :
28211 set -o posix ;; #(
28212 *) :
28214 esac
28218 as_nl='
28220 export as_nl
28221 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28222 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28223 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28225 # Prefer a ksh shell builtin over an external printf program on Solaris,
28226 # but without wasting forks for bash or zsh.
28227 if test -z "$BASH_VERSION$ZSH_VERSION" \
28228 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28229 as_echo='print -r --'
28230 as_echo_n='print -rn --'
28231 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28232 as_echo='printf %s\n'
28233 as_echo_n='printf %s'
28234 else
28235 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28236 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28237 as_echo_n='/usr/ucb/echo -n'
28238 else
28239 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28240 as_echo_n_body='eval
28241 arg=$1;
28242 case $arg in #(
28243 *"$as_nl"*)
28244 expr "X$arg" : "X\\(.*\\)$as_nl";
28245 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28246 esac;
28247 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28249 export as_echo_n_body
28250 as_echo_n='sh -c $as_echo_n_body as_echo'
28252 export as_echo_body
28253 as_echo='sh -c $as_echo_body as_echo'
28256 # The user is always right.
28257 if test "${PATH_SEPARATOR+set}" != set; then
28258 PATH_SEPARATOR=:
28259 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28260 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28261 PATH_SEPARATOR=';'
28266 # IFS
28267 # We need space, tab and new line, in precisely that order. Quoting is
28268 # there to prevent editors from complaining about space-tab.
28269 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28270 # splitting by setting IFS to empty value.)
28271 IFS=" "" $as_nl"
28273 # Find who we are. Look in the path if we contain no directory separator.
28274 case $0 in #((
28275 *[\\/]* ) as_myself=$0 ;;
28276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28277 for as_dir in $PATH
28279 IFS=$as_save_IFS
28280 test -z "$as_dir" && as_dir=.
28281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28282 done
28283 IFS=$as_save_IFS
28286 esac
28287 # We did not find ourselves, most probably we were run as `sh COMMAND'
28288 # in which case we are not to be found in the path.
28289 if test "x$as_myself" = x; then
28290 as_myself=$0
28292 if test ! -f "$as_myself"; then
28293 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28294 exit 1
28297 # Unset variables that we do not need and which cause bugs (e.g. in
28298 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28299 # suppresses any "Segmentation fault" message there. '((' could
28300 # trigger a bug in pdksh 5.2.14.
28301 for as_var in BASH_ENV ENV MAIL MAILPATH
28302 do eval test x\${$as_var+set} = xset \
28303 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28304 done
28305 PS1='$ '
28306 PS2='> '
28307 PS4='+ '
28309 # NLS nuisances.
28310 LC_ALL=C
28311 export LC_ALL
28312 LANGUAGE=C
28313 export LANGUAGE
28315 # CDPATH.
28316 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28319 # as_fn_error ERROR [LINENO LOG_FD]
28320 # ---------------------------------
28321 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28322 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28323 # script with status $?, using 1 if that was 0.
28324 as_fn_error ()
28326 as_status=$?; test $as_status -eq 0 && as_status=1
28327 if test "$3"; then
28328 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28329 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28331 $as_echo "$as_me: error: $1" >&2
28332 as_fn_exit $as_status
28333 } # as_fn_error
28336 # as_fn_set_status STATUS
28337 # -----------------------
28338 # Set $? to STATUS, without forking.
28339 as_fn_set_status ()
28341 return $1
28342 } # as_fn_set_status
28344 # as_fn_exit STATUS
28345 # -----------------
28346 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28347 as_fn_exit ()
28349 set +e
28350 as_fn_set_status $1
28351 exit $1
28352 } # as_fn_exit
28354 # as_fn_unset VAR
28355 # ---------------
28356 # Portably unset VAR.
28357 as_fn_unset ()
28359 { eval $1=; unset $1;}
28361 as_unset=as_fn_unset
28362 # as_fn_append VAR VALUE
28363 # ----------------------
28364 # Append the text in VALUE to the end of the definition contained in VAR. Take
28365 # advantage of any shell optimizations that allow amortized linear growth over
28366 # repeated appends, instead of the typical quadratic growth present in naive
28367 # implementations.
28368 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28369 eval 'as_fn_append ()
28371 eval $1+=\$2
28373 else
28374 as_fn_append ()
28376 eval $1=\$$1\$2
28378 fi # as_fn_append
28380 # as_fn_arith ARG...
28381 # ------------------
28382 # Perform arithmetic evaluation on the ARGs, and store the result in the
28383 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28384 # must be portable across $(()) and expr.
28385 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28386 eval 'as_fn_arith ()
28388 as_val=$(( $* ))
28390 else
28391 as_fn_arith ()
28393 as_val=`expr "$@" || test $? -eq 1`
28395 fi # as_fn_arith
28398 if expr a : '\(a\)' >/dev/null 2>&1 &&
28399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28400 as_expr=expr
28401 else
28402 as_expr=false
28405 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28406 as_basename=basename
28407 else
28408 as_basename=false
28411 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28412 as_dirname=dirname
28413 else
28414 as_dirname=false
28417 as_me=`$as_basename -- "$0" ||
28418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28419 X"$0" : 'X\(//\)$' \| \
28420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28421 $as_echo X/"$0" |
28422 sed '/^.*\/\([^/][^/]*\)\/*$/{
28423 s//\1/
28426 /^X\/\(\/\/\)$/{
28427 s//\1/
28430 /^X\/\(\/\).*/{
28431 s//\1/
28434 s/.*/./; q'`
28436 # Avoid depending upon Character Ranges.
28437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28440 as_cr_digits='0123456789'
28441 as_cr_alnum=$as_cr_Letters$as_cr_digits
28443 ECHO_C= ECHO_N= ECHO_T=
28444 case `echo -n x` in #(((((
28445 -n*)
28446 case `echo 'xy\c'` in
28447 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28448 xy) ECHO_C='\c';;
28449 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28450 ECHO_T=' ';;
28451 esac;;
28453 ECHO_N='-n';;
28454 esac
28456 rm -f conf$$ conf$$.exe conf$$.file
28457 if test -d conf$$.dir; then
28458 rm -f conf$$.dir/conf$$.file
28459 else
28460 rm -f conf$$.dir
28461 mkdir conf$$.dir 2>/dev/null
28463 if (echo >conf$$.file) 2>/dev/null; then
28464 if ln -s conf$$.file conf$$ 2>/dev/null; then
28465 as_ln_s='ln -s'
28466 # ... but there are two gotchas:
28467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28469 # In both cases, we have to default to `cp -p'.
28470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28471 as_ln_s='cp -p'
28472 elif ln conf$$.file conf$$ 2>/dev/null; then
28473 as_ln_s=ln
28474 else
28475 as_ln_s='cp -p'
28477 else
28478 as_ln_s='cp -p'
28480 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28481 rmdir conf$$.dir 2>/dev/null
28484 # as_fn_mkdir_p
28485 # -------------
28486 # Create "$as_dir" as a directory, including parents if necessary.
28487 as_fn_mkdir_p ()
28490 case $as_dir in #(
28491 -*) as_dir=./$as_dir;;
28492 esac
28493 test -d "$as_dir" || eval $as_mkdir_p || {
28494 as_dirs=
28495 while :; do
28496 case $as_dir in #(
28497 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28498 *) as_qdir=$as_dir;;
28499 esac
28500 as_dirs="'$as_qdir' $as_dirs"
28501 as_dir=`$as_dirname -- "$as_dir" ||
28502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28503 X"$as_dir" : 'X\(//\)[^/]' \| \
28504 X"$as_dir" : 'X\(//\)$' \| \
28505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28506 $as_echo X"$as_dir" |
28507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28508 s//\1/
28511 /^X\(\/\/\)[^/].*/{
28512 s//\1/
28515 /^X\(\/\/\)$/{
28516 s//\1/
28519 /^X\(\/\).*/{
28520 s//\1/
28523 s/.*/./; q'`
28524 test -d "$as_dir" && break
28525 done
28526 test -z "$as_dirs" || eval "mkdir $as_dirs"
28527 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28530 } # as_fn_mkdir_p
28531 if mkdir -p . 2>/dev/null; then
28532 as_mkdir_p='mkdir -p "$as_dir"'
28533 else
28534 test -d ./-p && rmdir ./-p
28535 as_mkdir_p=false
28538 if test -x / >/dev/null 2>&1; then
28539 as_test_x='test -x'
28540 else
28541 if ls -dL / >/dev/null 2>&1; then
28542 as_ls_L_option=L
28543 else
28544 as_ls_L_option=
28546 as_test_x='
28547 eval sh -c '\''
28548 if test -d "$1"; then
28549 test -d "$1/.";
28550 else
28551 case $1 in #(
28552 -*)set "./$1";;
28553 esac;
28554 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28555 ???[sx]*):;;*)false;;esac;fi
28556 '\'' sh
28559 as_executable_p=$as_test_x
28561 # Sed expression to map a string onto a valid CPP name.
28562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28564 # Sed expression to map a string onto a valid variable name.
28565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28568 exec 6>&1
28569 ## ----------------------------------- ##
28570 ## Main body of $CONFIG_STATUS script. ##
28571 ## ----------------------------------- ##
28572 _ASEOF
28573 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28576 # Save the log message, to keep $0 and so on meaningful, and to
28577 # report actual input values of CONFIG_FILES etc. instead of their
28578 # values after options handling.
28579 ac_log="
28580 This file was extended by $as_me, which was
28581 generated by GNU Autoconf 2.64. Invocation command line was
28583 CONFIG_FILES = $CONFIG_FILES
28584 CONFIG_HEADERS = $CONFIG_HEADERS
28585 CONFIG_LINKS = $CONFIG_LINKS
28586 CONFIG_COMMANDS = $CONFIG_COMMANDS
28587 $ $0 $@
28589 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28592 _ACEOF
28594 case $ac_config_files in *"
28595 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28596 esac
28598 case $ac_config_headers in *"
28599 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28600 esac
28603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28604 # Files that config.status was made for.
28605 config_files="$ac_config_files"
28606 config_headers="$ac_config_headers"
28607 config_commands="$ac_config_commands"
28609 _ACEOF
28611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28612 ac_cs_usage="\
28613 \`$as_me' instantiates files and other configuration actions
28614 from templates according to the current configuration. Unless the files
28615 and actions are specified as TAGs, all are instantiated by default.
28617 Usage: $0 [OPTION]... [TAG]...
28619 -h, --help print this help, then exit
28620 -V, --version print version number and configuration settings, then exit
28621 -q, --quiet, --silent
28622 do not print progress messages
28623 -d, --debug don't remove temporary files
28624 --recheck update $as_me by reconfiguring in the same conditions
28625 --file=FILE[:TEMPLATE]
28626 instantiate the configuration file FILE
28627 --header=FILE[:TEMPLATE]
28628 instantiate the configuration header FILE
28630 Configuration files:
28631 $config_files
28633 Configuration headers:
28634 $config_headers
28636 Configuration commands:
28637 $config_commands
28639 Report bugs to the package provider."
28641 _ACEOF
28642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28643 ac_cs_version="\\
28644 config.status
28645 configured by $0, generated by GNU Autoconf 2.64,
28646 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28648 Copyright (C) 2009 Free Software Foundation, Inc.
28649 This config.status script is free software; the Free Software Foundation
28650 gives unlimited permission to copy, distribute and modify it."
28652 ac_pwd='$ac_pwd'
28653 srcdir='$srcdir'
28654 AWK='$AWK'
28655 test -n "\$AWK" || AWK=awk
28656 _ACEOF
28658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28659 # The default lists apply if the user does not specify any file.
28660 ac_need_defaults=:
28661 while test $# != 0
28663 case $1 in
28664 --*=*)
28665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28666 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28667 ac_shift=:
28670 ac_option=$1
28671 ac_optarg=$2
28672 ac_shift=shift
28674 esac
28676 case $ac_option in
28677 # Handling of the options.
28678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28679 ac_cs_recheck=: ;;
28680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28681 $as_echo "$ac_cs_version"; exit ;;
28682 --debug | --debu | --deb | --de | --d | -d )
28683 debug=: ;;
28684 --file | --fil | --fi | --f )
28685 $ac_shift
28686 case $ac_optarg in
28687 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28688 esac
28689 as_fn_append CONFIG_FILES " '$ac_optarg'"
28690 ac_need_defaults=false;;
28691 --header | --heade | --head | --hea )
28692 $ac_shift
28693 case $ac_optarg in
28694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28695 esac
28696 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28697 ac_need_defaults=false;;
28698 --he | --h)
28699 # Conflict between --help and --header
28700 as_fn_error "ambiguous option: \`$1'
28701 Try \`$0 --help' for more information.";;
28702 --help | --hel | -h )
28703 $as_echo "$ac_cs_usage"; exit ;;
28704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28705 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28706 ac_cs_silent=: ;;
28708 # This is an error.
28709 -*) as_fn_error "unrecognized option: \`$1'
28710 Try \`$0 --help' for more information." ;;
28712 *) as_fn_append ac_config_targets " $1"
28713 ac_need_defaults=false ;;
28715 esac
28716 shift
28717 done
28719 ac_configure_extra_args=
28721 if $ac_cs_silent; then
28722 exec 6>/dev/null
28723 ac_configure_extra_args="$ac_configure_extra_args --silent"
28726 _ACEOF
28727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28728 if \$ac_cs_recheck; then
28729 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28730 shift
28731 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28732 CONFIG_SHELL='$SHELL'
28733 export CONFIG_SHELL
28734 exec "\$@"
28737 _ACEOF
28738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28739 exec 5>>config.log
28741 echo
28742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28743 ## Running $as_me. ##
28744 _ASBOX
28745 $as_echo "$ac_log"
28746 } >&5
28748 _ACEOF
28749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28751 # INIT-COMMANDS
28753 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28754 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28755 subdirs='$subdirs'
28757 _ACEOF
28759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28761 # Handling of arguments.
28762 for ac_config_target in $ac_config_targets
28764 case $ac_config_target in
28765 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28766 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28767 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28768 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28769 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28770 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28771 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28772 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28774 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28775 esac
28776 done
28779 # If the user did not use the arguments to specify the items to instantiate,
28780 # then the envvar interface is used. Set only those that are not.
28781 # We use the long form for the default assignment because of an extremely
28782 # bizarre bug on SunOS 4.1.3.
28783 if $ac_need_defaults; then
28784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28785 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28789 # Have a temporary directory for convenience. Make it in the build tree
28790 # simply because there is no reason against having it here, and in addition,
28791 # creating and moving files from /tmp can sometimes cause problems.
28792 # Hook for its removal unless debugging.
28793 # Note that there is a small window in which the directory will not be cleaned:
28794 # after its creation but before its name has been assigned to `$tmp'.
28795 $debug ||
28797 tmp=
28798 trap 'exit_status=$?
28799 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28801 trap 'as_fn_exit 1' 1 2 13 15
28803 # Create a (secure) tmp directory for tmp files.
28806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28807 test -n "$tmp" && test -d "$tmp"
28808 } ||
28810 tmp=./conf$$-$RANDOM
28811 (umask 077 && mkdir "$tmp")
28812 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28814 # Set up the scripts for CONFIG_FILES section.
28815 # No need to generate them if there are no CONFIG_FILES.
28816 # This happens for instance with `./config.status config.h'.
28817 if test -n "$CONFIG_FILES"; then
28819 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28820 ac_cs_awk_getline=:
28821 ac_cs_awk_pipe_init=
28822 ac_cs_awk_read_file='
28823 while ((getline aline < (F[key])) > 0)
28824 print(aline)
28825 close(F[key])'
28826 ac_cs_awk_pipe_fini=
28827 else
28828 ac_cs_awk_getline=false
28829 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28830 ac_cs_awk_read_file='
28831 print "|#_!!_#|"
28832 print "cat " F[key] " &&"
28833 '$ac_cs_awk_pipe_init
28834 # The final `:' finishes the AND list.
28835 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28837 ac_cr=`echo X | tr X '\015'`
28838 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28839 # But we know of no other shell where ac_cr would be empty at this
28840 # point, so we can use a bashism as a fallback.
28841 if test "x$ac_cr" = x; then
28842 eval ac_cr=\$\'\\r\'
28844 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28845 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28846 ac_cs_awk_cr='\r'
28847 else
28848 ac_cs_awk_cr=$ac_cr
28851 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28852 _ACEOF
28854 # Create commands to substitute file output variables.
28856 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28857 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28858 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28859 echo "_ACAWK" &&
28860 echo "_ACEOF"
28861 } >conf$$files.sh &&
28862 . ./conf$$files.sh ||
28863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28864 rm -f conf$$files.sh
28867 echo "cat >conf$$subs.awk <<_ACEOF" &&
28868 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28869 echo "_ACEOF"
28870 } >conf$$subs.sh ||
28871 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28872 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28873 ac_delim='%!_!# '
28874 for ac_last_try in false false false false false :; do
28875 . ./conf$$subs.sh ||
28876 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28878 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28879 if test $ac_delim_n = $ac_delim_num; then
28880 break
28881 elif $ac_last_try; then
28882 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28883 else
28884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28886 done
28887 rm -f conf$$subs.sh
28889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28890 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28891 _ACEOF
28892 sed -n '
28894 s/^/S["/; s/!.*/"]=/
28897 s/^[^!]*!//
28898 :repl
28899 t repl
28900 s/'"$ac_delim"'$//
28901 t delim
28904 s/\(.\{148\}\).*/\1/
28905 t more1
28906 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28909 b repl
28910 :more1
28911 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28914 s/.\{148\}//
28915 t nl
28916 :delim
28918 s/\(.\{148\}\).*/\1/
28919 t more2
28920 s/["\\]/\\&/g; s/^/"/; s/$/"/
28923 :more2
28924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28927 s/.\{148\}//
28928 t delim
28929 ' <conf$$subs.awk | sed '
28930 /^[^""]/{
28932 s/\n//
28934 ' >>$CONFIG_STATUS || ac_write_fail=1
28935 rm -f conf$$subs.awk
28936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28937 _ACAWK
28938 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28939 for (key in S) S_is_set[key] = 1
28940 FS = "\a"
28941 \$ac_cs_awk_pipe_init
28944 line = $ 0
28945 nfields = split(line, field, "@")
28946 substed = 0
28947 len = length(field[1])
28948 for (i = 2; i < nfields; i++) {
28949 key = field[i]
28950 keylen = length(key)
28951 if (S_is_set[key]) {
28952 value = S[key]
28953 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28954 len += length(value) + length(field[++i])
28955 substed = 1
28956 } else
28957 len += 1 + keylen
28959 if (nfields == 3 && !substed) {
28960 key = field[2]
28961 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28962 \$ac_cs_awk_read_file
28963 next
28966 print line
28968 \$ac_cs_awk_pipe_fini
28969 _ACAWK
28970 _ACEOF
28971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28972 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28973 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28974 else
28976 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28977 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28978 _ACEOF
28980 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28981 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28982 # trailing colons and then remove the whole line if VPATH becomes empty
28983 # (actually we leave an empty line to preserve line numbers).
28984 if test "x$srcdir" = x.; then
28985 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28986 s/:*\$(srcdir):*/:/
28987 s/:*\${srcdir}:*/:/
28988 s/:*@srcdir@:*/:/
28989 s/^\([^=]*=[ ]*\):*/\1/
28990 s/:*$//
28991 s/^[^=]*=[ ]*$//
28995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28996 fi # test -n "$CONFIG_FILES"
28998 # Set up the scripts for CONFIG_HEADERS section.
28999 # No need to generate them if there are no CONFIG_HEADERS.
29000 # This happens for instance with `./config.status Makefile'.
29001 if test -n "$CONFIG_HEADERS"; then
29002 cat >"$tmp/defines.awk" <<\_ACAWK ||
29003 BEGIN {
29004 _ACEOF
29006 # Transform confdefs.h into an awk script `defines.awk', embedded as
29007 # here-document in config.status, that substitutes the proper values into
29008 # config.h.in to produce config.h.
29010 # Create a delimiter string that does not exist in confdefs.h, to ease
29011 # handling of long lines.
29012 ac_delim='%!_!# '
29013 for ac_last_try in false false :; do
29014 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29015 if test -z "$ac_t"; then
29016 break
29017 elif $ac_last_try; then
29018 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29019 else
29020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29022 done
29024 # For the awk script, D is an array of macro values keyed by name,
29025 # likewise P contains macro parameters if any. Preserve backslash
29026 # newline sequences.
29028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29029 sed -n '
29030 s/.\{148\}/&'"$ac_delim"'/g
29031 t rset
29032 :rset
29033 s/^[ ]*#[ ]*define[ ][ ]*/ /
29034 t def
29036 :def
29037 s/\\$//
29038 t bsnl
29039 s/["\\]/\\&/g
29040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29041 D["\1"]=" \3"/p
29042 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29044 :bsnl
29045 s/["\\]/\\&/g
29046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29047 D["\1"]=" \3\\\\\\n"\\/p
29048 t cont
29049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29050 t cont
29052 :cont
29054 s/.\{148\}/&'"$ac_delim"'/g
29055 t clear
29056 :clear
29057 s/\\$//
29058 t bsnlc
29059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29061 :bsnlc
29062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29063 b cont
29064 ' <confdefs.h | sed '
29065 s/'"$ac_delim"'/"\\\
29066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29069 for (key in D) D_is_set[key] = 1
29070 FS = "\a"
29072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29073 line = \$ 0
29074 split(line, arg, " ")
29075 if (arg[1] == "#") {
29076 defundef = arg[2]
29077 mac1 = arg[3]
29078 } else {
29079 defundef = substr(arg[1], 2)
29080 mac1 = arg[2]
29082 split(mac1, mac2, "(") #)
29083 macro = mac2[1]
29084 prefix = substr(line, 1, index(line, defundef) - 1)
29085 if (D_is_set[macro]) {
29086 # Preserve the white space surrounding the "#".
29087 print prefix "define", macro P[macro] D[macro]
29088 next
29089 } else {
29090 # Replace #undef with comments. This is necessary, for example,
29091 # in the case of _POSIX_SOURCE, which is predefined and required
29092 # on some systems where configure will not decide to define it.
29093 if (defundef == "undef") {
29094 print "/*", prefix defundef, macro, "*/"
29095 next
29099 { print }
29100 _ACAWK
29101 _ACEOF
29102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29103 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29104 fi # test -n "$CONFIG_HEADERS"
29107 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29108 shift
29109 for ac_tag
29111 case $ac_tag in
29112 :[FHLC]) ac_mode=$ac_tag; continue;;
29113 esac
29114 case $ac_mode$ac_tag in
29115 :[FHL]*:*);;
29116 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29117 :[FH]-) ac_tag=-:-;;
29118 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29119 esac
29120 ac_save_IFS=$IFS
29121 IFS=:
29122 set x $ac_tag
29123 IFS=$ac_save_IFS
29124 shift
29125 ac_file=$1
29126 shift
29128 case $ac_mode in
29129 :L) ac_source=$1;;
29130 :[FH])
29131 ac_file_inputs=
29132 for ac_f
29134 case $ac_f in
29135 -) ac_f="$tmp/stdin";;
29136 *) # Look for the file first in the build tree, then in the source tree
29137 # (if the path is not absolute). The absolute path cannot be DOS-style,
29138 # because $ac_f cannot contain `:'.
29139 test -f "$ac_f" ||
29140 case $ac_f in
29141 [\\/$]*) false;;
29142 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29143 esac ||
29144 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29145 esac
29146 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29147 as_fn_append ac_file_inputs " '$ac_f'"
29148 done
29150 # Let's still pretend it is `configure' which instantiates (i.e., don't
29151 # use $as_me), people would be surprised to read:
29152 # /* config.h. Generated by config.status. */
29153 configure_input='Generated from '`
29154 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29155 `' by configure.'
29156 if test x"$ac_file" != x-; then
29157 configure_input="$ac_file. $configure_input"
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29159 $as_echo "$as_me: creating $ac_file" >&6;}
29161 # Neutralize special characters interpreted by sed in replacement strings.
29162 case $configure_input in #(
29163 *\&* | *\|* | *\\* )
29164 ac_sed_conf_input=`$as_echo "$configure_input" |
29165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29166 *) ac_sed_conf_input=$configure_input;;
29167 esac
29169 case $ac_tag in
29170 *:-:* | *:-) cat >"$tmp/stdin" \
29171 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29172 esac
29174 esac
29176 ac_dir=`$as_dirname -- "$ac_file" ||
29177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29178 X"$ac_file" : 'X\(//\)[^/]' \| \
29179 X"$ac_file" : 'X\(//\)$' \| \
29180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29181 $as_echo X"$ac_file" |
29182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29183 s//\1/
29186 /^X\(\/\/\)[^/].*/{
29187 s//\1/
29190 /^X\(\/\/\)$/{
29191 s//\1/
29194 /^X\(\/\).*/{
29195 s//\1/
29198 s/.*/./; q'`
29199 as_dir="$ac_dir"; as_fn_mkdir_p
29200 ac_builddir=.
29202 case "$ac_dir" in
29203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29205 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29206 # A ".." for each directory in $ac_dir_suffix.
29207 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29208 case $ac_top_builddir_sub in
29209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29211 esac ;;
29212 esac
29213 ac_abs_top_builddir=$ac_pwd
29214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29215 # for backward compatibility:
29216 ac_top_builddir=$ac_top_build_prefix
29218 case $srcdir in
29219 .) # We are building in place.
29220 ac_srcdir=.
29221 ac_top_srcdir=$ac_top_builddir_sub
29222 ac_abs_top_srcdir=$ac_pwd ;;
29223 [\\/]* | ?:[\\/]* ) # Absolute name.
29224 ac_srcdir=$srcdir$ac_dir_suffix;
29225 ac_top_srcdir=$srcdir
29226 ac_abs_top_srcdir=$srcdir ;;
29227 *) # Relative name.
29228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29229 ac_top_srcdir=$ac_top_build_prefix$srcdir
29230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29231 esac
29232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29235 case $ac_mode in
29238 # CONFIG_FILE
29241 _ACEOF
29243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29244 # If the template does not know about datarootdir, expand it.
29245 # FIXME: This hack should be removed a few years after 2.60.
29246 ac_datarootdir_hack=; ac_datarootdir_seen=
29247 ac_sed_dataroot='
29248 /datarootdir/ {
29252 /@datadir@/p
29253 /@docdir@/p
29254 /@infodir@/p
29255 /@localedir@/p
29256 /@mandir@/p'
29257 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29258 *datarootdir*) ac_datarootdir_seen=yes;;
29259 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29261 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29262 _ACEOF
29263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29264 ac_datarootdir_hack='
29265 s&@datadir@&$datadir&g
29266 s&@docdir@&$docdir&g
29267 s&@infodir@&$infodir&g
29268 s&@localedir@&$localedir&g
29269 s&@mandir@&$mandir&g
29270 s&\\\${datarootdir}&$datarootdir&g' ;;
29271 esac
29272 _ACEOF
29274 # Neutralize VPATH when `$srcdir' = `.'.
29275 # Shell code in configure.ac might set extrasub.
29276 # FIXME: do we really want to maintain this feature?
29277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29278 ac_sed_extra="$ac_vpsub
29279 $extrasub
29280 _ACEOF
29281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29284 s|@configure_input@|$ac_sed_conf_input|;t t
29285 s&@top_builddir@&$ac_top_builddir_sub&;t t
29286 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29287 s&@srcdir@&$ac_srcdir&;t t
29288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29289 s&@top_srcdir@&$ac_top_srcdir&;t t
29290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29291 s&@builddir@&$ac_builddir&;t t
29292 s&@abs_builddir@&$ac_abs_builddir&;t t
29293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29294 $ac_datarootdir_hack
29296 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29297 if $ac_cs_awk_getline; then
29298 $AWK -f "$tmp/subs.awk"
29299 else
29300 $AWK -f "$tmp/subs.awk" | $SHELL
29301 fi >$tmp/out \
29302 || as_fn_error "could not create $ac_file" "$LINENO" 5
29304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29305 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29308 which seems to be undefined. Please make sure it is defined." >&5
29309 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29310 which seems to be undefined. Please make sure it is defined." >&2;}
29312 rm -f "$tmp/stdin"
29313 case $ac_file in
29314 -) cat "$tmp/out" && rm -f "$tmp/out";;
29315 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29316 esac \
29317 || as_fn_error "could not create $ac_file" "$LINENO" 5
29321 # CONFIG_HEADER
29323 if test x"$ac_file" != x-; then
29325 $as_echo "/* $configure_input */" \
29326 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29327 } >"$tmp/config.h" \
29328 || as_fn_error "could not create $ac_file" "$LINENO" 5
29329 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29331 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29332 else
29333 rm -f "$ac_file"
29334 mv "$tmp/config.h" "$ac_file" \
29335 || as_fn_error "could not create $ac_file" "$LINENO" 5
29337 else
29338 $as_echo "/* $configure_input */" \
29339 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29340 || as_fn_error "could not create -" "$LINENO" 5
29344 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29345 $as_echo "$as_me: executing $ac_file commands" >&6;}
29347 esac
29350 case $ac_file$ac_mode in
29351 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29352 "gccdepdir":C)
29353 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29354 for lang in $subdirs c-family common
29356 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29357 done ;;
29358 "as":F) chmod +x as ;;
29359 "collect-ld":F) chmod +x collect-ld ;;
29360 "nm":F) chmod +x nm ;;
29361 "default":C)
29362 case ${CONFIG_HEADERS} in
29363 *auto-host.h:config.in*)
29364 echo > cstamp-h ;;
29365 esac
29366 # Make sure all the subdirs exist.
29367 for d in $subdirs doc build common c-family
29369 test -d $d || mkdir $d
29370 done
29373 esac
29374 done # for ac_tag
29377 as_fn_exit 0
29378 _ACEOF
29379 ac_clean_files=$ac_clean_files_save
29381 test $ac_write_fail = 0 ||
29382 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29385 # configure is writing to config.log, and then calls config.status.
29386 # config.status does its own redirection, appending to config.log.
29387 # Unfortunately, on DOS this fails, as config.log is still kept open
29388 # by configure, so config.status won't be able to write to it; its
29389 # output is simply discarded. So we exec the FD to /dev/null,
29390 # effectively closing config.log, so it can be properly (re)opened and
29391 # appended to by config.status. When coming back to configure, we
29392 # need to make the FD available again.
29393 if test "$no_create" != yes; then
29394 ac_cs_success=:
29395 ac_config_status_args=
29396 test "$silent" = yes &&
29397 ac_config_status_args="$ac_config_status_args --quiet"
29398 exec 5>/dev/null
29399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29400 exec 5>>config.log
29401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29402 # would make configure fail if this is the last instruction.
29403 $ac_cs_success || as_fn_exit $?
29405 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29407 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}